作者 唐旭辉

添加时区

... ... @@ -7,6 +7,8 @@ ENV APP_DIR $GOPATH/src/oppmg
# RUN CGO_ENABLED=0 go install -a std
RUN mkdir -p $APP_DIR
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo 'Asia/Shanghai' > /etc/timezone
# Set the entrypoint
#ENTRYPOINT (cd $APP_DIR && ./\src\oppmg)
ADD . $APP_DIR
... ...
... ... @@ -324,7 +324,7 @@ func (c *CompanyController) UserAllowForbid() {
c.ResposeJson(msg)
}()
type Parameter struct {
UserCompanyIds []int64 `json:"ids"`
UserCompanyIds []int64 `json:"user_company_ids"`
Status int `json:"status"` // [1:执行禁用操作][2:执行启用操作]
}
var param Parameter
... ...
... ... @@ -213,7 +213,6 @@ func LoginAuthByUCenter(account, password string) (protocol.LoginAuthToken, erro
return logintoken, protocol.NewErrWithMessage("10021")
}
//更新用户数据
_ = uclientReturn
userdata.Accid = uclientReturn.Data.Accid
userdata.Icon = uclientReturn.Data.Avatar
userdata.ImToken = uclientReturn.Data.Imtoken
... ...
... ... @@ -43,8 +43,7 @@ func InitCompanyInfo(centerCompany protocol.CenterCompanyInfo) error {
// return protocol.NewErrWithMessage("10051")
// }
var (
newDeparment *models.Department
//newUserDepart = &models.UserDepartment{}
newDeparment *models.Department
newRoleGroup *models.Role
newRole *models.Role
newUser *models.User
... ...