作者 tangxuhui
@@ -170,6 +170,7 @@ func (srv CompanyStatisticsService) CooperationPersonStatistics(cmd *command.Coo @@ -170,6 +170,7 @@ func (srv CompanyStatisticsService) CooperationPersonStatistics(cmd *command.Coo
170 cmd.Operator) 170 cmd.Operator)
171 cooperationUserModeStatistics, err := gateway.CooperationStatistics(allied_creation_cooperation.CooperationUserModeStatistics, map[string]interface{}{ 171 cooperationUserModeStatistics, err := gateway.CooperationStatistics(allied_creation_cooperation.CooperationUserModeStatistics, map[string]interface{}{
172 "userId": cmd.UserId, 172 "userId": cmd.UserId,
  173 + "orgId": cmd.Operator.OrgId,
173 }) 174 })
174 if err != nil { 175 if err != nil {
175 return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) 176 return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
@@ -37,6 +37,12 @@ func init() { @@ -37,6 +37,12 @@ func init() {
37 web.BConfig.Listen.HTTPSPort = 443 37 web.BConfig.Listen.HTTPSPort = 443
38 web.BConfig.Listen.HTTPSCertFile = "./config/fjmaimaimai.com_bundle.crt" 38 web.BConfig.Listen.HTTPSCertFile = "./config/fjmaimaimai.com_bundle.crt"
39 web.BConfig.Listen.HTTPSKeyFile = "./config/fjmaimaimai.com.key" 39 web.BConfig.Listen.HTTPSKeyFile = "./config/fjmaimaimai.com.key"
  40 + if os.Getenv("HTTPS_PORT") != "" {
  41 + portStr := os.Getenv("HTTPS_PORT")
  42 + if port, err := strconv.Atoi(portStr); err == nil {
  43 + web.BConfig.Listen.HTTPSPort = port
  44 + }
  45 + }
40 46
41 filters.SecureKeyMap["token"] = "x-mmm-accesstoken" 47 filters.SecureKeyMap["token"] = "x-mmm-accesstoken"
42 web.InsertFilter("/*", web.BeforeRouter, filters.AllowCors()) 48 web.InsertFilter("/*", web.BeforeRouter, filters.AllowCors())