prts-moonlit 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/gacha.html +2 -1
- package/index.html +2 -1
- package/ledger.html +2 -1
- package/package.json +1 -1
package/gacha.html
CHANGED
|
@@ -1110,9 +1110,10 @@ document.addEventListener('pointerdown',function(){ac()},{once:true});
|
|
|
1110
1110
|
}
|
|
1111
1111
|
function pull(manual){
|
|
1112
1112
|
if(!acct||!acct.k)return;
|
|
1113
|
+
if(manual)st('↻ 同步中…');
|
|
1113
1114
|
fetch(url()+'?ts='+Date.now(),{cache:'no-store'}).then(function(r){return r.text()}).then(function(x){
|
|
1114
1115
|
x=(x||'').replace(/=$/,'');
|
|
1115
|
-
if(!x){if(manual)st('☁
|
|
1116
|
+
if(!x){if(manual){st('☁ 云端还没有存档——正在上传本机数据…');push();}return;}
|
|
1116
1117
|
var rb;try{rb=JSON.parse(x)}catch(e){st('⚠ 云端数据格式异常');return;}
|
|
1117
1118
|
var lt=Number(localStorage.getItem(LT)||0);
|
|
1118
1119
|
if((rb.t||0)>lt){
|
package/index.html
CHANGED
|
@@ -2824,9 +2824,10 @@ boot();
|
|
|
2824
2824
|
}
|
|
2825
2825
|
function pull(manual){
|
|
2826
2826
|
if(!acct||!acct.k)return;
|
|
2827
|
+
if(manual)st('↻ 同步中…');
|
|
2827
2828
|
fetch(url()+'?ts='+Date.now(),{cache:'no-store'}).then(function(r){return r.text()}).then(function(x){
|
|
2828
2829
|
x=(x||'').replace(/=$/,'');
|
|
2829
|
-
if(!x){if(manual)st('☁
|
|
2830
|
+
if(!x){if(manual){st('☁ 云端还没有存档——正在上传本机数据…');push();}return;}
|
|
2830
2831
|
var rb;try{rb=JSON.parse(x)}catch(e){st('⚠ 云端数据格式异常');return;}
|
|
2831
2832
|
var lt=Number(localStorage.getItem(LT)||0);
|
|
2832
2833
|
if((rb.t||0)>lt){
|
package/ledger.html
CHANGED
|
@@ -1070,9 +1070,10 @@ window.LEDGER_BACKUP = [];
|
|
|
1070
1070
|
}
|
|
1071
1071
|
function pull(manual){
|
|
1072
1072
|
if(!acct||!acct.k)return;
|
|
1073
|
+
if(manual)st('↻ 同步中…');
|
|
1073
1074
|
fetch(url()+'?ts='+Date.now(),{cache:'no-store'}).then(function(r){return r.text()}).then(function(x){
|
|
1074
1075
|
x=(x||'').replace(/=$/,'');
|
|
1075
|
-
if(!x){if(manual)st('☁
|
|
1076
|
+
if(!x){if(manual){st('☁ 云端还没有存档——正在上传本机数据…');push();}return;}
|
|
1076
1077
|
var rb;try{rb=JSON.parse(x)}catch(e){st('⚠ 云端数据格式异常');return;}
|
|
1077
1078
|
var lt=Number(localStorage.getItem(LT)||0);
|
|
1078
1079
|
if((rb.t||0)>lt){
|