作者 郭文星

12312

... ... @@ -300,12 +300,13 @@ class Api extends Controller
$user=Db::name("user")->find($driver['user_id']);
$wct_user=Db::name("wct_user")->where("unionid",$user['unionid'])->find();
$wxopenid=$wct_user['wx_openid'];
$substring = mb_substr($driver['name'], 0, 1); // "Hello"
$sendInfo = array(
'first' => array('value' => "汽车票出票状态通知", 'color' => "#743A3A"),
'thing2' => array('value' => "{$order['starting_point']}-{$order['end_point']}", 'color' => '#173177'),
'time3' => array('value' =>date("Y-m-d H:i:s",$order['departure_time']), 'color' => '#173177'),
'thing7' => array('value' =>"{$order['position']}", 'color' => '#173177'),
'thing8' => array('value' => "{$driver['name']}{$car['license_plate']}", 'color' => '#173177'),
'thing8' => array('value' => "{$substring}师傅{$car['license_plate']}", 'color' => '#173177'),
'phone_number5' => array('value' => "0873-8896518", 'color' => '#173177'),
);
... ...
... ... @@ -245,12 +245,13 @@ if (!function_exists('senWxmsgToDriverUser')) {
$car=Db::name("car")->where("driver_id",$driver['id'])->find();
$wct_user=Db::name("wct_user")->where("unionid",$user['unionid'])->find();
$wxopenid=$wct_user['wx_openid'];
$substring = mb_substr($driver['name'], 0, 1); // "Hello"
$sendInfo = array(
'first' => array('value' => "汽车票出票状态通知", 'color' => "#743A3A"),
'thing2' => array('value' => "{$order['starting_point']}-{$order['end_point']}", 'color' => '#173177'),
'time3' => array('value' =>date("Y-m-d H:i:s",$order['departure_time']), 'color' => '#173177'),
'thing7' => array('value' =>"{$order['position']}", 'color' => '#173177'),
'thing8' => array('value' => "{$driver['name']}{$car['license_plate']}", 'color' => '#173177'),
'thing8' => array('value' => "{$substring}师傅{$car['license_plate']}", 'color' => '#173177'),
'phone_number5' => array('value' => "0873-8896518", 'color' => '#173177'),
);
if ($wxopenid) {
... ...
... ... @@ -102,12 +102,13 @@ class Index extends Api
$wxopenid=$wct_user['wx_openid'];
$driver=Db::name("driver")->find($order['driver_id']);
$car=Db::name("car")->where("driver_id",$driver['id'])->find();
$substring = mb_substr($driver['name'], 0, 1); // "Hello"
$sendInfo = array(
'first' => array('value' => "汽车票出票状态通知", 'color' => "#743A3A"),
'thing2' => array('value' => "{$order['starting_point']}-{$order['end_point']}", 'color' => '#173177'),
'time3' => array('value' =>date("Y-m-d H:i:s",$order['departure_time']), 'color' => '#173177'),
'thing7' => array('value' =>"{$order['position']}", 'color' => '#173177'),
'thing8' => array('value' => "{$driver['name']}{$car['license_plate']}", 'color' => '#173177'),
'thing8' => array('value' => "{$substring}师傅{$car['license_plate']}", 'color' => '#173177'),
'phone_number5' => array('value' => "0873-8896518", 'color' => '#173177'),
);
if ($wxopenid) {
... ... @@ -125,12 +126,13 @@ class Index extends Api
$user=Db::name("user")->find($driver['user_id']);
$wct_user=Db::name("wct_user")->where("unionid",$user['unionid'])->find();
$wxopenid=$wct_user['wx_openid'];
$substring = mb_substr($driver['name'], 0, 1); // "Hello"
$sendInfo = array(
'first' => array('value' => "汽车票出票状态通知", 'color' => "#743A3A"),
'thing2' => array('value' => "{$order['starting_point']}-{$order['end_point']}", 'color' => '#173177'),
'time3' => array('value' =>date("Y-m-d H:i:s",$order['departure_time']), 'color' => '#173177'),
'thing7' => array('value' =>"{$order['position']}", 'color' => '#173177'),
'thing8' => array('value' => "{$driver['name']}{$car['license_plate']}", 'color' => '#173177'),
'thing8' => array('value' => "{$substring}师傅{$car['license_plate']}", 'color' => '#173177'),
'phone_number5' => array('value' => "0873-8896518", 'color' => '#173177'),
);
if ($wxopenid) {
... ...