作者 yangfu

登录修改

... ... @@ -292,8 +292,10 @@ func (svr AuthService) OrgSwitch(switchOrgCommand *command.SwitchOrgCommand) (in
}
var userId int64
if v, ok := token["userId"]; ok {
if userId, ok = v.(int64); !ok {
if vInt, ok := v.(int); !ok || vInt == 0 {
return nil, application.ThrowError(application.TRANSACTION_ERROR, "用户不存在")
} else {
userId = int64(vInt)
}
}
user, err := svr.getUserInfo(domain.Operator{UserId: userId})
... ...
... ... @@ -21,7 +21,7 @@ type UpdateCooperationProjectCommand struct {
// 共创发起人id
CooperationProjectSponsor string `json:"cooperationProjectSponsor,omitempty"`
// 项目承接对象
CooperationProjectUndertakerType []int32 `json:"cooperationProjectUndertakerType,omitempty"`
CooperationProjectUndertakerType []int32 `json:"cooperationProjectUndertakerTypes,omitempty"`
// 共创项目描述
CooperationProjectDescription string `json:"cooperationProjectDescription" valid:"Required"`
//图片
... ...