Showing
1 changed file
with
4 additions
and
0 deletions
@@ -300,6 +300,10 @@ module.exports = class extends global.yoho.BaseModel { | @@ -300,6 +300,10 @@ module.exports = class extends global.yoho.BaseModel { | ||
300 | * 搜索店铺的商品 | 300 | * 搜索店铺的商品 |
301 | */ | 301 | */ |
302 | getShopGoods(params) { | 302 | getShopGoods(params) { |
303 | + if (!/^[0-9]*$/.test(params.shop_id)) { | ||
304 | + return Promise.resolve({}); | ||
305 | + } | ||
306 | + | ||
303 | let finalParams = { | 307 | let finalParams = { |
304 | method: 'app.search.shop', | 308 | method: 'app.search.shop', |
305 | }; | 309 | }; |
-
Please register or login to post a comment