1
This commit is contained in:
parent
55dc53db7d
commit
9ca5642e27
@ -26,6 +26,7 @@ require_once('services/SeasonService.php');
|
||||
require_once('services/NameService.php');
|
||||
require_once('services/ChipPageService.php');
|
||||
require_once('services/LogService.php');
|
||||
require_once('services/NftService.php');
|
||||
|
||||
use phpcommon\SqlHelper;
|
||||
use models\User;
|
||||
@ -1128,6 +1129,11 @@ class UserController extends BaseAuthedController {
|
||||
$initRank = \mt\Parameter::getVal($this->init_rank,1);
|
||||
$RankMeta = mt\Rank::getRankById($initRank);
|
||||
$initElo = \mt\Parameter::getVal($this->init_elo,1200);
|
||||
$is_gain_item = 0;
|
||||
if (services\NftService::hasLockedNft($this->_getAddress())){
|
||||
$is_gain_item = 1;
|
||||
}
|
||||
|
||||
$fields = array(
|
||||
'account_id' => $this->_getAccountId(),
|
||||
'channel' => $this->_getChannel(),
|
||||
@ -1148,6 +1154,7 @@ class UserController extends BaseAuthedController {
|
||||
'score' => $RankMeta ? $RankMeta['rank_score'] : 300,
|
||||
'history_best_score' => $RankMeta ? $RankMeta['rank_score'] : 300,
|
||||
'elo' => $initElo,
|
||||
'is_gain_item' => $is_gain_item,
|
||||
);
|
||||
if ($this->_getChannel() == BC_CHANNEL) {
|
||||
$fields['address'] = $this->_getOpenId();
|
||||
|
Loading…
x
Reference in New Issue
Block a user