shish 1 ano atrás
pai
commit
45f04667ec
1 arquivos alterados com 2 adições e 7 exclusões
  1. 2 7
      app-mall/controllers/RechargeController.php

+ 2 - 7
app-mall/controllers/RechargeController.php

@@ -233,12 +233,10 @@ class RechargeController extends BaseController
         if (empty($shop)) {
             util::fail('没有找到花店呢');
         }
-
         $mainId = $this->mainId;
         $userId = $this->userId;
-        $hdId = $post['hdId'] ?? 0;
         $salt = $post['salt'] ?? '';
-        $hd = HdClass::getById($hdId, true);
+        $hd = $this->hd;
         if (empty($hd)) {
             util::fail('没有找到花店哦!');
         }
@@ -249,16 +247,13 @@ class RechargeController extends BaseController
                 util::fail('不是你的花店哦');
             }
         }
+        $hdId = $hd->id;
         $customId = $hd->customId ?? 0;
         $custom = CustomClass::getById($customId, true);
         if (empty($custom)) {
             util::fail('花店客户缺失');
         }
         $customName = $custom->name;
-        $hd = HdClass::getById($hdId, true);
-        if (empty($hd)) {
-            util::fail('花店信息缺失,编号6663');
-        }
         $hdName = $hd->name;
         $capitalType = dict::getDict('capitalType', 'xhRecharge', 'id');
         $orderSn = orderSn::getRechargeSn();