'进行中', self::STATUS_FINISH => '完成', ]; /** * Notes: 增加任务数 * * @Author: 玄尘 * @Date: 2022/10/20 11:10 * @param int $step */ public function incrementTotal(int $step = 1) { if ($this->task->key == 'steps') { $this->total = $step; $this->save(); } else { $this->increment('total', $step); } } }