1
This commit is contained in:
parent
b982c812d9
commit
c17699e9c1
@ -226,7 +226,12 @@ class Hero extends BaseModel {
|
|||||||
public static function toDto($row)
|
public static function toDto($row)
|
||||||
{
|
{
|
||||||
$attr = emptyReplace(json_decode($row['rand_attr'], true), array());
|
$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;
|
// $lockType = 0;
|
||||||
// $unlockTime = 0;
|
// $unlockTime = 0;
|
||||||
// if ($row['lock_type'] != 0 && $row['unlock_time'] - myself()->_getNowTime() > 0) {
|
// if ($row['lock_type'] != 0 && $row['unlock_time'] - myself()->_getNowTime() > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user