From 403f53e86f04ce0efb285d5d60c8519ab8ce1e15 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期五, 15 九月 2023 10:56:00 +0800 Subject: [PATCH] 注释下单阻止 --- utils/huaxin_util.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/utils/huaxin_util.py b/utils/huaxin_util.py index 2d91c86..6dbef0a 100644 --- a/utils/huaxin_util.py +++ b/utils/huaxin_util.py @@ -1,4 +1,5 @@ # 鎶ュ崟鐘舵�� +import random import threading from utils import tool @@ -63,7 +64,7 @@ __order_ref_lock.acquire() try: global __public_order_ref - __public_order_ref += 1 + __public_order_ref += random.randint(1, 20) return __public_order_ref finally: __order_ref_lock.release() -- Gitblit v1.8.0