From 8fae87374f33168f17c0dda42033d7eb66b464e2 Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期二, 11 七月 2023 15:36:38 +0800 Subject: [PATCH] no message --- application/api/logic/ActivityInfo.php | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/api/logic/ActivityInfo.php b/application/api/logic/ActivityInfo.php index a1b2c4e..4da9b5c 100644 --- a/application/api/logic/ActivityInfo.php +++ b/application/api/logic/ActivityInfo.php @@ -32,8 +32,8 @@ public function updateRecruitCount($userid) { //鏌ヨ杩涜涓殑鎷涘嫙娲诲姩 - $nowTime=time(); - $actList=Db::query('select id from t_activity_manage where act_status=1 and start_time<=? and end_time>=? limit 1',[$nowTime,$nowTime]); + $nowTime= date("Y-m-d H:i:s", time()); + $actList=Db::query('select id from t_activity_manage where act_status=1 and start_time<=? and end_time>=? and act_type=0 limit 1',[$nowTime,$nowTime]); if(empty($actList)) {//娌℃湁杩涜涓殑娲诲姩锛屼笉鐢ㄥ鐞� return true; -- Gitblit v1.9.3