正在显示
2 个修改的文件
包含
4 行增加
和
2 行删除
| @@ -292,8 +292,10 @@ func (svr AuthService) OrgSwitch(switchOrgCommand *command.SwitchOrgCommand) (in | @@ -292,8 +292,10 @@ func (svr AuthService) OrgSwitch(switchOrgCommand *command.SwitchOrgCommand) (in | ||
| 292 | } | 292 | } |
| 293 | var userId int64 | 293 | var userId int64 |
| 294 | if v, ok := token["userId"]; ok { | 294 | if v, ok := token["userId"]; ok { |
| 295 | - if userId, ok = v.(int64); !ok { | 295 | + if vInt, ok := v.(int); !ok || vInt == 0 { |
| 296 | return nil, application.ThrowError(application.TRANSACTION_ERROR, "用户不存在") | 296 | return nil, application.ThrowError(application.TRANSACTION_ERROR, "用户不存在") |
| 297 | + } else { | ||
| 298 | + userId = int64(vInt) | ||
| 297 | } | 299 | } |
| 298 | } | 300 | } |
| 299 | user, err := svr.getUserInfo(domain.Operator{UserId: userId}) | 301 | user, err := svr.getUserInfo(domain.Operator{UserId: userId}) |
| @@ -21,7 +21,7 @@ type UpdateCooperationProjectCommand struct { | @@ -21,7 +21,7 @@ type UpdateCooperationProjectCommand struct { | ||
| 21 | // 共创发起人id | 21 | // 共创发起人id |
| 22 | CooperationProjectSponsor string `json:"cooperationProjectSponsor,omitempty"` | 22 | CooperationProjectSponsor string `json:"cooperationProjectSponsor,omitempty"` |
| 23 | // 项目承接对象 | 23 | // 项目承接对象 |
| 24 | - CooperationProjectUndertakerType []int32 `json:"cooperationProjectUndertakerType,omitempty"` | 24 | + CooperationProjectUndertakerType []int32 `json:"cooperationProjectUndertakerTypes,omitempty"` |
| 25 | // 共创项目描述 | 25 | // 共创项目描述 |
| 26 | CooperationProjectDescription string `json:"cooperationProjectDescription" valid:"Required"` | 26 | CooperationProjectDescription string `json:"cooperationProjectDescription" valid:"Required"` |
| 27 | //图片 | 27 | //图片 |
-
请 注册 或 登录 后发表评论