sc-common-interface 2.8.9__tar.gz → 2.9.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sc_common_interface-2.8.9 → sc_common_interface-2.9.0}/PKG-INFO +1 -1
- {sc_common_interface-2.8.9 → sc_common_interface-2.9.0}/sc_common_interface/LiveCommonInterface.py +5 -4
- {sc_common_interface-2.8.9 → sc_common_interface-2.9.0}/sc_common_interface.egg-info/PKG-INFO +1 -1
- {sc_common_interface-2.8.9 → sc_common_interface-2.9.0}/setup.py +1 -1
- {sc_common_interface-2.8.9 → sc_common_interface-2.9.0}/sc_common_interface/CommonOa.py +0 -0
- {sc_common_interface-2.8.9 → sc_common_interface-2.9.0}/sc_common_interface/McCommonInterface.py +0 -0
- {sc_common_interface-2.8.9 → sc_common_interface-2.9.0}/sc_common_interface/Platform.py +0 -0
- {sc_common_interface-2.8.9 → sc_common_interface-2.9.0}/sc_common_interface/PostCommonInterface.py +0 -0
- {sc_common_interface-2.8.9 → sc_common_interface-2.9.0}/sc_common_interface/__init__.py +0 -0
- {sc_common_interface-2.8.9 → sc_common_interface-2.9.0}/sc_common_interface.egg-info/SOURCES.txt +0 -0
- {sc_common_interface-2.8.9 → sc_common_interface-2.9.0}/sc_common_interface.egg-info/dependency_links.txt +0 -0
- {sc_common_interface-2.8.9 → sc_common_interface-2.9.0}/sc_common_interface.egg-info/requires.txt +0 -0
- {sc_common_interface-2.8.9 → sc_common_interface-2.9.0}/sc_common_interface.egg-info/top_level.txt +0 -0
- {sc_common_interface-2.8.9 → sc_common_interface-2.9.0}/setup.cfg +0 -0
{sc_common_interface-2.8.9 → sc_common_interface-2.9.0}/sc_common_interface/LiveCommonInterface.py
RENAMED
|
@@ -8,7 +8,7 @@ import random
|
|
|
8
8
|
import hmac
|
|
9
9
|
from hashlib import sha1
|
|
10
10
|
import random
|
|
11
|
-
|
|
11
|
+
|
|
12
12
|
|
|
13
13
|
def delete_post(data):
|
|
14
14
|
env = data["env"]
|
|
@@ -947,12 +947,13 @@ def get_stamp_time(data):
|
|
|
947
947
|
time_type = data.get("time_type","add")
|
|
948
948
|
unit = data.get("unit","minutes")
|
|
949
949
|
# 获取当前 UTC 时间
|
|
950
|
-
now = datetime.now()
|
|
950
|
+
now = datetime.datetime.now()
|
|
951
951
|
if time_type not in {"add", "sub"}:
|
|
952
952
|
raise ValueError("Invalid time_type. Use 'add' or 'sub'.")
|
|
953
|
-
stamp_time = now + timedelta(**{unit:num if time_type == "add" else -num})
|
|
953
|
+
stamp_time = now + datetime.timedelta(**{unit:num if time_type == "add" else -num})
|
|
954
954
|
return int(stamp_time.timestamp()*1000)
|
|
955
955
|
|
|
956
|
+
|
|
956
957
|
def get_line_info(data):
|
|
957
958
|
env = data["env"]
|
|
958
959
|
headers = data["headers"]
|
|
@@ -2456,7 +2457,7 @@ def get_merchant_currency(data):
|
|
|
2456
2457
|
if __name__=="__main__":
|
|
2457
2458
|
stamp1 = get_stamp_time({"num":5040})
|
|
2458
2459
|
print(stamp1)
|
|
2459
|
-
stamp2 = get_stamp_time({"num":
|
|
2460
|
+
stamp2 = get_stamp_time({"num": 6000})
|
|
2460
2461
|
print(stamp2)
|
|
2461
2462
|
|
|
2462
2463
|
|
|
File without changes
|
{sc_common_interface-2.8.9 → sc_common_interface-2.9.0}/sc_common_interface/McCommonInterface.py
RENAMED
|
File without changes
|
|
File without changes
|
{sc_common_interface-2.8.9 → sc_common_interface-2.9.0}/sc_common_interface/PostCommonInterface.py
RENAMED
|
File without changes
|
|
File without changes
|
{sc_common_interface-2.8.9 → sc_common_interface-2.9.0}/sc_common_interface.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{sc_common_interface-2.8.9 → sc_common_interface-2.9.0}/sc_common_interface.egg-info/requires.txt
RENAMED
|
File without changes
|
{sc_common_interface-2.8.9 → sc_common_interface-2.9.0}/sc_common_interface.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|