Merge branch 'cc_20241226_ocr'
This commit is contained in:
@@ -45,6 +45,12 @@ public class AliyunServiceImpl implements AliyunService {
|
|||||||
@Value("${aliyun.accessKeySecret:null}")
|
@Value("${aliyun.accessKeySecret:null}")
|
||||||
private String accessKeySecret;
|
private String accessKeySecret;
|
||||||
|
|
||||||
|
@Value("${aliyun.accessKeyId1:null}")
|
||||||
|
private String accessKeyId1;
|
||||||
|
|
||||||
|
@Value("${aliyun.accessKeySecret1:null}")
|
||||||
|
private String accessKeySecret1;
|
||||||
|
|
||||||
// @Value("${aliyun.sms.domain}")
|
// @Value("${aliyun.sms.domain}")
|
||||||
private String smsDomain;
|
private String smsDomain;
|
||||||
|
|
||||||
@@ -211,8 +217,8 @@ public class AliyunServiceImpl implements AliyunService {
|
|||||||
throw new ServiceException(ErrorCodeEnum.PARAMS_REQUIRED);
|
throw new ServiceException(ErrorCodeEnum.PARAMS_REQUIRED);
|
||||||
}
|
}
|
||||||
com.aliyun.teaopenapi.models.Config config = new com.aliyun.teaopenapi.models.Config()
|
com.aliyun.teaopenapi.models.Config config = new com.aliyun.teaopenapi.models.Config()
|
||||||
.setAccessKeyId(accessKeyId)
|
.setAccessKeyId(accessKeyId1)
|
||||||
.setAccessKeySecret(accessKeySecret);
|
.setAccessKeySecret(accessKeySecret1);
|
||||||
config.endpoint = "ocr-api.cn-hangzhou.aliyuncs.com";
|
config.endpoint = "ocr-api.cn-hangzhou.aliyuncs.com";
|
||||||
try {
|
try {
|
||||||
com.aliyun.ocr_api20210707.Client client = new com.aliyun.ocr_api20210707.Client(config);
|
com.aliyun.ocr_api20210707.Client client = new com.aliyun.ocr_api20210707.Client(config);
|
||||||
|
|||||||
@@ -58,5 +58,7 @@ wx.pay.apiV3Key=wxpayzhenghu123JKJHkjafWXCertUt1
|
|||||||
wx.pay.payNotifyUrl=https://abstore-api.coolstore.cn/zxjp/mini/wechatPay/payNotify
|
wx.pay.payNotifyUrl=https://abstore-api.coolstore.cn/zxjp/mini/wechatPay/payNotify
|
||||||
wx.pay.backNotifyUrl=https://abstore-api.coolstore.cn/zxjp/mini/wechatPay/refundNotify
|
wx.pay.backNotifyUrl=https://abstore-api.coolstore.cn/zxjp/mini/wechatPay/refundNotify
|
||||||
|
|
||||||
aliyun.accessKeyId=LTAI5tAVZ3r9UtSpLGcmGoQn
|
aliyun.accessKeyId=LTAI5tQ6QBnWaB5LaJYz6zcD
|
||||||
aliyun.accessKeySecret=WIMjO4BjVg3YAHwmplq86yOyS2HMpa
|
aliyun.accessKeySecret=spqsOgtfr54cwK861O3N3fInydTgjA
|
||||||
|
aliyun.accessKeyId1=LTAI5tAVZ3r9UtSpLGcmGoQn
|
||||||
|
aliyun.accessKeySecret1=WIMjO4BjVg3YAHwmplq86yOyS2HMpa
|
||||||
Reference in New Issue
Block a user