()
| 38 | ) |
| 39 | |
| 40 | func Init() { |
| 41 | initAPI() |
| 42 | initAdsCache() |
| 43 | initOptionCache() |
| 44 | NewSign().UpdateSignRule() // 更新签到规则的全局变量 |
| 45 | NewReadRecord().UpdateReadingRule() // 更新阅读计时规则的全局变量 |
| 46 | go func() { |
| 47 | for { |
| 48 | AllowRegister = GetOptionValue("ENABLED_REGISTER", "true") == "true" |
| 49 | AllowVisitor = GetOptionValue("ENABLE_ANONYMOUS", "true") == "true" |
| 50 | time.Sleep(time.Second * 30) |
| 51 | } |
| 52 | }() |
| 53 | go NewEbook().CheckAndGenerateEbook() |
| 54 | } |
| 55 | |
| 56 | //设置增减 |
| 57 | //@param table 需要处理的数据表 |
no test coverage detected