1
This commit is contained in:
parent
7ed3d605b4
commit
7b824f61b4
2
third_party/phpcommon
vendored
2
third_party/phpcommon
vendored
@ -1 +1 @@
|
|||||||
Subproject commit c1eb6b3006cca677b7e7a06b2e2ac0e9d0108fd4
|
Subproject commit 1e3bb4df855f6d11df75545d10b0c2aacea34a06
|
@ -187,6 +187,7 @@ class RoleController{
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
$nowTime = phpcommon\getdayseconds(time());
|
$nowTime = phpcommon\getdayseconds(time());
|
||||||
|
$daily_first_login = $row['daily_first_login'];
|
||||||
if ($row['daily_time'] == 0 || ($nowTime - phpcommon\getdayseconds($row['daily_time']) > 0)) {
|
if ($row['daily_time'] == 0 || ($nowTime - phpcommon\getdayseconds($row['daily_time']) > 0)) {
|
||||||
$ret = $conn->execScript('UPDATE user SET daily_first_login=0, ' .
|
$ret = $conn->execScript('UPDATE user SET daily_first_login=0, ' .
|
||||||
'modify_time=:modify_time WHERE accountid=:accountid;',
|
'modify_time=:modify_time WHERE accountid=:accountid;',
|
||||||
@ -198,6 +199,7 @@ class RoleController{
|
|||||||
die();
|
die();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
$daily_first_login = 0;
|
||||||
}
|
}
|
||||||
echo json_encode(array(
|
echo json_encode(array(
|
||||||
'errcode' => 0,
|
'errcode' => 0,
|
||||||
@ -223,7 +225,7 @@ class RoleController{
|
|||||||
'sum_coin' => $row['sum_coin'],
|
'sum_coin' => $row['sum_coin'],
|
||||||
'recharge_times_total' => $row['recharge_times_total'],
|
'recharge_times_total' => $row['recharge_times_total'],
|
||||||
'first_login' => 1,
|
'first_login' => 1,
|
||||||
'daily_first_login' => $row['daily_first_login']
|
'daily_first_login' =>$daily_first_login
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user