加redis日志
This commit is contained in:
@@ -229,11 +229,9 @@ class Payment extends Controller
|
|||||||
$mess = input("mess", "");
|
$mess = input("mess", "");
|
||||||
$timestamp = input("timestamp", "");
|
$timestamp = input("timestamp", "");
|
||||||
$sign = input("sign", "");
|
$sign = input("sign", "");
|
||||||
Log::record("云账户回调信息".json_encode($_POST),"info");
|
|
||||||
write_log_redis("yunzhanghu_huidiao_原始数据",$_POST);
|
write_log_redis("yunzhanghu_huidiao_原始数据",$_POST);
|
||||||
$yun_pay = new YunPay();
|
$yun_pay = new YunPay();
|
||||||
$result = $yun_pay->yun_callback($data,$mess,$timestamp,$sign);
|
$result = $yun_pay->yun_callback($data,$mess,$timestamp,$sign);
|
||||||
write_log_redis("yunzhanghu_huidiao_解密后数据",$result);
|
|
||||||
if($result['code']==1){
|
if($result['code']==1){
|
||||||
$data = $result['data'];
|
$data = $result['data'];
|
||||||
if($data){
|
if($data){
|
||||||
|
|||||||
@@ -245,7 +245,7 @@ class YunPay
|
|||||||
$notifyReq = new NotifyRequest ($data, $mess, $timestamp, $sign) ;// 发起验签解密
|
$notifyReq = new NotifyRequest ($data, $mess, $timestamp, $sign) ;// 发起验签解密
|
||||||
try {
|
try {
|
||||||
$result = $notifyClient->verifyAndDecrypt($notifyReq) ;
|
$result = $notifyClient->verifyAndDecrypt($notifyReq) ;
|
||||||
Log::record("云账户回调信息-返回:".json_encode($result),"info");
|
write_log_redis("云账户回调信息_解密返回",$result);
|
||||||
$result = json_decode($result,true);
|
$result = json_decode($result,true);
|
||||||
if ($result['signRes']) {
|
if ($result['signRes']) {
|
||||||
// 验签通过、解密成功
|
// 验签通过、解密成功
|
||||||
|
|||||||
Reference in New Issue
Block a user