Browse Source

加价初始化

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

+ 1 - 1
app-ghs/controllers/ShopController.php

@@ -275,7 +275,7 @@ class ShopController extends BaseController
         CustomClass::valid($custom, $this->shopId);
         $this->shop->skCustomId = $id;
         $this->shop->save();
-        util::complete();
+        util::complete('修改成功');
     }
 
 }

+ 8 - 0
biz-ghs/item/services/ItemService.php

@@ -253,6 +253,14 @@ class ItemService extends BaseService
                 unset($productData['id']);
                 $productData['rank'] = 'A';
                 $productData['price'] = bcadd($currentItem['cost'], $currentItem['addPrice'], 2);
+
+                //初始加价
+                $productData['addPrice'] = 6;
+                $productData['qtAddPrice'] = 5;
+                $productData['byAddPrice'] = 4;
+                $productData['hjAddPrice'] = 3;
+                $productData['zsAddPrice'] = 2;
+
                 $productAddData[] = $productData;
 
             }

+ 0 - 8
biz/sj/services/MerchantService.php

@@ -190,14 +190,6 @@ class MerchantService extends BaseService
         //建立供应商和客户关系
         CustomService::shareBuildTrade($applyData, $shopRespond);
 
-        // 赠送零售商优惠券
-//        if ($applyData['style'] == SjClass::STYLE_RETAIL) {
-//            ShopCouponClass::addDefaultCoupon([
-//                'sjId' => $sjId,
-//                'shopId' => $shopId,
-//            ]);
-//        }
-
         //审核通过微信通知商家
         WxMessageClass::applyPass($shopRespond);