正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -214,7 +214,7 @@ class Store extends Api | @@ -214,7 +214,7 @@ class Store extends Api | ||
214 | $where = [ | 214 | $where = [ |
215 | 'where' => $where_s | 215 | 'where' => $where_s |
216 | ]; | 216 | ]; |
217 | - $store = $this->store_model->findOrFail($where,false,'*','createtime'); | 217 | + $store = $this->store_model->where($where['where'])->order('createtime','DESC')->find(); |
218 | if($store) { | 218 | if($store) { |
219 | if($store['status'] == 1) { | 219 | if($store['status'] == 1) { |
220 | $param['id'] = $store['id']; | 220 | $param['id'] = $store['id']; |
@@ -232,7 +232,7 @@ class Store extends Api | @@ -232,7 +232,7 @@ class Store extends Api | ||
232 | $event = 'test'; | 232 | $event = 'test'; |
233 | $ret = Smslib::check($mobile, $captcha, $event); | 233 | $ret = Smslib::check($mobile, $captcha, $event); |
234 | if (!$ret) { | 234 | if (!$ret) { |
235 | - $this->error(__('验证码不正确')); | 235 | + $this->error(__('验证码不正确'),$ret); |
236 | } | 236 | } |
237 | unset($param['code']); | 237 | unset($param['code']); |
238 | $order_sn = $param['order_sn'] = get_order_sn(); | 238 | $order_sn = $param['order_sn'] = get_order_sn(); |
-
请 注册 或 登录 后发表评论