|
|
@@ -35,7 +35,9 @@ public class DifyServiceImpl implements IDifyService {
|
|
|
|
|
|
// 构建请求体
|
|
|
Map<String, Object> inputs = new HashMap<>();
|
|
|
- inputs.put("agentGender", agentGender);
|
|
|
+ // 将 gender 数字转换为中文:0=男,1=女
|
|
|
+ String genderChinese = "0".equals(agentGender) ? "男" : "1".equals(agentGender) ? "女" : agentGender;
|
|
|
+ inputs.put("agentGender", genderChinese);
|
|
|
inputs.put("ttsVcnList", ttsVcnList);
|
|
|
inputs.put("currentVcn", agentConfig != null ? agentConfig.getTtsVcn() : null);
|
|
|
if (customerPhone != null && !customerPhone.isEmpty()) {
|