配置文件修改-prod
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user