-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathBCMCreator.py
253 lines (253 loc) · 11.6 KB
/
BCMCreator.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
import requests
#编创协第三方接口授权:https://bcmcreator.cn/index.php?mod=OAuth#
#编创协接口开放平台:https://api.bcmcreator.cn/
def user_info(id):
url = 'https://api.bcmcreator.cn/user_base/user_info.php?id=' + str(id)
urlrequests = requests.get(url).text
return(urlrequests)
def user_info_local(id):
url = 'http://43.155.60.134:1625/user_base/user_info.php?id=' + str(id)
urlrequests = requests.get(url).text
return(urlrequests)
def user_matchinfo(id):
url = 'https://api.bcmcreator.cn/user_base/user_matchinfo.php?id=' + str(id)
urlrequests = requests.get(url).text
return(urlrequests)
def user_matchinfo_local(id):
url = 'http://43.155.60.134:1625/user_base/user_matchinfo.php?id=' + str(id)
urlrequests = requests.get(url).text
return(urlrequests)
def user_matchlogin(oacode,md5,sign,describe):
url = 'https://api.bcmcreator.cn/user_base/user_matchlogin.php'
data = {"oacode":oacode,"md5":md5,"sign":sign,"describe":describe}
urlrequests = requests.post(url,data=data).text
return(urlrequests)
def user_matchlogin_local(oacode,md5,sign,describe):
url = 'http://43.155.60.134:1625/user_base/user_matchlogin.php'
data = {"oacode":oacode,"md5":md5,"sign":sign,"describe":describe}
urlrequests = requests.post(url,data=data).text
return(urlrequests)
def match_info(t,md5,sign):
url = 'https://api.bcmcreator.cn/match_base/match_info.php'
data = {"t":t,"md5":md5,"sign":sign}
urlrequests = requests.post(url,data=data).text
return(urlrequests)
def match_info_local(t,md5,sign):
url = 'http:/43.155.60.134:1625/match_base/match_info.php'
data = {"t":t,"md5":md5,"sign":sign}
urlrequests = requests.post(url,data=data).text
return(urlrequests)
def match_enter(t,oacode,md5,sign):
url = 'https://api.bcmcreator.cn/match_base/match_enter.php'
data = {"t":t,"oacode":oacode,"md5":md5,"sign":sign}
urlrequests = requests.post(url,data=data).text
return(urlrequests)
def match_enter_local(t,oacode,md5,sign):
url = 'http://43.155.60.134:1625/match_base/match_enter.php'
data = {"t":t,"oacode":oacode,"md5":md5,"sign":sign}
urlrequests = requests.post(url,data=data).text
return(urlrequests)
def match_end(t,md5,sign):
url = 'https://api.bcmcreator.cn/match_base/match_end.php'
data = {"t":t,"md5":md5,"sign":sign}
urlrequests = requests.post(url,data=data).text
return(urlrequests)
def match_end_local(t,md5,sign):
url = 'http://43.155.60.134:1625/match_base/match_end.php'
data = {"t":t,"md5":md5,"sign":sign}
urlrequests = requests.post(url,data=data).text
return(urlrequests)
def user_info_code_Plus(code):
url = 'https://api.bcmcreator.cn/user_info.php?code=' + str(code)
urlrequests = requests.get(url).text
return(urlrequests)
def user_info_code_Plus_local(code):
url = 'http://43.155.60.134:1625/user_info.php?code=' + str(code)
urlrequests = requests.get(url).text
return(urlrequests)
def user_info_xjm_Plus(xjm):
url = 'https://api.bcmcreator.cn/user_info.php?xjm=' + str(xjm)
urlrequests = requests.get(url).text
return(urlrequests)
def user_info_xjm_Plus_local(xjm):
url = 'http://43.155.60.134:1625/user_info.php?xjm=' + str(xjm)
urlrequests = requests.get(url).text
return(urlrequests)
def user_destroyCode(code):
url = "https://api.bcmcreator.cn/user_destroyCode.php?code=" + str(code)
urlrequests = requests.get(url).text
return(urlrequests)
def user_destroyCode_local(code):
url = "http://43.155.60.134:1625/user_destroyCode.php?code=" + str(code)
urlrequests = requests.get(url).text
return(urlrequests)
def association_log(limit):
url = 'https://api.bcmcreator.cn/user_base/association_log.php?limit=' + str(limit)
urlrequests = requests.get(url).text
return(urlrequests)
def association_log_local(limit):
url = 'http://43.155.60.134:1625/user_base/association_log.php?limit=' + str(limit)
urlrequests = requests.get(url).text
return(urlrequests)
def association_log_uid(uid,limit):
url = 'https://api.bcmcreator.cn/user_base/association_log.php?limit=' + str(limit) + '&uid=' + str(uid)
urlrequests = requests.get(url).text
return(urlrequests)
def association_log_uid_local(uid,limit):
url = 'http://43.155.60.134:1625/user_base/association_log.php?limit=' + str(limit) + '&uid=' + str(uid)
urlrequests = requests.get(url).text
return(urlrequests)
def association_log_id(id,limit):
url = 'https://api.bcmcreator.cn/user_base/association_log.php?limit=' + str(limit) + '&id=' + str(id)
urlrequests = requests.get(url).text
return(urlrequests)
def association_log_id_local(id,limit):
url = 'http://43.155.60.134:1625/user_base/association_log.php?limit=' + str(limit) + '&id=' + str(id)
urlrequests = requests.get(url).text
return(urlrequests)
def association_log_allid(id,uid,limit):
url = 'https://api.bcmcreator.cn/user_base/association_log.php?limit=' + str(limit) + '&id=' + str(id)
urlrequests = requests.get(url).text
return(urlrequests)
def association_log_allid_local(id,uid,limit):
url = 'http://43.155.60.134:1625/user_base/association_log.php?limit=' + str(limit) + '&id=' + str(id)
urlrequests = requests.get(url).text
return(urlrequests)
def user_workdata(BcxOA):
data = {'code':str(BcxOA)}
url = 'https://api.bcmcreator.cn/user_base/user_workdata.php'
urlrequests = requests.post(url,data=data).text
return(urlrequests)
def user_workdata_local(BcxOA):
data = {'code':str(BcxOA)}
url = 'http://43.155.60.134:1625/user_base/user_workdata.php'
urlrequests = requests.post(url,data=data).text
return(urlrequests)
def user_workdata7():
url = 'https://api.bcmcreator.cn/user_base/user_workdata7.php'
urlrequests = requests.get(url).text
return(urlrequests)
def user_workdata7_local():
url = 'http://43.155.60.134:1625/user_base/user_workdata7.php'
urlrequests = requests.get(url).text
return(urlrequests)
def user_workintroduce(code):
url = f'https://api.bcmcreator.cn/user_base/user_workintroduce.php?code={code}'
urlrequests = requests.get(url).text
return(urlrequests)
def user_workintroduce_local(code):
url = f'http://43.155.60.134:1625/user_base/user_workintroduce.php?code={code}'
urlrequests = requests.get(url).text
return(urlrequests)
def robot(text,otherparty): #我 控 我 自 己
url = f'https://api.bcmcreator.cn/robot.php?text={text}&otherparty={otherparty}'
urlrequests = requests.get(url).text
return(urlrequests)
def robot_local(text,otherparty):
url = f'http://43.155.60.134:1625/robot.php?text={text}&otherparty={otherparty}'
urlrequests = requests.get(url).text
return(urlrequests)
def user_bcmlogin(user,pwd):
data = {'user':str(user),'pwd':str(pwd)}
url = 'https://api.bcmcreator.cn/login/user_bcmlogin.php'
urlrequests = requests.post(url,data=data).text
return(urlrequests)
def user_bcmlogin_local(user,pwd):
data = {'user':str(user),'pwd':str(pwd)}
url = 'http://43.155.60.134:1625/login/user_bcmlogin.php'
urlrequests = requests.post(url,data=data).text
return(urlrequests)
def qq_bcmlogin(rd):
url = f'https://api.bcmcreator.cn/login/qq_bcmlogin.php?rd={rd}'
urlrequests = requests.get(url).text
return(urlrequests)
def qq_bcmlogin_local(rd):
url = f'http://43.155.60.134:1625/login/qq_bcmlogin.php?rd={rd}'
urlrequests = requests.get(url).text
return(urlrequests)
def wx_bcmlogin(rd):
url = f'https://api.bcmcreator.cn/login/wx_bcmlogin.php?rd={rd}'
urlrequests = requests.get(url).text
return(urlrequests)
def wx_bcmlogin_local(rd):
url = f'http://43.155.60.134:1625/login/wx_bcmlogin.php?rd={rd}'
urlrequests = requests.get(url).text
return(urlrequests)
def code_bcmlogin(rd,code,parameter):
url = f'https://api.bcmcreator.cn/login/code_bcmlogin.php?rd={rd}&code={code}¶meter={parameter}'
urlrequests = requests.get(url).text
return(urlrequests)
def code_bcmlogin_local(rd,code,parameter):
url = f'http://43.155.60.134:1625/login/code_bcmlogin.php?rd={rd}&code={code}¶meter={parameter}'
urlrequests = requests.get(url).text
return(urlrequests)
def email(sign,md5,title,email,main,type):
data = {'sign':str(sign),'md5':str(md5),'title':str(title),'email':str(email),'main':str(main),'type':str(type)}
url = 'https://api.bcmcreator.cn/email.php'
urlrequests = requests.post(url,data=data).text
return(urlrequests)
def email_local(sign,md5,title,email,main,type):
data = {'sign':str(sign),'md5':str(md5),'title':str(title),'email':str(email),'main':str(main),'type':str(type)}
url = 'http://43.155.60.134:1625/email.php'
urlrequests = requests.post(url,data=data).text
return(urlrequests)
def match_query(id):
url = f'https://api.bcmcreator.cn/match_base/match_query.php?id={id}'
urlrequests = requests.get(url).text
return(urlrequests)
def match_query_local(id):
url = f'http://43.155.60.134:1625/match_base/match_query.php?id={id}'
urlrequests = requests.get(url).text
return(urlrequests)
def RoomChat(sender_id,room_id,message):
data = {"sender_id":str(sender_id),"room_id":str(room_id),"message":str(message)}
url = "https://api.bcmcreator.cn/chat/RoomChat.php"
urlrequests = requests.post(url,data=data).text
return(urlrequests)
def RoomChat_local(sender_id,room_id,message):
data = {"sender_id":str(sender_id),"room_id":str(room_id),"message":str(message)}
url = "http://43.155.60.134:1625/chat/RoomChat.php"
urlrequests = requests.post(url,data=data).text
return(urlrequests)
def GetChat(room_id,limit):
url = f"https://api.bcmcreator.cn/chat/getChat.php?room_id={room_id}&limit={limit}"
urlrequests = requests.get(url).text
return(urlrequests)
def GetChat_local(room_id,limit):
url = f"http://43.155.60.134:1625/chat/getChat.php?room_id={room_id}&limit={limit}"
urlrequests = requests.get(url).text
return(urlrequests)
def getChatUser(sender_id):
url = f"https://api.bcmcreator.cn/chat/getChatUser.php?sender_id={sender_id}"
urlrequests = requests.get(url).text
return(urlrequests)
def getChatUser_local(sender_id):
url = f"http://43.155.60.134:1625/chat/getChatUser.php?sender_id={sender_id}"
urlrequests = requests.get(url).text
return(urlrequests)
def getChatUser_user_name(user_name):
url = f"https://api.bcmcreator.cn/chat/getChatUser.php?user_name={user_name}"
urlrequests = requests.get(url).text
return(urlrequests)
def getChatUser_user_name_local(user_name):
url = f"http://43.155.60.134:1625/chat/getChatUser.php?user_name={user_name}"
urlrequests = requests.get(url).text
return(urlrequests)
def RoomChat_meid(sender_id,room_id,message,meid):
data = {"meid":str(meid),"sender_id":str(sender_id),"room_id":str(room_id),"message":str(message)}
url = "https://api.bcmcreator.cn/chat/RoomChat.php"
urlrequests = requests.post(url,data=data).text
return(urlrequests)
def RoomChat_meid_local(sender_id,room_id,message,meid):
data = {"meid":str(meid),"sender_id":str(sender_id),"room_id":str(room_id),"message":str(message)}
url = "http://43.155.60.134:1625/chat/RoomChat.php"
urlrequests = requests.post(url,data=data).text
return(urlrequests)
def getBlog():
url = "http://api.bcmcreator.cn/user_base/getBlog.php"
urlrequests = requests.get(url).text
return(urlrequests)
def getBlog_local():
url = "http://43.155.60.134:1625/user_base/getBlog.php"
urlrequests = requests.get(url).text
return(urlrequests)