fix
This commit is contained in:
parent
27c571e4a6
commit
7004812acf
|
@ -1,6 +1,8 @@
|
|||
package handler
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
"io"
|
||||
"net/http"
|
||||
|
@ -16,7 +18,10 @@ import (
|
|||
func RenderNotifyHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
b,_ := io.ReadAll(r.Body)
|
||||
logx.Info("渲染回调数据:",string(b))
|
||||
var c map[string]interface{}
|
||||
_ = json.Unmarshal(b,&c)
|
||||
c["image"] = nil
|
||||
logx.Info(fmt.Sprintf("回调渲染数据:%+v",c))
|
||||
var req types.RenderNotifyReq
|
||||
userinfo, err := basic.RequestParse(w, r, svcCtx, &req)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue
Block a user