This commit is contained in:
hujiabin 2022-11-01 19:56:51 +08:00
parent 284c624169
commit 1ef5fc42ea
4 changed files with 14 additions and 24 deletions

View File

@ -367,15 +367,14 @@ class UserController extends BaseAuthedController {
)); ));
$hero_token_id = Nft::addNft(\mt\Item::get($heroDb['hero_id'])); $hero_token_id = Nft::addNft(\mt\Item::get($heroDb['hero_id']));
Hero::update($heroDb['idx'],array( Hero::update($heroDb['idx'],array(
'token_id'=>$hero_token_id 'token_id'=>$hero_token_id,
'account_id' => null
)); ));
$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,
)); 'account_id' => null
Gun::update($gunDb['idx'],array(
'token_id'=>$gun_token_id
)); ));
$propertyChgService = new services\PropertyChgService(); $propertyChgService = new services\PropertyChgService();
$propertyChgService->addUserChg(); $propertyChgService->addUserChg();

View File

@ -127,13 +127,10 @@ class Gun extends BaseModel {
) )
); );
} }
if ($row) {
$cb($row); }
} if ($row) {
}else{ $cb($row);
if ($row) {
$cb($row);
}
} }
} }
} }

View File

@ -120,13 +120,10 @@ class Hero extends BaseModel {
); );
User::upsertHeadList($itemMeta); User::upsertHeadList($itemMeta);
} }
if ($row) {
$cb($row); }
} if ($row) {
} else { $cb($row);
if ($row) {
$cb($row);
}
} }
} }
} }
@ -283,7 +280,7 @@ class Hero extends BaseModel {
} }
SqlHelper::insert( SqlHelper::insert(
myself()->_getSelfMysql(), $conn,
't_hero', 't_hero',
$fieldsKv $fieldsKv
); );

View File

@ -63,11 +63,8 @@ class UserSeasonRing extends BaseModel
if ($row) { if ($row) {
$cb($row); $cb($row);
} }
}else{
if ($row) {
$cb($row);
}
} }
} }
} }