|
|
@@ -61,11 +61,13 @@ public class UserActivityServiceImpl extends ServiceImpl<UserActivityMapper, Use
|
|
|
}
|
|
|
}
|
|
|
ReceiveGptActivityTicketResp apiQuotaTicketResp = null;
|
|
|
- try {
|
|
|
- apiQuotaTicketResp = groupRelationFrontService.receiveStudentCertGptApiQuotaTicket(sendUserId);
|
|
|
- log.info("uid:{}大学生认证成功,发放API站额度券:{}", sendUserId, apiQuotaTicketResp.getRedeemCode());
|
|
|
- } catch (Exception e) {
|
|
|
- log.error("uid:{}大学生认证发放API站额度券失败", sendUserId, e);
|
|
|
+ if (Boolean.TRUE.equals(activity.getApiQuotaCouponEnabled())) {
|
|
|
+ try {
|
|
|
+ apiQuotaTicketResp = groupRelationFrontService.receiveStudentCertGptApiQuotaTicket(sendUserId);
|
|
|
+ log.info("uid:{}大学生认证成功,发放API站额度券:{}", sendUserId, apiQuotaTicketResp.getRedeemCode());
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("uid:{}大学生认证发放API站额度券失败", sendUserId, e);
|
|
|
+ }
|
|
|
}
|
|
|
try {
|
|
|
UserStudentCertRecord record = new UserStudentCertRecord();
|