| @@ -418,44 +418,16 @@ queryRecommendData(); | |||||
| function queryRecommendData(){ | function queryRecommendData(){ | ||||
| $.ajax({ | $.ajax({ | ||||
| type:"GET", | type:"GET", | ||||
| url:"/recommend/org", | |||||
| url:"/recommend/home", | |||||
| headers: { | headers: { | ||||
| authorization:token, | authorization:token, | ||||
| }, | }, | ||||
| dataType:"json", | dataType:"json", | ||||
| async:false, | async:false, | ||||
| success:function(json){ | success:function(json){ | ||||
| displayOrg(json); | |||||
| }, | |||||
| error:function(response) { | |||||
| } | |||||
| }); | |||||
| $.ajax({ | |||||
| type:"GET", | |||||
| url:"/recommend/repo", | |||||
| headers: { | |||||
| authorization:token, | |||||
| }, | |||||
| dataType:"json", | |||||
| async:false, | |||||
| success:function(json){ | |||||
| displayRepo(json); | |||||
| }, | |||||
| error:function(response) { | |||||
| } | |||||
| }); | |||||
| $.ajax({ | |||||
| type:"GET", | |||||
| url:"/recommend/imageinfo", | |||||
| headers: { | |||||
| authorization:token, | |||||
| }, | |||||
| dataType:"json", | |||||
| async:false, | |||||
| success:function(json){ | |||||
| displayActivity(json); | |||||
| displayOrg(json.org); | |||||
| displayRepo(json.repo); | |||||
| displayActivity(json.image) | |||||
| }, | }, | ||||
| error:function(response) { | error:function(response) { | ||||
| } | } | ||||