Explorar o código

fix user relation

abiao %!s(int64=5) %!d(string=hai) anos
pai
achega
7331c4fb84

+ 1 - 1
go/gopath/src/fohow.com/apps/models/user_model/three_wx_user.go

@@ -191,7 +191,7 @@ func CopyWxUsers() {
 
 	//更新invite_id丢失会员
 	sql = `
-		update wx_users set invite_id=1 where invite_id=0 
+		update wx_users set invite_id=1 where invite_id=0 and id !=1
 	`
 	o.Raw(sql).Exec()