作者 魏强

退款调试

... ... @@ -58,6 +58,7 @@ class NotifyController extends NotifyCommonController
* 微信支付退款结果回调
*/
public function refund_notify() {
cache('test',1111);
$post = $this->request->param();
if($post==null){
$post = file_get_contents("php://input");
... ... @@ -68,6 +69,7 @@ class NotifyController extends NotifyCommonController
if(!empty($post)) {
$xml = $post; //微信的回调数据
$data = $this->xmlToArray($xml);
cache('data',$data);
if($data['return_code'] == 'SUCCESS' && !empty($data['req_info'])) {
$key = md5(Config::get('wx_key'));
$array = $this->xmlToArray($this->refund_decrypt($data['req_info'],$key));
... ...
... ... @@ -958,7 +958,7 @@ class ThirdsendController extends HomeBaseController
}
// return $this->wxpay_refundquery($transaction_id, $out_refund_no, $result['out_refund_no'], $insert['refund_id']);
} else {
Db::name('Test')->insert(['data'=>$result['return_msg']]);
cache('refund',$result);
return false;
}
}
... ...
-----BEGIN CERTIFICATE-----
MIIEYzCCA8ygAwIBAgIEAQgxjjANBgkqhkiG9w0BAQUFADCBijELMAkGA1UEBhMC
MIIEbTCCA9agAwIBAgIEAgoy8DANBgkqhkiG9w0BAQUFADCBijELMAkGA1UEBhMC
Q04xEjAQBgNVBAgTCUd1YW5nZG9uZzERMA8GA1UEBxMIU2hlbnpoZW4xEDAOBgNV
BAoTB1RlbmNlbnQxDDAKBgNVBAsTA1dYRzETMBEGA1UEAxMKTW1wYXltY2hDQTEf
MB0GCSqGSIb3DQEJARYQbW1wYXltY2hAdGVuY2VudDAeFw0xNzA1MTUxNDQwMDRa
Fw0yNzA1MTMxNDQwMDRaMIGSMQswCQYDVQQGEwJDTjESMBAGA1UECBMJR3Vhbmdk
MB0GCSqGSIb3DQEJARYQbW1wYXltY2hAdGVuY2VudDAeFw0xODA2MjYwNDU5MDda
Fw0yODA2MjMwNDU5MDdaMIGcMQswCQYDVQQGEwJDTjESMBAGA1UECBMJR3Vhbmdk
b25nMREwDwYDVQQHEwhTaGVuemhlbjEQMA4GA1UEChMHVGVuY2VudDEOMAwGA1UE
CxMFTU1QYX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