shish 4 жил өмнө
parent
commit
057dd4a1c7

+ 3 - 3
common/components/payUtil.php

@@ -19,15 +19,15 @@ class payUtil
 
     public static function thirdPay($payWay, $capitalType, $orderSn, $totalFee, $attach, $transactionId = '')
     {
-        //3秒内不允许第三方重复通知
+        //4秒内不允许第三方重复通知
         $cacheKey = 'third_pay_' . $orderSn;
         $has = Yii::$app->redis->executeCommand('GET', [$cacheKey]);
         if (!empty($has)) {
             Yii::info("支付回调短时间内出现重复通知,流水类型:{$capitalType} orderSn:{$orderSn}");
-            noticeUtil::push("支付回调短时间内出现重复通知:流水类型:{$capitalType} orderSn:{$orderSn}", '15280215347');
+            //noticeUtil::push("支付回调短时间内出现重复通知:流水类型:{$capitalType} orderSn:{$orderSn}", '15280215347');
             return false;
         }
-        Yii::$app->redis->executeCommand('SETEX', [$cacheKey, 3, 'has']);
+        Yii::$app->redis->executeCommand('SETEX', [$cacheKey, 4, 'has']);
 
         $connection = Yii::$app->db;
         $transaction = $connection->beginTransaction();