This commit is contained in:
wangwei01 2020-01-16 10:16:25 +08:00
parent 7ed3d605b4
commit 7b824f61b4
2 changed files with 4 additions and 2 deletions

@ -1 +1 @@
Subproject commit c1eb6b3006cca677b7e7a06b2e2ac0e9d0108fd4
Subproject commit 1e3bb4df855f6d11df75545d10b0c2aacea34a06

View File

@ -187,6 +187,7 @@ class RoleController{
));
}
$nowTime = phpcommon\getdayseconds(time());
$daily_first_login = $row['daily_first_login'];
if ($row['daily_time'] == 0 || ($nowTime - phpcommon\getdayseconds($row['daily_time']) > 0)) {
$ret = $conn->execScript('UPDATE user SET daily_first_login=0, ' .
'modify_time=:modify_time WHERE accountid=:accountid;',
@ -198,6 +199,7 @@ class RoleController{
die();
return;
}
$daily_first_login = 0;
}
echo json_encode(array(
'errcode' => 0,
@ -223,7 +225,7 @@ class RoleController{
'sum_coin' => $row['sum_coin'],
'recharge_times_total' => $row['recharge_times_total'],
'first_login' => 1,
'daily_first_login' => $row['daily_first_login']
'daily_first_login' =>$daily_first_login
));
}
}