Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
phachon committed Nov 5, 2018
1 parent f0d5f6b commit 57bfb83
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/modules/system/controllers/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ func (this *ConfigController) Global() {

var configValue = map[string]string{}
for _, config := range configs{
if config["key"] == "auto_follow_doc_open" && config["value"] != "1" {
if config["key"] == models.Config_Key_AutoFollowDoc && config["value"] != "1" {
config["value"] = "0"
}
if config["key"] == "send_email_open" && config["value"] != "1" {
if config["key"] == models.Config_Key_SendEmail && config["value"] != "1" {
config["value"] = "0"
}
if config["key"] == "sso_open" && config["value"] != "1" {
if config["key"] == models.Config_Key_AuthLogin && config["value"] != "1" {
config["value"] = "0"
}
configValue[config["key"]] = config["value"]
Expand Down
6 changes: 6 additions & 0 deletions views/system/config/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
<br>
<div class="panel-body">
<form class="form-horizontal" method="post" action="/system/config/modify">
<div class="form-group">
<label class="col-sm-2 control-label"><span class="text-danger"> * </span>系统版本号</label>
<div class="col-sm-4">
<input type="text" name="system_version" class="form-control" value="{{.configValue.system_version}}" disabled>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label"><span class="text-danger"> * </span>主页标题</label>
<div class="col-sm-4">
Expand Down

0 comments on commit 57bfb83

Please sign in to comment.