|
@@ -1,8 +1,8 @@
|
|
|
import json
|
|
|
import requests
|
|
|
from hytest.common import *
|
|
|
-from pandas.io.formats.style import properties_args
|
|
|
-from sympy.physics.vector.printing import params
|
|
|
+#from pandas.io.formats.style import properties_args
|
|
|
+#from sympy.physics.vector.printing import params
|
|
|
|
|
|
from cfg import cfg
|
|
|
from bs4 import BeautifulSoup
|
|
@@ -2049,14 +2049,14 @@ class APIMgr():
|
|
|
#获取订阅关键词-超级订阅用户
|
|
|
def getkey_member(self):
|
|
|
headers = GSTORE['headers']
|
|
|
- data = {
|
|
|
+ params = {
|
|
|
"isEnt": "false",
|
|
|
"ent_buy_member": 0,
|
|
|
"ent_buy_vip": 0,
|
|
|
"powerSource": 0,
|
|
|
"userPower": 0
|
|
|
}
|
|
|
- response = self.s.post(f"{cfg.target_host}/jyapi/jybx/subscribe/vType/getKey", headers=headers, data=data)
|
|
|
+ response = self.s.post(f"{cfg.target_host}/jyapi/jybx/subscribe/vType/getKey", headers=headers, params=params)
|
|
|
return response
|
|
|
#修改用户订阅设置-超级订阅用户
|
|
|
def subscription_setting_update(self, area_data=None):
|
|
@@ -2136,6 +2136,24 @@ class APIMgr():
|
|
|
}
|
|
|
response = self.s.post(f"{cfg.target_host}/jyapi/jybx/subscribe/vType/update", headers=headers, json=json)
|
|
|
return response
|
|
|
+ #客服工作台-话术列表
|
|
|
+ def commonphrases_classlist(self):
|
|
|
+ headers = GSTORE['headers']
|
|
|
+ json={
|
|
|
+ "query": ""
|
|
|
+ }
|
|
|
+ response = self.s.post(f"{cfg.target_host}/jyapi/knowledge/commonPhrase/commonPhrasesClassList", headers=headers, json=json)
|
|
|
+ return response
|
|
|
+ #推送数据浏览状态修改-超级订阅用户
|
|
|
+ def pushdata_setread_vtype(self):
|
|
|
+ headers = GSTORE['headers']
|
|
|
+ params={
|
|
|
+ "vsid": "69984499278",
|
|
|
+ "isEnt": "false"
|
|
|
+ }
|
|
|
+ response = self.s.post(f"{cfg.target_host}/jyapi/jybx/subscribe/vType/setRead",headers=headers, params=params)
|
|
|
+ return response
|
|
|
+
|
|
|
|
|
|
|
|
|
|