1
This commit is contained in:
parent
836d00d826
commit
cd24f5155d
@ -44,6 +44,18 @@ class SignController{
|
||||
return $arr;
|
||||
}
|
||||
|
||||
protected function getSeason($season_id)
|
||||
{
|
||||
$season_meta_table = require('../res/season@season.php');
|
||||
$season_meta = getSeasonConfig($season_meta_table, $season_id);
|
||||
$season = array(
|
||||
'number' => $season_meta['season_number'],
|
||||
'open_time' => $season_meta['time1'],
|
||||
'end_time' => $season_meta['time2'],
|
||||
);
|
||||
return $season;
|
||||
}
|
||||
|
||||
protected function getParameter($para_id)
|
||||
{
|
||||
$g_conf_para_cluster = require('../res/parameter@parameter.php');
|
||||
@ -383,12 +395,11 @@ class SignController{
|
||||
}
|
||||
//刷新赛季奖励状态
|
||||
$rowUser = $conn->execQueryOne('SELECT season_time, pass_status, integral ' .
|
||||
' FROM user WHERE accountid=:accountid;',
|
||||
array(
|
||||
':accountid' => $account_id,
|
||||
));
|
||||
|
||||
if (time() > $rowUser['season_time']) {
|
||||
' FROM user WHERE accountid=:accountid;',
|
||||
array(
|
||||
':accountid' => $account_id,
|
||||
));
|
||||
if (time() > $rowUser['season_time'] && $rowUser['season_time'] != 0) {
|
||||
$user_ret = $conn->execScript('UPDATE user SET pass_status=0, score=0, season_status=0, integral=0, season_end_score=:season_end_score, modify_time=:modify_time ' .
|
||||
' WHERE accountid=:accountid;',
|
||||
array(
|
||||
|
Loading…
x
Reference in New Issue
Block a user