sc-common-interface 3.0.5__tar.gz → 3.0.7__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.
- {sc_common_interface-3.0.5 → sc_common_interface-3.0.7}/PKG-INFO +1 -1
- {sc_common_interface-3.0.5 → sc_common_interface-3.0.7}/sc_common_interface/CommonOa.py +5 -2
- {sc_common_interface-3.0.5 → sc_common_interface-3.0.7}/sc_common_interface/LiveCommonInterface.py +22 -2
- {sc_common_interface-3.0.5 → sc_common_interface-3.0.7}/sc_common_interface.egg-info/PKG-INFO +1 -1
- {sc_common_interface-3.0.5 → sc_common_interface-3.0.7}/setup.py +1 -1
- {sc_common_interface-3.0.5 → sc_common_interface-3.0.7}/sc_common_interface/McCommonInterface.py +0 -0
- {sc_common_interface-3.0.5 → sc_common_interface-3.0.7}/sc_common_interface/OperaMysql.py +0 -0
- {sc_common_interface-3.0.5 → sc_common_interface-3.0.7}/sc_common_interface/OperaRedis.py +0 -0
- {sc_common_interface-3.0.5 → sc_common_interface-3.0.7}/sc_common_interface/PostCommonInterface.py +0 -0
- {sc_common_interface-3.0.5 → sc_common_interface-3.0.7}/sc_common_interface/ScPulsar.py +0 -0
- {sc_common_interface-3.0.5 → sc_common_interface-3.0.7}/sc_common_interface/ScWebsocket.py +0 -0
- {sc_common_interface-3.0.5 → sc_common_interface-3.0.7}/sc_common_interface/__init__.py +0 -0
- {sc_common_interface-3.0.5 → sc_common_interface-3.0.7}/sc_common_interface.egg-info/SOURCES.txt +0 -0
- {sc_common_interface-3.0.5 → sc_common_interface-3.0.7}/sc_common_interface.egg-info/dependency_links.txt +0 -0
- {sc_common_interface-3.0.5 → sc_common_interface-3.0.7}/sc_common_interface.egg-info/requires.txt +0 -0
- {sc_common_interface-3.0.5 → sc_common_interface-3.0.7}/sc_common_interface.egg-info/top_level.txt +0 -0
- {sc_common_interface-3.0.5 → sc_common_interface-3.0.7}/setup.cfg +0 -0
|
@@ -239,9 +239,12 @@ def get_str_time(time_type="add",unit="days",num=1,format='%Y-%m-%dT%H:%M:%S.%f'
|
|
|
239
239
|
|
|
240
240
|
|
|
241
241
|
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
242
245
|
if __name__=="__main__":
|
|
243
|
-
|
|
244
|
-
|
|
246
|
+
pass
|
|
247
|
+
|
|
245
248
|
|
|
246
249
|
|
|
247
250
|
|
{sc_common_interface-3.0.5 → sc_common_interface-3.0.7}/sc_common_interface/LiveCommonInterface.py
RENAMED
|
@@ -2656,8 +2656,28 @@ def syn_line_product(data):
|
|
|
2656
2656
|
return response
|
|
2657
2657
|
|
|
2658
2658
|
|
|
2659
|
+
def get_product_detail(data):
|
|
2660
|
+
#headers为sc使用的token
|
|
2661
|
+
oa_env = data["oa_env"]
|
|
2662
|
+
headers = data["headers"]
|
|
2663
|
+
product_id = data["product_id"]
|
|
2664
|
+
url = "%s/v1/products/%s?strategy=app_token&includes[]=locked_inventory_count"%(oa_env,product_id)
|
|
2665
|
+
res = requests.get(url, headers=headers).json()
|
|
2666
|
+
return res
|
|
2659
2667
|
|
|
2660
2668
|
|
|
2669
|
+
def get_live_comment(data):
|
|
2670
|
+
env = data["env"]
|
|
2671
|
+
headers = data["headers"]
|
|
2672
|
+
sales_id = data["sales_id"]
|
|
2673
|
+
pageSize = data.get("pageSize","3")
|
|
2674
|
+
url = "%s/api/posts/post/comments?pageNo=1&pageSize=%s&salesId=%s"%(env,pageSize,sales_id)
|
|
2675
|
+
platform = data.get("platform")
|
|
2676
|
+
page_id = data.get("page_id")
|
|
2677
|
+
if platform !=None and page_id!=None:
|
|
2678
|
+
url = "%s/api/posts/post/comments?pageNo=1&pageSize=%s&salesId=%s&platform=%s&pageId=%s"%(env,pageSize,sales_id,platform,page_id)
|
|
2679
|
+
response = requests.get(url,headers=headers).json()
|
|
2680
|
+
return response["data"]["list"]
|
|
2661
2681
|
|
|
2662
2682
|
|
|
2663
2683
|
|
|
@@ -2667,8 +2687,8 @@ def syn_line_product(data):
|
|
|
2667
2687
|
|
|
2668
2688
|
|
|
2669
2689
|
if __name__ == "__main__":
|
|
2670
|
-
|
|
2671
|
-
|
|
2690
|
+
pass
|
|
2691
|
+
|
|
2672
2692
|
|
|
2673
2693
|
|
|
2674
2694
|
|
{sc_common_interface-3.0.5 → sc_common_interface-3.0.7}/sc_common_interface/McCommonInterface.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sc_common_interface-3.0.5 → sc_common_interface-3.0.7}/sc_common_interface/PostCommonInterface.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sc_common_interface-3.0.5 → sc_common_interface-3.0.7}/sc_common_interface.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{sc_common_interface-3.0.5 → sc_common_interface-3.0.7}/sc_common_interface.egg-info/requires.txt
RENAMED
|
File without changes
|
{sc_common_interface-3.0.5 → sc_common_interface-3.0.7}/sc_common_interface.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|