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