正在显示
3 个修改的文件
包含
8 行增加
和
4 行删除
@@ -300,12 +300,13 @@ class Api extends Controller | @@ -300,12 +300,13 @@ class Api extends Controller | ||
300 | $user=Db::name("user")->find($driver['user_id']); | 300 | $user=Db::name("user")->find($driver['user_id']); |
301 | $wct_user=Db::name("wct_user")->where("unionid",$user['unionid'])->find(); | 301 | $wct_user=Db::name("wct_user")->where("unionid",$user['unionid'])->find(); |
302 | $wxopenid=$wct_user['wx_openid']; | 302 | $wxopenid=$wct_user['wx_openid']; |
303 | + $substring = mb_substr($driver['name'], 0, 1); // "Hello" | ||
303 | $sendInfo = array( | 304 | $sendInfo = array( |
304 | 'first' => array('value' => "汽车票出票状态通知", 'color' => "#743A3A"), | 305 | 'first' => array('value' => "汽车票出票状态通知", 'color' => "#743A3A"), |
305 | 'thing2' => array('value' => "{$order['starting_point']}-{$order['end_point']}", 'color' => '#173177'), | 306 | 'thing2' => array('value' => "{$order['starting_point']}-{$order['end_point']}", 'color' => '#173177'), |
306 | 'time3' => array('value' =>date("Y-m-d H:i:s",$order['departure_time']), 'color' => '#173177'), | 307 | 'time3' => array('value' =>date("Y-m-d H:i:s",$order['departure_time']), 'color' => '#173177'), |
307 | 'thing7' => array('value' =>"{$order['position']}", 'color' => '#173177'), | 308 | 'thing7' => array('value' =>"{$order['position']}", 'color' => '#173177'), |
308 | - 'thing8' => array('value' => "{$driver['name']}{$car['license_plate']}", 'color' => '#173177'), | 309 | + 'thing8' => array('value' => "{$substring}师傅{$car['license_plate']}", 'color' => '#173177'), |
309 | 'phone_number5' => array('value' => "0873-8896518", 'color' => '#173177'), | 310 | 'phone_number5' => array('value' => "0873-8896518", 'color' => '#173177'), |
310 | ); | 311 | ); |
311 | 312 |
@@ -245,12 +245,13 @@ if (!function_exists('senWxmsgToDriverUser')) { | @@ -245,12 +245,13 @@ if (!function_exists('senWxmsgToDriverUser')) { | ||
245 | $car=Db::name("car")->where("driver_id",$driver['id'])->find(); | 245 | $car=Db::name("car")->where("driver_id",$driver['id'])->find(); |
246 | $wct_user=Db::name("wct_user")->where("unionid",$user['unionid'])->find(); | 246 | $wct_user=Db::name("wct_user")->where("unionid",$user['unionid'])->find(); |
247 | $wxopenid=$wct_user['wx_openid']; | 247 | $wxopenid=$wct_user['wx_openid']; |
248 | + $substring = mb_substr($driver['name'], 0, 1); // "Hello" | ||
248 | $sendInfo = array( | 249 | $sendInfo = array( |
249 | 'first' => array('value' => "汽车票出票状态通知", 'color' => "#743A3A"), | 250 | 'first' => array('value' => "汽车票出票状态通知", 'color' => "#743A3A"), |
250 | 'thing2' => array('value' => "{$order['starting_point']}-{$order['end_point']}", 'color' => '#173177'), | 251 | '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 | 'time3' => array('value' =>date("Y-m-d H:i:s",$order['departure_time']), 'color' => '#173177'), |
252 | 'thing7' => array('value' =>"{$order['position']}", 'color' => '#173177'), | 253 | 'thing7' => array('value' =>"{$order['position']}", 'color' => '#173177'), |
253 | - 'thing8' => array('value' => "{$driver['name']}{$car['license_plate']}", 'color' => '#173177'), | 254 | + 'thing8' => array('value' => "{$substring}师傅{$car['license_plate']}", 'color' => '#173177'), |
254 | 'phone_number5' => array('value' => "0873-8896518", 'color' => '#173177'), | 255 | 'phone_number5' => array('value' => "0873-8896518", 'color' => '#173177'), |
255 | ); | 256 | ); |
256 | if ($wxopenid) { | 257 | if ($wxopenid) { |
@@ -102,12 +102,13 @@ class Index extends Api | @@ -102,12 +102,13 @@ class Index extends Api | ||
102 | $wxopenid=$wct_user['wx_openid']; | 102 | $wxopenid=$wct_user['wx_openid']; |
103 | $driver=Db::name("driver")->find($order['driver_id']); | 103 | $driver=Db::name("driver")->find($order['driver_id']); |
104 | $car=Db::name("car")->where("driver_id",$driver['id'])->find(); | 104 | $car=Db::name("car")->where("driver_id",$driver['id'])->find(); |
105 | + $substring = mb_substr($driver['name'], 0, 1); // "Hello" | ||
105 | $sendInfo = array( | 106 | $sendInfo = array( |
106 | 'first' => array('value' => "汽车票出票状态通知", 'color' => "#743A3A"), | 107 | 'first' => array('value' => "汽车票出票状态通知", 'color' => "#743A3A"), |
107 | 'thing2' => array('value' => "{$order['starting_point']}-{$order['end_point']}", 'color' => '#173177'), | 108 | 'thing2' => array('value' => "{$order['starting_point']}-{$order['end_point']}", 'color' => '#173177'), |
108 | 'time3' => array('value' =>date("Y-m-d H:i:s",$order['departure_time']), 'color' => '#173177'), | 109 | 'time3' => array('value' =>date("Y-m-d H:i:s",$order['departure_time']), 'color' => '#173177'), |
109 | 'thing7' => array('value' =>"{$order['position']}", 'color' => '#173177'), | 110 | 'thing7' => array('value' =>"{$order['position']}", 'color' => '#173177'), |
110 | - 'thing8' => array('value' => "{$driver['name']}{$car['license_plate']}", 'color' => '#173177'), | 111 | + 'thing8' => array('value' => "{$substring}师傅{$car['license_plate']}", 'color' => '#173177'), |
111 | 'phone_number5' => array('value' => "0873-8896518", 'color' => '#173177'), | 112 | 'phone_number5' => array('value' => "0873-8896518", 'color' => '#173177'), |
112 | ); | 113 | ); |
113 | if ($wxopenid) { | 114 | if ($wxopenid) { |
@@ -125,12 +126,13 @@ class Index extends Api | @@ -125,12 +126,13 @@ class Index extends Api | ||
125 | $user=Db::name("user")->find($driver['user_id']); | 126 | $user=Db::name("user")->find($driver['user_id']); |
126 | $wct_user=Db::name("wct_user")->where("unionid",$user['unionid'])->find(); | 127 | $wct_user=Db::name("wct_user")->where("unionid",$user['unionid'])->find(); |
127 | $wxopenid=$wct_user['wx_openid']; | 128 | $wxopenid=$wct_user['wx_openid']; |
129 | + $substring = mb_substr($driver['name'], 0, 1); // "Hello" | ||
128 | $sendInfo = array( | 130 | $sendInfo = array( |
129 | 'first' => array('value' => "汽车票出票状态通知", 'color' => "#743A3A"), | 131 | 'first' => array('value' => "汽车票出票状态通知", 'color' => "#743A3A"), |
130 | 'thing2' => array('value' => "{$order['starting_point']}-{$order['end_point']}", 'color' => '#173177'), | 132 | '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'), | 133 | 'time3' => array('value' =>date("Y-m-d H:i:s",$order['departure_time']), 'color' => '#173177'), |
132 | 'thing7' => array('value' =>"{$order['position']}", 'color' => '#173177'), | 134 | 'thing7' => array('value' =>"{$order['position']}", 'color' => '#173177'), |
133 | - 'thing8' => array('value' => "{$driver['name']}{$car['license_plate']}", 'color' => '#173177'), | 135 | + 'thing8' => array('value' => "{$substring}师傅{$car['license_plate']}", 'color' => '#173177'), |
134 | 'phone_number5' => array('value' => "0873-8896518", 'color' => '#173177'), | 136 | 'phone_number5' => array('value' => "0873-8896518", 'color' => '#173177'), |
135 | ); | 137 | ); |
136 | if ($wxopenid) { | 138 | if ($wxopenid) { |
-
请 注册 或 登录 后发表评论