作者 郭文星

111

@@ -98,7 +98,7 @@ class Index extends Api @@ -98,7 +98,7 @@ class Index extends Api
98 if($order['user_id']){ 98 if($order['user_id']){
99 $order['start']=$order['starting_point']; 99 $order['start']=$order['starting_point'];
100 $order['to']=$order['end_point']; 100 $order['to']=$order['end_point'];
101 - $order['timeStr']=str_replace(' ','\t',$order['reservation_time']); 101 + $order['timeStr']=preg_replace('/\s/u','\u0020',$order['reservation_time']);
102 if($order['type']==1){ 102 if($order['type']==1){
103 $order['typeImg']='../../static/img-2.png'; 103 $order['typeImg']='../../static/img-2.png';
104 }else if($order['type']==2){ 104 }else if($order['type']==2){
@@ -125,6 +125,7 @@ class Index extends Api @@ -125,6 +125,7 @@ class Index extends Api
125 $tourl = ''; 125 $tourl = '';
126 $ywt_appid = 'wx58ceff4e93cfc523'; 126 $ywt_appid = 'wx58ceff4e93cfc523';
127 $pagepath ='pages/module/cityOrders?params='.json_encode($order); 127 $pagepath ='pages/module/cityOrders?params='.json_encode($order);
  128 +
128 $res = $this->sendAstuWxMsgToAgent($sendInfo, $wxopenid, $tourl, $config['app_id'], $config['secret'], $ywt_appid, $pagepath); 129 $res = $this->sendAstuWxMsgToAgent($sendInfo, $wxopenid, $tourl, $config['app_id'], $config['secret'], $ywt_appid, $pagepath);
129 //print_r($res);return; 130 //print_r($res);return;
130 //file_put_contents("pcl_wct_send.log", date("Y-m-d H:i:s") . "1-2-" . json_encode($res, JSON_UNESCAPED_UNICODE) . PHP_EOL, FILE_APPEND); 131 //file_put_contents("pcl_wct_send.log", date("Y-m-d H:i:s") . "1-2-" . json_encode($res, JSON_UNESCAPED_UNICODE) . PHP_EOL, FILE_APPEND);