ソースを参照

fix user relation

abiao 5 年 前
コミット
6ddaccf26c
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1 1
      go/gopath/src/fohow.com/apps/models/user_model/three_wx_user.go

+ 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 and id !=1
+		update wx_users set invite_id=1 where invite_id=0 and id >1
 	`
 	o.Raw(sql).Exec()