作者 chencheng

6

@@ -286,9 +286,10 @@ class Wechat extends Api @@ -286,9 +286,10 @@ class Wechat extends Api
286 286
287 */ 287 */
288 public function prepare_order($order_no = ''){ 288 public function prepare_order($order_no = ''){
  289 + $user = $this->auth->getUserinfo();
289 $user_id = $this->auth->id; 290 $user_id = $this->auth->id;
290 -  
291 - if(empty($user_id)){ 291 + print_r($user);return;
  292 + if(empty($user)){
292 return $this->error('预下单的用户信息错误'); 293 return $this->error('预下单的用户信息错误');
293 } 294 }
294 295