...
|
...
|
@@ -155,6 +155,9 @@ function __requestOption(req, apiOpt, config, consts) { |
|
|
//兼容 yo之前的模式 后期废弃
|
|
|
apiOpt.params.forEach(function (param) {
|
|
|
var name = param.name;
|
|
|
if (param.default) {
|
|
|
data[name] = param.default;
|
|
|
}
|
|
|
if (req.param(name)) {
|
|
|
if (param.type.toUpperCase() == "NUMBER") {
|
|
|
data[name] = Number(req.param(name));
|
...
|
...
|
|