From 0de015249a3abe05031eb4f5d988e8eb7ef83c87 Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期一, 31 七月 2023 16:34:10 +0800 Subject: [PATCH] no message --- application/api/logic/ActivityInfo.php | 23 ++++++++++++++++++++++- 1 files changed, 22 insertions(+), 1 deletions(-) diff --git a/application/api/logic/ActivityInfo.php b/application/api/logic/ActivityInfo.php index 9250286..b09270d 100644 --- a/application/api/logic/ActivityInfo.php +++ b/application/api/logic/ActivityInfo.php @@ -6,6 +6,8 @@ use think\Db; use app\common\model\User as ModelUser; use app\api\logic\SettlementRecord as LogicSettlementRecord; +use app\api\logic\UserBrowse as LogicUserBrowse; + class ActivityInfo extends BasicLogic { @@ -86,9 +88,10 @@ {//娌℃湁杩涜涓殑娲诲姩锛屼笉鐢ㄥ鐞� return true; } + //鏌ヨ鏄惁鍙傚姞浜嗘嫑鍕熸椿鍔� $recruitid=$actList[0]['id'].'u'.$userid; - $actReinfo=Db::query('select id,create_time from t_recruit_act where id=? and settlement_status=0',[$recruitid]); + $actReinfo=Db::query('select id,create_time from t_recruit_act where id=? and user_t=0 and settlement_status=0',[$recruitid]); if(empty($actReinfo)) {//娌℃湁鍙傚姞娲诲姩锛屼笉鐢ㄥ鐞� return true; @@ -253,4 +256,22 @@ return $maxReward; } + /** + * 鑷畾涔夊脊绐�-0鍏冭喘 + */ + public function popupcus_freebuy($userInfo) + { + $LogicUserBrowse = new LogicUserBrowse(); + $res = $LogicUserBrowse->checkIsFirstFree($userInfo->id); + if($res === false) + { + return false; + } + if(empty($res)) + { + return true; + } + return false; + } + } \ No newline at end of file -- Gitblit v1.9.3