1
This commit is contained in:
parent
836d00d826
commit
cd24f5155d
@ -44,6 +44,18 @@ class SignController{
|
|||||||
return $arr;
|
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)
|
protected function getParameter($para_id)
|
||||||
{
|
{
|
||||||
$g_conf_para_cluster = require('../res/parameter@parameter.php');
|
$g_conf_para_cluster = require('../res/parameter@parameter.php');
|
||||||
@ -387,8 +399,7 @@ class SignController{
|
|||||||
array(
|
array(
|
||||||
':accountid' => $account_id,
|
':accountid' => $account_id,
|
||||||
));
|
));
|
||||||
|
if (time() > $rowUser['season_time'] && $rowUser['season_time'] != 0) {
|
||||||
if (time() > $rowUser['season_time']) {
|
|
||||||
$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 ' .
|
$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;',
|
' WHERE accountid=:accountid;',
|
||||||
array(
|
array(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user