|
|
|
@ -63,4 +63,28 @@ class OrderService implements OrderServiceInterface |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 线上订单退款 |
|
|
|
*/ |
|
|
|
public function onlineRefund($global_order_id){ |
|
|
|
Db::beginTransaction(); |
|
|
|
try{ |
|
|
|
|
|
|
|
return [ |
|
|
|
"status" => 200, |
|
|
|
"code" => 0, |
|
|
|
"result" => $this->orderService->onlineRefund($global_order_id), |
|
|
|
// 'result' => $global_order_id,
|
|
|
|
"message" => '' |
|
|
|
]; |
|
|
|
} catch (\Exception $e){ |
|
|
|
return [ |
|
|
|
"status" => 200, |
|
|
|
"code" => 0, |
|
|
|
"result" => $this->orderService->onlineRefund($global_order_id), |
|
|
|
// 'result' => $global_order_id,
|
|
|
|
"message" => '' |
|
|
|
]; |
|
|
|
} |
|
|
|
} |
|
|
|
} |