异步提交

This commit is contained in:
lxk0301
2021-03-20 20:10:29 +08:00
parent 97fbbd3051
commit afe55d4e22

View File

@@ -495,7 +495,7 @@ function shareUrl() {
$.shareId.push(data['data']);
console.log(`\n【京东账号${$.index}${$.nickName || $.UserName})的${$.name}好友互助码】${data['data']}\n`);
console.log(`此邀请码一天一变化,旧的不可用`)
await $.http.get({url: `https://code.c-hiang.cn/autocommit/mohe/insert/${data['data']}`, timeout: 10000}).then((resp) => {
$.http.get({url: `https://code.c-hiang.cn/autocommit/mohe/insert/${data['data']}`, timeout: 30000}).then((resp) => {
// console.log('resp', resp)
if (resp.statusCode === 200) {
try {