feat : refund
This commit is contained in:
@@ -40,6 +40,7 @@ class RefundService extends BaseService
|
||||
$service->orderId = $orderId;
|
||||
$service->reason = $this->request->input('reason','');
|
||||
$service->type = RefundCode::FULL_GOOD_REFUND;
|
||||
$service->adminId = $this->adminId;
|
||||
|
||||
$service->handle();
|
||||
|
||||
@@ -66,6 +67,7 @@ class RefundService extends BaseService
|
||||
$service->reason = $this->request->input('reason','');
|
||||
$service->orderGoodIds = $orderGoodIds;
|
||||
$service->type = RefundCode::PARTIAL_GOOD_REFUND;
|
||||
$service->adminId = $this->adminId;
|
||||
|
||||
$service->handle();
|
||||
|
||||
@@ -104,7 +106,7 @@ class RefundService extends BaseService
|
||||
if (empty($orderIds)) throw new ErrException('暂无数据');
|
||||
|
||||
foreach ($orderIds as $orderId) {
|
||||
$this->joinRefundQueue($orderId,RefundCode::FULL_GOOD_REFUND,$reason);
|
||||
$this->joinRefundQueue($orderId,RefundCode::FULL_GOOD_REFUND,$reason,$this->adminId);
|
||||
}
|
||||
|
||||
return $this->return->success();
|
||||
|
||||
Reference in New Issue
Block a user