aftersale

This commit is contained in:
xman 2025-04-18 13:38:30 +08:00
parent 480e7361a9
commit d3f794a517

View File

@ -129,8 +129,10 @@ class Aftersale extends Backend
}
$params['admin_id'] = $this->auth->id;
$params['admin_user'] = $this->auth->nickname;
$params['worker_id'] = $order->dispatch->worker_id;
$params['worker_name'] = $order->dispatch->worker_name;
if(!empty($order->dispatch)){
$params['worker_id'] = $order->dispatch->worker_id;
$params['worker_name'] = $order->dispatch->worker_name;
}
$result = $this->model->allowField(true)->save($params);
$order->aftersale_id = $this->model->id;
$order->save();