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

Commit d9898212 authored by anjiabin's avatar anjiabin

支付处理openid为error问题

parent cdd4c19d
use prod_ln_scene;
#创建集合
db.createCollection("ChimeUserInfoVo");
db.createCollection("ChimeUserOperLogVo");
#创建索引
db.ChimeUserInfoVo.createIndex({userId:"hashed"});
......@@ -9,7 +9,10 @@ db.ChimeUserInfoVo.createIndex({sex:"hashed"});
db.ChimeUserInfoVo.createIndex( {"userTagsVoList.tagCode": 1});
db.ChimeUserInfoVo.createIndex({joinPerformanceId:"hashed"});
db.ChimeUserOperLogVo.createIndex({currentUserId:"hashed"});
#创建分片
sh.enableSharding("prod_ln_scene");
sh.shardCollection("prod_ln_scene.ChimeUserInfoVo",{"userId":"hashed"});
sh.shardCollection("prod_ln_scene.ChimeUserOperLogVo",{"currentUserId":"hashed"});
......@@ -78,7 +78,7 @@ public class PayController {
//为什么在js和applet中才需要判断open_id?
if(payType.equalsIgnoreCase(DragonConstant.PayChannelEnum.WEPAY.getCode())){
if(deviceFrom.equalsIgnoreCase(DragonConstant.DeviceFromEnum.JS.getCode())||deviceFrom.equalsIgnoreCase(DragonConstant.DeviceFromEnum.APPLET.getCode())) {
if (StringUtil.isEmpty(openId)) {
if (StringUtil.isEmpty(openId)||"error".equalsIgnoreCase(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