@@ -70,6 +70,9 @@ func (l *GetUserLogic) GetUser() (*types.InfoResponse, error) {
} else {
resp.ErpRoleType = 0
}
+ } else {
+ user.ErpId = resp.Id
+ l.svcCtx.DB.Cols("erp_id").Update(map[string]interface{}{"erp_id": user.ErpId})
if !strings.HasPrefix(user.Avatar, "http") && user.Avatar != "" {
domain := strings.TrimRight(l.svcCtx.Config.AliYunOss.FileUrl, "/")