|
|
@@ -2,6 +2,7 @@
|
|
|
|
|
|
namespace hd\controllers;
|
|
|
|
|
|
+use bizHd\wx\classes\WxOpenClass;
|
|
|
use common\components\dict;
|
|
|
use common\components\noticeUtil;
|
|
|
use common\components\payUtil;
|
|
|
@@ -74,6 +75,16 @@ class NoticeController extends PublicController
|
|
|
|
|
|
noticeUtil::push($text, '15280215347');
|
|
|
|
|
|
+ $wx = WxOpenClass::getWxInfo();
|
|
|
+ $req_info = $postObj->req_info ?? '';
|
|
|
+ $key = $wx['wxPayKey'] ?? '';
|
|
|
+ $xml = openssl_decrypt(base64_decode($req_info), 'AES-256-ECB', MD5($key), OPENSSL_RAW_DATA, '');
|
|
|
+ Yii::info('xml:' . $xml);
|
|
|
+
|
|
|
+// require_once 'WxpayRefundNotifyHelper.php';
|
|
|
+// $refundNotify = new \WxpayRefundNotifyHelper();
|
|
|
+// $refundNotify->handle();
|
|
|
+
|
|
|
echo '<xml><return_code><![CDATA[SUCCESS]]></return_code><return_msg><![CDATA[OK]]></return_msg></xml>';
|
|
|
}
|
|
|
|