加redis日志

This commit is contained in:
2025-09-30 20:26:09 +08:00
parent 2bc5edbab9
commit 38d81d3f47
2 changed files with 1 additions and 3 deletions

View File

@@ -229,11 +229,9 @@ class Payment extends Controller
$mess = input("mess", "");
$timestamp = input("timestamp", "");
$sign = input("sign", "");
Log::record("云账户回调信息".json_encode($_POST),"info");
write_log_redis("yunzhanghu_huidiao_原始数据",$_POST);
$yun_pay = new YunPay();
$result = $yun_pay->yun_callback($data,$mess,$timestamp,$sign);
write_log_redis("yunzhanghu_huidiao_解密后数据",$result);
if($result['code']==1){
$data = $result['data'];
if($data){

View File

@@ -245,7 +245,7 @@ class YunPay
$notifyReq = new NotifyRequest ($data, $mess, $timestamp, $sign) ;// 发起验签解密
try {
$result = $notifyClient->verifyAndDecrypt($notifyReq) ;
Log::record("云账户回调信息-返回".json_encode($result),"info");
write_log_redis("云账户回调信息_解密返回",$result);
$result = json_decode($result,true);
if ($result['signRes']) {
// 验签通过、解密成功