This commit is contained in:
hujiabin 2022-11-03 21:18:20 +08:00
parent 88fbf9b974
commit 2e9ae0ccee

View File

@ -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'],