Commit e37fcb24 authored by liuxinjun's avatar liuxinjun

更新保存数据bug

parent dcf14c98
......@@ -1495,7 +1495,7 @@ var sdk = {
{
expireTime=24*60*60;
}
dataKey = sdk_conf.game+":"+dataType+":"+dataKey;
dataKey = sdk_conf.game+":"+dataType+":"+this.getUser().uid+":"+dataKey;
self.setLocalCache(dataKey,JSON.stringify(data),expireTime);
console.log("setToServer "+dataKey + " value "+JSON.stringify(data));
this.Get(this.ip2 + this.set, { key: dataKey,data: JSON.stringify(data),data_type:dataType,expireTime:String(expireTime)}, function (d) {
......@@ -1525,7 +1525,7 @@ var sdk = {
getFromServer: function(dataKey,dataType,data,callbackFunction){
var self = this;
dataKey = sdk_conf.game+":"+dataType+":"+dataKey;
dataKey = sdk_conf.game+":"+dataType+":"+this.getUser().uid+":"+dataKey;
var cacheData = this.getLocalCache(dataKey)
console.log("getFromServer "+dataKey+" 本地获取值:"+cacheData);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment