BUGFIX:aida;

This commit is contained in:
shahaibo
2024-07-04 11:34:51 +08:00
parent 9784d07680
commit 4a533b3cf0
7 changed files with 117 additions and 30 deletions

View File

@@ -3355,7 +3355,7 @@ public class PythonService {
throw new BusinessException("toProductImage.interface.exception");
}
public Boolean relight(String url, String taskId, String prompt) {
public Boolean relight(String url, String taskId, String prompt, String direction) {
// todo 限流校验
// AccessLimitUtils.validate("design",5);
OkHttpClient client = new OkHttpClient().newBuilder()
@@ -3370,6 +3370,7 @@ public class PythonService {
map.put("tasks_id", taskId);
map.put("image_url", url);
map.put("prompt", prompt);
map.put("direction", direction);
log.info("relightImage请求python 参数:####{}", map);
String param = JSON.toJSONString(map, SerializerFeature.WriteNullStringAsEmpty);
log.info(param);