ソースを参照

wesmiler 报恩寺项目

wesmiler 4 年 前
コミット
00150c5663

+ 1 - 0
app/Http/Controllers/Api/v1/NotifyController.php

@@ -44,6 +44,7 @@ class NotifyController extends BaseController
 
         // 解密
         $ciphertext = isset($postData['ciphertext'])? $postData['ciphertext'] : '';
+        RedisService::set('caches:payments:'.$scene.':result'.$id.'_ciphertext', ['result'=> $postData], 7200);
         if(empty($ciphertext)){
             return NotifyService::make()->rebackMsg('解密数据不存在');
         }

+ 1 - 1
app/Services/WechatService.php

@@ -821,7 +821,7 @@ class WechatService extends BaseService
      * @throws \SodiumException
      */
     public static function decryptNotifyData($notifyData){
-//        $md5Key = 'ThgVdjd0YFzX5QYMYkLbNV4bkHPEEJTN';
+
         $md5Key = WechatService::getConfigs('wx_pay_key');
         $ciphertext = isset($notifyData['ciphertext'])? $notifyData['ciphertext'] : '';
         $associatedData = isset($notifyData['associated_data'])? $notifyData['associated_data'] : '';