This commit is contained in:
xman 2025-06-17 15:04:33 +08:00
parent 713895c9c3
commit ace5bd7f36

View File

@ -154,6 +154,12 @@ class Dispatchrecord extends Backend
$dispatch->follow = 1;
}
$dispatch->record_count ++;
//将其它的状态改掉
Dispatchrecord::where('dispatch_id',$dispatch->id)->where('status',0)->update([
'status' => 1,
]);
//$params['admin_id'] = $this->auth->id;
$result = $this->model->allowField(true)->save($params);
$dispatch->allowField(true)->save();