浏览代码

feat:更新

wangshan 2 年之前
父节点
当前提交
b47d80bbbb
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      entity/user.go

+ 3 - 3
entity/user.go

@@ -3,7 +3,7 @@ package entity
 import (
 	"encoding/json"
 	"fmt"
-	"log"
+	"github.com/zeromicro/go-zero/core/logx"
 	"strconv"
 	"strings"
 	"sync"
@@ -79,7 +79,7 @@ func (m *WorkDesktopMenu) AutoUserPowerInfo() map[string]int {
 			if m.EntId > 0 {
 				entNicheInfos := Mysql.SelectBySql(`SELECT i.status,i.isNew,i.power_source,r.role_id,u.power FROM (entniche_user u LEFT JOIN entniche_user_role r ON r.user_id = u.id)  LEFT JOIN entniche_info i ON u.ent_id=i.id WHERE u.phone = ? and i.id = ? ORDER BY r.role_id,i.isNew DESC`, phone, m.EntId)
 				//商机管理用户信息判断
-				log.Println("entNicheInfos:", entNicheInfos)
+				logx.Info("entNicheInfos:", entNicheInfos)
 				if entNicheInfos != nil && len(*entNicheInfos) > 0 {
 					isFree = false
 					entNicheInfo := (*entNicheInfos)[0]
@@ -173,7 +173,7 @@ func (m *WorkDesktopMenu) AutoUserPowerInfo() map[string]int {
 			UserPowerMap["600"] = MC.If(powerSource > 0 && domainBool, 1, 0).(int)
 			//必须是企业管理员-&-购买了企业级应用服务
 			c := Mysql.CountBySql(fmt.Sprintf(`SELECT COUNT(id) FROM %s WHERE ent_id = ? AND TO_DAYS(end_time) >= TO_DAYS(NOW())`, EntnicheWaitEmpower), m.EntId)
-			log.Println(entnichePower, "cccccc:", c)
+			logx.Info(entnichePower, "cccccc:", c)
 			if c > 0 && entnichePower {
 				UserPowerMap["700"] = 1
 			}