feat: test ci cd
This commit is contained in:
@@ -51,8 +51,11 @@ func (l *EditApplyLogic) EditApply(in *product.EditApplyReq) (*product.Response,
|
||||
return failResponse(utils.ErrorNotFund), nil
|
||||
}
|
||||
|
||||
// 管理员信息后续从 ctx / metadata 取
|
||||
adminId := 0
|
||||
adminInfo := utils.GetUserFromCtx(l.ctx)
|
||||
if adminInfo.ID < utils.NumberOne {
|
||||
return failResponse(utils.ErrorNoLoginInfo), nil
|
||||
}
|
||||
adminId := int(adminInfo.ID)
|
||||
|
||||
info, err := apply.Get(l.ctx, adminId, int(req.Id))
|
||||
if err != nil {
|
||||
@@ -90,8 +93,11 @@ func (l *EditApplyLogic) EditApplyPass(in *product.EditApplyPassReq) (*product.R
|
||||
return failResponse(utils.ErrorNotFund), nil
|
||||
}
|
||||
|
||||
// 管理员信息后续从 ctx / metadata 取
|
||||
adminId := 0
|
||||
adminInfo := utils.GetUserFromCtx(l.ctx)
|
||||
if adminInfo.ID < utils.NumberOne {
|
||||
return failResponse(utils.ErrorNoLoginInfo), nil
|
||||
}
|
||||
adminId := int(adminInfo.ID)
|
||||
|
||||
if err = apply.Pass(l.ctx, adminId, int(req.Id)); err != nil {
|
||||
if apply.IsAlreadyHandled(err) {
|
||||
|
||||
Reference in New Issue
Block a user