Browse Source

修改微信回调接口

longyu 2 years ago
parent
commit
ba4d8ca120

+ 1 - 1
controllers/wechat.go

@@ -365,7 +365,7 @@ func (this *WechatController) GetWxSign() {
 // @Description 微信获取签名接口
 // @Param   Url   query   string  true       "url地址"
 // @Success 200 {object} models.WechatSign
-// @router /notify [get]
+// @router /notify [get,post]
 func (this *WechatCommonController) Notify() {
 	signature := this.GetString("signature")
 	timestamp := this.GetString("timestamp")

+ 0 - 2
rdlucklog/202102/20210221.api.log

@@ -1,2 +0,0 @@
-2021/02/21 14:01:01 log.go:45: [请求地址: /api/home/list Authorization:  RequestBody:  ResponseBody {"Ret":408,"Msg":"请重新授权!","ErrMsg":"请重新授权:Token is empty or account is empty","ErrCode":"","Data":null,"Success":false} IP: 127.0.0.1] 
-

+ 0 - 0
rdlucklog/202102/20210221.http.log


+ 0 - 2
rdlucklog/202102/20210222.api.log

@@ -1,2 +0,0 @@
-2021/02/22 09:32:28 log.go:45: [请求地址: /api/home/list Authorization:  RequestBody:  ResponseBody {"Ret":408,"Msg":"请重新授权!","ErrMsg":"请重新授权:Token is empty or account is empty","ErrCode":"","Data":null,"Success":false} IP: 127.0.0.1] 
-

+ 0 - 0
rdlucklog/202102/20210222.http.log


File diff suppressed because it is too large
+ 0 - 0
rdlucklog/202102/20210225.api.log


+ 0 - 0
rdlucklog/202102/20210225.http.log


+ 0 - 1
rdlucklog/hongze_api.2021-02-22.001.log

@@ -1 +0,0 @@
-2021/02/21 14:01:01.093 [I]  authorization:,cookie:

+ 0 - 48
rdlucklog/hongze_api.log

@@ -1,48 +0,0 @@
-2021/02/22 09:32:28.728 [I]  authorization:,cookie:
-2021/02/25 16:51:47.040 [I]  report.detail 16,1
-2021/03/25 17:15:06.228 [I]  authorization:,cookie:
-2021/03/25 17:15:06.228 [I]  URI:/api/user/test
-2021/03/25 17:16:44.332 [I]  authorization:,cookie:
-2021/03/25 17:16:44.332 [I]  URI:/api/user/test
-2021/03/25 17:18:04.257 [I]  authorization:,cookie:
-2021/03/25 17:18:04.257 [I]  URI:/api/user/test
-2021/03/25 17:19:16.405 [I]  authorization:,cookie:
-2021/03/25 17:19:16.405 [I]  URI:/api/user/test
-2021/03/25 17:24:51.937 [I]  authorization:,cookie:
-2021/03/25 17:24:51.937 [I]  URI:/api/user/test
-2021/03/25 17:25:37.290 [I]  authorization:,cookie:
-2021/03/25 17:25:37.290 [I]  URI:/api/user/test
-2021/03/25 17:25:47.062 [I]  authorization:,cookie:
-2021/03/25 17:25:47.062 [I]  URI:/api/user/test
-2021/03/25 17:26:45.469 [I]  authorization:,cookie:
-2021/03/25 17:26:45.469 [I]  URI:/api/user/test
-2021/03/25 17:27:30.891 [I]  authorization:,cookie:
-2021/03/25 17:27:30.891 [I]  URI:/api/user/test
-2021/03/25 17:28:01.679 [I]  authorization:,cookie:
-2021/03/25 17:28:01.679 [I]  URI:/api/user/test
-2021/03/25 17:39:07.585 [I]  authorization:,cookie:
-2021/03/25 17:39:07.585 [I]  URI:/api/user/test
-2021/03/25 18:13:44.363 [I]  authorization:,cookie:
-2021/03/25 18:13:44.363 [I]  URI:/api/user/test
-2021/12/27 15:46:15.270  [I]  report.detail %d,%d
-2021/12/27 15:47:21.520  [I]  report.detail %d,%d
-2021/12/27 16:04:51.261  [I]  report.detail %d,%d
-2021/12/27 16:07:39.767  [I]  report.detail %d,%d
-2021/12/27 16:15:49.469  [I]  report.detail %d,%d
-2021/12/27 16:28:10.388  [I]  report.detail %d,%d
-2021/12/27 16:28:13.988  [I]  report.detail %d,%d
-2021/12/27 16:28:43.217  [I]  report.detail %d,%d
-2021/12/27 16:29:08.326  [I]  report.detail %d,%d
-2021/12/27 16:33:02.454  [I]  report.detail %d,%d
-2021/12/27 16:38:13.015  [I]  report.detail %d,%d
-2021/12/27 16:43:47.238  [I]  report.detail %d,%d
-2021/12/27 16:45:29.302  [I]  report.detail %d,%d
-2021/12/27 16:46:02.031  [I]  report.detail %d,%d
-2021/12/27 16:47:36.435  [I]  report.detail %d,%d
-2021/12/27 16:57:39.059  [I]  report.detail %d,%d
-2021/12/27 16:58:07.198  [I]  report.detail %d,%d
-2022/06/08 13:57:29.492  [I]  authorization:%s,cookie:%s
-2022/06/08 14:01:03.790  [I]  authorization:%s,cookie:%s
-2022/06/08 14:01:03.790  [I]  URI:%s
-2022/06/08 14:19:19.378  [I]  authorization:%s,cookie:%s
-2022/06/08 14:19:19.378  [I]  URI:%s

+ 1 - 1
routers/commentsRouter_controllers.go

@@ -335,7 +335,7 @@ func init() {
         beego.ControllerComments{
             Method: "Notify",
             Router: "/notify",
-            AllowHTTPMethods: []string{"get"},
+            AllowHTTPMethods: []string{"get","post"},
             MethodParams: param.Make(),
             Filters: nil,
             Params: nil})

+ 1 - 1
services/task.go

@@ -14,7 +14,7 @@ func Task() {
 	//FixUnionId()
 	fmt.Println("end")
 
-	go AutoUpdateUserView()
+	//go AutoUpdateUserView()
 }
 
 // AutoUpdateUserView 自动添加阅读记录

Some files were not shown because too many files changed in this diff