zhaojs
2023-08-01 cc6247528b559cf6a9468591bb889bb58dc14199
application/api/controller/Activity.php
@@ -13,7 +13,7 @@
header("Access-Control-Allow-Origin:*");
class Activity extends Api
{
    protected $noNeedLogin = ['fqb_plat_cate','run_countRecruitAct','test'];
    protected $noNeedLogin = ['recordItemClick','fqb_plat_cate','run_countRecruitAct','test'];
    protected $noNeedRight = '*';
    /**
     * 获取疯抢榜
@@ -292,5 +292,21 @@
        $this->success('获取成功',['haspop'=>false]);
    }
    /**
     *
     * 记录商品点击
     */
    public function recordItemClick()
    {
        $goodsid=request()->param('goodsid');
        $plat=request()->param('plat');
        $title=request()->param('title');
        $act_price=request()->param('act_price');
        $actInfo=new ActInfo();
        $actInfo->recordItemClick($goodsid,$plat,$title,$act_price);
        $this->success('成功',['success'=>true]);
    }
    
}