zengyyh 2 months ago
parent ec96220764
commit 6d5c38a145
  1. 8
      app/store/controller/Order.php

@ -22,6 +22,7 @@ use app\store\model\OrderRefund as OrderRefundModel;
use app\common\model\UploadFile; use app\common\model\UploadFile;
use app\common\model\TransferRecord as TransferRecordModel; use app\common\model\TransferRecord as TransferRecordModel;
use app\api\model\Express as ExpressModel; use app\api\model\Express as ExpressModel;
use app\common\model\order\Delivery as DeliveryModel;
/** /**
* 订单管理 * 订单管理
@ -303,5 +304,12 @@ class Order extends Controller
return $this->renderSuccess(compact('list')); return $this->renderSuccess(compact('list'));
} }
public function updateDelivery(int $delivery_id): Json
{
$model = new DeliveryModel;
$model->where('delivery_id', $delivery_id)->save($this->postForm());
return $this->renderSuccess('ok');
}
} }

Loading…
Cancel
Save