zengyyh 2 months ago
parent 6d5c38a145
commit 5a5291f356
  1. 7
      app/store/controller/Order.php

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

Loading…
Cancel
Save