Commit 96e4ee12 authored by 张淑琴's avatar 张淑琴

增加丢失函数

parent 7418a9eb
......@@ -21,10 +21,24 @@ class im_request(BaseRequest):
self.params["conversation_id"] = conversation_id
return self.api_send(self.data["auto_msg"])
def send_msg(self, conversation_id, is_system, referrer, referrer_id, msg_type, content, extra):
self.params["conversation_id"] = conversation_id
self.params["is_system"] = is_system
self.params["referrer"] = referrer
self.params["referrer_id"] = referrer_id
self.params["msg_type"] = msg_type
self.params["content"] = content
self.params["extra"] = extra
return self.api_send(self.data["send_msg"])
if __name__ == '__main__':
print(im_request().conversation_detail("beijing", 0, 4, 0, "message_home"))
print("第二个接口")
print(im_request().auto_msg("7.42.2","1B519701-A4F5-453E-9D99-140B5AF697A0","2021/04/22/1722/70a1791606d5",368))
print("send_msg")
print(im_request().send_msg("368", 0, "message_home", "", 0, "您好,我想咨询一下", {}))
......
......@@ -24,4 +24,21 @@ auto_msg:
conversation_id: ${conversation_id}
json: {}
isLogin: 1 #需要登录的接口
\ No newline at end of file
isLogin: 1 #需要登录的接口
send_msg:
method: post
url: /api/im/send_msg
params: {}
data:
conversation_id: ${conversation_id}
is_system: ${is_system}
referrer: ${referrer}
referrer_id: ${referrer_id}
msg_type: ${msg_type}
content: ${content}
extra: ${extra}
json: {}
isLogin: 1 #需要登录的接口
develop_host:
# backend: http://backend.paas-develop.env
doctor: http://doctor.paas-develop.env
backend: http://backend.paas-develop.env
# doctor: http://doctor.paas-develop.env
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment