Parcourir la source

Merge branch 'dev_v1.0.3_wh' of moapp/jypkg into feature/v1.0.3

王浩 il y a 1 an
Parent
commit
5c24ff9790
1 fichiers modifiés avec 6 ajouts et 6 suppressions
  1. 6 6
      ent/entity/user.go

+ 6 - 6
ent/entity/user.go

@@ -186,18 +186,18 @@ func (u *User) Add(tx *sql.Tx, entId int, user *User, paymentAddress, source, ns
 		//base_user表,用户名字段 user_name
 		//mog库user表,用户名字段 user_name
 		if user.User_name != "" && len(user.User_name) > 0 {
-			Mysql.Update(Entniche_user, map[string]interface{}{
+			/*Mysql.Update(Entniche_user, map[string]interface{}{
 				"phone": user.Phone,
 			}, map[string]interface{}{
 				"user_name": user.User_name,
-			})
+			})*/
 			data, _ := MQFW.Find("user", map[string]interface{}{
 				"i_appid": 2,
 				"$or": []map[string]interface{}{
 					{"s_phone": user.Phone},
 					{"s_m_phone": user.Phone},
 				},
-			}, `{"s_phone":-1}`, `{"_id":1,"s_password":1}`, false, 0, 1)
+			}, `{"s_phone":-1}`, `{"_id":1,"base_user_id":1}`, false, 0, 1)
 			if data != nil && len(*data) > 0 {
 				for _, v := range *data {
 					userId := v["_id"]
@@ -316,18 +316,18 @@ func (u *User) UpdateUserName(entId, userId int, user_name string) {
 	//mog库user表,用户名字段 user_name
 	if user_name != "" && len(user_name) > 0 {
 		user := u.GetById(entId, userId)
-		Mysql.Update(Entniche_user, map[string]interface{}{
+		/*Mysql.Update(Entniche_user, map[string]interface{}{
 			"phone": user.Phone,
 		}, map[string]interface{}{
 			"user_name": user_name,
-		})
+		})*/
 		data, _ := MQFW.Find("user", map[string]interface{}{
 			"i_appid": 2,
 			"$or": []map[string]interface{}{
 				{"s_phone": user.Phone},
 				{"s_m_phone": user.Phone},
 			},
-		}, `{"s_phone":-1}`, `{"_id":1,"s_password":1}`, false, 0, 1)
+		}, `{"s_phone":-1}`, `{"_id":1,"base_user_id":1}`, false, 0, 1)
 		if data != nil && len(*data) > 0 {
 			for _, v := range *data {
 				userId := v["_id"]