Browse Source

feat: 广州移动

zhangxinlei1996 2 năm trước cách đây
mục cha
commit
9d6fad0624
1 tập tin đã thay đổi với 3 bổ sung4 xóa
  1. 3 4
      service/power.go

+ 3 - 4
service/power.go

@@ -93,8 +93,9 @@ func (this *PowerService) Power(userid string, baseUserId, accountId, entId, pos
 		data, ok := this.Conn.MgoJy.FindById("user", userid, mgoUserFields)
 		if ok && data != nil && len(*data) > 0 {
 			//基本信息
-			registeDate := common.Int64All((*data)["l_registedate"])                                            //注册时间
-			phone, _ := common.If((*data)["s_phone"] != nil, (*data)["s_phone"], (*data)["s_m_phone"]).(string) //
+			registeDate := common.Int64All((*data)["l_registedate"])                                                  //注册时间
+			phone, _ := common.If((*data)["s_phone"] != nil, (*data)["s_phone"], (*data)["s_m_phone"]).(string)       //
+			ent.PrivateGD = this.Conn.Mysql.CountBySql(`select count(1) from privatedata where phone = ?`, phone) > 0 //广东移动DICT 用户
 			mail := common.ObjToString((*data)["s_myemail"])
 			i_ts_guide := common.Int64All((*data)["i_ts_guide"])
 			i_member_apppushunread := common.Int64All((*data)["i_member_apppushunread"])
@@ -344,8 +345,6 @@ func (this *PowerService) Power(userid string, baseUserId, accountId, entId, pos
 						}
 					}
 				}
-				//广东移动DICT 用户
-				ent.PrivateGD = this.Conn.Mysql.CountBySql(`select count(1) from privatedata where phone = ?`, phone) > 0
 			}
 			if vip.Status <= 0 && member.Status <= 0 && entniche.Status <= 0 {
 				free.IsFree = true