From 43ce85874867ce51b29e773d81c5453ac2fbcd37 Mon Sep 17 00:00:00 2001 From: hujiabin <519660157@qq.com> Date: Wed, 9 Aug 2023 16:58:08 +0800 Subject: [PATCH] 1 --- webapp/controller/UserController.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webapp/controller/UserController.class.php b/webapp/controller/UserController.class.php index 67f35d87..5d9acf49 100644 --- a/webapp/controller/UserController.class.php +++ b/webapp/controller/UserController.class.php @@ -926,6 +926,9 @@ class UserController extends BaseAuthedController { if (SignLog::isSignRecord()){ //有签到记录 $row = SignLog::find(); + if ($row['days'] == 7){ + return; + } $paramMeta = \mt\Parameter::getByName('sign_daily_duration'); $end_time = myself()->_getDaySeconds($row['createtime']) + $paramMeta['param_value']*24*60*60; //判断当前时间是否结束 并且 上次签到是否领取 并且 签到时间是否满足第二天签到