| | |
| | | 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 |
| | | { |
| | | |
| | |
| | | $inser=Db::execute('insert ignore into t_recruit_act (id,user_id,act_id,create_time) values(?,?,?,?)',[$recruitid,$userid,$actid,time()]); |
| | | return true; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 更新获取已邀请人数 |
| | |
| | | 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; |
| | | } |
| | | } |