commit
This commit is contained in:
@@ -25,9 +25,12 @@ import org.nutz.json.Json;
|
||||
import org.nutz.lang.Lang;
|
||||
import org.nutz.lang.util.NutMap;
|
||||
import org.nutz.mvc.Mvcs;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.slf4j.spi.LoggerFactoryBinder;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
/**
|
||||
* 获取源数据配置
|
||||
@@ -158,6 +161,7 @@ public interface SourceData {
|
||||
HttpRequest post = HttpUtil.createPost(USER_URL_TOTAL)
|
||||
.body(Json.toJson(Map.of("access_token", token, "page", i, "per_page", 1000)));
|
||||
JSONObject userJsonObject = JSON.parseObject(post.execute().body());
|
||||
System.out.println(userJsonObject.toString());
|
||||
List<JSONObject> jsonObjects = userJsonObject.getJSONObject("result").getJSONArray("data").toJavaList(JSONObject.class);
|
||||
data.addAll(jsonObjects);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user