Commit 96912d9a by Sxy

fix: 清除缓存

parent 6276063e
...@@ -7,7 +7,7 @@ class ChannelCache extends CacheBase { ...@@ -7,7 +7,7 @@ class ChannelCache extends CacheBase {
this.channelDao = system.getObject("db.common.channelDao"); this.channelDao = system.getObject("db.common.channelDao");
} }
isdebug() { isdebug() {
return settings.env == "dev"; return true;
} }
desc() { desc() {
return "缓存本地应用对象"; return "缓存本地应用对象";
...@@ -17,9 +17,10 @@ class ChannelCache extends CacheBase { ...@@ -17,9 +17,10 @@ class ChannelCache extends CacheBase {
} }
async buildCacheVal(cachekey, inputkey, val, ex, ...items) { async buildCacheVal(cachekey, inputkey, val, ex, ...items) {
const configValue = await this.channelDao.model.findOne( const configValue = await this.channelDao.model.findOne(
{where: { routehost: inputkey}, {
include:[{model:this.db.models.pathtomethod,as:"pts"}] where: { routehost: inputkey },
}); include: [{ model: this.db.models.pathtomethod, as: "pts" }]
});
if (configValue) { if (configValue) {
return JSON.stringify(configValue); return JSON.stringify(configValue);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment