forked from angelo/java-retail-app
## Fix - 京东支付回调,支付工具(payTool)可能为空
This commit is contained in:
parent
f4d6052b9d
commit
89aa22f337
|
|
@ -1,6 +1,7 @@
|
|||
package com.hzs.third.pay.service.impl;
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.hzs.common.core.config.BdConfig;
|
||||
|
|
@ -259,6 +260,9 @@ public class JdPayServiceImpl implements IJdPayService {
|
|||
*/
|
||||
private static final String ERROR = "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