API签名验证是否启用key,由app.sign.enable改为api.sign.enable

pull/21/merge
ouqiang 2017-05-23 15:30:21 +08:00
parent 2f5fff47d8
commit ed521f519b
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ func setShareData(ctx *macaron.Context, sess session.Store) {
/** API接口签名验证 **/
func apiAuth(ctx *macaron.Context) {
apiSignEnable := app.Setting.Key("app.sign.enable").String()
apiSignEnable := app.Setting.Key("api.sign.enable").String()
apiSignEnable = strings.TrimSpace(apiSignEnable)
if apiSignEnable == "false" {
return