1
This commit is contained in:
parent
cd74a62a21
commit
3c0f258fb0
@ -49,6 +49,14 @@ class UserController extends BaseAuthedController {
|
||||
{
|
||||
$initRankMeta = mt\Rank::getInitRank();
|
||||
$currSeasonMeta = mt\Season::getCurrentSeason();
|
||||
{
|
||||
foreach (mt\Parameter::getListValue('creator_hero_id') as $heroId) {
|
||||
$heroMeta = mt\Hero::get($heroId);
|
||||
if ($heroMeta) {
|
||||
Hero::addHero($heroMeta);
|
||||
}
|
||||
}
|
||||
}
|
||||
SqlHelper::upsert
|
||||
($this->_getSelfMysql(),
|
||||
't_user',
|
||||
@ -60,7 +68,7 @@ class UserController extends BaseAuthedController {
|
||||
array(
|
||||
'account_id' => $this->_getAccountId(),
|
||||
'name' => $userName,
|
||||
'sex' => 2,
|
||||
'sex' => rand() % 2,
|
||||
#'avatar_url' => $avatar_url,
|
||||
'gold' => 10000 * 10000,
|
||||
'diamond' => 10000 * 10000,
|
||||
@ -78,14 +86,6 @@ class UserController extends BaseAuthedController {
|
||||
'modifytime' => $this->_getNowTime(),
|
||||
)
|
||||
);
|
||||
{
|
||||
foreach (mt\Parameter::getListValue('creator_hero_id') as $heroId) {
|
||||
$heroMeta = mt\Hero::get($heroId);
|
||||
if ($heroMeta) {
|
||||
Hero::addHero($heroMeta);
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
$this->_addItems(array(
|
||||
array(
|
||||
|
@ -15,6 +15,7 @@ class User extends BaseModel {
|
||||
'head_frame' => $row['head_frame'],
|
||||
'level' => $row['level'],
|
||||
'exp' => $row['exp'],
|
||||
'max_exp' => $row['exp'] + 1000,
|
||||
'rank' => $row['rank'],
|
||||
'score' => $row['score'],
|
||||
'gold' => $row['gold'],
|
||||
@ -37,6 +38,7 @@ class User extends BaseModel {
|
||||
'head_frame' => $row['head_frame'],
|
||||
'level' => $row['level'],
|
||||
'exp' => $row['exp'],
|
||||
'max_exp' => $row['exp'] + 1000,
|
||||
'rank' => $row['rank'],
|
||||
'score' => $row['score'],
|
||||
'gold' => $row['gold'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user