作者 郭文星

123

@@ -147,11 +147,13 @@ class Index extends Api @@ -147,11 +147,13 @@ class Index extends Api
147 'phone_number5' => array('value' => "{$order['phone']}", 'color' => '#173177'), 147 'phone_number5' => array('value' => "{$order['phone']}", 'color' => '#173177'),
148 ); 148 );
149 if ($wxopenid) { 149 if ($wxopenid) {
150 - $order_review=Db::name("order_review")->where("id",$order['order_review_id'])->find();  
151 $config = get_addon_config('wechat'); 150 $config = get_addon_config('wechat');
152 $ywt_appid = 'wx58ceff4e93cfc523'; 151 $ywt_appid = 'wx58ceff4e93cfc523';
153 $tourl = ''; 152 $tourl = '';
154 - $pagepath ='pages/module/orderDetails?params='.json_encode($order_review); 153 + $data=[
  154 + "id"=>$order['']
  155 + ];
  156 + $pagepath ='pages/module/orderDetails?params='.json_encode($order);
155 $res = $this->sendAstuWxMsgToAgent($sendInfo, $wxopenid, $tourl, $config['app_id'], $config['secret'], $ywt_appid, $pagepath); 157 $res = $this->sendAstuWxMsgToAgent($sendInfo, $wxopenid, $tourl, $config['app_id'], $config['secret'], $ywt_appid, $pagepath);
156 print_r(json_encode($order));return; 158 print_r(json_encode($order));return;
157 159