From ee28a0bd762415e635c398819abe68b024bb8b98 Mon Sep 17 00:00:00 2001 From: lingling <1077478963@qq.com> Date: Sat, 8 Mar 2025 02:19:43 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9C=A8=20SignController=20=E4=B8=AD?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BB=8A=E6=97=A5=E7=AD=BE=E5=88=B0=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=EF=BC=8C=E9=98=B2=E6=AD=A2=E9=87=8D=E5=A4=8D=E7=AD=BE?= =?UTF-8?q?=E5=88=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/SignController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/controller/api/SignController.php b/app/controller/api/SignController.php index e7fc7d4..c888323 100644 --- a/app/controller/api/SignController.php +++ b/app/controller/api/SignController.php @@ -64,6 +64,9 @@ class SignController if(!UserPhoneLogDao::getOnlineTimeByPhoneTodayId($user_id)){ return ApiResponseApp::error([],'挂机时长没有超过6小时,暂不能签到'); } + if(SignDao::search_Sign_today($user_id)==1){ + return ApiResponseApp::error([],'今天已经签到'); + } SignDao::Sign($user_id); return ApiResponseApp::success([]); }