|
|
@@ -329,6 +329,11 @@ public class ChatGptAccountServiceImpl implements ChatGptAccountService {
|
|
|
chatgptUser.setDsLimitNum(goodsDonSku.getDsLimitNum());
|
|
|
chatgptUser.setOtherLimitNum(goodsDonSku.getOtherLimitNum());
|
|
|
chatgptUser.setOtherLimitTime(goodsDonSku.getOtherLimitTime());
|
|
|
+
|
|
|
+ chatgptUser.setGptThink(goodsDonSku.getGptThink());
|
|
|
+ chatgptUser.setGptThinkLimitTime(goodsDonSku.getGptThinkLimitTime());
|
|
|
+ chatgptUser.setGptDeepStyleLimit(goodsDonSku.getGptDeepStyleLimit());
|
|
|
+ chatgptUser.setGptDeepStyleLimitTime(goodsDonSku.getGptDeepStyleLimitTime());
|
|
|
}
|
|
|
try {
|
|
|
chatgptUser.setExpireTime(groupsRelation.getExpiryTime());
|
|
|
@@ -372,6 +377,11 @@ public class ChatGptAccountServiceImpl implements ChatGptAccountService {
|
|
|
chatgptUser.setDsLimitTime(goodsDonSku.getDsLimitTime());
|
|
|
chatgptUser.setOtherLimitNum(goodsDonSku.getOtherLimitNum());
|
|
|
chatgptUser.setOtherLimitTime(goodsDonSku.getOtherLimitTime());
|
|
|
+
|
|
|
+ chatgptUser.setGptThink(goodsDonSku.getGptThink());
|
|
|
+ chatgptUser.setGptThinkLimitTime(goodsDonSku.getGptThinkLimitTime());
|
|
|
+ chatgptUser.setGptDeepStyleLimit(goodsDonSku.getGptDeepStyleLimit());
|
|
|
+ chatgptUser.setGptDeepStyleLimitTime(goodsDonSku.getGptDeepStyleLimitTime());
|
|
|
}
|
|
|
try {
|
|
|
chatgptUser.setExpireTime(DateUtil.offsetMonth(DateTime.now(), goodsDonSku.getMonths()));
|
|
|
@@ -648,6 +658,10 @@ public class ChatGptAccountServiceImpl implements ChatGptAccountService {
|
|
|
.dsLimitTime(chatgptUser.getDsLimitTime())
|
|
|
.otherLimitNum(chatgptUser.getOtherLimitNum())
|
|
|
.otherLimitTime(chatgptUser.getOtherLimitTime())
|
|
|
+ .gptThink(chatgptUser.getGptThink())
|
|
|
+ .gptThinkLimitTime(chatgptUser.getGptThinkLimitTime())
|
|
|
+ .gptDeepStyleLimit(chatgptUser.getGptDeepStyleLimit())
|
|
|
+ .gptDeepStyleLimitTime(chatgptUser.getGptDeepStyleLimitTime())
|
|
|
.upgrade(upgrade)
|
|
|
.orderId(orderId)
|
|
|
.goodsId(goodsDonSku.getGoodsId())
|
|
|
@@ -667,6 +681,10 @@ public class ChatGptAccountServiceImpl implements ChatGptAccountService {
|
|
|
}
|
|
|
view.setOtherUse(Optional.ofNullable(conversationCount.getLong("other")).orElse(0L));
|
|
|
view.setDpsUse(Optional.ofNullable(conversationCount.getLong("dps")).orElse(0L));
|
|
|
+
|
|
|
+ //gpt think已使用次数
|
|
|
+ view.setGptThinkUse(Optional.ofNullable(conversationCount.getLong("gptThinkCount")).orElse(0L));
|
|
|
+ view.setGptDeepStyleUse(Optional.ofNullable(conversationCount.getLong("deepResearchCount")).orElse(0L));
|
|
|
return view;
|
|
|
} else {
|
|
|
throw BusinessRuntimeException.getInstance("您还未购买该车票");
|
|
|
@@ -686,6 +704,10 @@ public class ChatGptAccountServiceImpl implements ChatGptAccountService {
|
|
|
.dsLimitTime(chatgptUser.getDsLimitTime())
|
|
|
.otherLimitNum(chatgptUser.getOtherLimitNum())
|
|
|
.otherLimitTime(chatgptUser.getOtherLimitTime())
|
|
|
+ .gptThink(chatgptUser.getGptThink())
|
|
|
+ .gptThinkLimitTime(chatgptUser.getGptThinkLimitTime())
|
|
|
+ .gptDeepStyleLimit(chatgptUser.getGptDeepStyleLimit())
|
|
|
+ .gptDeepStyleLimitTime(chatgptUser.getGptDeepStyleLimitTime())
|
|
|
.use(getConversationCount(chatgptUser.getUserToken(), chatgptUser.getLimitTime()))
|
|
|
.build();
|
|
|
} else {
|
|
|
@@ -923,6 +945,11 @@ public class ChatGptAccountServiceImpl implements ChatGptAccountService {
|
|
|
chatgptUser.setDsLimitTime(goodsDonSku.getDsLimitTime());
|
|
|
chatgptUser.setOtherLimitNum(goodsDonSku.getOtherLimitNum());
|
|
|
chatgptUser.setOtherLimitTime(goodsDonSku.getOtherLimitTime());
|
|
|
+
|
|
|
+ chatgptUser.setGptThink(goodsDonSku.getGptThink());
|
|
|
+ chatgptUser.setGptThinkLimitTime(goodsDonSku.getGptThinkLimitTime());
|
|
|
+ chatgptUser.setGptDeepStyleLimit(goodsDonSku.getGptDeepStyleLimit());
|
|
|
+ chatgptUser.setGptDeepStyleLimitTime(goodsDonSku.getGptDeepStyleLimitTime());
|
|
|
}
|
|
|
try {
|
|
|
DateTime dateTime = DateUtil.offsetMonth(new Date(), 1);
|