数据跑批任务

克隆跑批系统 git clone -b master https://gitee.com/xigedianshang/run_batch.git

# 项目根目录composer安装
composer i  

# 新建ini目录
mkdir ini 

#复制网站的ini数据库配置文件到跑批系统的ini目录下
cp /www/wwwroot/grazy/ini/www.grazy.cn ./ini

根目录 .env 配置文件

APP_DEBUG = true  

[APP]
DEFAULT_TIMEZONE = Asia/Shanghai

[SAAS]
API_URL = https://api.saas.grazy.cn/merchant/

[LANG]
default_lang = zh-cn

添加计划任务


# 统计购买人数,每天1点   
cd /www/wwwroot/run_batch && php think buyNumber

# 商品综合排序,每天1点30分   
cd /www/wwwroot/run_batch && php think complexOrderby

# 统计学习人数学完人数,每天2点   
cd /www/wwwroot/run_batch && php think learnersNumber

#直播数据跑批,每天2点30   
cd /www/wwwroot/run_batch && php think liveBatch

#直播百家云回放数据,每30分钟   
cd /www/wwwroot/run_batch && php think bjyLiveBackBatch

# 直播结束,每1分钟   
cd /www/wwwroot/run_batch && php think liveOver

#直播提醒,每1分钟   
cd /www/wwwroot/run_batch && php think liveRemind

#app消息推送,每1分钟   
cd /www/wwwroot/run_batch && php think appMessageSend

# 订单关闭,每1分钟   
cd /www/wwwroot/run_batch && php think orderClose

#用户群组消息发送,每1分钟   
cd /www/wwwroot/run_batch && php think userGroupSendMsg

#群组用户数据,每天3点30   
cd /www/wwwroot/run_batch && php think userGroupStat



----------------- 9.1.2 版本增加-------------------
# 活动状态跑批,每分钟1分钟跑
cd /www/wwwroot/run_batch && php think changeActivityStatus

# 活动结束跑批,每天00点20分跑批
cd /www/wwwroot/run_batch && php think activityOver

# 智能直播创建,每天晚上23点50分执行
cd /www/wwwroot/run_batch && php think liveTableCreate


----------------- 9.2.0 版本增加-------------------

# 小班直播未开始状态改变 每天1点半
cd /www/wwwroot/run_batch && php think changeSmallLiveStatus

# 学习提醒 每天12点
cd /www/wwwroot/run_batch && php think orderStudy

# 删除回收站文件 每天1点半
cd /www/wwwroot/run_batch && php think deleteAnnexFile

# 智能直播发言 每分钟 (9.4.1 以下版本使用) 
cd /www/wwwroot/run_batch && php think liveRobot

# 智能直播发言 每天23点50 (9.4.1 以上版本使用) 第一次需手动执行
cd /www/wwwroot/run_batch && php think task start


----------------- 9.3.0 版本增加-------------------

# 题库自动上下架 每分钟
cd /www/wwwroot/run_batch && php think questionStatus


----------------- 9.4.0 版本增加-------------------

# 小程序订阅消息学习提醒 每小时
cd /www/wwwroot/run_batch && php think miniProgramMsg

----------------- 9.5 版本增加-------------------
# 会员到期通知 每天12点0分
cd /www/wwwroot/run_batch && php think VipOver

# 推广佣金结算 每天0点1分
cd /www/wwwroot/run_batch && php think reabateAccount