Explorar o código

fix wx_user inner_no

abiao %!s(int64=5) %!d(string=hai) anos
pai
achega
0ce9c40cae

+ 3 - 4
go/gopath/src/fohow.com/apps/controllers/cron_controller/three_user_relation.go

@@ -23,11 +23,10 @@ func insertThreeWxusers() {
 //三位会员内部关系
 func threebUserRelation() {
 	wxUserId := int64(1)
-	//从公司会员开始修复
-	wxUser := user_model.GetThreeWxUserById(wxUserId, true)
+	innerNo := "M"
 	//更改下级群主关系
-	inviteList := user_model.GetThreeWxUsersByInviteIdAll(wxUser.Id, false)
-	go UpdateClassThreeInner(inviteList, wxUser.IntroInnerNo, wxUser.Id)
+	inviteList := user_model.GetThreeWxUsersByInviteIdAll(wxUserId, false)
+	go UpdateClassThreeInner(inviteList, innerNo, wxUserId)
 }
 
 func UpdateClassThreeInner(list []*user_model.ThreeWxUser, innerNo string, inviteId int64) {