修复英雄体力问题
This commit is contained in:
parent
e8e38e4aec
commit
f37d62cfe9
@ -39,6 +39,7 @@ class Hero extends BaseModel {
|
||||
|
||||
public static function addHero($heroMeta)
|
||||
{
|
||||
$realHeroMeta = mt\Hero::get($heroMeta['id']);
|
||||
SqlHelper::upsert(
|
||||
myself()->_getSelfMysql(),
|
||||
't_hero',
|
||||
@ -52,7 +53,7 @@ class Hero extends BaseModel {
|
||||
'account_id' => myself()->_getAccountId(),
|
||||
'hero_id' => $heroMeta['id'],
|
||||
'hero_lv' => 1,
|
||||
'hero_tili' => $heroMeta['tili'],
|
||||
'hero_tili' => $realHeroMeta ? $realHeroMeta['tili'] : 0,
|
||||
#'skin_id' => $defSkin,
|
||||
'skill_lv1' => 1,
|
||||
'skill_lv2' => 1,
|
||||
|
Loading…
x
Reference in New Issue
Block a user