hk-cdp 1.0.114__tar.gz → 1.0.116__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.
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/PKG-INFO +1 -1
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/libs/customize/tiktok_spi_helper.py +4 -5
- hk_cdp-1.0.116/hk_cdp/models/db_models/sync/__init__.py +1 -0
- hk_cdp-1.0.114/hk_cdp/models/db_models/trade/trade_mobile_queue_model.py → hk_cdp-1.0.116/hk_cdp/models/db_models/sync/sync_member_mobile_model.py +5 -5
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/trade/__init__.py +1 -1
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp.egg-info/PKG-INFO +1 -1
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp.egg-info/SOURCES.txt +1 -1
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/setup.py +1 -1
- hk_cdp-1.0.114/hk_cdp/models/db_models/sync/__init__.py +0 -1
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/README.md +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/handler/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/handler/cdp_base.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/libs/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/libs/customize/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/libs/customize/asset_base_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/libs/customize/cdp_helper.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/libs/customize/rainbow_helper.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/libs/customize/work_base_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/cdp_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/analysis/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/analysis/analysis_goods_related_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/analysis/analysis_goods_repurchase_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/analysis/analysis_report_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/cap/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/cap/cap_business_info_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/cap/cap_store_info_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/cdp/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/cdp/cdp_store_info_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/cdp/cdp_work_info_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/member/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/member/member_asset_log_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/member/member_asset_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/member/member_asset_valid_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/member/member_event_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/member/member_info_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/member/member_level_log_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/prefix/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/prefix/prefix_info_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/queue/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/queue/queue_work_log_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/scheme/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/scheme/scheme_growth_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/scheme/scheme_info_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/scheme/scheme_integral_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/scheme/scheme_level_info_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/scheme/scheme_level_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/store/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/store/store_base_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/store/store_goods_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/store/store_prefix_log_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/sync/sync_user_data_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/taobao/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/taobao/taobao_rds_item_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/taobao/taobao_rds_refund_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/taobao/taobao_rds_trade_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/taobao/taobao_source_buyer_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/taobao/taobao_source_history_member_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/trade/trade_give_info_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/trade/trade_info_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/trade/trade_order_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/trade/trade_status_info_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/tt/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/tt/tt_rds_item_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/tt/tt_rds_refund_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/tt/tt_rds_trade_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/tt/tt_source_buyer_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/tt/tt_source_history_member_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/user/__init__.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/user/user_data_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/user/user_info_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/db_models/user/user_trends_model.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp/models/enum.py +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp.egg-info/dependency_links.txt +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp.egg-info/requires.txt +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/hk_cdp.egg-info/top_level.txt +0 -0
- {hk_cdp-1.0.114 → hk_cdp-1.0.116}/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
|
-
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__all__ = ["sync_user_data_model", "sync_member_mobile_model"]
|
|
@@ -11,9 +11,9 @@ from seven_framework.mysql import MySQLHelper
|
|
|
11
11
|
from seven_framework.base_model import *
|
|
12
12
|
from seven_cloudapp_frame.models.cache_model import *
|
|
13
13
|
|
|
14
|
-
class
|
|
14
|
+
class SyncMemberMobileModel(CacheModel):
|
|
15
15
|
def __init__(self, db_connect_key='db_cloudapp', db_config_dict=None, sub_table=None, db_transaction=None, context=None, is_auto=False):
|
|
16
|
-
super(
|
|
16
|
+
super(SyncMemberMobileModel, self).__init__(SyncMemberMobile, sub_table)
|
|
17
17
|
if not db_config_dict:
|
|
18
18
|
db_config_dict = config.get_value(db_connect_key)
|
|
19
19
|
self.db = MySQLHelper(self.convert_db_config(db_config_dict, is_auto))
|
|
@@ -24,9 +24,9 @@ class TradeMobileQueueModel(CacheModel):
|
|
|
24
24
|
#方法扩展请继承此类
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
class
|
|
27
|
+
class SyncMemberMobile:
|
|
28
28
|
def __init__(self):
|
|
29
|
-
super(
|
|
29
|
+
super(SyncMemberMobile, self).__init__()
|
|
30
30
|
self.id = 0 # id
|
|
31
31
|
self.user_id = "" # 客户ID
|
|
32
32
|
self.ouid = "" # ouid
|
|
@@ -49,4 +49,4 @@ class TradeMobileQueue:
|
|
|
49
49
|
return "id"
|
|
50
50
|
|
|
51
51
|
def __str__(self):
|
|
52
|
-
return "
|
|
52
|
+
return "sync_member_mobile_tb"
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
@LastEditors: HuangJianYi
|
|
7
7
|
@Description:
|
|
8
8
|
"""
|
|
9
|
-
__all__ = ["trade_info_model","trade_order_model","trade_status_info_model","trade_give_info_model"
|
|
9
|
+
__all__ = ["trade_info_model","trade_order_model","trade_status_info_model","trade_give_info_model"]
|
|
@@ -51,6 +51,7 @@ hk_cdp/models/db_models/store/store_base_model.py
|
|
|
51
51
|
hk_cdp/models/db_models/store/store_goods_model.py
|
|
52
52
|
hk_cdp/models/db_models/store/store_prefix_log_model.py
|
|
53
53
|
hk_cdp/models/db_models/sync/__init__.py
|
|
54
|
+
hk_cdp/models/db_models/sync/sync_member_mobile_model.py
|
|
54
55
|
hk_cdp/models/db_models/sync/sync_user_data_model.py
|
|
55
56
|
hk_cdp/models/db_models/taobao/__init__.py
|
|
56
57
|
hk_cdp/models/db_models/taobao/taobao_rds_item_model.py
|
|
@@ -61,7 +62,6 @@ hk_cdp/models/db_models/taobao/taobao_source_history_member_model.py
|
|
|
61
62
|
hk_cdp/models/db_models/trade/__init__.py
|
|
62
63
|
hk_cdp/models/db_models/trade/trade_give_info_model.py
|
|
63
64
|
hk_cdp/models/db_models/trade/trade_info_model.py
|
|
64
|
-
hk_cdp/models/db_models/trade/trade_mobile_queue_model.py
|
|
65
65
|
hk_cdp/models/db_models/trade/trade_order_model.py
|
|
66
66
|
hk_cdp/models/db_models/trade/trade_status_info_model.py
|
|
67
67
|
hk_cdp/models/db_models/tt/__init__.py
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__all__ = ["sync_user_data_model"]
|
|
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.116}/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.116}/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
|
{hk_cdp-1.0.114 → hk_cdp-1.0.116}/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
|
{hk_cdp-1.0.114 → hk_cdp-1.0.116}/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
|