This commit is contained in:
suyl
2021-07-01 15:31:26 +08:00
parent 349d760a50
commit c5863204c8

View File

@@ -106,14 +106,11 @@ func (c *ApiController) CallOpenAPI() {
goto end
}
//判断timestamp传入是否正确begin
fmt.Println("data", timestamp, appID, method)
if len(utils.Int64ToStr(timestamp)) != len(utils.Int64ToStr(now)) {
err = buildTimestampParamErr()
errCode = model.ErrCodeOpenAPIParamErrTimeStamp
}
if now-timestamp < 500 {
err = buildTimestampParamErr()
errCode = model.ErrCodeOpenAPIParamErrTimeStamp
}
//判断timestamp传入是否正确end
if err != nil {
goto end