shish 11 månader sedan
förälder
incheckning
9d5af88c91
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      app-mall/controllers/ChatController.php

+ 2 - 2
app-mall/controllers/ChatController.php

@@ -178,13 +178,13 @@ class ChatController extends BaseController
         $userId = $callbackData['userId'] ?? '';
         $key = 'has_remind_' . $shopId . '_' . $userId;
         if (!empty($shopId) && !empty($userId)) {
-            //5秒不重复通知
+            //10秒不重复通知
             $hasRemind = Yii::$app->redis->executeCommand('GET', [$key]);
             if (empty($hasRemind)) {
                 $shop = ShopClass::getById($shopId, true);
                 if (!empty($shop)) {
                     WxMessageClass::newMessageInform($shop, "商城上客户有留言");
-                    Yii::$app->redis->executeCommand('SETEX', [$key, 5, 'has']);
+                    Yii::$app->redis->executeCommand('SETEX', [$key, 10, 'has']);
                     $time = time();
                     noticeUtil::push("客户留言已通知花店,shopId:" . $shopId . ' userId:' . $userId . ' time:' . $time, '15280215347');
                 }