瀏覽代碼

fix user relation

abiao 5 年之前
父節點
當前提交
7331c4fb84
共有 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 
+		update wx_users set invite_id=1 where invite_id=0 and id !=1
 	`
 	o.Raw(sql).Exec()