shish 4 vuotta sitten
vanhempi
commit
1067255868

+ 2 - 2
app-ghs/controllers/OrderController.php

@@ -700,14 +700,14 @@ class OrderController extends BaseController
             util::fail('请选择客户');
         }
 
-        //3秒内不允许重复开单
+        //5秒内不允许重复开单
         $staffId = $this->shopAdminId ?? 0;
         $cacheKey = 'ghs_create_order_' . $staffId . '_' . $customId;
         $has = Yii::$app->redis->executeCommand('GET', [$cacheKey]);
         if (!empty($has)) {
             util::fail('请稍等');
         }
-        Yii::$app->redis->executeCommand('SETEX', [$cacheKey, 3, 'has']);
+        Yii::$app->redis->executeCommand('SETEX', [$cacheKey, 5, 'has']);
 
         $custom = CustomClass::getCustom($customId);
         if (empty($custom)) {

+ 1 - 1
app-hd/controllers/ApplyController.php

@@ -111,7 +111,7 @@ class ApplyController extends BaseController
             }
             $has = SjClass::getByCondition(['name' => $shopName]);
             if (!empty($has)) {
-                util::fail('名称已经存在');
+                //util::fail('名称已经被别人使用,请换个名字,或者名字后面加个2');
             }
             $has = ApplyClass::getByCondition(['mobile' => $mobile]);
             if (!empty($has)) {