zhaojs
2023-07-11 8fae87374f33168f17c0dda42033d7eb66b464e2
no message
已修改1个文件
4 ■■■■ 文件已修改
application/api/logic/ActivityInfo.php 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
application/api/logic/ActivityInfo.php
@@ -32,8 +32,8 @@
    public function updateRecruitCount($userid)
    {
        //查询进行中的招募活动
        $nowTime=time();
        $actList=Db::query('select id from t_activity_manage where act_status=1 and start_time<=? and end_time>=? limit 1',[$nowTime,$nowTime]);
        $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]);
        if(empty($actList))
        {//没有进行中的活动,不用处理
            return true;