|
|
@@ -45,11 +45,11 @@ func SetOss(c *gin.Context) { |
|
|
|
sysCfgDb.SysCfgUpdate(enum.FileBucketHost, req.FileBucketHost) |
|
|
|
sysCfgDb.SysCfgUpdate(enum.FileBucketRegion, req.FileBucketRegion) |
|
|
|
sysCfgDb.SysCfgUpdate(enum.FileBucket, req.FileBucket) |
|
|
|
svc.ClearRedis(c, enum.FileAccessKey) |
|
|
|
svc.ClearRedis(c, enum.FileSecretKey) |
|
|
|
svc.ClearRedis(c, enum.FileBucketHost) |
|
|
|
svc.ClearRedis(c, enum.FileBucketRegion) |
|
|
|
svc.ClearRedis(c, enum.FileBucket) |
|
|
|
svc.ClearRedis(c, masterId, enum.FileAccessKey) |
|
|
|
svc.ClearRedis(c, masterId, enum.FileSecretKey) |
|
|
|
svc.ClearRedis(c, masterId, enum.FileBucketHost) |
|
|
|
svc.ClearRedis(c, masterId, enum.FileBucketRegion) |
|
|
|
svc.ClearRedis(c, masterId, enum.FileBucket) |
|
|
|
e.OutSuc(c, "success", nil) |
|
|
|
return |
|
|
|
} |
|
|
@@ -500,8 +500,8 @@ func SetMob(c *gin.Context) { |
|
|
|
sysCfgDb := implement2.NewSysCfgDb(engine, masterId) |
|
|
|
sysCfgDb.SysCfgUpdate("mob_app_key", req.MobAppKey) |
|
|
|
sysCfgDb.SysCfgUpdate("mob_app_secret", req.MobAppSecret) |
|
|
|
svc.ClearRedis(c, "mob_app_key") |
|
|
|
svc.ClearRedis(c, "mob_app_secret") |
|
|
|
svc.ClearRedis(c, masterId, "mob_app_key") |
|
|
|
svc.ClearRedis(c, masterId, "mob_app_secret") |
|
|
|
e.OutSuc(c, "success", nil) |
|
|
|
return |
|
|
|
} |
|
|
|