商品模块代码提交

This commit is contained in:
Tankaikai 2025-02-19 09:20:52 +08:00
parent adc435534d
commit a3e1e45a4e
2 changed files with 9 additions and 7 deletions

View File

@ -8,6 +8,7 @@ import com.alipay.api.request.AlipaySystemOauthTokenRequest;
import com.alipay.api.response.AlipaySystemOauthTokenResponse;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
/**
@ -24,27 +25,27 @@ public class AlipayUtil {
/**
* 网关地址 线上https://openapi.alipay.com/gateway.do 沙箱https://openapi.alipaydev.com/gateway.do
*/
//@Value("${alipay.serverUrl}")
@Value("${alipay.serverUrl}")
private String serverUrl;
/**
* 应用ID
*/
//@Value("${alipay.appId}")
@Value("${alipay.appId}")
private String appId;
/**
* 应用私钥
*/
//@Value("${alipay.privateKey}")
@Value("${alipay.privateKey}")
private String privateKey;
/**
* 支付宝公钥
*/
//@Value("${alipay.alipayPublicKey}")
@Value("${alipay.alipayPublicKey}")
private String alipayPublicKey;
/**
* 支付宝公钥
*/
//@Value("${alipay.encryptKey}")
@Value("${alipay.encryptKey}")
private String encryptKey;
/**

View File

@ -5,6 +5,7 @@ import cn.hutool.http.HttpUtil;
import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import java.util.HashMap;
@ -18,10 +19,10 @@ import java.util.Map;
@Component
public class WechatAuthUtil {
//@Value("${wx.appId}")
@Value("${wx.appId}")
private String appId;
//@Value("${wx.secrete}")
@Value("${wx.secrete}")
private String secrete;
static LinkedHashMap<String,String> linkedHashMap=new LinkedHashMap<>();