This commit is contained in:
deepzz0
2016-10-02 19:12:47 +08:00
parent 34cc239e83
commit 76134cee10
19 changed files with 21 additions and 3420 deletions

View File

@@ -27,10 +27,7 @@ func CommentsCount() {
return
}
baseUrl := setting.Conf.Disqus.URL + "?api_key=" + setting.Conf.Disqus.PublicKey + "&forum=" + setting.Conf.Disqus.ShortName + "&"
domain := "http://" + runmode.Domain
if runmode.EnableHttps {
domain = "https://" + runmode.Domain
}
domain := "https://" + runmode.Domain
var count, index int
for index < len(Ei.Articles) {
logd.Debugf("count=====%d, index=======%d, length=======%d, bool=========%t", count, index, len(Ei.Articles), index < len(Ei.Articles) && count < 10)