This commit is contained in:
laodaming
2023-07-27 14:10:41 +08:00
parent 8469253131
commit c375d17c07
3 changed files with 22 additions and 22 deletions

View File

@@ -50,7 +50,7 @@ func (l *RenderNotifyLogic) RenderNotify(req *types.RenderNotifyReq) (resp *basi
h.Write([]byte(fmt.Sprintf(constants.RENDER_NOTIFY_SIGN_KEY, string(notifyByte), req.Time)))
signHex := h.Sum(nil)
sign := hex.EncodeToString(signHex)
fmt.Println(sign)
//fmt.Println(sign)
if req.Sign != sign {
return resp.SetStatusWithMessage(basic.CodeRequestParamsErr, "invalid sign")
}
@@ -73,7 +73,7 @@ func (l *RenderNotifyLogic) RenderNotify(req *types.RenderNotifyReq) (resp *basi
ProductId: req.Info.ProductId,
MapsSourceId: req.Info.MapsSourceId,
TemplateId: req.Info.TemplateId,
RenderSource: req.Info.RenderSource,
RenderResult: req.Info.RenderResult,
},
}
b, _ := json.Marshal(rspData)