From c7b6f5be3e5850bbf66db5363e634c57ff9ca876 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期二, 28 三月 2023 15:32:24 +0800
Subject: [PATCH] 评分机制调整

---
 code_data_util.py |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/code_data_util.py b/code_data_util.py
index e817eef..8233dbb 100644
--- a/code_data_util.py
+++ b/code_data_util.py
@@ -15,6 +15,8 @@
 
 # 浠g爜瀵瑰簲鐨勪环鏍兼槸鍚︽纭�
 def is_same_code_with_price(code, price):
+    if code == '600066':
+        print('杩涘叆璋冭瘯')
     # 鏄ㄦ棩鏀剁洏浠�
     price_close = gpcode_manager.get_price_pre(code)
     max_price = tool.to_price(decimal.Decimal(str(price_close)) * decimal.Decimal("1.1"))
@@ -22,6 +24,7 @@
     if min_price <= decimal.Decimal(str(price)) <= max_price:
         return True
     return False
+
 
 # 鑷敱娴侀�氳偂鏈伐鍏风被
 class ZYLTGBUtil:
@@ -60,3 +63,7 @@
                     mysqldb.execute(
                         "update ths_zylt set zyltgb='{}',zyltgb_unit={},update_time={} where _id='{}'".format(
                             data["zyltgb"], data["zyltgb_unit"], round(time.time() * 1000), data["code"]))
+
+
+if __name__ == "__main__":
+    print(is_same_code_with_price("000617", 17.89))

--
Gitblit v1.8.0