Commit 80723e05 authored by nanahira's avatar nanahira

fix

parent 180a36a6
Pipeline #6506 failed with stages
in 6 minutes and 40 seconds
...@@ -2211,6 +2211,10 @@ ygopro.ctos_follow 'JOIN_GAME', true, (buffer, info, client, server, datas)-> ...@@ -2211,6 +2211,10 @@ ygopro.ctos_follow 'JOIN_GAME', true, (buffer, info, client, server, datas)->
matchPermitRes = await axios.get settings.modules.arena_mode.check_permit, matchPermitRes = await axios.get settings.modules.arena_mode.check_permit,
responseType: 'json' responseType: 'json'
timeout: 3000 timeout: 3000
params:
username: client.name,
password: info.pass,
arena: settings.modules.arena_mode.mode
match_permit = matchPermitRes.data match_permit = matchPermitRes.data
catch e catch e
log.warn "match permit fail #{e.toString()}" log.warn "match permit fail #{e.toString()}"
...@@ -2263,6 +2267,10 @@ ygopro.ctos_follow 'JOIN_GAME', true, (buffer, info, client, server, datas)-> ...@@ -2263,6 +2267,10 @@ ygopro.ctos_follow 'JOIN_GAME', true, (buffer, info, client, server, datas)->
userDataRes = await axios.get userUrl, userDataRes = await axios.get userUrl,
responseType: 'json' responseType: 'json'
timeout: 10000 timeout: 10000
params:
api_key: settings.modules.mycard.auth_key,
api_username: client.name,
skip_track_visit: true
userData = userDataRes.data userData = userDataRes.data
#console.log userData #console.log userData
catch e catch e
......
...@@ -2915,7 +2915,12 @@ ...@@ -2915,7 +2915,12 @@
try { try {
matchPermitRes = (await axios.get(settings.modules.arena_mode.check_permit, { matchPermitRes = (await axios.get(settings.modules.arena_mode.check_permit, {
responseType: 'json', responseType: 'json',
timeout: 3000 timeout: 3000,
params: {
username: client.name,
password: info.pass,
arena: settings.modules.arena_mode.mode
}
})); }));
match_permit = matchPermitRes.data; match_permit = matchPermitRes.data;
} catch (error1) { } catch (error1) {
...@@ -2987,7 +2992,12 @@ ...@@ -2987,7 +2992,12 @@
//console.log(userUrl) //console.log(userUrl)
userDataRes = (await axios.get(userUrl, { userDataRes = (await axios.get(userUrl, {
responseType: 'json', responseType: 'json',
timeout: 10000 timeout: 10000,
params: {
api_key: settings.modules.mycard.auth_key,
api_username: client.name,
skip_track_visit: true
}
})); }));
userData = userDataRes.data; userData = userDataRes.data;
} catch (error1) { } catch (error1) {
......
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