You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
303 B
17 lines
303 B
2 months ago
|
package misc
|
||
|
|
||
|
import "math/rand"
|
||
|
|
||
|
func GetUserAvatar() string {
|
||
|
link1 := "https://doutok-video.oss-cn-shanghai.aliyuncs.com/video/hear.png"
|
||
|
link2 := "https://doutok-video.oss-cn-shanghai.aliyuncs.com/video/stop.png"
|
||
|
|
||
|
r := rand.Int31n(100)
|
||
|
if r%2 == 0 {
|
||
|
return link1
|
||
|
} else {
|
||
|
return link2
|
||
|
}
|
||
|
|
||
|
}
|