Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 255034c

Browse files
committed
/ws 不加活跃
1 parent d1eeb1c commit 255034c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/global/app.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import (
3636

3737
const (
3838
DefaultCDNHttp = "http://studygolang.qiniudn.com/"
39-
DefaultCDNHttps = "https://dn-studygolang.qbox.me/"
39+
DefaultCDNHttps = "https://static.studygolang.com/"
4040
)
4141

4242
var Build string

src/http/middleware/login.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func AutoLogin() echo.MiddlewareFunc {
3636
if user.Uid != 0 {
3737
ctx.Set("user", user)
3838

39-
if !util.IsAjax(ctx) {
39+
if !util.IsAjax(ctx) && ctx.Path() != "/ws" {
4040
go logic.ViewObservable.NotifyObservers(user.Uid, 0, 0)
4141
}
4242
}

template/top/dau.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<a href="/user/{{.Username}}"><img src="{{gravatar .Avatar .Email 48 $.is_https}}" class="avatar" border="0" align="default"></a>
2121
</td>
2222
<td width="auto" align="left">
23-
<h2 style="margin-bottom: 0px; margin-top: 0px; border-bottom: none;"><span class="gray">{{add $i 1}}.</span> <a class="nobreak noul" href="/member/{{.Username}}">{{.Username}}</a></h2>
23+
<h2 style="margin-bottom: 0px; margin-top: 0px; border-bottom: none;"><span class="gray">{{add $i 1}}.</span> <a class="nobreak noul" href="/user/{{.Username}}">{{.Username}}</a></h2>
2424

2525
<span class="gray f12">{{.Monlog}}</span>
2626
<div class="sep5"></div>

0 commit comments

Comments
 (0)