hk-cdp 1.0.113__py3-none-any.whl → 1.0.115__py3-none-any.whl
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.
- hk_cdp/libs/customize/tiktok_spi_helper.py +4 -5
- hk_cdp/models/db_models/trade/trade_mobile_queue_model.py +2 -1
- {hk_cdp-1.0.113.dist-info → hk_cdp-1.0.115.dist-info}/METADATA +1 -1
- {hk_cdp-1.0.113.dist-info → hk_cdp-1.0.115.dist-info}/RECORD +7 -7
- {hk_cdp-1.0.113.dist-info → hk_cdp-1.0.115.dist-info}/LICENSE +0 -0
- {hk_cdp-1.0.113.dist-info → hk_cdp-1.0.115.dist-info}/WHEEL +0 -0
- {hk_cdp-1.0.113.dist-info → hk_cdp-1.0.115.dist-info}/top_level.txt +0 -0
|
@@ -33,7 +33,7 @@ class TiktokSpiHelper:
|
|
|
33
33
|
# 创建排序后的字典
|
|
34
34
|
sorted_dict = {key: json_params[key] for key in sorted_keys}
|
|
35
35
|
# 将字典转换为没有空格的 JSON 字符串
|
|
36
|
-
param_json = json.dumps(sorted_dict, separators=(',', ':'))
|
|
36
|
+
param_json = json.dumps(sorted_dict, ensure_ascii=False, separators=(',', ':'))
|
|
37
37
|
|
|
38
38
|
check_sign = self.spi_sign(app_key, app_secret, timestamp, param_json, sign_method)
|
|
39
39
|
if sign != check_sign:
|
|
@@ -44,7 +44,7 @@ class TiktokSpiHelper:
|
|
|
44
44
|
except Exception as ex:
|
|
45
45
|
print("check_sign:" + str(ex))
|
|
46
46
|
return False
|
|
47
|
-
|
|
47
|
+
|
|
48
48
|
@classmethod
|
|
49
49
|
def spi_sign(self, app_key, app_secret, timestamp, param_json, sign_method):
|
|
50
50
|
"""
|
|
@@ -65,7 +65,7 @@ class TiktokSpiHelper:
|
|
|
65
65
|
if sign_method == "hmac-sha256":
|
|
66
66
|
return self.string_to_hmac(sign_pattern, app_secret)
|
|
67
67
|
return self.string_to_md5(sign_pattern)
|
|
68
|
-
|
|
68
|
+
|
|
69
69
|
@classmethod
|
|
70
70
|
def string_to_md5(self, plain_text):
|
|
71
71
|
try:
|
|
@@ -73,7 +73,7 @@ class TiktokSpiHelper:
|
|
|
73
73
|
return md5code
|
|
74
74
|
except Exception as e:
|
|
75
75
|
print(str(e))
|
|
76
|
-
|
|
76
|
+
|
|
77
77
|
@classmethod
|
|
78
78
|
def string_to_hmac(self, plain_text, app_secret):
|
|
79
79
|
try:
|
|
@@ -99,4 +99,3 @@ class TiktokSpiHelper:
|
|
|
99
99
|
# """
|
|
100
100
|
# sign_pattern = f"{method}?appId={app_key}×tamp={timestamp}&version={version}{app_secret}"
|
|
101
101
|
# return self.string_to_md5(sign_pattern)
|
|
102
|
-
|
|
@@ -37,11 +37,12 @@ class TradeMobileQueue:
|
|
|
37
37
|
self.order_create_date = '1970-01-01 00:00:00.000' # 订单创建时间
|
|
38
38
|
self.sync_count = 0 # 同步次数
|
|
39
39
|
self.sync_date = '1970-01-01 00:00:00.000' # 同步时间
|
|
40
|
+
self.create_date = '1970-01-01 00:00:00.000' # 创建时间
|
|
40
41
|
|
|
41
42
|
|
|
42
43
|
@classmethod
|
|
43
44
|
def get_field_list(self):
|
|
44
|
-
return ['id', 'user_id', 'ouid', 'business_id', 'store_id', 'platform_id', 'main_pay_order_no', 'order_create_date', 'sync_count', 'sync_date']
|
|
45
|
+
return ['id', 'user_id', 'ouid', 'business_id', 'store_id', 'platform_id', 'main_pay_order_no', 'order_create_date', 'sync_count', 'sync_date', 'create_date']
|
|
45
46
|
|
|
46
47
|
@classmethod
|
|
47
48
|
def get_primary_key(self):
|
|
@@ -6,7 +6,7 @@ hk_cdp/libs/customize/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
|
|
|
6
6
|
hk_cdp/libs/customize/asset_base_model.py,sha256=eRExBgVfURH2YYElDCEJwarhG0yAw0aLGyuZZTqYiaI,24862
|
|
7
7
|
hk_cdp/libs/customize/cdp_helper.py,sha256=st4NOYbFBT4WIOJ3j7bcAyml503z2ayiU78hbrNisGM,11810
|
|
8
8
|
hk_cdp/libs/customize/rainbow_helper.py,sha256=M9gb3MyHf8SHGtX27GC8llivvAZxV_fb1CqJK_crfZ4,2372
|
|
9
|
-
hk_cdp/libs/customize/tiktok_spi_helper.py,sha256=
|
|
9
|
+
hk_cdp/libs/customize/tiktok_spi_helper.py,sha256=ZGx0PBK4eSXCLlqqyfn8uxd3EAAOxUt-jvgOsl1724E,3580
|
|
10
10
|
hk_cdp/libs/customize/work_base_model.py,sha256=0-oDyhcUQchj4L-AvWogBUYyhh8MUevaV6jmL94yQ5A,1931
|
|
11
11
|
hk_cdp/models/__init__.py,sha256=iwhKnzeBJLKxpRVjvzwiRE63_zNpIBfaKLITauVph-0,24
|
|
12
12
|
hk_cdp/models/cdp_model.py,sha256=GxC3zXZ0po2iFkaFeTYcnq8S7hGXQ-vUb9rYoka-BMI,5948
|
|
@@ -54,7 +54,7 @@ hk_cdp/models/db_models/taobao/taobao_source_history_member_model.py,sha256=m2_Y
|
|
|
54
54
|
hk_cdp/models/db_models/trade/__init__.py,sha256=yHlrOlTTHgtj5kl8AffHzDjuxCZPqiPK_AwzMKLxFFg,284
|
|
55
55
|
hk_cdp/models/db_models/trade/trade_give_info_model.py,sha256=l70K-aiyOkNRy2NPLGDOG-vUnM6Vw0NqAdbwW7cxT0k,1868
|
|
56
56
|
hk_cdp/models/db_models/trade/trade_info_model.py,sha256=VoAZoPNt9KcY8UKUoOzZ7pmgdkAemnKp7jdNrvztaso,4841
|
|
57
|
-
hk_cdp/models/db_models/trade/trade_mobile_queue_model.py,sha256
|
|
57
|
+
hk_cdp/models/db_models/trade/trade_mobile_queue_model.py,sha256=BeBFoB83GXyutVgtz6qU9Ba-eAYPc0pO308Jd3a04R0,1945
|
|
58
58
|
hk_cdp/models/db_models/trade/trade_order_model.py,sha256=ibE4pCdWcIPow6kBpgRayHgFuOG4xSBtcLD7Bd9YHhE,2413
|
|
59
59
|
hk_cdp/models/db_models/trade/trade_status_info_model.py,sha256=R8HaCRRmXIa76ZWajW6YcdAxbPZPKiDDPLszUkD2azc,1946
|
|
60
60
|
hk_cdp/models/db_models/tt/__init__.py,sha256=udhmTaFhq9P2bisJyTJiIwebDMEzc-HqBZdGmARZIEQ,136
|
|
@@ -67,8 +67,8 @@ hk_cdp/models/db_models/user/__init__.py,sha256=O_F1_TiR_075ATAHcahxTKJwUdYeY-Qz
|
|
|
67
67
|
hk_cdp/models/db_models/user/user_data_model.py,sha256=hswh3ELJtBilEgzr7W6MfmaWsnSr93oO0nizbbPeRAk,2757
|
|
68
68
|
hk_cdp/models/db_models/user/user_info_model.py,sha256=TywpvlFGkch9hO_szyhin-ed4xfTWBM7L59IU96SfxU,4138
|
|
69
69
|
hk_cdp/models/db_models/user/user_trends_model.py,sha256=oxJCBnJQEvFr1_heV_cxRrPIic6_oSoLqARc6ldp2LM,1592
|
|
70
|
-
hk_cdp-1.0.
|
|
71
|
-
hk_cdp-1.0.
|
|
72
|
-
hk_cdp-1.0.
|
|
73
|
-
hk_cdp-1.0.
|
|
74
|
-
hk_cdp-1.0.
|
|
70
|
+
hk_cdp-1.0.115.dist-info/LICENSE,sha256=hKHSuDoDoyOk6vOrpkYnOXZ640PvhUa-BTQbRRtFsUk,1061
|
|
71
|
+
hk_cdp-1.0.115.dist-info/METADATA,sha256=a3b72b4dcNuc_kwfsAcANe23eC0DkcVerPHTVQbTDcQ,7102
|
|
72
|
+
hk_cdp-1.0.115.dist-info/WHEEL,sha256=g4nMs7d-Xl9-xC9XovUrsDHGXt-FT0E17Yqo92DEfvY,92
|
|
73
|
+
hk_cdp-1.0.115.dist-info/top_level.txt,sha256=omzIr_m5qnzhfcdscOVr4P4JUB49wlP6KztqvlqDntw,7
|
|
74
|
+
hk_cdp-1.0.115.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|