From c72910d2b90f74d23e770717d80921b4fd064d48 Mon Sep 17 00:00:00 2001 From: 无关风月 <443237572@qq.com> Date: 星期二, 16 九月 2025 16:24:08 +0800 Subject: [PATCH] 新增用户提现 --- ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TIntegralController.java | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TIntegralController.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TIntegralController.java index 6b640bf..73054d3 100644 --- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TIntegralController.java +++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TIntegralController.java @@ -204,8 +204,9 @@ try { String url = "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=" + accessToken; Map<String, Object> param = new HashMap<>(); +// param.put("scene", "phone=" + phonenumber); param.put("scene", "phone=" + phonenumber+",amount="+amount); - param.put("path", "chargingPile/payMent/payMent"); + param.put("page", "chargingPile/payMent/payMent"); param.put("check_path", false); param.put("env_version", "trial"); param.put("width", 200); //二维码尺寸 @@ -288,7 +289,7 @@ Map<String, Object> dataMap = new LinkedHashMap<String, Object>(); // 使用LinkedHashMap保持顺序 dataMap.put("goods_desc", "积分充值"); dataMap.put("huifu_id", "6666000174575407"); - dataMap.put("notify_url", "http://221.182.45.100:8084/other/wx/integralCallback"); + dataMap.put("notify_url", "http://47.120.5.122:8080/other/wx/integralCallback"); dataMap.put("req_date", date.format(new Date())); dataMap.put("req_seq_id", code); dataMap.put("trade_type", "T_MINIAPP"); @@ -402,7 +403,7 @@ Map<String, Object> dataMap = new LinkedHashMap<String, Object>(); // 使用LinkedHashMap保持顺序 dataMap.put("goods_desc", "积分充值"); dataMap.put("huifu_id", "6666000174575407"); - dataMap.put("notify_url", "http://221.182.45.100:8084/other/wx/integralCallback"); + dataMap.put("notify_url", "http://47.120.5.122:8080/other/wx/integralCallback"); dataMap.put("req_date", date.format(new Date())); dataMap.put("req_seq_id", code); dataMap.put("trade_type", "T_MINIAPP"); @@ -489,7 +490,7 @@ Map<String, Object> dataMap = new LinkedHashMap<String, Object>(); // 使用LinkedHashMap保持顺序 dataMap.put("goods_desc", "积分充值"); dataMap.put("huifu_id", "6666000174575407"); - dataMap.put("notify_url", "http://221.182.45.100:8084/other/wx/integralCallback"); + dataMap.put("notify_url", "http://47.120.5.122:8080/other/wx/integralCallback"); dataMap.put("req_date", date.format(new Date())); dataMap.put("req_seq_id", code); dataMap.put("trade_type", "T_JSAPI"); @@ -504,6 +505,7 @@ // 将dataMap转化为json对象 String signStr = JSON.toJSONString(JSONObject.parseObject(JSON.toJSONString(dataMap), TreeMap.class)); + System.out.println("待签名字符串:" + signStr); @@ -615,7 +617,7 @@ if (data != null ) { if (data.getRoleType() == 1) { // 平台 - SysConfig data1 = sysConfigClient.getInfo(8L).getData(); + SysConfig data1 = sysConfigClient.getInfo(10L).getData(); sysConfigClient.update(data1); TIntegralRule tIntegralRule = new TIntegralRule(); tIntegralRule.setChargeCredit("{\"num1\":"+data1.getConfigValue()+"}"); @@ -648,7 +650,7 @@ SysUser data = sysUserClient.getSysUser(userid).getData(); if (data.getRoleType() == 1) { - SysConfig data1 = sysConfigClient.getInfo(8L).getData(); + SysConfig data1 = sysConfigClient.getInfo(10L).getData(); JSONObject jsonObject = JSONObject.parseObject(dto.getChargeCredit()); Integer num1 = jsonObject.getInteger("num1"); data1.setConfigValue(num1.toString()); -- Gitblit v1.7.1