记得上下班打卡 | git大法好,push需谨慎

Commit f36a2319 authored by zhengfuxin's avatar zhengfuxin

修改验证openid

parent 66a44d09
...@@ -47,7 +47,7 @@ public class DragonConstant { ...@@ -47,7 +47,7 @@ public class DragonConstant {
public enum DeviceFromEnum{ public enum DeviceFromEnum{
WEB("web",""),WAP("wap",""),WAPPAGE("wappage","") WEB("web",""),WAP("wap",""),WAPPAGE("wappage","")
,APP("app",""),JS("js",""),APPLET("applet",""),MICROPAY("micropay",""); ,APP("app",""),JS("js",""),APPLET("applet",""),APPLETB("appletb",""),MICROPAY("micropay","");
private String code; private String code;
private String message; private String message;
DeviceFromEnum(String code, String message) { DeviceFromEnum(String code, String message) {
......
...@@ -82,7 +82,7 @@ public class PayController { ...@@ -82,7 +82,7 @@ public class PayController {
long startTime = System.currentTimeMillis(); long startTime = System.currentTimeMillis();
//为什么在js和applet中才需要判断open_id? //为什么在js和applet中才需要判断open_id?
if (payType.equalsIgnoreCase(DragonConstant.PayChannelEnum.WEPAY.getCode())) { if (payType.equalsIgnoreCase(DragonConstant.PayChannelEnum.WEPAY.getCode())) {
if (deviceFrom.equalsIgnoreCase(DragonConstant.DeviceFromEnum.JS.getCode()) || deviceFrom.equalsIgnoreCase(DragonConstant.DeviceFromEnum.APPLET.getCode())) { if (deviceFrom.equalsIgnoreCase(DragonConstant.DeviceFromEnum.JS.getCode())||deviceFrom.equalsIgnoreCase(DragonConstant.DeviceFromEnum.APPLETB.getCode()) || deviceFrom.equalsIgnoreCase(DragonConstant.DeviceFromEnum.APPLET.getCode())) {
if (StringUtil.isEmpty(openId)) { if (StringUtil.isEmpty(openId)) {
return ResponseDto.failure("微信支付openId不能为空!"); return ResponseDto.failure("微信支付openId不能为空!");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment