发货及后台文件上传优化
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user