作者 郭文星

123

@@ -94,6 +94,8 @@ class Index extends Api @@ -94,6 +94,8 @@ class Index extends Api
94 function senWxmsgToDriverUser($order_id) 94 function senWxmsgToDriverUser($order_id)
95 { 95 {
96 $order=Db::name("order")->find($order_id); 96 $order=Db::name("order")->find($order_id);
  97 + print_r($order);return;
  98 +
97 if($order['user_id']){ 99 if($order['user_id']){
98 $user=Db::name("user")->find($order['user_id']); 100 $user=Db::name("user")->find($order['user_id']);
99 $wct_user=Db::name("wct_user")->where("unionid",$user['unionid'])->find(); 101 $wct_user=Db::name("wct_user")->where("unionid",$user['unionid'])->find();
@@ -106,7 +108,6 @@ class Index extends Api @@ -106,7 +108,6 @@ class Index extends Api
106 'thing8' => array('value' => "李师傅云H12E41", 'color' => '#173177'), 108 'thing8' => array('value' => "李师傅云H12E41", 'color' => '#173177'),
107 'phone_number5' => array('value' => "{$order['phone']}", 'color' => '#173177'), 109 'phone_number5' => array('value' => "{$order['phone']}", 'color' => '#173177'),
108 ); 110 );
109 - print_r($wxopenid);return;  
110 if ($wxopenid) { 111 if ($wxopenid) {
111 $config = get_addon_config('wechat'); 112 $config = get_addon_config('wechat');
112 $tourl = ''; 113 $tourl = '';