...
|
...
|
@@ -21,7 +21,9 @@ class Index extends Api |
|
|
*/
|
|
|
public function index()
|
|
|
{
|
|
|
$res=$this->senWxmsgToDriverUser(379);
|
|
|
$id = $this->request->param("id");//联系电话
|
|
|
|
|
|
$res=$this->senWxmsgToDriverUser($id);
|
|
|
$this->success('请求成功',$res);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -94,7 +96,6 @@ class Index extends Api |
|
|
function senWxmsgToDriverUser($order_id)
|
|
|
{
|
|
|
$order=Db::name("order")->find($order_id);
|
|
|
print_r($order);return;
|
|
|
|
|
|
if($order['user_id']){
|
|
|
$user=Db::name("user")->find($order['user_id']);
|
...
|
...
|
@@ -136,7 +137,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);
|
|
|
}
|
|
|
}
|
...
|
...
|
|