@@ -1,30 +1,11 @@
package config
import (
- "log"
"qfw/util"
)
-const (
- REDISDB = "jyOpenAPI"
- CODE_E1 = 40000
- MSG_E1 = "签名错误"
- CODE_E2 = 40001
- MSG_E2 = "参数错误"
- CODE_E3 = 40002
- MSG_E3 = "签名过期"
- CODE_E4 = 40003
- MSG_E4 = "调用接口超过限制"
- CODE_E5 = 40004
- MSG_E5 = "内部错误"
- CODE_ERR_E0 = 40005
- MSG_ERR_E = "IP未授权"
- MSG_SUCCESS = "请求成功"
-)
-
var Sysconfig map[string]interface{}
func init() {
- log.Println("--111")
util.ReadConfig(&Sysconfig)
}
@@ -1,8 +1,6 @@
package oamanager
"github.com/go-xweb/xweb"
@@ -12,11 +10,26 @@ type Oamanager struct {
- log.Println("0----")
xweb.AddAction(&Oamanager{})
+const (
+ REDISDB = "jyOpenAPI"
+ CODE_E1 = 40000
+ MSG_E1 = "签名错误"
+ CODE_E2 = 40001
+ MSG_E2 = "参数错误"
+ CODE_E3 = 40002
+ MSG_E3 = "签名过期"
+ CODE_E4 = 40003
+ MSG_E4 = "调用接口超过限制"
+ CODE_E5 = 40004
+ MSG_E5 = "内部错误"
+ CODE_ERR_E0 = 40005
+ MSG_ERR_E = "IP未授权"
+ MSG_SUCCESS = "请求成功"
+)
+
func (o *Oamanager) OpenAction() error {
- log.Println("000000")
return o.Render("/pc/article.html")