作者 郭文星

123

@@ -21,7 +21,9 @@ class Index extends Api @@ -21,7 +21,9 @@ class Index extends Api
21 */ 21 */
22 public function index() 22 public function index()
23 { 23 {
24 - $res=$this->senWxmsgToDriverUser(379); 24 + $id = $this->request->param("id");//联系电话
  25 +
  26 + $res=$this->senWxmsgToDriverUser($id);
25 $this->success('请求成功',$res); 27 $this->success('请求成功',$res);
26 } 28 }
27 29
@@ -94,7 +96,6 @@ class Index extends Api @@ -94,7 +96,6 @@ class Index extends Api
94 function senWxmsgToDriverUser($order_id) 96 function senWxmsgToDriverUser($order_id)
95 { 97 {
96 $order=Db::name("order")->find($order_id); 98 $order=Db::name("order")->find($order_id);
97 - print_r($order);return;  
98 99
99 if($order['user_id']){ 100 if($order['user_id']){
100 $user=Db::name("user")->find($order['user_id']); 101 $user=Db::name("user")->find($order['user_id']);
@@ -136,7 +137,7 @@ class Index extends Api @@ -136,7 +137,7 @@ class Index extends Api
136 $ywt_appid = 'wxb7dd0c03865a94e0'; 137 $ywt_appid = 'wxb7dd0c03865a94e0';
137 $pagepath = ''; 138 $pagepath = '';
138 $res = $this->sendAstuWxMsgToAgent($sendInfo, $wxopenid, $tourl, $config['app_id'], $config['secret'], $ywt_appid, $pagepath); 139 $res = $this->sendAstuWxMsgToAgent($sendInfo, $wxopenid, $tourl, $config['app_id'], $config['secret'], $ywt_appid, $pagepath);
139 - //print_r($res);return; 140 + print_r($res);return;
140 //file_put_contents("pcl_wct_send.log", date("Y-m-d H:i:s") . "1-2-" . json_encode($res, JSON_UNESCAPED_UNICODE) . PHP_EOL, FILE_APPEND); 141 //file_put_contents("pcl_wct_send.log", date("Y-m-d H:i:s") . "1-2-" . json_encode($res, JSON_UNESCAPED_UNICODE) . PHP_EOL, FILE_APPEND);
141 } 142 }
142 } 143 }