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