正在显示
1 个修改的文件
包含
3 行增加
和
2 行删除
| @@ -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 |
-
请 注册 或 登录 后发表评论