正在显示
2 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -136,7 +136,7 @@ class InquiryController extends BaseController | @@ -136,7 +136,7 @@ class InquiryController extends BaseController | ||
| 136 | $this->response('success',Code::SUCCESS,$data); | 136 | $this->response('success',Code::SUCCESS,$data); |
| 137 | } | 137 | } |
| 138 | $result = Validate::check_data($this->param['email'],1); | 138 | $result = Validate::check_data($this->param['email'],1); |
| 139 | - if(isset($result) && ($result['status'] == 200)){ | 139 | + if(isset($result['status']) && ($result['status'] == 200)){ |
| 140 | //保存数据 | 140 | //保存数据 |
| 141 | $param = [ | 141 | $param = [ |
| 142 | 'email'=>$this->param['email'], | 142 | 'email'=>$this->param['email'], |
| @@ -215,7 +215,7 @@ class InquiryLogic extends BaseLogic | @@ -215,7 +215,7 @@ class InquiryLogic extends BaseLogic | ||
| 215 | ]; | 215 | ]; |
| 216 | if(!empty($param['country_code'])){ | 216 | if(!empty($param['country_code'])){ |
| 217 | $wordCountryModel = new WordCountry(); | 217 | $wordCountryModel = new WordCountry(); |
| 218 | - $info = $wordCountryModel->read(['pid'=>0,'iso2'=>$this->param['country_code']],['chinese_name']); | 218 | + $info = $wordCountryModel->read(['pid'=>0,'iso2'=>$param['country_code']],['chinese_name']); |
| 219 | if($info !== false){ | 219 | if($info !== false){ |
| 220 | $param['country'] = $info['chinese_name']; | 220 | $param['country'] = $info['chinese_name']; |
| 221 | } | 221 | } |
-
请 注册 或 登录 后发表评论