1
This commit is contained in:
parent
284c624169
commit
1ef5fc42ea
@ -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();
|
||||||
|
@ -127,13 +127,10 @@ class Gun extends BaseModel {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if ($row) {
|
|
||||||
$cb($row);
|
}
|
||||||
}
|
if ($row) {
|
||||||
}else{
|
$cb($row);
|
||||||
if ($row) {
|
|
||||||
$cb($row);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
);
|
);
|
||||||
|
@ -63,11 +63,8 @@ class UserSeasonRing extends BaseModel
|
|||||||
if ($row) {
|
if ($row) {
|
||||||
$cb($row);
|
$cb($row);
|
||||||
}
|
}
|
||||||
}else{
|
|
||||||
if ($row) {
|
|
||||||
$cb($row);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user