正在显示
3 个修改的文件
包含
15 行增加
和
10 行删除
| @@ -296,14 +296,16 @@ class Api extends Controller | @@ -296,14 +296,16 @@ class Api extends Controller | ||
| 296 | $order=Db::name("order")->find($order_id); | 296 | $order=Db::name("order")->find($order_id); |
| 297 | if($order['driver_id']){ | 297 | if($order['driver_id']){ |
| 298 | $driver=Db::name("driver")->find($order['driver_id']); | 298 | $driver=Db::name("driver")->find($order['driver_id']); |
| 299 | + $car=Db::name("car")->where("driver_id",$driver['id'])->find(); | ||
| 299 | $user=Db::name("user")->find($driver['user_id']); | 300 | $user=Db::name("user")->find($driver['user_id']); |
| 300 | $wct_user=Db::name("wct_user")->where("unionid",$user['unionid'])->find(); | 301 | $wct_user=Db::name("wct_user")->where("unionid",$user['unionid'])->find(); |
| 301 | $wxopenid=$wct_user['wx_openid']; | 302 | $wxopenid=$wct_user['wx_openid']; |
| 302 | $sendInfo = array( | 303 | $sendInfo = array( |
| 303 | 'first' => array('value' => "汽车票出票状态通知", 'color' => "#743A3A"), | 304 | 'first' => array('value' => "汽车票出票状态通知", 'color' => "#743A3A"), |
| 304 | 'thing2' => array('value' => "{$order['starting_point']}-{$order['end_point']}", 'color' => '#173177'), | 305 | 'thing2' => array('value' => "{$order['starting_point']}-{$order['end_point']}", 'color' => '#173177'), |
| 305 | - 'time3' => array('value' =>urlencode(date('Y-m-d H:i:s',$order['departure_time'])), 'color' => '#173177'), | 306 | + 'time3' => array('value' =>date("Y-m-d H:i:s",$order['departure_time']), 'color' => '#173177'), |
| 306 | 'thing7' => array('value' =>"{$order['position']}", 'color' => '#173177'), | 307 | 'thing7' => array('value' =>"{$order['position']}", 'color' => '#173177'), |
| 308 | + 'thing8' => array('value' => "{$driver['name']}{$car['license_plate']}", 'color' => '#173177'), | ||
| 307 | 'phone_number5' => array('value' => "{$order['phone']}", 'color' => '#173177'), | 309 | 'phone_number5' => array('value' => "{$order['phone']}", 'color' => '#173177'), |
| 308 | ); | 310 | ); |
| 309 | 311 |
| @@ -240,17 +240,19 @@ if (!function_exists('senWxmsgToDriverUser')) { | @@ -240,17 +240,19 @@ if (!function_exists('senWxmsgToDriverUser')) { | ||
| 240 | { | 240 | { |
| 241 | $order=Db::name("order")->find($order_id); | 241 | $order=Db::name("order")->find($order_id); |
| 242 | if($order['driver_id']){ | 242 | if($order['driver_id']){ |
| 243 | - $user=Db::name("user")->find($order['driver_id']); | 243 | + $user=Db::name("user")->find($order['user_id']); |
| 244 | + $driver=Db::name("driver")->find($order['driver_id']); | ||
| 245 | + $car=Db::name("car")->where("driver_id",$driver['id'])->find(); | ||
| 244 | $wct_user=Db::name("wct_user")->where("unionid",$user['unionid'])->find(); | 246 | $wct_user=Db::name("wct_user")->where("unionid",$user['unionid'])->find(); |
| 245 | $wxopenid=$wct_user['wx_openid']; | 247 | $wxopenid=$wct_user['wx_openid']; |
| 246 | - $sendInfo = array( | ||
| 247 | - 'first' => array('value' => "汽车票出票状态通知", 'color' => "#743A3A"), | ||
| 248 | - 'thing2' => array('value' => "{$order['starting_point']}-{$order['end_point']}", 'color' => '#173177'), | ||
| 249 | - 'time3' => array('value' =>urlencode(date('Y-m-d H:i:s', $order['departure_time'])), 'color' => '#173177'), | ||
| 250 | - 'thing7' => array('value' =>"{$order['starting_point']}", 'color' => '#173177'), | ||
| 251 | - 'thing8' => array('value' => "李师傅云H12E41", 'color' => '#173177'), | ||
| 252 | - 'phone_number5' => array('value' => "{$order['phone']}", 'color' => '#173177'), | ||
| 253 | - ); | 248 | + $sendInfo = array( |
| 249 | + 'first' => array('value' => "汽车票出票状态通知", 'color' => "#743A3A"), | ||
| 250 | + 'thing2' => array('value' => "{$order['starting_point']}-{$order['end_point']}", 'color' => '#173177'), | ||
| 251 | + 'time3' => array('value' =>date("Y-m-d H:i:s",$order['departure_time']), 'color' => '#173177'), | ||
| 252 | + 'thing7' => array('value' =>"{$order['position']}", 'color' => '#173177'), | ||
| 253 | + 'thing8' => array('value' => "{$driver['name']}{$car['license_plate']}", 'color' => '#173177'), | ||
| 254 | + 'phone_number5' => array('value' => "{$order['phone']}", 'color' => '#173177'), | ||
| 255 | + ); | ||
| 254 | if ($wxopenid) { | 256 | if ($wxopenid) { |
| 255 | $config = get_addon_config('wechat'); | 257 | $config = get_addon_config('wechat'); |
| 256 | $tourl = ''; | 258 | $tourl = ''; |
| @@ -130,6 +130,7 @@ class Index extends Api | @@ -130,6 +130,7 @@ class Index extends Api | ||
| 130 | 'thing2' => array('value' => "{$order['starting_point']}-{$order['end_point']}", 'color' => '#173177'), | 130 | 'thing2' => array('value' => "{$order['starting_point']}-{$order['end_point']}", 'color' => '#173177'), |
| 131 | 'time3' => array('value' =>date("Y-m-d H:i:s",$order['departure_time']), 'color' => '#173177'), | 131 | 'time3' => array('value' =>date("Y-m-d H:i:s",$order['departure_time']), 'color' => '#173177'), |
| 132 | 'thing7' => array('value' =>"{$order['position']}", 'color' => '#173177'), | 132 | 'thing7' => array('value' =>"{$order['position']}", 'color' => '#173177'), |
| 133 | + 'thing8' => array('value' => "{$driver['name']}{$car['license_plate']}", 'color' => '#173177'), | ||
| 133 | 'phone_number5' => array('value' => "{$order['phone']}", 'color' => '#173177'), | 134 | 'phone_number5' => array('value' => "{$order['phone']}", 'color' => '#173177'), |
| 134 | ); | 135 | ); |
| 135 | if ($wxopenid) { | 136 | if ($wxopenid) { |
-
请 注册 或 登录 后发表评论