|
@@ -67,6 +67,9 @@ public class AigcModelController {
|
|
if (StrUtil.isNotBlank(data.getApiKey()) && data.getApiKey().contains("*")) {
|
|
if (StrUtil.isNotBlank(data.getApiKey()) && data.getApiKey().contains("*")) {
|
|
data.setApiKey(null);
|
|
data.setApiKey(null);
|
|
}
|
|
}
|
|
|
|
+ if (StrUtil.isNotBlank(data.getSecretKey()) && data.getSecretKey().contains("*")) {
|
|
|
|
+ data.setSecretKey(null);
|
|
|
|
+ }
|
|
modelService.save(data);
|
|
modelService.save(data);
|
|
SpringContextHolder.publishEvent(new ProviderRefreshEvent(data));
|
|
SpringContextHolder.publishEvent(new ProviderRefreshEvent(data));
|
|
return R.ok();
|
|
return R.ok();
|
|
@@ -79,6 +82,9 @@ public class AigcModelController {
|
|
if (StrUtil.isNotBlank(data.getApiKey()) && data.getApiKey().contains("*")) {
|
|
if (StrUtil.isNotBlank(data.getApiKey()) && data.getApiKey().contains("*")) {
|
|
data.setApiKey(null);
|
|
data.setApiKey(null);
|
|
}
|
|
}
|
|
|
|
+ if (StrUtil.isNotBlank(data.getSecretKey()) && data.getSecretKey().contains("*")) {
|
|
|
|
+ data.setSecretKey(null);
|
|
|
|
+ }
|
|
modelService.updateById(data);
|
|
modelService.updateById(data);
|
|
SpringContextHolder.publishEvent(new ProviderRefreshEvent(data));
|
|
SpringContextHolder.publishEvent(new ProviderRefreshEvent(data));
|
|
return R.ok();
|
|
return R.ok();
|