소스 검색

伙伴计划判断修改

WH01243 2 년 전
부모
커밋
c13e5200ae
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      entity/user.go

+ 1 - 1
entity/user.go

@@ -238,7 +238,7 @@ func (m *WorkDesktopMenu) AutoUserPowerInfo() map[string]int {
 	//其他权益数据库查询
 	func(mgoUserId string) {
 		//伙伴计划是否加入(移动端我的伙伴计划菜单)
-		if count := Mysql.CountBySql(`select count(*) from dis_partner where uid=? and type!=3`, mgoUserId); count > 0 {
+		if count := Mysql.CountBySql(`select count(*) from dis_partner where uid=? and type=2`, mgoUserId); count > 0 {
 			UserPowerMap["801"] = 1
 		} else {
 			UserPowerMap["800"] = 1