|
@@ -72,7 +72,7 @@ func (l *GetUserLogic) GetUser() (*types.InfoResponse, error) {
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
user.ErpId = resp.Id
|
|
user.ErpId = resp.Id
|
|
|
- l.svcCtx.DB.Cols("erp_id").Update(map[string]interface{}{"erp_id": user.ErpId})
|
|
|
|
|
|
|
+ l.svcCtx.DB.Table("i2bill_user").Where("id = ?", user.Id).Cols("erp_id").Update(map[string]interface{}{"erp_id": user.ErpId})
|
|
|
}
|
|
}
|
|
|
if !strings.HasPrefix(user.Avatar, "http") && user.Avatar != "" {
|
|
if !strings.HasPrefix(user.Avatar, "http") && user.Avatar != "" {
|
|
|
domain := strings.TrimRight(l.svcCtx.Config.AliYunOss.FileUrl, "/")
|
|
domain := strings.TrimRight(l.svcCtx.Config.AliYunOss.FileUrl, "/")
|