|
@@ -415,6 +415,7 @@ public class GptProxyRechargeServiceImpl implements GptProxyRechargeService {
|
|
|
.set(GroupsRelation::getCardKey, gptCardKey)
|
|
.set(GroupsRelation::getCardKey, gptCardKey)
|
|
|
.set(GroupsRelation::getGptToken, saveTokenJson)
|
|
.set(GroupsRelation::getGptToken, saveTokenJson)
|
|
|
.set(GroupsRelation::getGptTaskId, taskId)
|
|
.set(GroupsRelation::getGptTaskId, taskId)
|
|
|
|
|
+ .set(GroupsRelation::getOperator, null)
|
|
|
.eq(GroupsRelation::getId, relationId));
|
|
.eq(GroupsRelation::getId, relationId));
|
|
|
return taskId;
|
|
return taskId;
|
|
|
} finally {
|
|
} finally {
|
|
@@ -494,7 +495,11 @@ public class GptProxyRechargeServiceImpl implements GptProxyRechargeService {
|
|
|
.eq(GroupsRelation::getRechargeStatus, GroupsRelation.RechargeStatus.recharging));
|
|
.eq(GroupsRelation::getRechargeStatus, GroupsRelation.RechargeStatus.recharging));
|
|
|
//记录代充记录
|
|
//记录代充记录
|
|
|
if (rechargeStatus == GroupsRelation.RechargeStatus.complete) {
|
|
if (rechargeStatus == GroupsRelation.RechargeStatus.complete) {
|
|
|
- gptUserRechargeRecordService.recordGptUserRechargeNum(relation.getCardKey(), relation.getUserId(), relation.getId(), relation.getAccount(), -1, null, "自动代充");
|
|
|
|
|
|
|
+ String remark = "自动代充";
|
|
|
|
|
+ if (StrUtil.isNotBlank(relation.getOperator())) {
|
|
|
|
|
+ remark = "后台自动代充";
|
|
|
|
|
+ }
|
|
|
|
|
+ gptUserRechargeRecordService.recordGptUserRechargeNum(relation.getCardKey(), relation.getUserId(), relation.getId(), relation.getAccount(), -1, relation.getOperator(), remark);
|
|
|
//修改对应订单状态
|
|
//修改对应订单状态
|
|
|
if (gptRechargeCardKey != null) {
|
|
if (gptRechargeCardKey != null) {
|
|
|
Long orderId = gptRechargeCardKey.getOrderId();
|
|
Long orderId = gptRechargeCardKey.getOrderId();
|