File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -314,12 +314,11 @@ func (self ProjectLogic) ParseProjectList(pUrl string) error {
314
314
}
315
315
316
316
// 最后面的先入库处理
317
- projectsSelection := doc .Find (".news- list" ).Children ()
317
+ projectsSelection := doc .Find ("#projectList . list-container " ).Children ()
318
318
319
319
for i := projectsSelection .Length () - 1 ; i >= 0 ; i -- {
320
-
321
320
contentSelection := goquery .NewDocumentFromNode (projectsSelection .Get (i )).Selection
322
- projectUrl , ok := contentSelection .Find (".box-aw a" ).First ().Attr ("href" )
321
+ projectUrl , ok := contentSelection .Find (".content .header a" ).First ().Attr ("href" )
323
322
324
323
if ! ok || projectUrl == "" {
325
324
logger .Errorln ("project url is empty" )
Original file line number Diff line number Diff line change 20
20
< td width ="48 " valign ="top " align ="center ">
21
21
{{if .Uid}}
22
22
{{$user := index $.users .Uid}}
23
- < a href ="/user/{{$user.Username}} "> < img src ="{{gravatar $user.Avatar $user.Email 48 $.is_https}} " class ="avatar "> </ a >
23
+ < a href ="/user/{{$user.Username}} "> < img src ="{{gravatar $user.Avatar $user.Email 48 $.is_https}} " class ="avatar " style =" width:48px; " > </ a >
24
24
{{else}}
25
25
< a href ="javascript: ">
26
- < img class ="noavatar " alt ="" src ="https://secure.gravatar.com/avatar/3bf6178897766ebadaa830073e87374d?s=48 " data-objid ="{{.Objid}} " data-objtype ="{{.Objtype}} " data-author ="{{.Author}} ">
26
+ < img class ="noavatar " alt ="" src ="https://secure.gravatar.com/avatar/3bf6178897766ebadaa830073e87374d?s=48 " data-objid ="{{.Objid}} " data-objtype ="{{.Objtype}} " data-author ="{{.Author}} " style =" width:48px; " >
27
27
</ a >
28
28
{{end}}
29
29
</ td >
You can’t perform that action at this time.
0 commit comments