默认头像

master
taoshihan 2 years ago
parent 3935fb1cb9
commit 82ec150ff2

@ -61,9 +61,9 @@ func PostVisitorLogin(c *gin.Context) {
avator:="" avator:=""
userAgent := c.GetHeader("User-Agent") userAgent := c.GetHeader("User-Agent")
if tools.IsMobile(userAgent) { if tools.IsMobile(userAgent) {
avator = "/static/images/phone.png" avator = "/static/images/1.png"
} else { } else {
avator = "/static/images/computer.png" avator = "/static/images/2.png"
} }
toId := c.PostForm("to_id") toId := c.PostForm("to_id")

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Loading…
Cancel
Save