From 388ef835279fbadd3c57350870c21550f22654a4 Mon Sep 17 00:00:00 2001 From: heyuntao <heyuntao@LAPTOP-MP4HD5NS> Date: 星期五, 09 六月 2023 11:05:39 +0800 Subject: [PATCH] no message --- application/api/controller/User.php | 21 ++++++++++++++++++++- 1 files changed, 20 insertions(+), 1 deletions(-) diff --git a/application/api/controller/User.php b/application/api/controller/User.php index baa9132..97217ef 100644 --- a/application/api/controller/User.php +++ b/application/api/controller/User.php @@ -430,7 +430,7 @@ $this->success([],'鍒犻櫎鎴愬姛'); } - + /** * 鏍囪娴忚0鍏冭喘鍟嗗搧璁板綍 * @@ -451,6 +451,25 @@ $this->success([],'娣诲姞鎴愬姛'); } + /** + * 妫�娴嬫槸鍚﹂鍗� + * + * @return void + */ + + public function check_isfirst_free() + { + + $LogicUserBrowse = new LogicUserBrowse(); + + $res = $LogicUserBrowse->checkIsFirstFree(USERID); + + if($res === false) $this->error($LogicUserBrowse->getError()); + + if(empty($res)) $this->success(['info'=>1],'棣栧崟瀹㈡埛'); + $this->success(['info'=>0],'闈為鍗曞鎴�'); + } + /** * 鐢ㄦ埛鏀惰棌璁板綍 -- Gitblit v1.9.3