|
@@ -63,16 +63,16 @@ func (f *TaskResultNoticeHandler) Handle(ctx context.Context, msg *wechat_ws.Msg
|
|
|
|
|
|
if common.Code == "InternalError" {
|
|
if common.Code == "InternalError" {
|
|
if common.ErrMsg == "timeout" {
|
|
if common.ErrMsg == "timeout" {
|
|
- update.SetIsCanAdd(3) // 重置添加为不能添加好友
|
|
|
|
- } else if common.ErrMsg == "该用户不存在" || common.ErrMsg == "用户不存在" {
|
|
|
|
update.SetIsCanAdd(4) // 重置添加为不能添加好友
|
|
update.SetIsCanAdd(4) // 重置添加为不能添加好友
|
|
|
|
+ } else if common.ErrMsg == "该用户不存在" || common.ErrMsg == "用户不存在" {
|
|
|
|
+ update.SetIsCanAdd(5) // 重置添加为不能添加好友
|
|
} else {
|
|
} else {
|
|
- update.SetIsCanAdd(3)
|
|
|
|
|
|
+ update.SetIsCanAdd(4)
|
|
} // 重置添加为不能添加好友
|
|
} // 重置添加为不能添加好友
|
|
}
|
|
}
|
|
|
|
|
|
if common.Success {
|
|
if common.Success {
|
|
- update.SetIsCanAdd(2) // 表示任务成功
|
|
|
|
|
|
+ update.SetIsCanAdd(3) // 表示任务成功
|
|
}
|
|
}
|
|
|
|
|
|
if _, err := update.Save(ctx); err != nil {
|
|
if _, err := update.Save(ctx); err != nil {
|