作者 郭文星

123

@@ -21,7 +21,7 @@ class Index extends Api @@ -21,7 +21,7 @@ class Index extends Api
21 */ 21 */
22 public function index() 22 public function index()
23 { 23 {
24 - $res=$this->senWxmsgToDriverUser(284); 24 + $res=$this->senWxmsgToDriverUser(286);
25 $this->success('请求成功'); 25 $this->success('请求成功');
26 } 26 }
27 27
@@ -95,7 +95,6 @@ class Index extends Api @@ -95,7 +95,6 @@ class Index extends Api
95 function senWxmsgToDriverUser($order_id) 95 function senWxmsgToDriverUser($order_id)
96 { 96 {
97 $order=Db::name("order")->find($order_id); 97 $order=Db::name("order")->find($order_id);
98 -  
99 if($order['driver_id']){ 98 if($order['driver_id']){
100 $driver=Db::name("driver")->find($order['driver_id']); 99 $driver=Db::name("driver")->find($order['driver_id']);
101 $user=Db::name("user")->find($driver['user_id']); 100 $user=Db::name("user")->find($driver['user_id']);
@@ -105,7 +104,7 @@ class Index extends Api @@ -105,7 +104,7 @@ class Index extends Api
105 'first' => array('value' => "汽车票出票状态通知", 'color' => "#743A3A"), 104 'first' => array('value' => "汽车票出票状态通知", 'color' => "#743A3A"),
106 'thing2' => array('value' => "{$order['starting_point']}-{$order['end_point']}", 'color' => '#173177'), 105 'thing2' => array('value' => "{$order['starting_point']}-{$order['end_point']}", 'color' => '#173177'),
107 'time3' => array('value' =>urlencode(date('Y-m-d H:i:s', $order['reservation_time'])), 'color' => '#173177'), 106 'time3' => array('value' =>urlencode(date('Y-m-d H:i:s', $order['reservation_time'])), 'color' => '#173177'),
108 - 'thing7' => array('value' =>"{$order['starting_point']}", 'color' => '#173177'), 107 + 'thing7' => array('value' =>"{$order['position']}", 'color' => '#173177'),
109 'phone_number5' => array('value' => "{$order['phone']}", 'color' => '#173177'), 108 'phone_number5' => array('value' => "{$order['phone']}", 'color' => '#173177'),
110 ); 109 );
111 110