hk-cdp 1.0.114__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.
@@ -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}&timestamp={timestamp}&version={version}{app_secret}"
101
101
  # return self.string_to_md5(sign_pattern)
102
-
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hk-cdp
3
- Version: 1.0.114
3
+ Version: 1.0.115
4
4
  Summary: hk cdp
5
5
  Home-page: http://gitlab.tdtech.gao7.com/newfire/hk_cap/hk_cdp/server/hk_cdp.git
6
6
  Author: seven
@@ -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=CBzZOZlwcJdI22HOewIPTvAPWOHYdyvq7OAZhijTlFA,3575
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
@@ -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.114.dist-info/LICENSE,sha256=hKHSuDoDoyOk6vOrpkYnOXZ640PvhUa-BTQbRRtFsUk,1061
71
- hk_cdp-1.0.114.dist-info/METADATA,sha256=40SjVk-JnkG_OJ4CZHyquZJj3QGF2qtobFsAioCcJHQ,7102
72
- hk_cdp-1.0.114.dist-info/WHEEL,sha256=g4nMs7d-Xl9-xC9XovUrsDHGXt-FT0E17Yqo92DEfvY,92
73
- hk_cdp-1.0.114.dist-info/top_level.txt,sha256=omzIr_m5qnzhfcdscOVr4P4JUB49wlP6KztqvlqDntw,7
74
- hk_cdp-1.0.114.dist-info/RECORD,,
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,,