配置文件修改-prod

This commit is contained in:
2025-10-30 11:39:37 +08:00
parent 11bb7a0199
commit 00c471fa93
2 changed files with 9 additions and 2 deletions

View File

@@ -51,7 +51,7 @@ public class StyleServiceImpl extends ServiceImpl<StyleMapper, Style> implements
// 请求需要顾客id, 生成的数量,风格
StylistPathEnum stylistPathEnum = StylistPathEnum.of(requestOutfitDTO.getStylist());
Map<String, Object> params = setRequestOutfitParams(requestOutfitDTO.getCustomerId(), requestOutfitDTO.getNum(), stylistPathEnum.getPath());
Map<String, Object> params = setRequestOutfitParams(requestOutfitDTO.getCustomerId(), requestOutfitDTO.getNum(), stylistPathEnum.getPath(), requestOutfitDTO.getGender());
OutfitRequest outfitRequest = new OutfitRequest();
outfitRequest.setCustomerId(requestOutfitDTO.getCustomerId());
@@ -92,12 +92,13 @@ public class StyleServiceImpl extends ServiceImpl<StyleMapper, Style> implements
}
private Map<String, Object> setRequestOutfitParams(Long customerId, int num, String stylistPath) {
private Map<String, Object> setRequestOutfitParams(Long customerId, int num, String stylistPath, String gender) {
HashMap<String, Object> params = new HashMap<>();
params.put("user_id", customerId.toString());
params.put("num_outfits", num);
params.put("stylist_path", stylistPath);
params.put("callback_url", webhookDomain);
// params.put("gender", gender);
return params;
}