doomiwork 3.7.3 → 3.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/controller.js +4 -4
- package/package.json +1 -1
- package/utilities/requestparser.js +1 -1
package/core/controller.js
CHANGED
|
@@ -80,10 +80,10 @@ class controller {
|
|
|
80
80
|
result = await instance.afterCRUD(result,actionType,datakey,url,req,res)
|
|
81
81
|
|
|
82
82
|
//CJJ add
|
|
83
|
-
if (req.query.exportexcel === 'true' && result.buffer && result.successed) {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
83
|
+
// if (req.query.exportexcel === 'true' && result.buffer && result.successed) {
|
|
84
|
+
// res.attachment('export.xlsx');
|
|
85
|
+
// return res.end(result.buffer);
|
|
86
|
+
// }
|
|
87
87
|
return res.json(result)
|
|
88
88
|
})
|
|
89
89
|
}
|
package/package.json
CHANGED
|
@@ -47,7 +47,7 @@ class RequestParser {
|
|
|
47
47
|
///是否有格式要求
|
|
48
48
|
let validformat = matchValue.split('|');
|
|
49
49
|
matchValue = validformat[0];
|
|
50
|
-
let keyValue = utility.ifNull(keyParse.parseKeyValue(req, matchValue), '');
|
|
50
|
+
let keyValue = utility.ifNull(keyParse.parseKeyValue(req, matchValue), '')+'';
|
|
51
51
|
if (!keyValue) {
|
|
52
52
|
parseKeyWordIsNull = true;
|
|
53
53
|
} else if (typeof (keyValue) === 'string') {
|