lichangdong преди 2 дни
родител
ревизия
cc3363ef5e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      internal/service/MessageHandlers/task_result_notice.go

+ 1 - 1
internal/service/MessageHandlers/task_result_notice.go

@@ -64,7 +64,7 @@ func (f *TaskResultNoticeHandler) Handle(ctx context.Context, msg *wechat_ws.Msg
 	if common.Code == "InternalError" {
 		if common.ErrMsg == "timeout" {
 			update.SetIsCanAdd(3) // 重置添加为不能添加好友
-		} else if common.ErrMsg == "用户不存在" {
+		} else if common.ErrMsg == "该用户不存在" || common.ErrMsg == "用户不存在" {
 			update.SetIsCanAdd(4) // 重置添加为不能添加好友
 		} else {
 			update.SetIsCanAdd(3)