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