1
This commit is contained in:
parent
88fbf9b974
commit
2e9ae0ccee
@ -38,12 +38,12 @@ class Fragment extends BaseModel
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static function oldToDto($row){
|
public static function oldToDto($row){
|
||||||
$itemMeta = mt\Item::get($row['item_id']);
|
$itemMeta = mt\Item::get($row['token_id']);
|
||||||
$dto = array();
|
$dto = array();
|
||||||
if ($itemMeta){
|
if ($itemMeta){
|
||||||
$dto = array(
|
$dto = array(
|
||||||
'token_id' => $row['token_id'],
|
'token_id' => $row['token_id'],
|
||||||
'item_id' => $row['item_id'],
|
'item_id' => $row['token_id'],
|
||||||
'type' => $itemMeta['sub_type'],
|
'type' => $itemMeta['sub_type'],
|
||||||
'parts' => substr($itemMeta['id'],-2,1),
|
'parts' => substr($itemMeta['id'],-2,1),
|
||||||
'balance' => $row['balance'],
|
'balance' => $row['balance'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user