Commit c1c7178b by wkliang

apifix

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