屏蔽:处理玩家和军团信息接口
This commit is contained in:
@@ -50,10 +50,14 @@ export async function httpRequestForm(url: string, method: string, form: any, ti
|
||||
headers: {
|
||||
'content-type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
form,
|
||||
timeout,
|
||||
JSON: true
|
||||
}
|
||||
if(method == HTTP_METHOD.GET) {
|
||||
options['qs'] = form;
|
||||
} else if (method == HTTP_METHOD.POST) {
|
||||
options['form'] = form;
|
||||
}
|
||||
|
||||
try {
|
||||
let res = await request(options);
|
||||
|
||||
Reference in New Issue
Block a user