shish 3 лет назад
Родитель
Сommit
9f13dc2a4c

+ 1 - 21
app-ghs/controllers/CustomController.php

@@ -48,27 +48,7 @@ class CustomController extends BaseController
     //修改物流信息 ssh 20230105
     public function actionChangeWl()
     {
-        $get = Yii::$app->request->get();
-        $id = $get['id'] ?? 0;
-        $wlId = $get['wlId'] ?? 0;
-        $wl = WlClass::getById($wlId, true);
-        if (empty($wl) || $wl->mainId != $this->mainId) {
-            util::fail('设置失败');
-        }
-        $custom = CustomClass::getById($id, true);
-        if (empty($custom) || $custom->ownMainId != $this->mainId) {
-            util::fail('修改失败');
-        }
-        $ghsId = $custom->ghsId ?? 0;
-        $ghs = GhsClass::getById($ghsId, true);
-        if (empty($ghs)) {
-            util::fail('修改失败');
-        }
-        $ghs->customWlId = $wlId;
-        $ghs->save();
-        $custom->wlId = $wlId;
-        $custom->save();
-        util::complete('已修改');
+        util::fail('修改失败');
     }
 
     //修改名称 ssh 2022096

+ 0 - 2
biz-ghs/order/services/OrderService.php

@@ -200,7 +200,6 @@ class OrderService extends BaseService
         $remark = $data['remark'] ?? '';
         $xj = $data['xj'] ?? '';
         $book = $data['book'] ?? 0;
-        $wlId = $data['wlId'] ?? 0;
         $wlName = $data['wlName'] ?? '';
         $cgMainId = $ghs['ownMainId'] ?? 0;
         $purchaseData = [
@@ -230,7 +229,6 @@ class OrderService extends BaseService
             'xj' => $xj,
             'discount' => 1,
             'mainId' => $cgMainId,
-            'wlId' => $wlId,
             'wlName' => $wlName,
         ];
         if (isset($data['deadline']) && !empty($data['deadline'])) {

+ 0 - 2
biz-hd/purchase/services/PurchaseService.php

@@ -59,7 +59,6 @@ class PurchaseService extends BaseService
         $shopAdminName = $data['shopAdminName'] ?? '';
         $sendType = $data['sendType'] ?? 1;
         $couponId = $data['couponId'] ?? 0;
-        $wlId = $data['wlId'] ?? 0;
         $wlName = $data['wlName'] ?? '';
         $discountType = $respond->discountType ?? dict::getDict('discountType', 'noDiscount');
         $discountAmount = $respond->discountAmount ?? 0;
@@ -109,7 +108,6 @@ class PurchaseService extends BaseService
             'orderType' => $orderType,
             'fromType' => $fromType,
             'presell' => $presell,
-            'wlId' => $wlId,
             'wlName' => $wlName,
         ];
         $result = OrderClass::addOrder($arr);