Commit 6577b087 authored by 单欣鑫's avatar 单欣鑫

feat(wechat): 更新微信小程序配置参数

- 修改了 app多个控制器中的微信id 和 secret- 更新了获取微信 access_token 的接口调用参数
- 调整了小程序支付服务中的 APP_ID 配置
- 修改了商品查询条件,将 num=1 改为 num is not null
parent e72b53cc
......@@ -125,7 +125,7 @@ public class ApiMemberController
if (ObjectUtils.isNotEmpty(memberUser)){
// 1、向微信服务器 使用登录凭证 code 获取 session_key 和 openid
String params = "appid=wxbf6a9f26e8bd909b&secret=588008f64be11993ecceebd7b80eff6b&js_code=" + MapUtils.getString(param,"loginCode") + "&grant_type=" + "authorization_code";
String params = "appid=wxd6fbe722d11e00f5&secret=84396e677785af5d3905784d36db8d73&js_code=" + MapUtils.getString(param,"loginCode") + "&grant_type=" + "authorization_code";
// 发送请求
String response = HttpUtils.sendGet("https://api.weixin.qq.com/sns/jscode2session?" + params,"");
// 解析相应内容(转换成jso n对象)
......@@ -199,7 +199,7 @@ public class ApiMemberController
try {
// 1、向微信服务器 使用登录凭证 code 获取 session_key 和 openid
// 千冻网
String params = "appid=wxbf6a9f26e8bd909b&secret=588008f64be11993ecceebd7b80eff6b&js_code=" + map.get("loginCode").toString() + "&grant_type=" + "authorization_code";
String params = "appid=wxd6fbe722d11e00f5&secret=84396e677785af5d3905784d36db8d73&js_code=" + map.get("loginCode").toString() + "&grant_type=" + "authorization_code";
// 发送请求
String response = HttpUtils.sendGet("https://api.weixin.qq.com/sns/jscode2session?" + params,"");
// 解析相应内容(转换成jso n对象)
......@@ -502,8 +502,8 @@ public class ApiMemberController
String url = "https://api.weixin.qq.com/cgi-bin/token";
String result = HttpUtils.sendGet(url, "" +
"grant_type=client_credential&" +
"appid=" + "wxbf6a9f26e8bd909b" + "&" +
"secret=" + "588008f64be11993ecceebd7b80eff6b");
"appid=" + "wxd6fbe722d11e00f5" + "&" +
"secret=" + "84396e677785af5d3905784d36db8d73");
jsonObject = JSONObject.parseObject(result);
// 有效期(s)
Integer expiresIn = 0;
......
......@@ -112,8 +112,8 @@ public class ApiWXAuthWebServiceController {
String url = "https://api.weixin.qq.com/cgi-bin/token";
String result = HttpUtils.sendGet(url, "" +
"grant_type=client_credential&" +
"appid=" + "wxbf6a9f26e8bd909b" + "&" +
"secret=" + "588008f64be11993ecceebd7b80eff6b");
"appid=" + "wxd6fbe722d11e00f5" + "&" +
"secret=" + "84396e677785af5d3905784d36db8d73");
jsonObject = JSONObject.parseObject(result);
// 有效期(s)
Integer expiresIn = 0;
......
......@@ -513,8 +513,8 @@ public class ApiXcxNewController {
String url = "https://api.weixin.qq.com/cgi-bin/token";
String result = HttpUtils.sendGet(url, "" +
"grant_type=client_credential&" +
"appid=" + "wxbf6a9f26e8bd909b" + "&" +
"secret=" + "588008f64be11993ecceebd7b80eff6b");
"appid=" + "wxd6fbe722d11e00f5" + "&" +
"secret=" + "84396e677785af5d3905784d36db8d73");
jsonObject = JSONObject.parseObject(result);
// 有效期(s)
Integer expiresIn = 0;
......
......@@ -39,7 +39,7 @@ public class XiaochengxuPayService {
private static final String URL = "https://api.mch.weixin.qq.com/pay/unifiedorder";
//private static final String APP_ID = "wx38ab6dbc77769a53";
// 我们这边测试的小程序ID
private static final String APP_ID = "wxbf6a9f26e8bd909b";
private static final String APP_ID = "wxd6fbe722d11e00f5";
private static final String MCH_ID = "1671247339";
private static final String TRADE_TYPE = "JSAPI";
private static final String SIGN_TYPE = "MD5";
......
......@@ -6,10 +6,10 @@ package com.ruoyi.common.weiXin;
public class WeiXinParamConfig {
/** 小程序APP_ID */
public final static String APP_ID = "wxbf6a9f26e8bd909b";
public final static String APP_ID = "wxd6fbe722d11e00f5";
/** 小程序APP_SECRET */
public final static String APP_SECRET = "588008f64be11993ecceebd7b80eff6b";
public final static String APP_SECRET = "84396e677785af5d3905784d36db8d73";
/** 商户号 */
public final static String MCH_ID = "1";
......
......@@ -99,7 +99,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
mall_goods_goods mgg
LEFT JOIN mall_goods_product mgp ON mgg.id = mgp.goods_id
<where>
mgp.num = 1
mgp.num is not null
<if test="name != null and name != ''">
and mgg.goods_name like concat('%', #{name}, '%')
</if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment