From f2528a40b631dd4165484b9fce6b5c2708aae5c7 Mon Sep 17 00:00:00 2001 From: heyuntao <heyuntao@LAPTOP-MP4HD5NS> Date: 星期六, 07 十月 2023 10:49:30 +0800 Subject: [PATCH] no message --- application/api/controller/Activity.php | 30 +++++++++++++++++++++++++----- 1 files changed, 25 insertions(+), 5 deletions(-) diff --git a/application/api/controller/Activity.php b/application/api/controller/Activity.php index a404d53..6b0be8c 100644 --- a/application/api/controller/Activity.php +++ b/application/api/controller/Activity.php @@ -12,7 +12,7 @@ header("Access-Control-Allow-Origin:*"); class Activity extends Api { - protected $noNeedLogin = ['fqb_plat_cate']; + protected $noNeedLogin = ['fqb_plat_cate','run_countRecruitAct','test']; protected $noNeedRight = '*'; /** * 鑾峰彇鐤姠姒� @@ -216,10 +216,7 @@ $actInfo=new ActInfo(); $user = $this->auth->getUser(); $res=$actInfo->getActRecruitCount($actid,$user->id); - $data = [ - 'hascount' => $res - ]; - $this->success('鑾峰彇鎴愬姛',$data); + $this->success('鑾峰彇鎴愬姛',$res); } /** @@ -235,4 +232,27 @@ $this->success('鑾峰彇鎴愬姛',$res); } + public function test() + { + $actInfo=new ActInfo(); + $res=$actInfo->updateRecruitCount(2); + } + + /** + * 鎷涘嫙娲诲姩璁$畻 + */ + public function run_countRecruitAct() + { + $actInfo=new ActInfo(); + $res=$actInfo->run_countRecruitAct(); + $this->success('鎵ц瀹屾垚',$res); + } + /** + * 鑾峰彇閭�璇风爜 + */ + public function getInviteUrl() + { + $user = $this->auth->getUser(); + $this->success('鑾峰彇鎴愬姛',$user->invitation_code); + } } \ No newline at end of file -- Gitblit v1.9.3