发货及后台文件上传优化

This commit is contained in:
Dev
2026-10-14 16:26:41 +08:00
parent 8eb253784a
commit 645a037126
6 changed files with 162 additions and 44 deletions
@@ -176,7 +176,17 @@ class Order extends Api
'limitGoodsList' => null,
'abnormalDeliveryGoodsList' => null,
'invoiceSupport' => 1,
// 订单类型:未传 orderNo 为新建软件订单;带 orderNo 为已有订单(需求首付款/尾款或软件订单重新支付)
'orderType' => OrderService::ORDER_TYPE_SOFTWARE,
];
$orderNo = $this->request->post('orderNo', '');
if ($orderNo) {
$order = OrderService::getOne(['order_no' => $orderNo, 'user_id' => $this->auth->id]);
if (!$order) {
$this->error('订单不存在');
}
$resp['orderType'] = (int)$order->order_type;
}
$this->success('', $resp);
} catch (\Exception $e) {
if ($e instanceof HttpResponseException) {