|
@@ -260,6 +260,13 @@ class HuiPay extends Api
|
|
|
/**
|
|
|
* 支付回调
|
|
|
*/
|
|
|
+ /**
|
|
|
+ * @param Request $request
|
|
|
+ * @return string
|
|
|
+ * @throws \think\db\exception\DataNotFoundException
|
|
|
+ * @throws \think\db\exception\ModelNotFoundException
|
|
|
+ * @throws \think\exception\DbException
|
|
|
+ */
|
|
|
public function pay_notify(Request $request)
|
|
|
{
|
|
|
$params = $request->param();
|
|
@@ -273,6 +280,7 @@ class HuiPay extends Api
|
|
|
'resp_data' => $resp_data,
|
|
|
]);
|
|
|
|
|
|
+ // 校验回调信息
|
|
|
if (empty($params['resp_code']) || $params['resp_code'] != '00000000' || empty($resp_data['req_seq_id'])) {
|
|
|
LogUtil::info('回调信息有误', self::LOG_MODULE, __FUNCTION__, "resp_code error");
|
|
|
return self::response201('支付信息有误');
|