fix:完善后台管理页面wechat模块,修复自动配置类的加载条件等
This commit is contained in:
+3
-2
@@ -61,14 +61,15 @@ public class SysWechatConfigController {
|
||||
@Operation(summary = "保存微信配置")
|
||||
@PostMapping
|
||||
public Result<Boolean> saveConfig(@RequestBody WechatConfig config) {
|
||||
config.setTenantId(TenantContextHolder.getTenant());
|
||||
if (config.getId() == null) {
|
||||
config.setTenantId(TenantContextHolder.getTenant());
|
||||
}
|
||||
return Result.succeed(wechatConfigService.saveConfig(config));
|
||||
}
|
||||
|
||||
@Operation(summary = "更新微信配置")
|
||||
@PutMapping
|
||||
public Result<Boolean> updateConfig(@RequestBody WechatConfig config) {
|
||||
config.setTenantId(TenantContextHolder.getTenant());
|
||||
return Result.succeed(wechatConfigService.updateConfig(config));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user