骑手认证不用付款

This commit is contained in:
GYJ
2024-06-19 09:33:23 +08:00
parent 3714188564
commit 56343b62b8
3 changed files with 27 additions and 2 deletions

View File

@@ -75,6 +75,14 @@ public class ApiWeiXinErrRiderPayController {
return wxService.wxPayJsApiRiderCertification(userId,type,userEntity, userType);
}
@Login
@ApiOperation("小程序跑腿师傅实名认证-删除付款流程")
@PostMapping("/riderCertification")
public Result riderCertification(@RequestAttribute("userId") Long userId, @RequestBody UserEntity userEntity) {
Integer userType = 2;
return wxService.riderCertification(userId,userEntity, userType);
}
/*@Login
@ApiOperation("公众号跑腿师傅实名认证")
@PostMapping("/wxPayMpRiderCertification")

View File

@@ -19,10 +19,12 @@ public interface WxErrRiderService {
Result wxPayJsApiRiderCertification(Long userId,Integer type, UserEntity userEntity, Integer userType) throws Exception;
Result riderCertification(Long userId, UserEntity userEntity, Integer userType);
String payBack(String resXml,Integer type);;
boolean wxRefund(PayDetails payDetails);
Result wxPayCashDeposit(Long userId, Double money, Integer type, Integer userType) throws Exception;
}
}

View File

@@ -133,6 +133,21 @@ public class WxErrRiderServiceImpl implements WxErrRiderService {
return pay(money, type, userId, generalOrder,3, userType);
}
@Override
public Result riderCertification(Long userId, UserEntity userEntity, Integer userType) {
UserEntity user = userService.selectUserById(userId);
user.setUserType(userType);
user.setIdentityCardFront(userEntity.getIdentityCardFront());
user.setIdentityCardVerso(userEntity.getIdentityCardVerso());
user.setSelfIdentityCard(userEntity.getSelfIdentityCard());
user.setIdentityCardNumber(user.getIdentityCardNumber());
user.setCheckCertification("1");
userService.updateById(user);
return Result.success("认证成功");
}
/**
* 微信支付订单生成
@@ -409,4 +424,4 @@ public class WxErrRiderServiceImpl implements WxErrRiderService {
}
return pay(money, type, userId, generalOrder,4, userType);
}
}
}