Commit ca61803a by wkliang

fix

parent 77a23104
...@@ -68,7 +68,7 @@ class ProductService extends ServiceBase { ...@@ -68,7 +68,7 @@ class ProductService extends ServiceBase {
async createOrUpdate (params) { async createOrUpdate (params) {
if(params.price) { if(params.price) {
params.price = Math.round(params.price * 100) params.price = Math.round(parseFloat(params.price) * 100)
} }
if (params.id) { if (params.id) {
return await this.update(params) return await this.update(params)
......
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