Commit 5f29542d by wkliang

前端price传元 处理成分

parent 8e238dc7
......@@ -67,6 +67,9 @@ class ProductService extends ServiceBase {
}
async createOrUpdate (params) {
if(params.price) {
params.price = Math.round(params.price)
}
if (params.id) {
return await this.update(params)
} else {
......
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