作者 yangfu

头像修改

... ... @@ -58,7 +58,7 @@ func (srv CompanyStatisticsService) IndexStatistics(cmd *command.IndexStatistics
models, err := gateway.CooperationModesSearch(allied_creation_cooperation.ReqCooperationModesSearch{
PageSize: domain.NormalQueryRowCount,
PageNumber: 1,
//CompanyId: cmd.Operator.CompanyId,
CompanyId: cmd.Operator.CompanyId,
//OrgId: cmd.Operator.OrgId,
CooperationModeNumbers: modeNumbers,
})
... ...
... ... @@ -15,7 +15,7 @@ type UpdateUserInfoCommand struct {
// 头像
Avatar string `cname:"头像" json:"avatar"`
// 用户姓名
UserName string `cname:"用户姓名" json:"userName" valid:"Required"`
UserName string `cname:"用户姓名" json:"userName"`
// 邮箱
Email string `cname:"用户姓名" json:"email"`
// 邮箱
... ...
... ... @@ -132,6 +132,9 @@ func (srv UserService) UpdateUserBaseInfo(updateUserInfoCommand *command.UpdateU
if _, ok := updateUserInfoCommand.BodyKV["phone"]; !ok {
updateUserInfoCommand.Phone = user.UserInfo.Phone
}
if _, ok := updateUserInfoCommand.BodyKV["userName"]; !ok {
updateUserInfoCommand.UserName = user.UserInfo.UserName
}
if _, ok := updateUserInfoCommand.BodyKV["smsCode"]; ok && len(updateUserInfoCommand.SmsCode) > 0 {
smsServeGateway := sms_serve.NewHttplibHttplibSmsServe()
err := smsServeGateway.CheckSmsCode(updateUserInfoCommand.Phone, updateUserInfoCommand.SmsCode)
... ...