Ver código fonte

fix 记录代充token

zoujiajian 1 ano atrás
pai
commit
db54ada937

+ 5 - 0
netflix-dao/src/main/java/com/cyksj/model/entity/GroupsRelation.java

@@ -64,6 +64,11 @@ public class GroupsRelation extends BaseEntity {
      */
     private String gptTaskId;
 
+    /**
+     * gpt 代充token
+     */
+    private String gptToken;
+
     private Date submitTime;
 
     private Date sendTime;

+ 2 - 1
netflix-dao/src/main/resources/mapper/GroupRelationMapper.xml

@@ -27,7 +27,8 @@
         recharge_remain_num = null,
         card_key = null,
         gpt_task_id = null,
-        recharge_error_info = null
+        recharge_error_info = null,
+        gpt_token = null
         where id = #{entity.id}
         <if test="expireTime != null">
             and expiry_time = #{expireTime}

+ 1 - 0
netflix-service/src/main/java/com/cyksj/server/recharge/impl/GptProxyRechargeServiceImpl.java

@@ -279,6 +279,7 @@ public class GptProxyRechargeServiceImpl implements GptProxyRechargeService {
 					.set(GroupsRelation::getAccount, rechargeAccount)
 					.set(GroupsRelation::getRechargeStatus, GroupsRelation.RechargeStatus.recharging)
 					.set(GroupsRelation::getCardKey, gptCardKey)
+					.set(GroupsRelation::getGptToken, accessToken)
 					.set(GroupsRelation::getGptTaskId, taskId)
 					.eq(GroupsRelation::getId, relationId));
 			return taskId;

+ 1 - 0
netflix-service/src/main/java/com/cyksj/service/mange/gpt/impl/GptRechargeServiceImpl.java

@@ -204,6 +204,7 @@ public class GptRechargeServiceImpl implements GptRechargeService {
 					.set(StrUtil.isNotBlank(password), GroupsRelation::getPassword, password)
 					.set(GroupsRelation::getRechargeStatus, GroupsRelation.RechargeStatus.recharging)
 					.set(GroupsRelation::getCardKey, gptCardKey)
+					.set(GroupsRelation::getGptToken, accessToken)
 					.set(GroupsRelation::getGptTaskId, taskId)
 					.eq(GroupsRelation::getId, relationId));
 			return taskId;

+ 1 - 0
netflix-service/src/main/java/com/cyksj/service/mange/impl/CmsOrderDonServiceImpl.java

@@ -830,6 +830,7 @@ public class CmsOrderDonServiceImpl extends ServiceImpl<OrderDonMapper,OrderDon>
             newRelation.setPassword(relation.getPassword());
             newRelation.setGptTaskId(relation.getGptTaskId());
             newRelation.setCardKey(relation.getCardKey());
+            newRelation.setGptToken(relation.getGptToken());
 
             //清除原先车票
             relation.setNewRelationId(newRelation.getId());