|
@@ -15,6 +15,7 @@ import (
|
|
|
"github.com/go-sql-driver/mysql"
|
|
|
"github.com/suyuan32/simple-admin-common/enum/errorcode"
|
|
|
"github.com/suyuan32/simple-admin-common/msg/errormsg"
|
|
|
+ "github.com/zeromicro/go-zero/core/errorx"
|
|
|
"github.com/zeromicro/go-zero/core/logx"
|
|
|
)
|
|
|
|
|
@@ -202,7 +203,7 @@ func (l *AddFriendByPhoneLogic) AppendWechaFriendAddInfo(addInfo *AddFriendByPho
|
|
|
id = res.ID
|
|
|
} else {
|
|
|
if isDuplicateEntry(err) {
|
|
|
- err = errors.New("手机号不能重复绑定")
|
|
|
+ err = errorx.NewDefaultError("手机号不能重复绑定")
|
|
|
}
|
|
|
}
|
|
|
return id, err
|