hk-cdp 1.0.114__tar.gz → 1.0.115__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.
Potentially problematic release.
This version of hk-cdp might be problematic. Click here for more details.
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/PKG-INFO +1 -1
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/libs/customize/tiktok_spi_helper.py +4 -5
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp.egg-info/PKG-INFO +1 -1
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/setup.py +1 -1
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/README.md +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/handler/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/handler/cdp_base.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/libs/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/libs/customize/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/libs/customize/asset_base_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/libs/customize/cdp_helper.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/libs/customize/rainbow_helper.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/libs/customize/work_base_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/cdp_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/analysis/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/analysis/analysis_goods_related_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/analysis/analysis_goods_repurchase_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/analysis/analysis_report_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/cap/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/cap/cap_business_info_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/cap/cap_store_info_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/cdp/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/cdp/cdp_store_info_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/cdp/cdp_work_info_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/member/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/member/member_asset_log_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/member/member_asset_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/member/member_asset_valid_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/member/member_event_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/member/member_info_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/member/member_level_log_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/prefix/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/prefix/prefix_info_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/queue/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/queue/queue_work_log_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/scheme/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/scheme/scheme_growth_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/scheme/scheme_info_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/scheme/scheme_integral_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/scheme/scheme_level_info_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/scheme/scheme_level_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/store/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/store/store_base_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/store/store_goods_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/store/store_prefix_log_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/sync/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/sync/sync_user_data_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/taobao/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/taobao/taobao_rds_item_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/taobao/taobao_rds_refund_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/taobao/taobao_rds_trade_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/taobao/taobao_source_buyer_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/taobao/taobao_source_history_member_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/trade/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/trade/trade_give_info_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/trade/trade_info_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/trade/trade_mobile_queue_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/trade/trade_order_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/trade/trade_status_info_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/tt/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/tt/tt_rds_item_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/tt/tt_rds_refund_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/tt/tt_rds_trade_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/tt/tt_source_buyer_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/tt/tt_source_history_member_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/user/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/user/user_data_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/user/user_info_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/user/user_trends_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/enum.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp.egg-info/SOURCES.txt +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp.egg-info/dependency_links.txt +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp.egg-info/requires.txt +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp.egg-info/top_level.txt +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.115}/setup.cfg +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
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/analysis/analysis_goods_related_model.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/member/member_asset_valid_model.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/taobao/taobao_source_buyer_model.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hk_cdp-1.0.114 → hk_cdp-1.0.115}/hk_cdp/models/db_models/tt/tt_source_history_member_model.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|