瀏覽代碼

feat:测试

wangchuanjin 1 年之前
父節點
當前提交
271e29c942
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      service/service.go

+ 2 - 1
service/service.go

@@ -595,8 +595,9 @@ func delRedisByPowerCheck(positionId string) bool {
 func ResourcePowerHandle(identity *usercenter.Identity, waitEmpowerId, t int64) {
 	//如果是运营商数据定制及分析产品,调用资源中台,取消对应菜单权限
 	if JyMysql.CountBySql(`select count(1) as count from `+EntnicheWaitEmpower+` where id=? and product_type=?`, waitEmpowerId, YYSSJDZYFX) > 0 {
+		log.Println("-------", identity.EntId, waitEmpowerId, t)
 		if t == 1 {
-			entity.ResourceRpc.Empower(context.Background(), &pb.EmpowerReq{
+			cc := entity.ResourceRpc.Empower(context.Background(), &pb.EmpowerReq{
 				Appid:        "10000",
 				FunctionCode: "bi_sj_yyszs",
 				EntId:        identity.EntId,