Browse Source

FS_UNIAPP_API

release_0.0.1
巴林闲侠 3 years ago
parent
commit
4de26fc797
  1. 0
      api/app/lib/controllers/data/publicity.js
  2. 2
      api/app/lib/controllers/overview/building.js
  3. 47
      api/log/development.log
  4. 3
      web/config.js

0
api/app/lib/controllers/data/publicity.js

2
api/app/lib/controllers/overview/building.js

@ -148,9 +148,11 @@ async function roadState (ctx) {
}
}
if (r.level && roadState.greenMileage[r.level]) {
roadState.greenMileage[r.level].canBeGreen += (Number(r.greeningMileage) || 0)
roadState.greenMileage[r.level].isGreen += (Number(r.greeningMileaged) || 0)
}
}
let corBuildConstruction2022 = roadState.construction.find(item => item.year == 2022)

47
api/log/development.log

@ -7302,3 +7302,50 @@
2022-07-25 11:52:00.697 - debug: [FS-LOGGER] Init.
2022-07-25 11:52:00.795 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-25 11:52:00.796 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-25 15:19:38.799 - error: [FS-ERRHD]
{
message: 'Malicious Path',
stack: 'BadRequestError: Malicious Path\n' +
' at resolvePath (c:\\_WorkCode\\四好公路\\api\\node_modules\\resolve-path\\index.js:78:11)\n' +
' at Object.<anonymous> (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-send\\index.js:58:12)\n' +
' at Generator.next (<anonymous>)\n' +
' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:54:5\n' +
' at new Promise (<anonymous>)\n' +
' at Object.co (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:50:10)\n' +
' at Object.toPromise (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:118:63)\n' +
' at next (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:99:29)\n' +
' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:69:7)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:54:5\n' +
' at new Promise (<anonymous>)\n' +
' at Object.co (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:50:10)\n' +
' at converted (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-convert\\index.js:17:15)\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' +
' at module.exports (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-range\\index.js:11:12)\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-web-server-scaffold\\index.js:94:23\n' +
' at Generator.next (<anonymous>)\n' +
' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:54:5\n' +
' at new Promise (<anonymous>)',
name: 'BadRequestError'
}
2022-07-25 15:42:40.790 - error: path: /build/road_state, error: TypeError: Cannot read property 'canBeGreen' of undefined
2022-07-25 15:44:00.246 - error: path: /build/road_state, error: TypeError: Cannot read property 'canBeGreen' of undefined
2022-07-25 15:46:28.474 - error: path: /build/road_state, error: TypeError: Cannot read property 'canBeGreen' of undefined
2022-07-25 15:46:39.861 - error: path: /build/road_state, error: TypeError: Cannot read property 'canBeGreen' of undefined
2022-07-25 15:48:08.446 - error: path: /build/road_state, error: TypeError: Cannot read property 'canBeGreen' of undefined
2022-07-25 15:48:36.410 - error: path: /build/road_state, error: TypeError: Cannot read property 'canBeGreen' of undefined
2022-07-25 15:49:33.117 - error: path: /build/road_state, error: TypeError: Cannot read property 'canBeGreen' of undefined
2022-07-25 15:49:57.777 - error: path: /build/road_state, error: TypeError: Cannot read property 'canBeGreen' of undefined
2022-07-25 15:50:03.626 - error: path: /build/road_state, error: TypeError: Cannot read property 'canBeGreen' of undefined
2022-07-25 15:50:42.998 - error: path: /build/road_state, error: TypeError: Cannot read property 'canBeGreen' of undefined
2022-07-25 15:52:28.244 - error: path: /build/road_state, error: TypeError: Cannot read property 'canBeGreen' of undefined
2022-07-25 15:53:23.979 - error: path: /build/road_state, error: TypeError: Cannot read property 'canBeGreen' of undefined
2022-07-25 15:53:28.401 - error: path: /build/road_state, error: TypeError: Cannot read property 'canBeGreen' of undefined
2022-07-25 15:53:32.391 - error: path: /build/road_state, error: TypeError: Cannot read property 'canBeGreen' of undefined
2022-07-25 15:54:15.186 - error: path: /build/road_state, error: TypeError: Cannot read property 'canBeGreen' of undefined
2022-07-25 15:55:18.206 - error: path: /build/road_state, error: TypeError: Cannot read property 'canBeGreen' of undefined
2022-07-25 15:55:41.428 - error: path: /build/road_state, error: TypeError: Cannot read property 'canBeGreen' of undefined
2022-07-25 15:56:27.976 - error: path: /build/road_state, error: TypeError: Cannot read property 'canBeGreen' of undefined
2022-07-25 15:57:02.645 - error: path: /build/road_state, error: TypeError: Cannot read property 'canBeGreen' of undefined

3
web/config.js

@ -18,7 +18,7 @@ args.option(['u', 'api-url'], 'webapi的URL');
args.option(['r', 'report-node'], '报表进程地址');
const flags = args.parse(process.argv);
const FS_UNIAPP_API = process.env.FS_UNIAPP_API || flags.apiUrl;
if (!FS_UNIAPP_API) {
console.log('缺少启动参数,异常退出');
@ -33,7 +33,6 @@ const product = {
entry: require('./middlewares/proxy').entry,
opts: {
host: FS_UNIAPP_API,
match: /^\/_api\//,
}
}, {

Loading…
Cancel
Save