Merge branch 'release/3.1' into dev/3.1_release_merge
# Conflicts: # src/main/java/com/ai/da/common/utils/SendRequestUtil.java
This commit is contained in:
@@ -202,7 +202,7 @@ public class MyTaskScheduler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// @Scheduled(cron = "0 0 9 * * ?")
|
@Scheduled(cron = "0 0 9 * * ?")
|
||||||
public void sendTrialOrderExcelToManagements() {
|
public void sendTrialOrderExcelToManagements() {
|
||||||
// 获取前一天日期
|
// 获取前一天日期
|
||||||
LocalDate yesterday = LocalDate.now().minusDays(1);
|
LocalDate yesterday = LocalDate.now().minusDays(1);
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ public class PaymentTask {
|
|||||||
@Resource
|
@Resource
|
||||||
private PayPalCheckoutService payPalCheckoutService;
|
private PayPalCheckoutService payPalCheckoutService;
|
||||||
|
|
||||||
// @Scheduled(cron = "0/30 * * * * ?")
|
@Scheduled(cron = "0/30 * * * * ?")
|
||||||
public void orderConfirmForPaypal() throws SerializeException {
|
public void orderConfirmForPaypal() throws SerializeException {
|
||||||
|
|
||||||
// log.info("PayPal orderConfirm 被执行......");
|
// log.info("PayPal orderConfirm 被执行......");
|
||||||
|
|||||||
@@ -114,8 +114,8 @@ public class SendRequestUtil {
|
|||||||
|
|
||||||
public String sendFluxPost(String url, String requestBodyStr) {
|
public String sendFluxPost(String url, String requestBodyStr) {
|
||||||
// 尝试两个API key
|
// 尝试两个API key
|
||||||
String[] apiKeys = {"d447a0ac-2291-4f1c-9a36-f7614c385989",
|
String[] apiKeys = {"84e8f5d5-b0b3-49aa-b244-ab7ba27e7ae7",
|
||||||
"84e8f5d5-b0b3-49aa-b244-ab7ba27e7ae7"};
|
"d447a0ac-2291-4f1c-9a36-f7614c385989"};
|
||||||
boolean[] notified = {false, false}; // 记录是否已发送过不足提醒
|
boolean[] notified = {false, false}; // 记录是否已发送过不足提醒
|
||||||
|
|
||||||
for (int i = 0; i < apiKeys.length; i++) {
|
for (int i = 0; i < apiKeys.length; i++) {
|
||||||
@@ -140,22 +140,9 @@ public class SendRequestUtil {
|
|||||||
if (status == 402 || status == 403) {
|
if (status == 402 || status == 403) {
|
||||||
if (!notified[i]) {
|
if (!notified[i]) {
|
||||||
SendEmailUtil.commonExceptionReminder(
|
SendEmailUtil.commonExceptionReminder(
|
||||||
"Flux账户积分不足,flux生成任务失败",
|
"Flux账户积分不足,flux生成任务失败。(key:)" + apiKeys[i],
|
||||||
new String[]{"xupei3360@163.com"}
|
new String[]{"xupei3360@163.com", "fangjianliao@aidlab.hk", "investigation@aidlab.hk"}
|
||||||
);
|
);
|
||||||
log.info("发送给xupei3360@163.com");
|
|
||||||
|
|
||||||
SendEmailUtil.commonExceptionReminder(
|
|
||||||
"Flux账户积分不足,flux生成任务失败",
|
|
||||||
new String[]{"fangjianliao@aidlab.hk"}
|
|
||||||
);
|
|
||||||
log.info("发送给fangjianliao@aidlab.hk");
|
|
||||||
|
|
||||||
SendEmailUtil.commonExceptionReminder(
|
|
||||||
"Flux账户积分不足,flux生成任务失败",
|
|
||||||
new String[]{"investigation@aidlab.hk"}
|
|
||||||
);
|
|
||||||
log.info("发送给investigation@aidlab.hk");
|
|
||||||
notified[i] = true;
|
notified[i] = true;
|
||||||
}
|
}
|
||||||
continue; // 尝试下一个key
|
continue; // 尝试下一个key
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ spring.security.jwtExpiration=604800000
|
|||||||
spring.security.ignorePaths=/,/favicon.ico,/doc.html,/webjars/**,/swagger-resources,/v2/api-docs,\
|
spring.security.ignorePaths=/,/favicon.ico,/doc.html,/webjars/**,/swagger-resources,/v2/api-docs,\
|
||||||
/api/account/**,/api/element/**,/api/python/**,/api/design/**,/api/history/**,/api/library/**,/api/third/party/**,/api/generate/**,/api/workspace/**,/api/classification/**,\
|
/api/account/**,/api/element/**,/api/python/**,/api/design/**,/api/history/**,/api/library/**,/api/third/party/**,/api/generate/**,/api/workspace/**,/api/classification/**,\
|
||||||
/api/product/**,/api/ali-pay/**,/api/order-info/**,/api/paypal/**,/api/credits/**,/api/inquiry/**,/api/tasks/**,/api/python/prepareForSR,/api/alipay-hk/**,/api/portfolio/**,\
|
/api/product/**,/api/ali-pay/**,/api/order-info/**,/api/paypal/**,/api/credits/**,/api/inquiry/**,/api/tasks/**,/api/python/prepareForSR,/api/alipay-hk/**,/api/portfolio/**,\
|
||||||
/api/stripe/**,/api/message/**,/api/tags/**,/notification/**,/api/affiliate/**,/api/project/**,/api/llm/**
|
/api/stripe/**,/api/message/**,/api/tags/**,/notification/**,/api/affiliate/**,/api/project/**,/api/llm/**, /api/subscription_plan/**
|
||||||
spring.security.authApi=/auth/login
|
spring.security.authApi=/auth/login
|
||||||
|
|
||||||
|
|
||||||
@@ -71,15 +71,15 @@ spring.rabbitmq.username=rabbit
|
|||||||
spring.rabbitmq.password=123456
|
spring.rabbitmq.password=123456
|
||||||
spring.rabbitmq.virtual-host=/
|
spring.rabbitmq.virtual-host=/
|
||||||
|
|
||||||
spring.redis.host=172.31.11.32
|
spring.data.redis.host=172.31.11.32
|
||||||
#spring.redis.host=18.167.251.121
|
#spring.data.redis.host=18.167.251.121
|
||||||
spring.redis.port=6379
|
spring.data.redis.port=6379
|
||||||
spring.redis.database=2
|
spring.data.redis.database=2
|
||||||
spring.redis.password=Aidlab
|
spring.data.redis.password=Aidlab
|
||||||
spring.redis.lettuce.pool.max-active=8
|
spring.data.redis.lettuce.pool.max-active=8
|
||||||
spring.redis.lettuce.pool.max-idle=8
|
spring.data.redis.lettuce.pool.max-idle=8
|
||||||
spring.redis.lettuce.pool.min-idle=0
|
spring.data.redis.lettuce.pool.min-idle=0
|
||||||
spring.redis.lettuce.pool.max-wait=5
|
spring.data.redis.lettuce.pool.max-wait=5
|
||||||
|
|
||||||
redis.key.orderForGenerate=OrderForGenerate
|
redis.key.orderForGenerate=OrderForGenerate
|
||||||
redis.key.generateCancelSet=GenerateCancelSet
|
redis.key.generateCancelSet=GenerateCancelSet
|
||||||
|
|||||||
@@ -34,13 +34,13 @@ paypal.webhook_id=1D107312EX592781K
|
|||||||
#stripe.webhook-sign-secret=whsec_TJcMSnAkh4uktrNY1M6Iy8XaVze4Rzqm
|
#stripe.webhook-sign-secret=whsec_TJcMSnAkh4uktrNY1M6Iy8XaVze4Rzqm
|
||||||
|
|
||||||
# kim - test
|
# kim - test
|
||||||
stripe.private-key=sk_test_51LwPrxH7nPZ8bkrNj67TFD7sxucaTANs1lf0KGSu1QSJfxYXcnigq2wTaZyZzST7y0fMbhhvaJZ4LjjFhr95M83a00eXrmOTL0
|
#stripe.private-key=sk_test_51LwPrxH7nPZ8bkrNj67TFD7sxucaTANs1lf0KGSu1QSJfxYXcnigq2wTaZyZzST7y0fMbhhvaJZ4LjjFhr95M83a00eXrmOTL0
|
||||||
# prod 端点
|
# prod 端点
|
||||||
#stripe.webhook-sign-secret=whsec_GoyVEAaBtuGD5Rt55z83JnPnLDAZTN3u
|
#stripe.webhook-sign-secret=whsec_GoyVEAaBtuGD5Rt55z83JnPnLDAZTN3u
|
||||||
# local 端点
|
# local 端点
|
||||||
#stripe.webhook-sign-secret=whsec_NvwM3hDQiN5GXclYOYekE9IKHLjmROF8
|
#stripe.webhook-sign-secret=whsec_NvwM3hDQiN5GXclYOYekE9IKHLjmROF8
|
||||||
# dev 端点
|
# dev 端点
|
||||||
stripe.webhook-sign-secret=whsec_pX0pPMQm85PaUSWnFMEzoccb3MGNkjoL
|
#stripe.webhook-sign-secret=whsec_pX0pPMQm85PaUSWnFMEzoccb3MGNkjoL
|
||||||
|
|
||||||
# kim - live
|
# kim - live
|
||||||
#stripe.private-key=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
|
#stripe.private-key=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
|
||||||
|
|||||||
Reference in New Issue
Block a user