作者 郭文星

123

@@ -116,7 +116,7 @@ class Index extends Api @@ -116,7 +116,7 @@ class Index extends Api
116 $ywt_appid = 'wxb7dd0c03865a94e0'; 116 $ywt_appid = 'wxb7dd0c03865a94e0';
117 $pagepath = ''; 117 $pagepath = '';
118 $res = $this->sendAstuWxMsgToAgent($sendInfo, $wxopenid, $tourl, $config['app_id'], $config['secret'], $ywt_appid, $pagepath); 118 $res = $this->sendAstuWxMsgToAgent($sendInfo, $wxopenid, $tourl, $config['app_id'], $config['secret'], $ywt_appid, $pagepath);
119 - print_r($res);return; 119 + //print_r($res);return;
120 //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); 120 //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);
121 } 121 }
122 } 122 }
@@ -139,7 +139,7 @@ class Index extends Api @@ -139,7 +139,7 @@ class Index extends Api
139 $ywt_appid = 'wxb7dd0c03865a94e0'; 139 $ywt_appid = 'wxb7dd0c03865a94e0';
140 $pagepath = ''; 140 $pagepath = '';
141 $res = $this->sendAstuWxMsgToAgent($sendInfo, $wxopenid, $tourl, $config['app_id'], $config['secret'], $ywt_appid, $pagepath); 141 $res = $this->sendAstuWxMsgToAgent($sendInfo, $wxopenid, $tourl, $config['app_id'], $config['secret'], $ywt_appid, $pagepath);
142 - print_r($res);return; 142 + //print_r($res);return;
143 //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); 143 //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);
144 } 144 }
145 } 145 }
@@ -271,7 +271,7 @@ class Index extends Api @@ -271,7 +271,7 @@ class Index extends Api
271 //计算超时时间 271 //计算超时时间
272 $newtime=time()-43200; 272 $newtime=time()-43200;
273 $order=Db::name("order")->where("is_pay","<",3)->where("driver_id",null)->where("create_time",">",$newtime)->select(); 273 $order=Db::name("order")->where("is_pay","<",3)->where("driver_id",null)->where("create_time",">",$newtime)->select();
274 - print_r($order); 274 + //print_r($order);
275 foreach ($order as $k=>$v){ 275 foreach ($order as $k=>$v){
276 $res=$this->refund($v['id']); 276 $res=$this->refund($v['id']);
277 //$order=Db::name("order")->where('id',$v['id'])->update(['is_pay'=>4]); 277 //$order=Db::name("order")->where('id',$v['id'])->update(['is_pay'=>4]);