Publish project server crashes while running

    Now I'm working on a platform for sending text messages. It's been in the testing stage since it was released in the past two days. Today, the text message suddenly cannot be sent. It’s okay to send text messages, by the way, let’s talk about the process of sending text messages first.

    First, users create their own group contacts. When sending text messages, they can import contacts or manually enter contacts. When the user clicks send, the data is stored in the database through the server, and the background periodically queries the database for unsent text messages. It is sent one by one traversing.

    The problem lies in the user's manual input here. When I couldn't find the error in the program, I directly checked the unsent records in the database, and finally saw the problem. One record has the user's name, but the mobile phone number is Empty, I will replace all non-numbers with empty when I verify the mobile phone number at the front desk, so the front desk does not detect this error, and the background does not judge whether the mobile phone number exists, so this text message cannot be sent, and the following text messages are also was blocked.

    In the future development, we must pay attention to verification. When developing the program, try not to let the user manually input some important information. It is better to use the import method, and the import format is limited.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324613558&siteId=291194637