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::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::update($gunDb['idx'],array(
'token_id'=>$gun_token_id
));
Gun::update($gunDb['idx'],array(
'token_id'=>$gun_token_id
'token_id'=>$gun_token_id,
'account_id' => null
));
$propertyChgService = new services\PropertyChgService();
$propertyChgService->addUserChg();

View File

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

View File

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

View File

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