正在显示
2 个修改的文件
包含
7 行增加
和
3 行删除
| @@ -106,6 +106,10 @@ if (!function_exists('http_get')) { | @@ -106,6 +106,10 @@ if (!function_exists('http_get')) { | ||
| 106 | curl_setopt($ch1, CURLOPT_CUSTOMREQUEST, 'GET'); | 106 | curl_setopt($ch1, CURLOPT_CUSTOMREQUEST, 'GET'); |
| 107 | curl_setopt($ch1, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | 107 | curl_setopt($ch1, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); |
| 108 | $access_txt = curl_exec($ch1); | 108 | $access_txt = curl_exec($ch1); |
| 109 | + if (curl_errno($ch1)) { | ||
| 110 | + $error_message = curl_error($ch1); | ||
| 111 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($error_message, true) . PHP_EOL, FILE_APPEND); | ||
| 112 | + } | ||
| 109 | curl_close($ch1); | 113 | curl_close($ch1); |
| 110 | return json_decode($access_txt, true); | 114 | return json_decode($access_txt, true); |
| 111 | } | 115 | } |
| @@ -55,9 +55,9 @@ class UserLogic extends BaseLogic | @@ -55,9 +55,9 @@ class UserLogic extends BaseLogic | ||
| 55 | $this->param = $this->editPassword($this->param); | 55 | $this->param = $this->editPassword($this->param); |
| 56 | $rs = $this->model->edit($this->param, ['id' => $this->param['id']]); | 56 | $rs = $this->model->edit($this->param, ['id' => $this->param['id']]); |
| 57 | } else { | 57 | } else { |
| 58 | - $mobileModel = new Mobile(); | ||
| 59 | - //查看当前手机号码是否存在于手机号码库 | ||
| 60 | - $mobileInfo = $mobileModel->read(['mobile'=>$this->param['mobile']]); | 58 | +// $mobileModel = new Mobile(); |
| 59 | +// //查看当前手机号码是否存在于手机号码库 | ||
| 60 | +// $mobileInfo = $mobileModel->read(['mobile'=>$this->param['mobile']]); | ||
| 61 | $this->param['password'] = base64_encode(md5($this->param['password'])); | 61 | $this->param['password'] = base64_encode(md5($this->param['password'])); |
| 62 | $rs = $this->model->add($this->param); | 62 | $rs = $this->model->add($this->param); |
| 63 | } | 63 | } |
-
请 注册 或 登录 后发表评论