1
This commit is contained in:
parent
929341531e
commit
ee8ef29aeb
@ -124,7 +124,7 @@ class RoleController{
|
||||
':user_name' => $user_name,
|
||||
':avatar_url' => $avatar_url,
|
||||
':create_time' => time(),
|
||||
':modify_time' => time(),
|
||||
':modify_time' => 0,
|
||||
':daily_time' => 0
|
||||
));
|
||||
if (!$ret) {
|
||||
|
@ -129,11 +129,15 @@ class SignController{
|
||||
$last_sign_id = $row['sign_id'];
|
||||
}
|
||||
}
|
||||
if ($nowTime - phpcommon\getdayseconds($last_sign_time) > 0) {
|
||||
$rowuser = $conn->execQueryOne('SELECT modify_time FROM user WHERE accountid=:accountid;',
|
||||
array(
|
||||
':accountid' => $account_id
|
||||
));
|
||||
if ($nowTime - phpcommon\getdayseconds($rowuser['modify_time']) > 0) {
|
||||
//每日刷新
|
||||
$this->updateDaily($account_id);
|
||||
$this->updateSeasonStatus($account_id);
|
||||
if (phpcommon\getMondayseconds(time()) - phpcommon\getMondayseconds($last_sign_time) > 0) {
|
||||
if (phpcommon\getMondayseconds(time()) - phpcommon\getMondayseconds($rowuser['modify_time']) > 0) {
|
||||
$this->updateWeekReward($account_id);
|
||||
}
|
||||
$passed_days = floor(($nowTime - phpcommon\getdayseconds($last_sign_time)) / (3600 * 24));
|
||||
|
Loading…
x
Reference in New Issue
Block a user