正在显示
4 个修改的文件
包含
50 行增加
和
48 行删除
@@ -58,6 +58,7 @@ class NotifyController extends NotifyCommonController | @@ -58,6 +58,7 @@ class NotifyController extends NotifyCommonController | ||
58 | * 微信支付退款结果回调 | 58 | * 微信支付退款结果回调 |
59 | */ | 59 | */ |
60 | public function refund_notify() { | 60 | public function refund_notify() { |
61 | + cache('test',1111); | ||
61 | $post = $this->request->param(); | 62 | $post = $this->request->param(); |
62 | if($post==null){ | 63 | if($post==null){ |
63 | $post = file_get_contents("php://input"); | 64 | $post = file_get_contents("php://input"); |
@@ -68,6 +69,7 @@ class NotifyController extends NotifyCommonController | @@ -68,6 +69,7 @@ class NotifyController extends NotifyCommonController | ||
68 | if(!empty($post)) { | 69 | if(!empty($post)) { |
69 | $xml = $post; //微信的回调数据 | 70 | $xml = $post; //微信的回调数据 |
70 | $data = $this->xmlToArray($xml); | 71 | $data = $this->xmlToArray($xml); |
72 | + cache('data',$data); | ||
71 | if($data['return_code'] == 'SUCCESS' && !empty($data['req_info'])) { | 73 | if($data['return_code'] == 'SUCCESS' && !empty($data['req_info'])) { |
72 | $key = md5(Config::get('wx_key')); | 74 | $key = md5(Config::get('wx_key')); |
73 | $array = $this->xmlToArray($this->refund_decrypt($data['req_info'],$key)); | 75 | $array = $this->xmlToArray($this->refund_decrypt($data['req_info'],$key)); |
@@ -958,7 +958,7 @@ class ThirdsendController extends HomeBaseController | @@ -958,7 +958,7 @@ class ThirdsendController extends HomeBaseController | ||
958 | } | 958 | } |
959 | // return $this->wxpay_refundquery($transaction_id, $out_refund_no, $result['out_refund_no'], $insert['refund_id']); | 959 | // return $this->wxpay_refundquery($transaction_id, $out_refund_no, $result['out_refund_no'], $insert['refund_id']); |
960 | } else { | 960 | } else { |
961 | - Db::name('Test')->insert(['data'=>$result['return_msg']]); | 961 | + cache('refund',$result); |
962 | return false; | 962 | return false; |
963 | } | 963 | } |
964 | } | 964 | } |
1 | -----BEGIN CERTIFICATE----- | 1 | -----BEGIN CERTIFICATE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DQEBBQUAA4GB | ||
23 | +ADhFPbp1uIFtGwazRnGrkBuzGjaULw3Ty0+JjF3FP9LVspAE/3UF9D6v1ep4dJpa | ||
24 | +Tv0kzeb+L4oEwLhcYsvl5jh4ycFBtSxQUGLVd4TOm+v2mzPt5lrhr2QZpP2vHH+j | ||
25 | +u2j1rWMA41spCkpZYuuWmwG/RfGhkRsDfAPBuvypG+Np | ||
26 | -----END CERTIFICATE----- | 26 | -----END CERTIFICATE----- |
1 | -----BEGIN PRIVATE KEY----- | 1 | -----BEGIN PRIVATE KEY----- |
2 | -MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQC90K1g8cq3GvkE | ||
3 | -Rn22Sw02x68qCpD+q5owh5fcEdjTL6zwtAC80Jx8Yd0G3DBpeCkefHEmq73pPQRt | ||
4 | -3pXD+AGT/ffsSFQtDU8p/CC0eqzfU5PM14z1xZjdrMiMxQZSqwg6WRIQjdYp1ypT | ||
5 | -lgx+3IP2cVqa6v1t7MfRpZ1SeqMYdAIFGELwGxwxJjFeArCodzDzvYs/t6KKyb4V | ||
6 | -jhvmNIxwG+GwK1OZHy+Y5PVBeGQdJGXMzNSM5O4Ur2bcqLN3K5VTLRHFqJNohd1d | ||
7 | -TDOcAyZfYOtcp2b/rQ2d+jrGu9CrHdh79I3/Srdmjq9LiqgV9gOQNKu0Q91VVZd8 | ||
8 | -YvVjqMpVAgMBAAECggEAMm+ugiH9YWYTYOVyJewPWMz6aEtid6kVUWvWGC3N1V/H | ||
9 | -rjXGNGWiDxLZ7ia33m6FTop2bnYYAk+qS59nYCkYEkDbjbcyVr5AmMFb11j5cmX8 | ||
10 | -0eM8m1mj4tM0fuMjaPf1ObvNJwTpMTjxEEDAlTz2+5bnIl7qdDkEZ1qAURgxGh/T | ||
11 | -oqtji7+8trEUeXzi8mRk2s++kDEe1cMN8hHqGwecJGAA8dg3WWilNSSGV9Y42mZX | ||
12 | -YSBsMkwWpgK/yIrSkhR3D4rCB0BTajt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0UIvu56vE0wl4knNKXhFG | ||
17 | +h/Hl8aH97FYAqifF9KvlRiWpGlaFqYVTumQsn9mhhrTIhfW02F7QJZG0rOWBhPTn | ||
18 | +RwC9EYe8CrPGdJxPr5eTcvZ36baoMK2dnyfxkf7IFPQeGQUWe7vdNxvt6064wck8 | ||
19 | +QxmnLtw8RQKBgB4/p9vNEsNF4to9ACFYSMiP+7wAN/0zUnfjHS9hX/3RzKjcwvep | ||
20 | +GQnQNNEOfrt1HWqmTqUjR4Q2tZt+pheeX7awy5Wult8P7ppxoPRQOG8nXyPrNzcS | ||
21 | +GSZSVmH7m1kvk/qkdW60qQp59h4unhwaJqk4uE4r7zlkgAfUxQ/z6n8BAoGAPR95 | ||
22 | +s8zDw8V2sfdF+jr+a5iX/3hyCRB1HL/7bCWLIPG2Mt4E9qrvVZ0BUbPTeZFcaSV6 | ||
23 | +OHeVwgwkzqTNkoIUFqxw2pF0nRrATXlssJkAnqRqJy0CCzJHweg12vbOJy9JGGYP | ||
24 | +TAMRvTUw9UuYVB4EuQ6Ac7MSpYBS0TuGU9f9nkECgYEAmMgnYJil5wtcG8hg7B14 | ||
25 | +BzPaw+3uJVUAZe2359iMGAaOrDilW0XuIu+Gkm3HprUzlimBITWuU86PxjiI6v1b | ||
26 | +MXAFRMxAOLZH1J9ZdNxHMOXhsGfUMzlBlX/IywlK5W4NeBIzhTBTrCo9NVzyU2xP | ||
27 | +Iv2a/xiYJ/yEK2Kt+QiCcQk= | ||
28 | -----END PRIVATE KEY----- | 28 | -----END PRIVATE KEY----- |
-
请 注册 或 登录 后发表评论