hk-cdp 1.0.68__py3-none-any.whl → 1.0.70__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.
Potentially problematic release.
This version of hk-cdp might be problematic. Click here for more details.
- hk_cdp/libs/customize/cdp_helper.py +19 -1
- hk_cdp/models/db_models/cdp/cdp_store_info_model.py +12 -13
- {hk_cdp-1.0.68.dist-info → hk_cdp-1.0.70.dist-info}/METADATA +1 -1
- {hk_cdp-1.0.68.dist-info → hk_cdp-1.0.70.dist-info}/RECORD +7 -7
- {hk_cdp-1.0.68.dist-info → hk_cdp-1.0.70.dist-info}/LICENSE +0 -0
- {hk_cdp-1.0.68.dist-info → hk_cdp-1.0.70.dist-info}/WHEEL +0 -0
- {hk_cdp-1.0.68.dist-info → hk_cdp-1.0.70.dist-info}/top_level.txt +0 -0
|
@@ -216,4 +216,22 @@ class CdpHelper:
|
|
|
216
216
|
"total_point": total_integral
|
|
217
217
|
})
|
|
218
218
|
return sync_member_info, sync_integral_log
|
|
219
|
-
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
@classmethod
|
|
222
|
+
def get_platform_name(self, platform_id):
|
|
223
|
+
"""
|
|
224
|
+
合成同步平台需要的信息
|
|
225
|
+
:param platform_id: 平台标识
|
|
226
|
+
:return:
|
|
227
|
+
"""
|
|
228
|
+
if platform_id == 1:
|
|
229
|
+
return '淘宝平台'
|
|
230
|
+
elif platform_id == 2:
|
|
231
|
+
return '抖音平台'
|
|
232
|
+
elif platform_id == 3:
|
|
233
|
+
return '京东平台'
|
|
234
|
+
elif platform_id == 4:
|
|
235
|
+
return '微信平台'
|
|
236
|
+
else:
|
|
237
|
+
return '未知平台'
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"""
|
|
3
3
|
@Author: HuangJianYi
|
|
4
4
|
@Date: 2024-11-06 09:39:45
|
|
5
|
-
@LastEditTime:
|
|
5
|
+
@LastEditTime: 2025-03-04 15:09:23
|
|
6
6
|
@LastEditors: HuangJianYi
|
|
7
7
|
@Description:
|
|
8
8
|
"""
|
|
@@ -28,33 +28,32 @@ class CdpStoreInfo:
|
|
|
28
28
|
super(CdpStoreInfo, self).__init__()
|
|
29
29
|
self.id = 0 # id
|
|
30
30
|
self.guid = None # guid
|
|
31
|
-
self.business_id = 0 # 商家标识
|
|
32
|
-
self.platform_id = 0 # 平台类型
|
|
33
31
|
self.store_name = "" # 店铺名称
|
|
34
|
-
self.seller_nick = "" # 店铺主账号
|
|
35
|
-
self.seller_id = "" # 店铺主账号id
|
|
36
32
|
self.store_icon = "" # 店铺图标
|
|
37
33
|
self.plat_store_id = "" # 平台店铺标识
|
|
38
34
|
self.store_status = 0 # 店铺状态
|
|
35
|
+
self.create_date = '1970-01-01 00:00:00.000' # 创建时间
|
|
36
|
+
self.modify_date = '1970-01-01 00:00:00.000' # 修改时间
|
|
39
37
|
self.plat_telephone_key = "" # 平台手机号密钥
|
|
40
38
|
self.prefix_status = 0 # 号段生成状态
|
|
41
39
|
self.prefix_path = "" # 号段存储路径
|
|
40
|
+
self.business_id = 0 # 商家标识
|
|
41
|
+
self.seller_nick = "" # 店铺主账号
|
|
42
|
+
self.seller_id = "" # 店铺主账号id
|
|
43
|
+
self.platform_id = 0 # 平台类型
|
|
42
44
|
self.overdue_date = '1970-01-01 00:00:00.000' # 过期时间
|
|
43
45
|
self.access_token = "" # access_token
|
|
44
46
|
self.extend_info = {} # 扩展信息json
|
|
45
47
|
self.description = "" # 描述
|
|
46
|
-
self.cdp_rawdata_sync_status = 0 # cdp_原始数据同步状态
|
|
47
|
-
self.
|
|
48
|
-
self.
|
|
48
|
+
self.cdp_rawdata_sync_status = 0 # cdp_原始数据同步状态(0-未开始 1-同步历史数据 2-同步增量数据)
|
|
49
|
+
self.history_data_clean_status = 0 # 历史数据清洗状态(0-未开始 1-进行中 2-已完成)
|
|
50
|
+
self.history_member_init_status = 0 # 历史会员初始化状态(0-未开始 1-进行中 2-已完成)
|
|
51
|
+
|
|
49
52
|
|
|
50
53
|
@classmethod
|
|
51
54
|
def get_field_list(self):
|
|
52
55
|
return [
|
|
53
|
-
'id', 'guid', 'business_id', 'platform_id', '
|
|
54
|
-
'seller_nick', 'seller_id', 'store_icon', 'plat_store_id', 'store_status',
|
|
55
|
-
'plat_telephone_key', 'prefix_status', 'prefix_path',
|
|
56
|
-
'overdue_date', 'access_token', 'extend_info', 'description',
|
|
57
|
-
'cdp_rawdata_sync_status', 'create_date', 'modify_date'
|
|
56
|
+
'id', 'guid', 'store_name', 'store_icon', 'plat_store_id', 'store_status', 'create_date', 'modify_date', 'plat_telephone_key', 'prefix_status', 'prefix_path', 'business_id', 'seller_nick', 'seller_id', 'platform_id', 'overdue_date', 'access_token', 'extend_info', 'description', 'cdp_rawdata_sync_status', 'history_data_clean_status', 'history_member_init_status'
|
|
58
57
|
]
|
|
59
58
|
|
|
60
59
|
@classmethod
|
|
@@ -4,7 +4,7 @@ hk_cdp/handler/cdp_base.py,sha256=CgLnJPuxRzpfIZvxk9-7Tu1qfcsFm-xKLYkOaWw9gp0,26
|
|
|
4
4
|
hk_cdp/libs/__init__.py,sha256=iwhKnzeBJLKxpRVjvzwiRE63_zNpIBfaKLITauVph-0,24
|
|
5
5
|
hk_cdp/libs/customize/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
hk_cdp/libs/customize/asset_base_model.py,sha256=9ymMjP1BZ7ltPPgs_HejpOza9ZdtZwVxMI1t_K9DGzI,23463
|
|
7
|
-
hk_cdp/libs/customize/cdp_helper.py,sha256=
|
|
7
|
+
hk_cdp/libs/customize/cdp_helper.py,sha256=c_v7EDVc3UPSaAQFTRcelHV7os210fNPHmm5AEOpdRY,9316
|
|
8
8
|
hk_cdp/libs/customize/tiktok_spi_helper.py,sha256=CBzZOZlwcJdI22HOewIPTvAPWOHYdyvq7OAZhijTlFA,3575
|
|
9
9
|
hk_cdp/models/__init__.py,sha256=iwhKnzeBJLKxpRVjvzwiRE63_zNpIBfaKLITauVph-0,24
|
|
10
10
|
hk_cdp/models/cdp_model.py,sha256=W4eKGr9BzlTcNdFeAfglzHRcG3wA2PuIUui7f1Q3G8I,5477
|
|
@@ -16,7 +16,7 @@ hk_cdp/models/db_models/cap/__init__.py,sha256=QsbOTFmhrR2g4CCwzXfpcoqWeVdGU-gS7
|
|
|
16
16
|
hk_cdp/models/db_models/cap/cap_business_info_model.py,sha256=A-MF3O-KvlDlZb80j-BmfdU8kUvurjuENIhjLI8ZubQ,1603
|
|
17
17
|
hk_cdp/models/db_models/cap/cap_store_info_model.py,sha256=IwQeJ06CkyIs72tLeb3R2iG6mx8_0M1gfMtHF0pHPrQ,1703
|
|
18
18
|
hk_cdp/models/db_models/cdp/__init__.py,sha256=8AyJZ9QNMMgbxCoroCPpckaYWST0whyfaKPrLcwNUoA,213
|
|
19
|
-
hk_cdp/models/db_models/cdp/cdp_store_info_model.py,sha256=
|
|
19
|
+
hk_cdp/models/db_models/cdp/cdp_store_info_model.py,sha256=HJlS7wnbFaJLXoZj_enri5OZkwxM_0bdpRHFjQ97bUU,2743
|
|
20
20
|
hk_cdp/models/db_models/cdp/cdp_work_info_model.py,sha256=vUmwS3cEFXIWiKs1sr5pbQU1-Kh6CKuinnXTgRe7MmU,3465
|
|
21
21
|
hk_cdp/models/db_models/member/__init__.py,sha256=848n8bTcWDnFiqDnucKrEMskbXJMLz29ju6s6ta2bR4,311
|
|
22
22
|
hk_cdp/models/db_models/member/member_asset_log_model.py,sha256=HCYUpggBTCBED6-T_9F_s_dIREzSNrTUOMg9wht1Gjo,2963
|
|
@@ -59,8 +59,8 @@ hk_cdp/models/db_models/user/__init__.py,sha256=O_F1_TiR_075ATAHcahxTKJwUdYeY-Qz
|
|
|
59
59
|
hk_cdp/models/db_models/user/user_data_model.py,sha256=_0PbEsUf5e2JY2PL3LLj09cGAtAmS0dhnJnLCDNdkNc,2696
|
|
60
60
|
hk_cdp/models/db_models/user/user_info_model.py,sha256=IoI2ogHHER4EF2PB6O2kJ5NHBNdQH_jDW8qjhD8v-0M,4198
|
|
61
61
|
hk_cdp/models/db_models/user/user_trends_model.py,sha256=CjlIbFFkTdTGIHYQ-cHkg9xUz92QC-sxmMBGPzcUvc4,1544
|
|
62
|
-
hk_cdp-1.0.
|
|
63
|
-
hk_cdp-1.0.
|
|
64
|
-
hk_cdp-1.0.
|
|
65
|
-
hk_cdp-1.0.
|
|
66
|
-
hk_cdp-1.0.
|
|
62
|
+
hk_cdp-1.0.70.dist-info/LICENSE,sha256=hKHSuDoDoyOk6vOrpkYnOXZ640PvhUa-BTQbRRtFsUk,1061
|
|
63
|
+
hk_cdp-1.0.70.dist-info/METADATA,sha256=4JlGNc0hwzr6L0WP0LZ-a_11g5gl-efsn9qwyo-hRSU,7101
|
|
64
|
+
hk_cdp-1.0.70.dist-info/WHEEL,sha256=g4nMs7d-Xl9-xC9XovUrsDHGXt-FT0E17Yqo92DEfvY,92
|
|
65
|
+
hk_cdp-1.0.70.dist-info/top_level.txt,sha256=omzIr_m5qnzhfcdscOVr4P4JUB49wlP6KztqvlqDntw,7
|
|
66
|
+
hk_cdp-1.0.70.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|