This commit is contained in:
aozhiwei 2021-12-30 17:41:26 +08:00
parent 47cbe1b215
commit 9f3f3fde5a

View File

@ -35,7 +35,7 @@ class Hero extends BaseModel {
public static function toDto($row)
{
$attr = emptyReplace(json_decode($row['attr'], true), array());
$attr = emptyReplace(json_decode($row['rand_attr'], true), array());
$lockType = 0;
$lockTime = 0;
if ($row['lock_type'] != 0 && $row['unlock_time'] - myself()->_getNowTime() > 0) {
@ -82,7 +82,7 @@ class Hero extends BaseModel {
#'skin_id' => $defSkin,
'skill_lv1' => 1,
'skill_lv2' => 1,
'attr' => '[]',
'rand_attr' => '[]',
'lock_type' => self::NO_LOCK,
'unlock_time' => 0,
'unlock_trade_time' => 0,