Browse Source

修改优惠券使用锁时长为1分钟

linhaohong 8 months ago
parent
commit
d02627ca18
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Controller/CloudStorage.py

+ 1 - 1
Controller/CloudStorage.py

@@ -1774,7 +1774,7 @@ class CloudStorageView(View):
                         key_coupon = f"{RedisKeyConstant.COUPON_ID_LOCK.value}{c_id}"
                         coupon_lock = redis_obj.get_data(key_coupon)
                         if not coupon_lock:
-                            redis_obj.set_data(key_coupon, 1, 600)
+                            redis_obj.set_data(key_coupon, 1, 60)
                             coupon_id = c_id
                             break
                     else: