wangchuanjin 2 gadi atpakaļ
vecāks
revīzija
987d2f396c
2 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. 0 1
      entity/ent.go
  2. 1 1
      service/identity.go

+ 0 - 1
entity/ent.go

@@ -338,7 +338,6 @@ func (this *Examine) EntExamine() bool {
 			BuyNum:      1,
 		}
 		resp, err := this.ResourceLib.PowerHandle(context.Background(), req)
-		log.Println("----", this.AccountId, err, resp.Status)
 		//0:失败 1:成功 -1:不在有效期内 -2:数量不足 -3:没有授权
 		if resp.Status == 0 || err != nil {
 			logx.Infof("信息发布开通失败", this.EntId, resp.Status, "err:", err)

+ 1 - 1
service/identity.go

@@ -146,7 +146,7 @@ func IdentityByEntUserId(entUserId int64) *Identity {
 
 //根据企业id获取身份信息
 func IdentityByEntId(entId int64) *Identity {
-	list := entity.Mysql.SelectBySql(`select id from base_account where ent_id=? and type=1 and person_id=0 limit 1`, entId)
+	list := entity.BaseMysql.SelectBySql(`select id from base_account where ent_id=? and type=1 and person_id=0 limit 1`, entId)
 	if list == nil || len(*list) == 0 {
 		return nil
 	}