The interaction between android and PHP backend, the feedback was successful, but the backend said it was not received??

WBOY
Release: 2016-09-08 08:43:59
Original
874 people have browsed it

Exactly as the title!
If the user name is repeated, it will report that it has been registered. But the background says that the data is still not received.

Reply content:

Exactly as the title!
If the user name is repeated, it will report that it has been registered. But the background says that the data is still not received.

Check the nginx log to see if a request has been received. Or install Fiddle to capture the interface and debug it yourself.

First of all, first use the http tool to access according to the parameters of the interface. If the problem cannot be found, then you have to set up debugging in the PHP method.

Create a new table directly, and then write an insert statement from the beginning, and save all the parameters of post or get. Then you will know whether the interface is gone. Another important thing is to look at the passed value. Is there an error? You can also write insert statements in multiple places to see where the segment is and you will know why something went wrong.

Try testing that interface alone (to determine whether the username has been used) and see if it succeeds

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template