|
|
@@ -117,15 +117,14 @@ class RefundController extends BaseController
|
|
|
$shopAdmin = $this->shopAdmin;
|
|
|
$adminName = $shopAdmin['name'] ?? '';
|
|
|
$post['shopAdminName'] = $adminName;
|
|
|
- OrderService::refund($id, $post);
|
|
|
+ $respond = OrderService::refund($id, $post);
|
|
|
$transaction->commit();
|
|
|
-
|
|
|
+ util::success($respond);
|
|
|
} catch (\Exception $exception) {
|
|
|
$transaction->rollBack();
|
|
|
Yii::info("退款出错了,报错信息:" . $exception->getMessage());
|
|
|
util::fail('操作失败');
|
|
|
}
|
|
|
- util::complete();
|
|
|
}
|
|
|
|
|
|
}
|