feat: wecom message init
This commit is contained in:
@@ -63,7 +63,7 @@ func (l *EditApplyLogic) EditApply(in *product.EditApplyReq) (*product.Response,
|
||||
return outResponse(utils.Fail, "已经申请过"), nil
|
||||
}
|
||||
|
||||
if err = apply.Set(l.ctx, adminId, int(req.Id), req.Reason); err != nil {
|
||||
if err = apply.Set(l.ctx, l.svcCtx.ChoreSvcName, adminId, int(req.Id), req.Reason); err != nil {
|
||||
l.Errorf("edit apply set: %v", err)
|
||||
return failResponse(utils.Fail), nil
|
||||
}
|
||||
@@ -96,7 +96,7 @@ func (l *EditApplyLogic) EditApplyPass(in *product.EditApplyPassReq) (*product.R
|
||||
}
|
||||
adminId := int(adminInfo.ID)
|
||||
|
||||
if err = apply.Pass(l.ctx, adminId, int(req.Id)); err != nil {
|
||||
if err = apply.Pass(l.ctx, l.svcCtx.ChoreSvcName, adminId, int(req.Id)); err != nil {
|
||||
if apply.IsAlreadyHandled(err) {
|
||||
return outResponse(utils.Fail, err.Error()), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user