'修复已知问题'

dev-discount
199901012 4 years ago
parent 4ac022501e
commit 19e84a03af
  1. 2
      hai-cweb/src/main/java/com/cweb/controller/WechatController.java
  2. 1
      hai-cweb/src/main/java/com/cweb/controller/pay/OrderController.java

@ -129,7 +129,7 @@ public class WechatController {
if (phoneNoInfo == null || StringUtils.isEmpty(phoneNoInfo.getPurePhoneNumber())) { if (phoneNoInfo == null || StringUtils.isEmpty(phoneNoInfo.getPurePhoneNumber())) {
throw ErrorHelp.genException(SysCode.MiniProgram, ErrorCode.WECHAT_DECRYPT_ERROR, "用户phoneNumber解析失败"); throw ErrorHelp.genException(SysCode.MiniProgram, ErrorCode.WECHAT_DECRYPT_ERROR, "用户phoneNumber解析失败");
} }
HighUser user = highUserService.findByPhone(phoneNoInfo.getPurePhoneNumber()); HighUser user = highUserService.findByOpenId(openId);
if (user == null) { if (user == null) {
user = new HighUser(); user = new HighUser();
user.setOpenId(openId); user.setOpenId(openId);

@ -96,7 +96,6 @@ public class OrderController {
throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, ""); throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, "");
} }
HighOrder order = highOrderService.getOrderById(orderId); HighOrder order = highOrderService.getOrderById(orderId);
if(order == null) { if(order == null) {
log.error("OrderController --> orderToPay() ERROR", "未找到订单信息"); log.error("OrderController --> orderToPay() ERROR", "未找到订单信息");

Loading…
Cancel
Save