cookie设置在newconfig
This commit is contained in:
@@ -111,9 +111,9 @@ func Init() {
|
||||
}
|
||||
if !beego.AppConfig.DefaultBool("disableMtwm", false) {
|
||||
MtwmAPI = mtwmapi.New(beego.AppConfig.String("mtwmAppID"), beego.AppConfig.String("mtwmSecret"), beego.AppConfig.String("mtwmCallbackURL"))
|
||||
if mtwmCookieStr := beego.AppConfig.DefaultString("mtwmCookieStr", ""); mtwmCookieStr != "" {
|
||||
MtwmAPI.SetCookieWithStr(mtwmCookieStr)
|
||||
}
|
||||
// if mtwmCookieStr := beego.AppConfig.DefaultString("mtwmCookieStr", ""); mtwmCookieStr != "" {
|
||||
// MtwmAPI.SetCookieWithStr(mtwmCookieStr)
|
||||
// }
|
||||
} else {
|
||||
MtwmAPI = nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user