puzhibing
2023-07-09 d9c4252c54adc1684de9b56ad810465945e442a8
DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/api/WithdrawalController.java
@@ -36,30 +36,24 @@
    /**
     * 账户余额提现操作
     * @param money
     * @param code
     * @param name
     * @param request
     * @return
     */
    @ResponseBody
    @PostMapping("/api/withdrawal/withdrawal")
    @ApiOperation(value = "账户余额提现", tags = {"司机端-个人中心"}, notes = "")
    @ApiOperation(value = "账户余额提现【1.1】", tags = {"司机端-个人中心"}, notes = "")
    @ApiImplicitParams({
            @ApiImplicitParam(value = "提现金额", name = "money", required = true, dataType = "double"),
            @ApiImplicitParam(value = "银行卡号", name = "code", required = true, dataType = "string"),
            @ApiImplicitParam(value = "银行卡持有人姓名", name = "name", required = true, dataType = "string"),
            @ApiImplicitParam(value = "开户行名称", name = "bankName", required = false, dataType = "string"),
            @ApiImplicitParam(value = "提现类型(1=活动收入提现,2=业务收入提现)", name = "type", required = true, dataType = "int"),
            @ApiImplicitParam(name = "Authorization", value = "Bearer +token", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9.....")
    })
    public ResultUtil withdrawal(Double money, String code, String name, Integer type,String bankName, HttpServletRequest request){
    public ResultUtil withdrawal(Double mone, Integer type, Integer language, HttpServletRequest request){
        try {
            Integer uid = driverService.getUserIdFormRedis(request);
            if(null == uid){
                return ResultUtil.tokenErr();
            }
            return withdrawalService.withdrawal(money, code, name, uid, type,bankName);
            return withdrawalService.withdrawal(mone, uid, type, language);
        }catch (Exception e){
            e.printStackTrace();
            return ResultUtil.runErr();
@@ -75,9 +69,9 @@
     */
    @ResponseBody
    @PostMapping("/base/withdrawal/withdrawalAudit")
    public ResultUtil withdrawalAudit(Integer id, Integer state){
    public ResultUtil withdrawalAudit(Integer id, Integer state, Integer language){
        try {
            return withdrawalService.withdrawalAudit(id, state);
            return withdrawalService.withdrawalAudit(id, state, language);
        }catch (Exception e){
            e.printStackTrace();
            return ResultUtil.runErr();