|
|
@ -1,7 +1,7 @@ |
|
|
|
const moment = require('moment') |
|
|
|
|
|
|
|
let isDev = false |
|
|
|
// let isDev = true
|
|
|
|
// let isDev = false
|
|
|
|
let isDev = true |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -24,7 +24,7 @@ module.exports = function (app, opts) { |
|
|
|
let data = await getAnxinyunToken(app) |
|
|
|
//获取所有泵站
|
|
|
|
let structureList = await app.fs.anxinyun.get(`/organizations/${data.orgId}/structures?token=${data.token}`) || [] |
|
|
|
await app.redis.set("structure", JSON.stringify(structureList)) |
|
|
|
await app.redis.set("pumpStation_structure", JSON.stringify(structureList)) |
|
|
|
if (structureList.length) { |
|
|
|
|
|
|
|
|
|
|
|