修改上报数据

This commit is contained in:
2023-08-16 13:35:57 +08:00
parent 82b2d4ff7a
commit 76661ed7b7
3 changed files with 9 additions and 25 deletions
+2 -2
View File
@@ -1330,7 +1330,7 @@ class CallBackController extends AbstractController
public function DetectionResultCallBack(): ResponseInterface
{
$request_params = $this->request->all();
$auth = $this->request->getHeader("Authorization");
$auth = $this->request->header("Authorization");
if (empty($auth)){
return $this->detectionResultFailReturn("非法请求");
}
@@ -1361,7 +1361,7 @@ class CallBackController extends AbstractController
return $this->detectionResultFailReturn("非法appId");
}
$time = date('Y-m-d');
$time = date('Ymd');
$sign = md5($basic_detection_organ['app_id'] . $basic_detection_organ['app_secret'] . $time);
if ($auth != $sign){
return $this->detectionResultFailReturn("签名错误");