1
This commit is contained in:
parent
2086feba8d
commit
85cc5bfb32
@ -101,9 +101,6 @@ class UserController extends BaseAuthedController {
|
|||||||
$this->_addItems($items,$awardService,$propertyChgService);
|
$this->_addItems($items,$awardService,$propertyChgService);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function test(){
|
|
||||||
$this->addChip();
|
|
||||||
}
|
|
||||||
private function addChip(){
|
private function addChip(){
|
||||||
$itemMeta = \mt\Item::getMetaListByType(\mt\Item::CHIP_TYPE);
|
$itemMeta = \mt\Item::getMetaListByType(\mt\Item::CHIP_TYPE);
|
||||||
$list1 = [];
|
$list1 = [];
|
||||||
@ -371,29 +368,13 @@ class UserController extends BaseAuthedController {
|
|||||||
'token_id'=>$hero_token_id
|
'token_id'=>$hero_token_id
|
||||||
));
|
));
|
||||||
|
|
||||||
// $gun_token_id = Nft::addNft(\mt\Item::get($gunDb['gun_id']));
|
$gun_token_id = Nft::addNft(\mt\Item::get($gunDb['gun_id']));
|
||||||
// Gun::update($gunDb['idx'],array(
|
Gun::update($gunDb['idx'],array(
|
||||||
// 'token_id'=>$gun_token_id
|
'token_id'=>$gun_token_id
|
||||||
// ));
|
));
|
||||||
$gun_token_id = myself()->_getNowTime()+2;
|
|
||||||
$tokenType = Nft::getTokenType(\mt\Item::get($gunDb['gun_id']));
|
|
||||||
SqlHelper::insert(
|
|
||||||
myself()->_getMarketMysql(),
|
|
||||||
't_nft',
|
|
||||||
array(
|
|
||||||
'token_id' => $gun_token_id,
|
|
||||||
'token_type' => $tokenType,
|
|
||||||
'game_id' => 2006,
|
|
||||||
'item_id' => \mt\Item::get($gunDb['gun_id'])['id'],
|
|
||||||
'owner_address' => myself()->_getOpenId(),
|
|
||||||
'createtime' => myself()->_getNowTime(),
|
|
||||||
'modifytime' => myself()->_getNowTime(),
|
|
||||||
)
|
|
||||||
);
|
|
||||||
Gun::update($gunDb['idx'],array(
|
Gun::update($gunDb['idx'],array(
|
||||||
'token_id'=>$gun_token_id
|
'token_id'=>$gun_token_id
|
||||||
));
|
));
|
||||||
|
|
||||||
$propertyChgService = new services\PropertyChgService();
|
$propertyChgService = new services\PropertyChgService();
|
||||||
$propertyChgService->addUserChg();
|
$propertyChgService->addUserChg();
|
||||||
$propertyChgService->addHeroChg();
|
$propertyChgService->addHeroChg();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user