This commit is contained in:
2023-04-06 16:21:39 +08:00
parent 5a47161d1f
commit 43e19756f4
3 changed files with 48 additions and 6 deletions
+4 -3
View File
@@ -783,11 +783,11 @@ class CallBackController extends AbstractController
$sign_params['nonce'] = $request_params['nonce'];
$sign_params['clientSecret'] = config('prescription_platform.client_secret');
$sign = md5(http_build_query($sign_params, '', '&'));
if ($sign != $sign_params['sign']){
if ($sign != $request_params['sign']){
Log::getInstance()->error("处方平台物流回调数据处理失败:签名错误");
Log::getInstance()->error("系统签名:" . $sign);
Log::getInstance()->error("处方平台签名:" . $sign);
Log::getInstance()->error("处方平台签名:" . $sign_params['sign']);
Log::getInstance()->error("处方平台签名:" . $request_params['sign']);
return $this->platformLogisticsErrorReturn("签名错误");
}
@@ -801,10 +801,11 @@ class CallBackController extends AbstractController
} catch (\Exception $e) {
// 验证失败
Log::getInstance()->error("Im回调数据处理失败:" . $e->getMessage());
Log::getInstance()->error("处方平台物流回调数据处理失败:" . $e->getMessage());
return $this->platformLogisticsErrorReturn($e->getMessage());
}
Log::getInstance()->info("处方平台物流回调数据处理成功");
return $this->platformLogisticsSuccessReturn();
}