修复任务天数记录问题

This commit is contained in:
shengchanzhe 2023-09-07 19:01:08 +08:00
parent fb663fef31
commit 36b32cbf31

View File

@ -74,8 +74,7 @@ class TaskLogic extends BaseLogic
public static function CronAdd(array $v, $datas): bool public static function CronAdd(array $v, $datas): bool
{ {
try { try {
TaskTemplate::where('id', $v['id'])->inc('information_day_count', 5)->update(); $v['day_count']=$v['day_count']+1;
return true;
if ($v['types'] == 3) { if ($v['types'] == 3) {
return true; return true;
// $task = Task::where('template_id', $v['id'])->find(); // $task = Task::where('template_id', $v['id'])->find();