wesmiler 3 лет назад
Родитель
Сommit
9ea0014d8b

+ 5 - 0
source/application/api/controller/Goods.php

@@ -48,6 +48,11 @@ class Goods extends Controller
         if ($goods === false) {
             return $this->renderError($model->getError() ?: '商品信息不存在');
         }
+        // 分类处理,是否升级产品
+        $goods['is_upgrade'] = 0;
+        if($goods['category_id'] == '10001'){
+            $goods['is_upgrade'] = 1;
+        }
         // 多规格商品sku信息, todo: 已废弃 v1.1.25
         $specData = $goods['spec_type'] == 20 ? $model->getManySpecData($goods['spec_rel'], $goods['sku']) : null;
         return $this->renderSuccess([

+ 1 - 1
source/application/store/view/user/grade/add.php

@@ -42,7 +42,7 @@
                                         <span class="widget-dealer__unit am-input-group-label am-input-group-label__right">元</span>
                                     </div>
                                     <div class="help-block">
-                                        <small>用户的实际消费金额满n元后,自动升级</small>
+                                        <small>用户的单次实际消费金额满n元后,自动升级</small>
                                     </div>
                                 </div>
                             </div>