1
This commit is contained in:
parent
48ea55033d
commit
fdbce326c5
0
server/game2006service/services/FormulaService.js
Normal file
0
server/game2006service/services/FormulaService.js
Normal file
0
server/game2006service/tasks/damping.js
Normal file
0
server/game2006service/tasks/damping.js
Normal file
@ -114,6 +114,8 @@ class RankingController extends BaseAuthedController {
|
||||
|
||||
public function resetRankGainAward(){
|
||||
$userInfo = $this->_getOrmUserInfo();
|
||||
$lastSeasonRank = $userInfo['rank'];
|
||||
$lastSeasonScore = $userInfo['score'];
|
||||
$currSeasonMeta = mt\RankSeason::getCurrentSeason();
|
||||
if ($currSeasonMeta && $userInfo['last_season_id'] > 0 && $currSeasonMeta['id'] > $userInfo['last_season_id']) {
|
||||
$rank = $userInfo['rank'];
|
||||
@ -140,6 +142,13 @@ class RankingController extends BaseAuthedController {
|
||||
}
|
||||
$this->_setV(TN_RANK_STATUS, 0, 0);
|
||||
$this->_rspData([
|
||||
'data'=> array(
|
||||
'last_rank'=>$lastSeasonRank,
|
||||
'last_score'=>$lastSeasonScore,
|
||||
'current_rank'=>$dropRankMeta['id'],
|
||||
'current_score'=>$dropRankMeta['rank_score'],
|
||||
'award' => $award
|
||||
),
|
||||
'property_chg' => $propertyChgService->toDto(),
|
||||
]);
|
||||
}
|
||||
|
@ -28,7 +28,7 @@ class NftActive extends BaseModel
|
||||
'account_id' => myself()->_getAccountId(),
|
||||
'uniid' =>$data['uniid'],
|
||||
'token_id' =>$data['token_id']?$data['token_id']:'',
|
||||
'daytime' =>strtotime(date('Y-m-d',myself()->_getNowTime())),
|
||||
'daytime' =>myself()->_getDaySeconds(myself()->_getNowTime()),
|
||||
'token_type' =>$data['token_type'],
|
||||
'createtime' => myself()->_getNowTime(),
|
||||
'modifytime' => myself()->_getNowTime(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user