|
@@ -30,7 +30,7 @@ func (self *CronController) Init(ctx *context.Context, controllerName, actionNam
|
|
|
func (self *CronController) Cron() {
|
|
func (self *CronController) Cron() {
|
|
|
name := self.Ctx.Input.Param(":name")
|
|
name := self.Ctx.Input.Param(":name")
|
|
|
ip := self.Ctx.Input.IP()
|
|
ip := self.Ctx.Input.IP()
|
|
|
- //beego.BeeLogger.Error("get ip: %s", ip)
|
|
|
|
|
|
|
+ beego.BeeLogger.Error("get ip: %s", ip)
|
|
|
beego.BeeLogger.Info("Request ip ", strings.Split(beego.AppConfig.String("inetIp"), ","))
|
|
beego.BeeLogger.Info("Request ip ", strings.Split(beego.AppConfig.String("inetIp"), ","))
|
|
|
// 该接口要指定的ip列表访问
|
|
// 该接口要指定的ip列表访问
|
|
|
if inAllowedList, _ := tool.Contain(ip, strings.Split(beego.AppConfig.String("inetIp"), ",")); inAllowedList {
|
|
if inAllowedList, _ := tool.Contain(ip, strings.Split(beego.AppConfig.String("inetIp"), ",")); inAllowedList {
|