...
|
...
|
@@ -116,7 +116,7 @@ class Index extends Api |
|
|
$ywt_appid = 'wxb7dd0c03865a94e0';
|
|
|
$pagepath = '';
|
|
|
$res = $this->sendAstuWxMsgToAgent($sendInfo, $wxopenid, $tourl, $config['app_id'], $config['secret'], $ywt_appid, $pagepath);
|
|
|
print_r($res);return;
|
|
|
//print_r($res);return;
|
|
|
//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);
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -139,7 +139,7 @@ class Index extends Api |
|
|
$ywt_appid = 'wxb7dd0c03865a94e0';
|
|
|
$pagepath = '';
|
|
|
$res = $this->sendAstuWxMsgToAgent($sendInfo, $wxopenid, $tourl, $config['app_id'], $config['secret'], $ywt_appid, $pagepath);
|
|
|
print_r($res);return;
|
|
|
//print_r($res);return;
|
|
|
//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);
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -271,7 +271,7 @@ class Index extends Api |
|
|
//计算超时时间
|
|
|
$newtime=time()-43200;
|
|
|
$order=Db::name("order")->where("is_pay","<",3)->where("driver_id",null)->where("create_time",">",$newtime)->select();
|
|
|
print_r($order);
|
|
|
//print_r($order);
|
|
|
foreach ($order as $k=>$v){
|
|
|
$res=$this->refund($v['id']);
|
|
|
//$order=Db::name("order")->where('id',$v['id'])->update(['is_pay'=>4]);
|
...
|
...
|
|