|
|
@ -181,6 +181,22 @@ public class ApiFundingServiceImpl implements ApiIFundingService { |
|
|
|
if(rootNode.path("code").asInt() == 401){ |
|
|
|
return Result.failure("登录凭证错误"); |
|
|
|
} |
|
|
|
|
|
|
|
//市场二的总的助力次数 |
|
|
|
Integer markerTwoTotal = fundingMapper.searchMarketTotal(fundingRecordDto.getActivityId(), fundingRecordDto.getMarketSign()); |
|
|
|
if (markerTwoTotal == null) { |
|
|
|
markerTwoTotal = 0; // 默认值 |
|
|
|
} |
|
|
|
//市场二的虚拟次数 |
|
|
|
Integer markerTwoVirtual = fundingMapper.searchVirtual(fundingRecordDto.getActivityId(), fundingRecordDto.getMarketSign()); |
|
|
|
if (markerTwoVirtual == null) { |
|
|
|
markerTwoVirtual = 0; // 默认值 |
|
|
|
} |
|
|
|
Integer Show = markerTwoTotal + markerTwoVirtual; |
|
|
|
|
|
|
|
if((Show+1)>1500){ |
|
|
|
return Result.failure(200,"美股实时数据助力成功!"); |
|
|
|
} |
|
|
|
// 提取 username |
|
|
|
String username = rootNode.path("data").path("username").asText(); |
|
|
|
String jwcode = rootNode.path("data").path("jwcode").asText(); |
|
|
|