提现回调修改

This commit is contained in:
2025-08-11 16:08:51 +08:00
parent 92a63551c6
commit 3741278825
2 changed files with 8 additions and 7 deletions

View File

@@ -230,13 +230,14 @@ class YunPay
// 异步回调参数
$notifyReq = new NotifyRequest ($data, $mess, $timestamp, $sign) ;// 发起验签解密
try {
$result = $notifyClient->verifyAndDecrypt($notifyReq) ;
Log::record("云账户回调信息".json_encode($result),"info");
if ($result) {
$result = $notifyClient->verifyAndDescrype($notifyReq) ;
Log::record("云账户回调信息-返回:".json_encode($result),"info");
$result = json_decode($result,true);
if ($result['signRes']) {
// 验签通过、解密成功
return ['code' => 1, 'msg' => "验签通过、解密成功:", 'data' => $result];
return ['code' => 1, 'msg' => "验签通过、解密成功:", 'data' => $result['data']];
}else{
return ['code' => 0, 'msg' => "验签失败", 'data' => null];
return ['code' => 0, 'msg' => "验签失败", 'data' => $result['data']];
}
}
catch(Exception $e){