save
This commit is contained in:
parent
6aef67c2f6
commit
38e61da642
@ -123,10 +123,8 @@ func (cm *CacheMgr) LoadPlayerProfile(user *User, cb func(*PlayerProfile)) {
|
||||
}
|
||||
|
||||
func (cm *CacheMgr) AddCacheProfile(version int, playerProfile *PlayerProfile) {
|
||||
if _, exists := cm.cachePlayerProfiles[playerProfile.AccountId]; !exists {
|
||||
cm.cachePlayerProfiles[playerProfile.AccountId] = &CachePlayerProfile{
|
||||
version: version,
|
||||
data: playerProfile,
|
||||
}
|
||||
cm.cachePlayerProfiles[playerProfile.AccountId] = &CachePlayerProfile{
|
||||
version: version,
|
||||
data: playerProfile,
|
||||
}
|
||||
}
|
||||
|
@ -766,9 +766,7 @@ func (gm *GuildMgr) SetNameConsume(player *Player, itemId, itemNum int32, cb fun
|
||||
"item_num": q5.ToString(itemNum),
|
||||
}
|
||||
url := fmt.Sprintf("%s/webapp/index.php", mt.Table.Config.GetById(0).GetGameapiUrl())
|
||||
|
||||
f5.GetSysLog().Info("SetNameConsume url:%s, params:%+v\n", url, params)
|
||||
|
||||
f5.GetHttpCliMgr().SendJsStyleRequest(
|
||||
url,
|
||||
params,
|
||||
|
Loading…
x
Reference in New Issue
Block a user