作者 tangxvhui

bug 修复

@@ -169,12 +169,18 @@ func init() { @@ -169,12 +169,18 @@ func init() {
169 beego.NSRouter("/company/allow_forbid", &controllers.CompanyController{}, "post:AllowForidCompanyForUCenter"), 169 beego.NSRouter("/company/allow_forbid", &controllers.CompanyController{}, "post:AllowForidCompanyForUCenter"),
170 ) 170 )
171 171
  172 + nsCommon := beego.NewNamespace("/common",
  173 + beego.NSBefore(middleware.AllowOption),
  174 + beego.NSBefore(middleware.LogRequestData),
  175 + beego.NSRouter("/common/chance/media", &controllers.AuditController{}, "post:GetChangeMedia"),
  176 + )
172 beego.AddNamespace(nsV1) 177 beego.AddNamespace(nsV1)
173 beego.AddNamespace(nsAuth) 178 beego.AddNamespace(nsAuth)
174 beego.AddNamespace(nsUcenter) 179 beego.AddNamespace(nsUcenter)
  180 + beego.AddNamespace(nsCommon)
175 beego.SetStaticPath("/log", beego.AppConfig.String("log_filename")) 181 beego.SetStaticPath("/log", beego.AppConfig.String("log_filename"))
176 beego.SetStaticPath("/file/opp", beego.AppConfig.String("file_save_path")) 182 beego.SetStaticPath("/file/opp", beego.AppConfig.String("file_save_path"))
177 beego.SetStaticPath("/static", "./static") 183 beego.SetStaticPath("/static", "./static")
178 //外链获取机会的图片、视频、音频数据 184 //外链获取机会的图片、视频、音频数据
179 - beego.Router("/common/chance/media", &controllers.AuditController{}, "post:GetChangeMedia") 185 +
180 } 186 }