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([]); }