1
This commit is contained in:
parent
155258c96f
commit
6d5ff76434
@ -253,15 +253,7 @@ class UserController extends BaseAuthedController {
|
|||||||
$haveHeadHeroList[rand() % count($haveHeadHeroList)]['hero_head'] : 0;
|
$haveHeadHeroList[rand() % count($haveHeadHeroList)]['hero_head'] : 0;
|
||||||
}
|
}
|
||||||
//Hero::randHero($heroUniId, $heroId);
|
//Hero::randHero($heroUniId, $heroId);
|
||||||
SqlHelper::upsert
|
$fields = array(
|
||||||
($this->_getSelfMysql(),
|
|
||||||
't_user',
|
|
||||||
array(
|
|
||||||
'account_id' => $this->_getAccountId()
|
|
||||||
),
|
|
||||||
array(
|
|
||||||
),
|
|
||||||
array(
|
|
||||||
'account_id' => $this->_getAccountId(),
|
'account_id' => $this->_getAccountId(),
|
||||||
'channel' => $this->_getChannel(),
|
'channel' => $this->_getChannel(),
|
||||||
'name' => $userName,
|
'name' => $userName,
|
||||||
@ -286,7 +278,20 @@ class UserController extends BaseAuthedController {
|
|||||||
'createtime' => $this->_getNowTime(),
|
'createtime' => $this->_getNowTime(),
|
||||||
'modifytime' => $this->_getNowTime(),
|
'modifytime' => $this->_getNowTime(),
|
||||||
'last_login_time' => $this->_getNowTime(),
|
'last_login_time' => $this->_getNowTime(),
|
||||||
)
|
);
|
||||||
|
if ($this->_getChannel() == BC_CHANNEL) {
|
||||||
|
$fields['address'] = $this->_getOpenId();
|
||||||
|
}
|
||||||
|
|
||||||
|
SqlHelper::upsert
|
||||||
|
($this->_getSelfMysql(),
|
||||||
|
't_user',
|
||||||
|
array(
|
||||||
|
'account_id' => $this->_getAccountId()
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
),
|
||||||
|
$fields
|
||||||
);
|
);
|
||||||
$awardService = new services\AwardService();
|
$awardService = new services\AwardService();
|
||||||
$propertyChgService = new services\PropertyChgService();
|
$propertyChgService = new services\PropertyChgService();
|
||||||
@ -821,15 +826,7 @@ class UserController extends BaseAuthedController {
|
|||||||
|
|
||||||
private function createNewUserV2($userName){
|
private function createNewUserV2($userName){
|
||||||
$currSeasonMeta = mt\RankSeason::getCurrentSeason();
|
$currSeasonMeta = mt\RankSeason::getCurrentSeason();
|
||||||
SqlHelper::upsert
|
$fields = array(
|
||||||
($this->_getSelfMysql(),
|
|
||||||
't_user',
|
|
||||||
array(
|
|
||||||
'account_id' => $this->_getAccountId()
|
|
||||||
),
|
|
||||||
array(
|
|
||||||
),
|
|
||||||
array(
|
|
||||||
'account_id' => $this->_getAccountId(),
|
'account_id' => $this->_getAccountId(),
|
||||||
'channel' => $this->_getChannel(),
|
'channel' => $this->_getChannel(),
|
||||||
'name' => $userName,
|
'name' => $userName,
|
||||||
@ -846,7 +843,20 @@ class UserController extends BaseAuthedController {
|
|||||||
'createtime' => $this->_getNowTime(),
|
'createtime' => $this->_getNowTime(),
|
||||||
'modifytime' => $this->_getNowTime(),
|
'modifytime' => $this->_getNowTime(),
|
||||||
'last_login_time' => $this->_getNowTime(),
|
'last_login_time' => $this->_getNowTime(),
|
||||||
)
|
);
|
||||||
|
if ($this->_getChannel() == BC_CHANNEL) {
|
||||||
|
$fields['address'] = $this->_getOpenId();
|
||||||
|
}
|
||||||
|
|
||||||
|
SqlHelper::upsert
|
||||||
|
($this->_getSelfMysql(),
|
||||||
|
't_user',
|
||||||
|
array(
|
||||||
|
'account_id' => $this->_getAccountId()
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
),
|
||||||
|
$fields
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user