Browse Source

fix:修改创建圈量配置

jimmyyem 4 tuần trước cách đây
mục cha
commit
c69a32f4f8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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).