|
|
@@ -533,11 +533,13 @@ public class CmsGroupRelationController {
|
|
|
public Result<String> postGptCardKey(@RequestBody GptRechargeCardKeyReq req) {
|
|
|
Integer type = req.getType();
|
|
|
List<String> cardKey = req.getCardKey();
|
|
|
+ Long channelId = req.getChannelId();
|
|
|
cardKey.forEach(key -> {
|
|
|
try {
|
|
|
GptRechargeCardKey gptRechargeCardKey = new GptRechargeCardKey();
|
|
|
gptRechargeCardKey.setCardKey(key);
|
|
|
gptRechargeCardKey.setType(type);
|
|
|
+ gptRechargeCardKey.setChannelId(channelId);
|
|
|
gptRechargeCardKeyMapper.insert(gptRechargeCardKey);
|
|
|
} catch (DuplicateKeyException e) {
|
|
|
|