|  | @@ -11263,7 +11263,7 @@ class ReceiptController extends DooController {
 | 
	
		
			
				|  |  |  		if (! empty ( $receiptDetail )) {
 | 
	
		
			
				|  |  |  			Doo::loadModel ( 'staff' );
 | 
	
		
			
				|  |  |  			$staff = new staff ();
 | 
	
		
			
				|  |  | -			$staffmsg = $staff->getStaffBySid ( $receiptDetail ['staff'] );
 | 
	
		
			
				|  |  | +			$staffmsg = $staff->getOne(array('where' => "sid='". $receiptDetail['staff'] ."'", 'asArray' => TRUE));
 | 
	
		
			
				|  |  |  			if (! empty ( $staffmsg ['wxid'] )) {
 | 
	
		
			
				|  |  |  				require_once (SITE_PATH . '/protected/class/client.php');
 | 
	
		
			
				|  |  |  				$client = new client ( 'http://m.cld.smartcost.com.cn/' );
 |