This commit is contained in:
aozhiwei 2022-06-02 08:35:02 +08:00
parent 0a05ab2e63
commit c12a6126a4
2 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ class Gun extends BaseModel {
}
$todayGetGold = $row['today_get_gold'];
$lastGetGoldTime = $row['last_get_gold_time'];
if (myself()->_getDaySeconds($lastGetGoldTime) > myself()->_getNowDaySeconds()) {
if (myself()->_getDaySeconds($lastGetGoldTime) < myself()->_getNowDaySeconds()) {
$todayGetGold = 0;
}
$dto = array(

View File

@ -123,7 +123,7 @@ class Hero extends BaseModel {
}
$todayGetGold = $row['today_get_gold'];
$lastGetGoldTime = $row['last_get_gold_time'];
if (myself()->_getDaySeconds($lastGetGoldTime) > myself()->_getNowDaySeconds()) {
if (myself()->_getDaySeconds($lastGetGoldTime) < myself()->_getNowDaySeconds()) {
$todayGetGold = 0;
}
$dto = array(