This commit is contained in:
hujiabin 2024-01-25 16:15:55 +08:00
parent b982c812d9
commit c17699e9c1

View File

@ -226,7 +226,12 @@ class Hero extends BaseModel {
public static function toDto($row)
{
$attr = emptyReplace(json_decode($row['rand_attr'], true), array());
if (!$attr){
$attr = self::getRandAttr($row['hero_id']);
self::update($row['idx'],array(
'rand_attr'=>json_encode($attr)
));
}
// $lockType = 0;
// $unlockTime = 0;
// if ($row['lock_type'] != 0 && $row['unlock_time'] - myself()->_getNowTime() > 0) {