All messages need to be returned by the server. Currently, thinkphp is used for development. the front-end user initiates A request. the server processes the request, returns A message A, and then processes the message, then return message B. I am using the thinkphp built-in method $ this-& amp; gt; ajaxReturn ($ info ,... all messages must be returned by the server.
I am currently using thinkphp Development. the front-end user initiates A request, the server processes the request, returns A message A, and then the server processes the request, and then returns the message B.
I am using
$ This-> ajaxReturn ($ info) The thinkphp built-in method, but after the result is returned, the subsequent operation cannot be executed. how can this problem be solved?
Reply content:
All messages must be returned by the server.
I am currently using thinkphp Development. the front-end user initiates A request, the server processes the request, returns A message A, and then the server processes the request, and then returns the message B.
I am using
$ This-> ajaxReturn ($ info) The thinkphp built-in method, but after the result is returned, the subsequent operation cannot be executed. how can this problem be solved?
This is because the link has ended, so it cannot return B. You can make a long link.
Or the interval between requests to the server
The front-end performs a check. after receiving the first response, it re-requests the second result or websocket.