From 21512703df5ddf962893003a460e75af10d4757f Mon Sep 17 00:00:00 2001
From: zhaojs <349234519@qq.com>
Date: 星期三, 02 八月 2023 09:49:21 +0800
Subject: [PATCH] no message

---
 application/api/logic/ActivityInfo.php |   30 ++++++++++++++++++++++++++++++
 1 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/application/api/logic/ActivityInfo.php b/application/api/logic/ActivityInfo.php
index 88801da..050b2e1 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
 {
 
@@ -72,6 +74,8 @@
         $inser=Db::execute('insert ignore into t_recruit_act (id,user_id,act_id,create_time) values(?,?,?,?)',[$recruitid,$userid,$actid,time()]);
         return true;
     }
+
+   
 
     /**
      * 鏇存柊鑾峰彇宸查個璇蜂汉鏁�
@@ -254,4 +258,30 @@
         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;
+    }
+
+    /***
+     * 璁板綍鍟嗗搧鐐瑰嚮
+     */
+    public function recordItemClick($goodsid,$plat,$title,$act_price)
+    {
+        $inser=Db::execute('insert into t_wxitems (id,create_time,goodsid,plat,title,act_price) values(?,?,?,?,?,?)',[guid(),date("Y-m-d H:i:s",  time()),$goodsid,$plat,$title,$act_price]);
+        return true;
+    }
 }
\ No newline at end of file

--
Gitblit v1.9.3