|
@@ -13,7 +13,6 @@ module.exports = class extends Base {
|
|
|
async indexAction() {
|
|
|
const model = this.model('goods');
|
|
|
const goodsList = await model.select();
|
|
|
-l
|
|
|
return this.success(goodsList);
|
|
|
}
|
|
|
|
|
@@ -123,6 +122,8 @@ l
|
|
|
const goodsQuery = this.model('goods');
|
|
|
|
|
|
const whereMap = {};
|
|
|
+ whereMap.is_on_sale = 1;
|
|
|
+ whereMap.is_delete = 0;
|
|
|
if (!think.isEmpty(isNew)) {
|
|
|
whereMap.is_new = isNew;
|
|
|
}
|