소스 검색

fix:修改创建圈量配置

jimmyyem 4 주 전
부모
커밋
c69a32f4f8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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).