修改会员添加报错
This commit is contained in:
@@ -179,12 +179,15 @@ public class MemberService {
|
||||
String qpay = null;
|
||||
String payTypeCode = authCode.substring(0, 2);// 判断收款码
|
||||
|
||||
String wechatpay="";
|
||||
|
||||
|
||||
|
||||
if(Integer.valueOf(payTypeCode)>=25&&Integer.valueOf(payTypeCode)<=30){
|
||||
qpay = "scanCode";
|
||||
}else if(Integer.valueOf(payTypeCode)>=10&&Integer.valueOf(payTypeCode)<=19){
|
||||
qpay = "scanCode";
|
||||
wechatpay="wxpay";
|
||||
}else if("62".equals(payTypeCode)){
|
||||
return Result.fail(CodeEnum.ERRORQR);
|
||||
}else if("01".equals(payTypeCode)){
|
||||
@@ -195,16 +198,6 @@ public class MemberService {
|
||||
|
||||
|
||||
|
||||
|
||||
switch (payTypeCode) {
|
||||
case "1":
|
||||
qpay = "scanCode";
|
||||
break;
|
||||
case "2":
|
||||
qpay = "scanCode";
|
||||
break;
|
||||
}
|
||||
|
||||
int count = tbShopPayTypeMapper.countSelectByShopIdAndPayType(shopId, qpay);
|
||||
if (count < 1) {
|
||||
return Result.fail(CodeEnum.PAYTYPENOEXIST);
|
||||
@@ -292,7 +285,7 @@ public class MemberService {
|
||||
|
||||
String orderNo = DateUtils.getSsdfTimes();
|
||||
|
||||
PublicResp<MainScanResp> publicResp = thirdPayService.mainScan(url, thirdApply.getAppId(), "会员充值", "会员充值", amount.setScale(2, RoundingMode.DOWN).multiply(new BigDecimal(100)).longValue(), payTypeCode.equals("1") ? thirdApply.getSmallAppid() : null, authCode, DateUtils.getSsdfTimes(), thirdApply.getStoreId(), callBack, thirdApply.getAppToken());
|
||||
PublicResp<MainScanResp> publicResp = thirdPayService.mainScan(url, thirdApply.getAppId(), "会员充值", "会员充值", amount.setScale(2, RoundingMode.DOWN).multiply(new BigDecimal(100)).longValue(), wechatpay.equals("wxpay") ? thirdApply.getSmallAppid() : null, authCode, DateUtils.getSsdfTimes(), thirdApply.getStoreId(), callBack, thirdApply.getAppToken());
|
||||
if (ObjectUtil.isNotNull(publicResp) && ObjectUtil.isNotEmpty(publicResp)) {
|
||||
if ("000000".equals(publicResp.getCode())) {
|
||||
MainScanResp mainScanResp = publicResp.getObjData();
|
||||
|
||||
Reference in New Issue
Block a user