2
我的API端点就像是一个模型定义如下product.js如何在回送模型中访问查询字符串参数?
API /产品/ 9720?id_shop = 1 & id_lang = 1
我需要访问id_shop在product.js到应用它从产品表中提取记录之前的where子句。
Product.observe('access', function (ctx, next) {
next();
});
我该如何访问id_shop和id_lang?
谢谢你,你救了我的一天! – viam