1
This commit is contained in:
parent
131c8bd9b3
commit
3991edf55d
@ -70,6 +70,7 @@ class ChipPage extends BaseModel
|
||||
|
||||
public static function toDtoBattle($row){
|
||||
$data = emptyReplace(json_decode($row['data'], true), array());
|
||||
if ($data){
|
||||
foreach ($data as &$value){
|
||||
$chipDb = Chip::find($value['chip_id']);
|
||||
if ( !$chipDb ) {
|
||||
@ -80,6 +81,7 @@ class ChipPage extends BaseModel
|
||||
self::update($row['hero_uniid'],array(
|
||||
'data' => json_encode($data)
|
||||
));
|
||||
}
|
||||
$newRow = self::find($row['hero_uniid']);
|
||||
$newData = emptyReplace(json_decode($newRow['data'], true), array());
|
||||
$attrs = array();
|
||||
|
Loading…
x
Reference in New Issue
Block a user