Authored by qinchao

fix:打款失败原因,200 显示汉字

... ... @@ -6,6 +6,7 @@ package com.yoho.ufo.order.constant;
*/
public enum TradeStatusEnum {
success(100,"成功"),
fail_200_fail(200,"打款失败"),
fail_201_no_alipayAccount(201,"没有支付宝账号"),
fail_202_invalid_money(202,"金额不合法"),
fail_299_transfer_failure(299,"转账失败");
... ...
... ... @@ -113,12 +113,7 @@ public class TradeBillsServiceImpl implements ITradeBillsService {
//打款失败原因
if(100!=item.getTradeStatus()){
String failReason = TradeStatusEnum.getDescByCode(item.getTradeStatus());
if("200".equals(failReason)){
resp.setTradeStatusDesc("打款失败");
}else{
resp.setTradeStatusDesc(StringUtils.isBlank(failReason)?String.valueOf(item.getTradeStatus()):failReason);
}
resp.setTradeStatusDesc(StringUtils.isBlank(failReason)?String.valueOf(item.getTradeStatus()):failReason);
}
respList.add(resp);
... ...