From b990852f338fa3e4f0441576b7f90161c1edfd00 Mon Sep 17 00:00:00 2001 From: libccy Date: Sat, 3 Jun 2017 19:28:49 +0800 Subject: [PATCH] v1.9.30.2 --- game/game.js | 32 +++++++++++++++++++------------- game/update.js | 6 +++--- 2 files changed, 22 insertions(+), 16 deletions(-) diff --git a/game/game.js b/game/game.js index f3e18713a..f90d7b7a0 100644 --- a/game/game.js +++ b/game/game.js @@ -26976,23 +26976,29 @@ } else{ if(key){ - if(value==undefined){ - if(mode==lib.config.mode) delete lib.storage[key]; - } - else{ - if(mode==lib.config.mode) lib.storage[key]=value; - } - game.getDB('data',mode,function(config){ - if(!config) config={}; + if(mode==lib.config.mode){ if(value==undefined){ - delete config[key]; + delete lib.storage[key]; } else{ - config[key]=value; + lib.storage[key]=value; } - config.version=lib.version; - game.putDB('data',mode,config); - }); + lib.storage.version=lib.version; + game.putDB('data',mode,lib.storage); + } + else{ + game.getDB('data',mode,function(config){ + if(!config) config={}; + if(value==undefined){ + delete config[key]; + } + else{ + config[key]=value; + } + config.version=lib.version; + game.putDB('data',mode,config); + }); + } } else{ game.putDB('data',mode,get.copy(lib.storage)); diff --git a/game/update.js b/game/update.js index 420aba91f..03fb25f59 100644 --- a/game/update.js +++ b/game/update.js @@ -1,11 +1,11 @@ window.noname_update={ - version:'1.9.30.1', - // update:'1.9.29', + version:'1.9.30.2', + update:'1.9.30', changeLog:[ 'bug修复', ], files:[ - // 'game/game.js', + 'game/game.js', // 'game/package.js', // 'game/config.js', // 'game/source.js',