Просмотр исходного кода

app 测试提供前端需要字段

shish 4 лет назад
Родитель
Сommit
7af2f5f1da
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      biz-ghs/product/classes/ProductClass.php

+ 6 - 0
biz-ghs/product/classes/ProductClass.php

@@ -80,6 +80,12 @@ class ProductClass extends BaseClass
                 $list[$k]['smallPrice'] = $smallPrice;
                 $list[$k]['bigUnit'] = $data[$v['itemId']]['bigUnit'];
                 $list[$k]['smallUnit'] = $data[$v['itemId']]['smallUnit'];
+
+                //前端使用字段
+                $list[$k]['bigCount'] = 0;
+                $list[$k]['smallCount'] = 0;
+                $list[$k]['userPrice'] = 0;
+
             }
         }
         return $list;