Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b715111

Browse files
committed
feat: 样式修改&启用新 logo
1 parent 812212a commit b715111

31 files changed

+160
-106
lines changed

cmd/studygolang/background.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func ServeBackGround() {
4949

5050
c := cron.New()
5151

52-
if config.ConfigFile.MustBool("global", "is_master", true) {
52+
if config.ConfigFile.MustBool("global", "is_master", false) {
5353
// 每天对非活跃用户降频
5454
c.AddFunc("@daily", decrUserActiveWeight)
5555

db/conn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import (
1414
. "github.com/polaris1119/config"
1515

1616
_ "github.com/go-sql-driver/mysql"
17-
"xorm.io/xorm"
1817
"xorm.io/core"
18+
"xorm.io/xorm"
1919
)
2020

2121
var MasterDB *xorm.Engine

logic/article.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import (
1717
"time"
1818

1919
"github.com/PuerkitoBio/goquery"
20-
"xorm.io/xorm"
2120
"github.com/jaytaylor/html2text"
2221
"github.com/polaris1119/config"
2322
"github.com/polaris1119/goutils"
@@ -27,6 +26,7 @@ import (
2726
"github.com/polaris1119/times"
2827
"github.com/tidwall/gjson"
2928
"golang.org/x/text/encoding/simplifiedchinese"
29+
"xorm.io/xorm"
3030

3131
. "github.com/studygolang/studygolang/db"
3232
"github.com/studygolang/studygolang/global"

logic/feed.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import (
1818
"github.com/studygolang/studygolang/model"
1919
"github.com/studygolang/studygolang/util"
2020

21-
"xorm.io/xorm"
2221
"github.com/polaris1119/set"
22+
"xorm.io/xorm"
2323
)
2424

2525
type FeedLogic struct{}

logic/message.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ import (
1515

1616
. "github.com/studygolang/studygolang/db"
1717

18-
"xorm.io/xorm"
1918
"github.com/polaris1119/goutils"
2019
"github.com/polaris1119/logger"
2120
"github.com/polaris1119/set"
2221
"golang.org/x/net/context"
22+
"xorm.io/xorm"
2323
)
2424

2525
type MessageLogic struct{}

logic/mission.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ import (
1717
. "github.com/studygolang/studygolang/db"
1818
"github.com/studygolang/studygolang/model"
1919

20-
"xorm.io/xorm"
2120
"github.com/polaris1119/goutils"
2221
"github.com/polaris1119/times"
2322
"golang.org/x/net/context"
23+
"xorm.io/xorm"
2424
)
2525

2626
type MissionLogic struct{}

logic/topic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ import (
1919
. "github.com/studygolang/studygolang/db"
2020

2121
"github.com/fatih/structs"
22-
"xorm.io/xorm"
2322
"github.com/polaris1119/goutils"
2423
"github.com/polaris1119/logger"
2524
"github.com/polaris1119/set"
2625
"golang.org/x/net/context"
26+
"xorm.io/xorm"
2727
)
2828

2929
type TopicLogic struct{}

logic/user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ import (
2121
"github.com/polaris1119/slices"
2222

2323
"github.com/go-validator/validator"
24-
"xorm.io/xorm"
2524
"github.com/polaris1119/config"
2625
"github.com/polaris1119/goutils"
2726
"github.com/polaris1119/logger"
2827
"golang.org/x/net/context"
28+
"xorm.io/xorm"
2929

3030
. "github.com/studygolang/studygolang/db"
3131
)

logic/user_rich.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ import (
1717
. "github.com/studygolang/studygolang/db"
1818

1919
"github.com/garyburd/redigo/redis"
20-
"xorm.io/xorm"
2120
"github.com/polaris1119/goutils"
2221
"github.com/polaris1119/logger"
2322
"github.com/polaris1119/nosql"
2423
"github.com/polaris1119/times"
2524
"golang.org/x/net/context"
25+
"xorm.io/xorm"
2626
)
2727

2828
var (

model/article.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import (
1212
"strings"
1313
"time"
1414

15-
"xorm.io/xorm"
1615
"github.com/polaris1119/logger"
16+
"xorm.io/xorm"
1717
)
1818

1919
const (

0 commit comments

Comments
 (0)