(appId)
| 82 | } |
| 83 | // 获得某个系统信息(redis) |
| 84 | async getSystemForAppId(appId) { |
| 85 | if (!appId) throw new Error('查询某个系统信:appId不能为空'); |
| 86 | |
| 87 | const result = await this.app.redis.get(appId) || '{}'; |
| 88 | return JSON.parse(result); |
| 89 | } |
| 90 | // 获得某个系统信息(数据库) |
| 91 | async getSystemForDb(appId) { |
| 92 | if (!appId) throw new Error('查询某个系统信:appId不能为空'); |
no test coverage detected