소스 검색

微信推送SetWXMsg修改

likeku 8 년 전
부모
커밋
13e883c1ee
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      protected/controller/ReceiptController.php

+ 1 - 1
protected/controller/ReceiptController.php

@@ -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/' );