|
@@ -85,7 +85,14 @@ public class NLPRemoteService {
|
|
|
// log.info("scoreList 返回的数据:{}", responseBody);
|
|
|
JSONObject scoreListResponse = JSONObject.parseObject(responseBody);
|
|
|
if (Objects.nonNull(scoreListResponse)) {
|
|
|
- JSONObject accountScoreList = scoreListResponse.getJSONObject(accountName);
|
|
|
+ Set<String> keySet = scoreListResponse.keySet();
|
|
|
+ JSONObject accountScoreList = null;
|
|
|
+ for (String key : keySet) {
|
|
|
+ if (key.equals(accountName) || key.equals(ghId)) {
|
|
|
+ accountScoreList = scoreListResponse.getJSONObject(key);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
if (Objects.nonNull(accountScoreList)) {
|
|
|
List<Double> scoreList = accountScoreList.getJSONArray("score_list").toJavaList(Double.class);
|
|
|
for (int i = 0; i < contentList.size(); i++) {
|