|
|
@@ -322,7 +322,7 @@ public class NewDatasetServiceImpl implements NewDatasetService { |
|
|
String userReq = jedis.get(ci4sUsername + "_gitUserInfo"); |
|
|
String userReq = jedis.get(ci4sUsername + "_gitUserInfo"); |
|
|
Map<String, Object> userInfo = JsonUtils.jsonToMap(userReq); |
|
|
Map<String, Object> userInfo = JsonUtils.jsonToMap(userReq); |
|
|
// 拼接查询url |
|
|
// 拼接查询url |
|
|
String url = gitendpoint + "/api/users/" + userInfo.get("login") + "/projects.json?category=manage"; |
|
|
|
|
|
|
|
|
String url = gitendpoint + "/api/users/" + userInfo.get("login") + "/projects.json?category=manage&sort_direction=praises_count&sort_by=desc"; |
|
|
|
|
|
|
|
|
String name = dataset.getName(); |
|
|
String name = dataset.getName(); |
|
|
if (StringUtils.isNotEmpty(name)) { |
|
|
if (StringUtils.isNotEmpty(name)) { |
|
|
@@ -342,7 +342,7 @@ public class NewDatasetServiceImpl implements NewDatasetService { |
|
|
public Page<NewDatasetVo> newPubilcQueryByPage(Dataset dataset, PageRequest pageRequest) throws Exception { |
|
|
public Page<NewDatasetVo> newPubilcQueryByPage(Dataset dataset, PageRequest pageRequest) throws Exception { |
|
|
String token = gitService.checkoutToken(); |
|
|
String token = gitService.checkoutToken(); |
|
|
// 拼接查询url |
|
|
// 拼接查询url |
|
|
String url = gitendpoint + "/api/projects.json?sort_direction=updated_on&sort_by=desc&category_id=" + Constant.Git_Category_Id; |
|
|
|
|
|
|
|
|
String url = gitendpoint + "/api/projects.json?sort_direction=praises_count&sort_by=desc&category_id=" + Constant.Git_Category_Id; |
|
|
|
|
|
|
|
|
String name = dataset.getName(); |
|
|
String name = dataset.getName(); |
|
|
if (StringUtils.isNotEmpty(name)) { |
|
|
if (StringUtils.isNotEmpty(name)) { |
|
|
|