|
@@ -26,8 +26,8 @@ func init() {
|
|
|
// 微信首页地址
|
|
|
func (w *WX) Index(pageLabel string) error {
|
|
|
log.Println("---sessionId----:", w.Session().Id())
|
|
|
- //是否是移动端
|
|
|
- if bm := mobileReg.MatchString(w.Header("User-Agent")); bm {
|
|
|
+ //是否是电脑端
|
|
|
+ if bm := mobileReg.MatchString(w.Header("User-Agent")); !bm {
|
|
|
return w.Redirect(fmt.Sprintf("%s/partner/%s", config.Sysconfig["mainDomainName"].(string), pageLabel))
|
|
|
}
|
|
|
//未登录
|