Skip to content

Commit

Permalink
Merge branch 'cloudstore' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
TruthHun88 committed Feb 23, 2019
2 parents b2113c3 + 75e9e8c commit 0f2918c
Show file tree
Hide file tree
Showing 18 changed files with 28 additions and 2,624 deletions.
7 changes: 7 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@
- [ ] url路由链接调整?


## DocHub v2.2
- [ ] 多样化存储实现
- [ ] 本地存储
- [ ] 腾讯云存储
- [ ] 七牛云存储
- [ ] SEO优化,参考新浪爱问文库,从文档中提取文本,放到HTML页面隐藏显示的div中
- [ ] 积分问题


## DocHub v2.1
Expand Down
2 changes: 1 addition & 1 deletion conf/app.conf.example
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ database=dochub
# 表前缀
prefix=hc_

# 字符串类型【不要修改,整个程序都是utf-8的】。
# 数据库字符编码
charset=utf8

#设置最大空闲连接
Expand Down
9 changes: 0 additions & 9 deletions dochub4test/Dockerfile1

This file was deleted.

12 changes: 8 additions & 4 deletions helper/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func setDefaultConfig() {
}

//生成app.conf配置文件
func GenerateAppConf(host string, port int, username, password, database, prefix string) (err error) {
func GenerateAppConf(host string, port int, username, password, database, prefix string, charset ...string) (err error) {
if !IsInstalled { //程序未安装状态才能生成app.conf文件
os.Mkdir("conf", os.ModePerm)
fileContent := `
Expand Down Expand Up @@ -155,8 +155,8 @@ database=%v
# 表前缀
prefix=%v
# 字符串类型【不要修改,整个程序都是utf-8的】。
charset=utf8
# 数据库字符编码
charset=%v
#设置最大空闲连接
maxIdle= 50
Expand All @@ -169,14 +169,18 @@ maxConn= 300
`
cs, _ := ConfigMap.Load("CookieSecret")
se, _ := ConfigMap.Load("StaticExt")
char := "utf8" //默认字符编码
if len(charset) > 0 {
char = charset[0]
}
//配置项配置
fileContent = fmt.Sprintf(
fileContent,
beego.BConfig.WebConfig.XSRFKey,
beego.BConfig.WebConfig.XSRFExpire,
cs,
se,
host, port, username, password, database, prefix,
host, port, username, password, database, prefix, char,
)
err = ioutil.WriteFile("conf/app.conf", []byte(fileContent), os.ModePerm)
}
Expand Down
12 changes: 0 additions & 12 deletions vendor/github.com/PuerkitoBio/goquery/LICENSE

This file was deleted.

177 changes: 0 additions & 177 deletions vendor/github.com/PuerkitoBio/goquery/README.md

This file was deleted.

124 changes: 0 additions & 124 deletions vendor/github.com/PuerkitoBio/goquery/array.go

This file was deleted.

Loading

0 comments on commit 0f2918c

Please sign in to comment.