1
This commit is contained in:
parent
9335782720
commit
76a6c9dec7
@ -30,40 +30,6 @@ class Chip extends BaseModel
|
|||||||
|
|
||||||
public static function getChipList($cb)
|
public static function getChipList($cb)
|
||||||
{
|
{
|
||||||
// $nft = SqlHelper::ormSelect(
|
|
||||||
// myself()->_getMarketMysql(),
|
|
||||||
// 't_nft',
|
|
||||||
// array(
|
|
||||||
// 'owner_address' => myself()->_getOpenId(),
|
|
||||||
// 'token_type' =>Nft::CHIP_TYPE,
|
|
||||||
// 'deleted' => 0
|
|
||||||
// )
|
|
||||||
// );
|
|
||||||
// foreach ($nft as $nftDb) {
|
|
||||||
// $row = SqlHelper::ormSelectOne(
|
|
||||||
// myself()->_getSelfMysql(),
|
|
||||||
// 't_chip',
|
|
||||||
// array(
|
|
||||||
// 'token_id' => $nftDb['token_id'],
|
|
||||||
// )
|
|
||||||
// );
|
|
||||||
// if (!$row) {
|
|
||||||
// $itemMeta = mt\Item::get($nftDb['item_id']);
|
|
||||||
// if ($itemMeta) {
|
|
||||||
// self::addChip($nftDb['item_id'], $nftDb['token_id']);
|
|
||||||
// $row = SqlHelper::ormSelectOne(
|
|
||||||
// myself()->_getSelfMysql(),
|
|
||||||
// 't_chip',
|
|
||||||
// array(
|
|
||||||
// 'token_id' => $nftDb['token_id'],
|
|
||||||
// )
|
|
||||||
// );
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// if ($row) {
|
|
||||||
// $cb($row);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
SqlHelper::ormSelect(
|
SqlHelper::ormSelect(
|
||||||
myself()->_getSelfMysql(),
|
myself()->_getSelfMysql(),
|
||||||
't_chip',
|
't_chip',
|
||||||
@ -83,11 +49,6 @@ class Chip extends BaseModel
|
|||||||
'token_id' => $nftDb['token_id'],
|
'token_id' => $nftDb['token_id'],
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
error_log(json_encode(
|
|
||||||
array(
|
|
||||||
'nft___________token_________id'=> $nftDb['token_id']
|
|
||||||
)
|
|
||||||
));
|
|
||||||
if (!$row) {
|
if (!$row) {
|
||||||
$itemMeta = mt\Item::get($nftDb['item_id']);
|
$itemMeta = mt\Item::get($nftDb['item_id']);
|
||||||
if ($itemMeta) {
|
if ($itemMeta) {
|
||||||
@ -100,7 +61,6 @@ class Chip extends BaseModel
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if ($row) {
|
if ($row) {
|
||||||
$cb($row);
|
$cb($row);
|
||||||
@ -173,11 +133,6 @@ class Chip extends BaseModel
|
|||||||
|
|
||||||
public static function addChip($itemId, $tokenId)
|
public static function addChip($itemId, $tokenId)
|
||||||
{
|
{
|
||||||
error_log(json_encode(
|
|
||||||
array(
|
|
||||||
'token_____id'=> $tokenId
|
|
||||||
)
|
|
||||||
));
|
|
||||||
return self::internalAddItem(
|
return self::internalAddItem(
|
||||||
myself()->_getMysql($tokenId),
|
myself()->_getMysql($tokenId),
|
||||||
$itemId,
|
$itemId,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user