Commit d451a2fa by v_vjyjiang

d

parent 0ef87c92
...@@ -29,8 +29,9 @@ class UserCache extends CacheBase { ...@@ -29,8 +29,9 @@ class UserCache extends CacheBase {
if (configValue && configValue[0]) { if (configValue && configValue[0]) {
let data = JSON.parse(JSON.stringify(configValue[0])); let data = JSON.parse(JSON.stringify(configValue[0]));
if (data.company.id != 1 && data.company.appids) { if (data.company.id != 1 && data.company.appids) {
let tmpid = data.company.appids.split(",")[0] let tmpids = data.company.appids.split(",")
if (tmpid && tmpid != "") { let tmpid = tmpids[0]
if (tmpid && tmpid != "" && tmpids.length == 1) {
let app = await this.db.models.app.findById(tmpid) let app = await this.db.models.app.findById(tmpid)
data.defaultAppkey = app.appkey data.defaultAppkey = app.appkey
} }
......
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