|
|
|
@ -55,6 +55,7 @@ class Controller extends \think\Controller |
|
|
|
$data = $this->request->param('data'); |
|
|
|
$encrypt = $this->request->param('encrypt'); |
|
|
|
$date = (int)date("d"); |
|
|
|
$data = $encrypt ? html_entity_decode($data) : $data; |
|
|
|
$new_signature = md5($this->token . ($date % 2) . md5($data)); |
|
|
|
if ($new_signature !== $signature) { |
|
|
|
throw new BaseException(['msg' => '数据校验失败']); |
|
|
|
|