Home > Back-end >  Regularly perform a task
Regularly perform a task

Time:10-28

Small white one, now encountered A problem and I need two interfaces, must first be A interface, access to the returned token, then use token callback interface B, token only valid time two hours, two hours to reset A token, because the data quantity is big, so to get to A token cycle call B, every two hours to get token and then continue to cycle call B, don't know, have what good method thinking

CodePudding user response:

Use a database or token redis be preserved, record the expiration time, found that doesn't exist or expired to invoke the token
  • Related