作者 王智

daima

@@ -248,9 +248,9 @@ class User extends Api @@ -248,9 +248,9 @@ class User extends Api
248 { 248 {
249 $param = $this->request->param(); 249 $param = $this->request->param();
250 $user_id = $this->is_token($this->request->header()); 250 $user_id = $this->is_token($this->request->header());
251 - if (!empty($param['mobile']) || $param['mobile'] != '' || $param['mobile'] != "" || $param['mobile'] != null) {  
252 - $mobile = Db::name('user')->where('id', $user_id)->value('mobile');  
253 - $this->CheckCode($mobile, $param['code']); 251 + $UserInfoMobile = Db::name('user')->where('id', $user_id)->value('mobile');
  252 + if ($UserInfoMobile != $param['mobile']) {
  253 + $this->CheckCode($UserInfoMobile, $param['code']);
254 $data = [ 254 $data = [
255 'mobile' => $param['mobile'], 255 'mobile' => $param['mobile'],
256 'car_num' => $param['car_num'], 256 'car_num' => $param['car_num'],
@@ -782,7 +782,7 @@ class User extends Api @@ -782,7 +782,7 @@ class User extends Api
782 die; 782 die;
783 } 783 }
784 if (empty($param['images']) || $param['images'] == null || $param['images'] == '' || $param['images'] == "") { 784 if (empty($param['images']) || $param['images'] == null || $param['images'] == '' || $param['images'] == "") {
785 - $this->error('请上传洗车图'); 785 + $this->error('请上传洗车图');
786 } 786 }
787 $data = [ 787 $data = [
788 'xi_type' => $param['type'], 788 'xi_type' => $param['type'],