shawenguan 1 yıl önce
ebeveyn
işleme
65fe758d06
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      Scripts/quark/quarkHelper.js

+ 2 - 2
Scripts/quark/quarkHelper.js

@@ -136,7 +136,7 @@ async function signIn(cookie){
     }
     if(signState["sign_daily"]){
         let amount = signState["sign_daily_reward"] / (1024 * 1024);
-        let progress = round(signState["sign_progress"] / signState["sign_target"] * 100, 2);
+        let progress = Math.floor(signState["sign_progress"] / signState["sign_target"] * 100);
         magicJS.logger.info(`- 今日已签到获取${amount}MB,进度${progress}%`);
         magicJS.notification.appendNotifyInfo(`🎉今日已签到获取${amount}MB,进度${progress}%`);
         return;
@@ -169,7 +169,7 @@ async function signIn(cookie){
             const body = response.body;
             magicJS.logger.log(JSON.stringify(body));
             if(body.code == 0){
-                let amount = body.data.sign_daily_reward / 2048;
+                let amount = Math.floor(body.data.sign_daily_reward / 2048);
                 magicJS.logger.info(`- 签到成功,获取到${amount}MB!`);
                 magicJS.notification.appendNotifyInfo(`🎉签到成功,获取到${amount}MB!`);
                 return amount;