wangshan 7 年之前
父節點
當前提交
a88d7d4a87
共有 3 個文件被更改,包括 4 次插入2 次删除
  1. 二進制
      pkg/windows_amd64/apiservice/oamanager.a
  2. 4 2
      src/apiservice/oamanager/oamanager.go
  3. 二進制
      src/src.exe

二進制
pkg/windows_amd64/apiservice/oamanager.a


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

@@ -40,8 +40,8 @@ func init() {
 }
 
 const (
-	LIMIT_TIME       = 30000 //签名超时时间
-	LIMIT_COUNT      = 3000  //每天接口限制
+	LIMIT_TIME       = 300000 //签名超时时间
+	LIMIT_COUNT      = 3000   //每天接口限制
 	REDISDB          = "jyOpenAPI"
 	CODE_E1          = 40000
 	MSG_E1           = "签名错误"
@@ -112,6 +112,7 @@ func OpenAction(w http.ResponseWriter, r *http.Request) {
 					}
 					if len(*res) > 0 && (*res)["status"] == 1 { //查看用户是否存在
 						userip := GetAPIIP(r)
+						log.Println(userip, "-ip--", (*res)["userip"])
 						if (*res)["userip"] == userip { //验证用户ip
 							APPID = appid
 							SECRET = util.ObjToString((*res)["secret"])
@@ -121,6 +122,7 @@ func OpenAction(w http.ResponseWriter, r *http.Request) {
 								[]string{"timestamp", strconv.Itoa(timestamp)},
 								[]string{"pagenum", strconv.Itoa(pagenum)},
 							})
+							log.Println(action, "--", keyword, "---", appid, "--", timestamp, "--", pagenum)
 							log.Println(signature, "签名串:", sign)
 							ordernum := (*res)["ordernum"].(int)
 							if sign == signature { //签名串验证

二進制
src/src.exe