wangshan пре 7 година
родитељ
комит
e44fbd6d51
3 измењених фајлова са 17 додато и 23 уклоњено
  1. 0 19
      src/apiservice/config/config.go
  2. 17 4
      src/apiservice/oamanager/oamanager.go
  3. BIN
      src/src.exe

+ 0 - 19
src/apiservice/config/config.go

@@ -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)
 }

+ 17 - 4
src/apiservice/oamanager/oamanager.go

@@ -1,8 +1,6 @@
 package oamanager
 
 import (
-	"log"
-
 	"github.com/go-xweb/xweb"
 )
 
@@ -12,11 +10,26 @@ type Oamanager struct {
 }
 
 func init() {
-	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")
 }