This commit is contained in:
libccy 2017-03-19 18:07:28 +08:00
parent 734b7e4987
commit ae8891bf00
1 changed files with 10 additions and 14 deletions

View File

@ -30265,7 +30265,7 @@
var goupdate=function(files,update){
if(game.download){
lib.version=update.version;
var script=lib.init.js(get.url('source',true),'game/source',function(){
var script=lib.init.js(get.url('source'),'game/source',function(){
script.remove();
var updates=window.noname_source_list;
delete window.noname_source_list;
@ -30349,7 +30349,7 @@
};
var script=lib.init.js(get.url('version',true),'game/update',function(){
var script=lib.init.js(get.url('version'),'game/update',function(){
script.remove();
var update=window.noname_update;
delete window.noname_update;
@ -30463,7 +30463,7 @@
else if(game.download){
button2.innerHTML='正在检查更新';
button2.disabled=true;
var script=lib.init.js(get.url('source',true),'game/asset',function(){
var script=lib.init.js(get.url('source'),'game/asset',function(){
script.remove();
var updates=window.noname_asset_list;
delete window.noname_asset_list;
@ -36956,23 +36956,19 @@
return '是否发动【'+get.skillTranslation(skill,player)+'】?';
}
},
url:function(tag,rand){
var str='';
if(rand){
str='?rand='+get.id();
}
url:function(tag){
if(lib.config.debug){
switch(tag){
case 'version':return lib.sourceURL.replace(/\$version\$/,'master')+str;
case 'source':return lib.sourceURL.replace(/\$version\$/,'master')+str;
default:return lib.updateURL.replace(/\$version\$/,'master')+str;
case 'version':return lib.sourceURL.replace(/\$version\$/,'master');
case 'source':return lib.sourceURL.replace(/\$version\$/,'master');
default:return lib.updateURL.replace(/\$version\$/,'master');
}
}
else{
switch(tag){
case 'version':return lib.sourceURL.replace(/\$version\$/,'master')+str;
case 'source':return lib.sourceURL.replace(/\$version\$/,'v'+lib.version)+str;
default:return lib.updateURL.replace(/\$version\$/,'v'+lib.version)+str;
case 'version':return lib.sourceURL.replace(/\$version\$/,'master');
case 'source':return lib.sourceURL.replace(/\$version\$/,'v'+lib.version);
default:return lib.updateURL.replace(/\$version\$/,'v'+lib.version);
}
}
},