14 lines
227 B
Go
14 lines
227 B
Go
package helper
|
|
|
|
import "strings"
|
|
|
|
//是否使用微信打开
|
|
func IsWeiXinBrowser(httpUserAgent string) bool {
|
|
wxAgentKey := "MicroMessenger"
|
|
|
|
if strings.Contains(httpUserAgent, wxAgentKey) {
|
|
return true
|
|
}
|
|
return false
|
|
}
|