shish 1 год назад
Родитель
Сommit
261616f763
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      app-mall/controllers/NoticeController.php

+ 4 - 1
app-mall/controllers/NoticeController.php

@@ -154,8 +154,8 @@ class NoticeController extends PublicController
 
             echo "SUCCESS";
 
-            //解决重复通知,重要
             if ($capitalType == dict::getDict('capitalType', 'xhOrder', 'id')) {
+                //解决重复通知,重要
                 $cacheKey = 'mall_order_pay_' . $orderSn;
                 $has = Yii::$app->redis->executeCommand('GET', [$cacheKey]);
                 if (empty($has)) {
@@ -181,7 +181,9 @@ class NoticeController extends PublicController
                     ShopExtClass::newWorkRemind($shopExt, $order);
                 }
             }
+
             if ($capitalType == dict::getDict('capitalType', 'scanPay', 'id')) {
+                //解决重复通知,重要
                 $myKey = 'mall_order_scan_pay_' . $orderSn;
                 $has = Yii::$app->redis->executeCommand('GET', [$myKey]);
                 if (empty($has)) {
@@ -190,6 +192,7 @@ class NoticeController extends PublicController
                     ShopExtClass::hdScanPayReport($scan);
                 }
             }
+
         } catch (\Exception $e) {
             $transaction->rollBack();
             Yii::error("失败原因:" . $e->getMessage());