正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
@@ -222,7 +222,6 @@ class Wechat extends Api | @@ -222,7 +222,6 @@ class Wechat extends Api | ||
222 | return $this->error('请求错误'); | 222 | return $this->error('请求错误'); |
223 | } | 223 | } |
224 | $my_user_id = $this->auth->id; | 224 | $my_user_id = $this->auth->id; |
225 | - $my_user_id = 2; | ||
226 | if(empty($my_user_id)){return $this->error('用户信息错误');} | 225 | if(empty($my_user_id)){return $this->error('用户信息错误');} |
227 | if(empty($param['store_id'])){return $this->error('门店信息错误');} | 226 | if(empty($param['store_id'])){return $this->error('门店信息错误');} |
228 | //记录门店浏览统计 | 227 | //记录门店浏览统计 |
@@ -291,6 +290,8 @@ class Wechat extends Api | @@ -291,6 +290,8 @@ class Wechat extends Api | ||
291 | if(empty($order_no)){ | 290 | if(empty($order_no)){ |
292 | return $this->error('预下单信息错误'); | 291 | return $this->error('预下单信息错误'); |
293 | } | 292 | } |
293 | + $my_user_id = $this->auth->id; | ||
294 | + if(empty($my_user_id)){return $this->error('用户信息错误');} | ||
294 | $o_w["order_no"] = $order_no; | 295 | $o_w["order_no"] = $order_no; |
295 | $order_info = Db::name('verification_order')->where($o_w)->find(); | 296 | $order_info = Db::name('verification_order')->where($o_w)->find(); |
296 | $user_id = $order_info['user_id']; | 297 | $user_id = $order_info['user_id']; |
-
请 注册 或 登录 后发表评论