Explorar o código

wip:mongo结构体调用错误

zhangxinlei1996 %!s(int64=2) %!d(string=hai) anos
pai
achega
f50ae66cb0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ent/entity/user.go

+ 1 - 1
ent/entity/user.go

@@ -188,7 +188,7 @@ func (u *User) Add(tx *sql.Tx, entId int, user *User, paymentAddress, source, ns
 func (u *User) Update(mail string, userId, deptId, entId int) bool {
 	return Mysql.ExecTx("修改员工", func(tx *sql.Tx) bool {
 		ok_1 := Mysql.UpdateOrDeleteBySqlByTx(tx, `update entniche_user set mail=?,timestamp=? where id=? and ent_id=?`, mail, NowFormat(Date_Full_Layout), userId, entId)
-		Mgo_Bidding.Update("ent_user", map[string]interface{}{"i_entid": entId, "i_userid": userId}, map[string]interface{}{
+		MQFW.Update("ent_user", map[string]interface{}{"i_entid": entId, "i_userid": userId}, map[string]interface{}{
 			"$set": map[string]interface{}{
 				"o_pushset.s_email": mail,
 			},