From 607f6275fe273808277ea1c03ce832a32f31d3b2 Mon Sep 17 00:00:00 2001 From: Ctrlcvs <1509167646@qq.com> Date: Wed, 17 Aug 2022 23:12:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4ck=E6=9F=A5=E8=AF=A2=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E8=B0=83=E7=94=A8=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/user.js | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/model/user.js b/model/user.js index 239bb51..bb1a6be 100644 --- a/model/user.js +++ b/model/user.js @@ -30,12 +30,7 @@ export default class user { await this.cookie(this.e) this.miHoYoApi = new MihoYoApi(this.e); if(this.e.yuntoken){ - let yunres = await promiseRetry((retry, number) => { - return this.miHoYoApi.logyunGenshen().catch((e) => { - return retry(e); - }); - }, RETRY_OPTIONS); - + let yunres = await this.miHoYoApi.logyunGenshen(); let yundata = yunres.data if(yunres.retcode===0){ sumData["云原神"]={ @@ -46,11 +41,7 @@ export default class user { } } if(this.e.cookies){ - let mysres = await promiseRetry((retry, number) => { - return this.miHoYoApi.getTasksList().catch((e) => { - return retry(e); - }); - }, RETRY_OPTIONS); + let mysres = await this.miHoYoApi.getTasksList(); if(mysres.retcode===0){ sumData["米游社"]={ "米游币任务":mysres.data.can_get_points!=0?"未完成":"已完成", @@ -62,11 +53,7 @@ export default class user { } if(this.e.cookie){ for(let name of nameData){ - let resSign = await promiseRetry((retry, number) => { - return this.miHoYoApi.honkai3rdSignTask(name).catch((e) => { - return retry(e); - }); - }, RETRY_OPTIONS); + let resSign = await this.miHoYoApi.honkai3rdSignTask(name); if(resSign?.upData){ // console.log(resSign?.upData) for(let item of resSign?.upData){