Explorar o código

fix:修改创建圈量配置

jimmyyem hai 4 semanas
pai
achega
c69a32f4f8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      internal/logic/xunji/create_xunji_logic.go

+ 1 - 1
internal/logic/xunji/create_xunji_logic.go

@@ -28,7 +28,7 @@ func (l *CreateXunjiLogic) CreateXunji(req *types.XunjiInfo) (*types.BaseMsgResp
 	organizationId := l.ctx.Value("organizationId").(uint64)
 
 	_, err := l.svcCtx.DB.Xunji.Create().
-		SetStatus(1).
+		SetNotNilStatus(req.Status).
 		SetNotNilAppKey(req.AppKey).
 		SetNotNilAppSecret(req.AppSecret).
 		SetNotNilToken(req.Token).