## Fix - 京东支付回调,支付工具(payTool)可能为空
This commit is contained in:
parent
7e4085378b
commit
d2afea78f8
|
|
@ -1,5 +1,6 @@
|
|||
package com.hzs.third.pay.controller.notify;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.hzs.common.core.enums.EPayChannel;
|
||||
import com.hzs.common.core.enums.EPayType;
|
||||
|
|
@ -153,6 +154,9 @@ public class JdPayNotifyController extends JdBaseController {
|
|||
return ERROR;
|
||||
}
|
||||
private Integer convertPayType(String payName){
|
||||
if(StrUtil.isEmpty(payName)){
|
||||
payName = "";
|
||||
}
|
||||
Integer result = EPayType.WECHAT.getValue();
|
||||
switch (payName){
|
||||
case "XJK":
|
||||
|
|
|
|||
Loading…
Reference in New Issue