正在显示
3 个修改的文件
包含
4 行增加
和
4 行删除
@@ -315,7 +315,7 @@ class Api extends Controller | @@ -315,7 +315,7 @@ class Api extends Controller | ||
315 | $config = get_addon_config('wechat'); | 315 | $config = get_addon_config('wechat'); |
316 | $tourl = ''; | 316 | $tourl = ''; |
317 | $ywt_appid = 'wx58ceff4e93cfc523'; | 317 | $ywt_appid = 'wx58ceff4e93cfc523'; |
318 | - $pagepath ='pages/module/cityOrders?order_id='.$order_id; | 318 | + $pagepath ='pages/module/cityOrders?params='.json_encode($order); |
319 | $res = $this->sendAstuWxMsgToAgent($sendInfo, $wxopenid, $tourl, $config['app_id'], $config['secret'], $ywt_appid, $pagepath); | 319 | $res = $this->sendAstuWxMsgToAgent($sendInfo, $wxopenid, $tourl, $config['app_id'], $config['secret'], $ywt_appid, $pagepath); |
320 | //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); | 320 | //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); |
321 | } | 321 | } |
@@ -258,7 +258,7 @@ if (!function_exists('senWxmsgToDriverUser')) { | @@ -258,7 +258,7 @@ if (!function_exists('senWxmsgToDriverUser')) { | ||
258 | $config = get_addon_config('wechat'); | 258 | $config = get_addon_config('wechat'); |
259 | $tourl = ''; | 259 | $tourl = ''; |
260 | $ywt_appid = 'wx58ceff4e93cfc523'; | 260 | $ywt_appid = 'wx58ceff4e93cfc523'; |
261 | - $pagepath ='pages/module/cityOrders?order_id='.$order_id; | 261 | + $pagepath ='pages/module/cityOrders?params='.json_encode($order); |
262 | $res = sendAstuWxMsgToAgent($sendInfo, $wxopenid, $tourl, $config['app_id'], $config['secret'], $ywt_appid, $pagepath); | 262 | $res = sendAstuWxMsgToAgent($sendInfo, $wxopenid, $tourl, $config['app_id'], $config['secret'], $ywt_appid, $pagepath); |
263 | print_r($res);return; | 263 | print_r($res);return; |
264 | //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); | 264 | //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); |
@@ -114,7 +114,7 @@ class Index extends Api | @@ -114,7 +114,7 @@ class Index extends Api | ||
114 | $config = get_addon_config('wechat'); | 114 | $config = get_addon_config('wechat'); |
115 | $tourl = ''; | 115 | $tourl = ''; |
116 | $ywt_appid = 'wx58ceff4e93cfc523'; | 116 | $ywt_appid = 'wx58ceff4e93cfc523'; |
117 | - $pagepath ='pages/module/cityOrders?order_id='.$order_id; | 117 | + $pagepath ='pages/module/cityOrders?params='.json_encode($order); |
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); |
@@ -138,7 +138,7 @@ class Index extends Api | @@ -138,7 +138,7 @@ class Index extends Api | ||
138 | $config = get_addon_config('wechat'); | 138 | $config = get_addon_config('wechat'); |
139 | $tourl = ''; | 139 | $tourl = ''; |
140 | $ywt_appid = 'wx58ceff4e93cfc523'; | 140 | $ywt_appid = 'wx58ceff4e93cfc523'; |
141 | - $pagepath ='pages/module/cityOrders?order_id='.$order_id; | 141 | + $pagepath ='pages/module/cityOrders?params='.json_encode($order); |
142 | $res = $this->sendAstuWxMsgToAgent($sendInfo, $wxopenid, $tourl, $config['app_id'], $config['secret'], $ywt_appid, $pagepath); | 142 | $res = $this->sendAstuWxMsgToAgent($sendInfo, $wxopenid, $tourl, $config['app_id'], $config['secret'], $ywt_appid, $pagepath); |
143 | //print_r($res);return; | 143 | //print_r($res);return; |
144 | //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 | //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); |
-
请 注册 或 登录 后发表评论