修复英雄体力问题
This commit is contained in:
parent
a9da94e47c
commit
9432aa8235
@ -38,6 +38,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',
|
||||||
@ -51,6 +52,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' => $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