fix
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user