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