Browse Source

预订单退款

shish 4 năm trước cách đây
mục cha
commit
d431847e44

+ 2 - 0
app-hd/controllers/CgRefundController.php

@@ -32,6 +32,8 @@ class CgRefundController extends BaseController
         $id = Yii::$app->request->get('id', 0);
         $id = Yii::$app->request->get('id', 0);
         $refund = CgRefundClass::getById($id, true);
         $refund = CgRefundClass::getById($id, true);
         CgRefundClass::valid($refund, $this->mainId);
         CgRefundClass::valid($refund, $this->mainId);
+        $cgId = $refund->cgId ?? 0;
+        $cg = PurchaseClass::getById($cgId, true);
         if (empty($refund)) {
         if (empty($refund)) {
             util::fail('没有退款信息');
             util::fail('没有退款信息');
         }
         }