Commit 8eeeb60e authored by 李尚科's avatar 李尚科

gjj product fix

parent a24500e8
Pipeline #9023 passed with stage
in 4 seconds
......@@ -138,7 +138,9 @@ class ProductService extends Service {
if (products_results.status !== 200 || !products_results.data || !products_results.data.ret) {
return products;
}
products = await this.formatProducts(products_results.data.ret);
products = products_results.data.ret;
products.sort(function (x, y) { return x['recommend_sorter'] - y['recommend_sorter'] });
products = await this.formatProducts(products);
return products;
}
......
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