Skip to content

Commit

Permalink
针对拦截器进行优化,简化开发者判断处理
Browse files Browse the repository at this point in the history
  • Loading branch information
egzosn@gmail.com authored and egzosn@gmail.com committed Jun 9, 2017
1 parent ea93be6 commit 13c501b
Showing 1 changed file with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
import com.egzosn.pay.common.api.BasePayService;
import com.egzosn.pay.common.api.Callback;
import com.egzosn.pay.common.api.PayConfigStorage;
import com.egzosn.pay.common.bean.MethodType;
import com.egzosn.pay.common.bean.PayOrder;
import com.egzosn.pay.common.bean.PayOutMessage;
import com.egzosn.pay.common.bean.TransactionType;
import com.egzosn.pay.common.bean.*;
import com.egzosn.pay.common.bean.result.PayException;
import com.egzosn.pay.common.exception.PayErrorException;
import com.egzosn.pay.common.http.HttpConfigStorage;
Expand Down Expand Up @@ -253,6 +250,19 @@ public Map<String, Object> getParameter2Map(Map<String, String[]> parameterMap,
public PayOutMessage getPayOutMessage(String code, String message) {
return PayOutMessage.TEXT().content(code.toLowerCase()).build();
}

/**
* 获取成功输出消息,用户返回给支付端
* 主要用于拦截器中返回
* @param payMessage 支付回调消息
* @return 返回输出消息
*/
@Override
public PayOutMessage successPayOutMessage(PayMessage payMessage) {
return PayOutMessage.TEXT().content("success").build();
}


/**
* 获取输出消息,用户返回给支付端, 针对于web端
*
Expand Down

0 comments on commit 13c501b

Please sign in to comment.