Parcourir la source

app 测试提供前端需要字段

shish il y a 4 ans
Parent
commit
7af2f5f1da
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  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]['smallPrice'] = $smallPrice;
                 $list[$k]['bigUnit'] = $data[$v['itemId']]['bigUnit'];
                 $list[$k]['bigUnit'] = $data[$v['itemId']]['bigUnit'];
                 $list[$k]['smallUnit'] = $data[$v['itemId']]['smallUnit'];
                 $list[$k]['smallUnit'] = $data[$v['itemId']]['smallUnit'];
+
+                //前端使用字段
+                $list[$k]['bigCount'] = 0;
+                $list[$k]['smallCount'] = 0;
+                $list[$k]['userPrice'] = 0;
+
             }
             }
         }
         }
         return $list;
         return $list;