first commit
This commit is contained in:
13
pkg/helper/WxHelper.go
Normal file
13
pkg/helper/WxHelper.go
Normal file
@ -0,0 +1,13 @@
|
||||
package helper
|
||||
|
||||
import "strings"
|
||||
|
||||
//是否使用微信打开
|
||||
func IsWeiXinBrowser(httpUserAgent string) bool {
|
||||
wxAgentKey := "MicroMessenger"
|
||||
|
||||
if strings.Contains(httpUserAgent, wxAgentKey) {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
Reference in New Issue
Block a user