Finish Task #4531 Cost:4h 修复复制合同开票单位错误
This commit is contained in:
parent
83a0c00349
commit
ff6624158b
@ -9,6 +9,7 @@ import com.tencentcloudapi.tmt.v20180321.TmtClient;
|
||||
import com.tencentcloudapi.tmt.v20180321.models.TextTranslateBatchRequest;
|
||||
import com.tencentcloudapi.tmt.v20180321.models.TextTranslateBatchResponse;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@ -41,7 +42,8 @@ public class TranslateUtil {
|
||||
TextTranslateBatchResponse resp = client.TextTranslateBatch(req);
|
||||
String[] targetTextList = resp.getTargetTextList();
|
||||
for (int i = 0; i < targetTextList.length; i++) {
|
||||
infoMap.put(query.get(i), targetTextList[i]);
|
||||
String value = targetTextList[i].replace("[", "【").replace("]", "】");
|
||||
infoMap.put(query.get(i), value);
|
||||
}
|
||||
} catch (TencentCloudSDKException e) {
|
||||
throw new RuntimeException(e);
|
||||
|
Loading…
x
Reference in New Issue
Block a user