aa
This commit is contained in:
@@ -106,14 +106,11 @@ func (c *ApiController) CallOpenAPI() {
|
|||||||
goto end
|
goto end
|
||||||
}
|
}
|
||||||
//判断timestamp传入是否正确begin
|
//判断timestamp传入是否正确begin
|
||||||
|
fmt.Println("data", timestamp, appID, method)
|
||||||
if len(utils.Int64ToStr(timestamp)) != len(utils.Int64ToStr(now)) {
|
if len(utils.Int64ToStr(timestamp)) != len(utils.Int64ToStr(now)) {
|
||||||
err = buildTimestampParamErr()
|
err = buildTimestampParamErr()
|
||||||
errCode = model.ErrCodeOpenAPIParamErrTimeStamp
|
errCode = model.ErrCodeOpenAPIParamErrTimeStamp
|
||||||
}
|
}
|
||||||
if now-timestamp < 500 {
|
|
||||||
err = buildTimestampParamErr()
|
|
||||||
errCode = model.ErrCodeOpenAPIParamErrTimeStamp
|
|
||||||
}
|
|
||||||
//判断timestamp传入是否正确end
|
//判断timestamp传入是否正确end
|
||||||
if err != nil {
|
if err != nil {
|
||||||
goto end
|
goto end
|
||||||
|
|||||||
Reference in New Issue
Block a user