diff --git a/route/cp_r/cp_relation.go b/route/cp_r/cp_relation.go index 80253cca37e4b13ecd239ea56d87ae64165f8bda..4807f3fc384cc958837429ef9d223e1ae1176f24 100644 --- a/route/cp_r/cp_relation.go +++ b/route/cp_r/cp_relation.go @@ -156,7 +156,7 @@ func ReplyCpInvite(c *gin.Context) (*mycontext.MyContext, error) { return myCtx, err } if cpRecord == nil || cpRecord.Id == 0 { - return myCtx, myerr.ToLocal(msg.GetErrByLanguage(model, common.MSG_ID_ALREADY_EXPIRED, lang, comerr.AlreadyExpired)) + return myCtx, msg.GetErrByLanguage(model, common.MSG_ID_ALREADY_EXPIRED, lang, comerr.AlreadyExpired) } if optType == 1 { // 接受的时候 @@ -316,7 +316,7 @@ func ReplyCpCancel(c *gin.Context) (*mycontext.MyContext, error) { return myCtx, err } if cpCancel == nil || cpCancel.Id == 0 { - return myCtx, myerr.ToLocal(msg.GetErrByLanguage(model, common.MSG_ID_ALREADY_EXPIRED, lang, comerr.AlreadyExpired)) + return myCtx, msg.GetErrByLanguage(model, common.MSG_ID_ALREADY_EXPIRED, lang, comerr.AlreadyExpired) } if optType == 1 { // 撤销,只有自己能撤销自己的申请