巡乐会抽奖接口提交.-定时脚本修改
This commit is contained in:
@@ -9,9 +9,6 @@ class Cron
|
|||||||
{
|
{
|
||||||
$cron = new \app\cron\controller\PerformPerSecond();
|
$cron = new \app\cron\controller\PerformPerSecond();
|
||||||
$cron->index();
|
$cron->index();
|
||||||
//巡乐会结束 礼物发放
|
|
||||||
$cron = new \app\cron\controller\RoomPan();
|
|
||||||
$cron->index();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//每周执行
|
//每周执行
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ class RoomPan
|
|||||||
* 盲盒转盘礼物补发
|
* 盲盒转盘礼物补发
|
||||||
*/
|
*/
|
||||||
public function blind_box_turntable_gift_send(){
|
public function blind_box_turntable_gift_send(){
|
||||||
$blind_box_turntable_log = db('vs_blind_box_turntable_results_log')->where(['is_sued'=>0])->select();
|
$blind_box_turntable_log = db('vs_blind_box_turntable_results_log')->where(['is_sued'=>0,'createtime'=>['>=',time()-60*10]])->select();
|
||||||
if(empty($blind_box_turntable_log)){
|
if(empty($blind_box_turntable_log)){
|
||||||
echo "没有需要发放的礼物 \n";
|
echo "没有需要发放的礼物 \n";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user