Commit ec9464e6 by 庄冰

产品价格

parent 6691ac13
...@@ -15,10 +15,8 @@ class ProductService extends ServiceBase { ...@@ -15,10 +15,8 @@ class ProductService extends ServiceBase {
async update(pobj) { async update(pobj) {
if(!pobj.price){ if(pobj.price_type && pobj.price_type==3){
pobj.price=0; pobj.price=0;
}
if(!pobj.original_price){
pobj.original_price=0; pobj.original_price=0;
} }
await this.dao.update(pobj); await this.dao.update(pobj);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment