正在显示
1 个修改的文件
包含
1 行增加
和
7 行删除
| @@ -83,17 +83,11 @@ class IndexController extends BaseController | @@ -83,17 +83,11 @@ class IndexController extends BaseController | ||
| 83 | $this->request->validate([ | 83 | $this->request->validate([ |
| 84 | 'data' => 'required|array', | 84 | 'data' => 'required|array', |
| 85 | 'identifying'=>'required', | 85 | 'identifying'=>'required', |
| 86 | - 'code'=>'required' | ||
| 87 | ], [ | 86 | ], [ |
| 88 | 'data.required' => '自定义询盘数据不为空', | 87 | 'data.required' => '自定义询盘数据不为空', |
| 89 | 'data.array' => '必须为数组', | 88 | 'data.array' => '必须为数组', |
| 90 | 'identifying.required' => '唯一标识不为空', | 89 | 'identifying.required' => '唯一标识不为空', |
| 91 | - 'code'=>'加密串不能为空' | ||
| 92 | ]); | 90 | ]); |
| 93 | - $code = base64_encode(md5($this->param['identifying'])); | ||
| 94 | - if($code != $this->param['code']){ | ||
| 95 | - $this->response('签名错误',Code::SYSTEM_ERROR); | ||
| 96 | - } | ||
| 97 | $inquiryModel = new InquiryData(); | 91 | $inquiryModel = new InquiryData(); |
| 98 | $rs = $inquiryModel->add($this->param); | 92 | $rs = $inquiryModel->add($this->param); |
| 99 | if($rs === false){ | 93 | if($rs === false){ |
| @@ -101,5 +95,5 @@ class IndexController extends BaseController | @@ -101,5 +95,5 @@ class IndexController extends BaseController | ||
| 101 | } | 95 | } |
| 102 | $this->response('success'); | 96 | $this->response('success'); |
| 103 | } | 97 | } |
| 104 | - | 98 | + |
| 105 | } | 99 | } |
-
请 注册 或 登录 后发表评论