|
|
@ -307,8 +307,13 @@ class Order extends Controller |
|
|
|
public function updateDelivery(int $delivery_id): Json |
|
|
|
public function updateDelivery(int $delivery_id): Json |
|
|
|
{ |
|
|
|
{ |
|
|
|
$model = new DeliveryModel; |
|
|
|
$model = new DeliveryModel; |
|
|
|
|
|
|
|
if(!$model->where('delivery_id', $delivery_id)->find()) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return $this->renderError('该物流记录不存在'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$model->where('delivery_id', $delivery_id)->save($this->postForm()); |
|
|
|
$model->where('delivery_id', $delivery_id)->save($this->postForm()); |
|
|
|
return $this->renderSuccess('ok'); |
|
|
|
return $this->renderSuccess('修改成功'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|