zhaojs
2023-07-18 4fc781ab3b06d76d7db8c072f6fa0daa1ab3b82c
no message
已修改2个文件
10 ■■■■ 文件已修改
application/api/controller/Activity.php 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
application/api/logic/ActivityInfo.php 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
application/api/controller/Activity.php
@@ -12,7 +12,7 @@
header("Access-Control-Allow-Origin:*");
class Activity extends Api
{
    protected $noNeedLogin = ['fqb_plat_cate','run_countRecruitAct'];
    protected $noNeedLogin = ['fqb_plat_cate','run_countRecruitAct','test'];
    protected $noNeedRight = '*';
    /**
     * 获取疯抢榜
@@ -232,6 +232,12 @@
        $this->success('获取成功',$res);
    }
    public function test()
    {
        $actInfo=new ActInfo();
        $res=$actInfo->updateRecruitCount(2);
    }
    /**
     * 招募活动计算
     */
application/api/logic/ActivityInfo.php
@@ -81,7 +81,7 @@
        try{
             //查询进行中的招募活动
            $nowTime= date("Y-m-d H:i:s",  time());
            $actList=Db::query('select id from t_activity_manage where act_status=1 and start_time<=? and end_time>=? and act_type=0 limit 1',[$nowTime,$nowTime]);
            $actList=Db::query('select id,end_time from t_activity_manage where act_status=1 and start_time<=? and end_time>=? and act_type=0 limit 1',[$nowTime,$nowTime]);
            if(empty($actList))
            {//没有进行中的活动,不用处理
                return true;