Joke Collection Website - Blessing messages - Unable to send logical processing error message.
Unable to send logical processing error message.
The processing logic is as follows: when adding SMS failure record table (sms_failure_history), when the whole station sends SMS verification code, call the method of adding verify_code type send (a constant has been defined in SmsLog class) to the SMS sending place. When the short message sending fails, if the short message type of verify_codesms_failure_history records a failure record.
When the sync_sms_status method of api_callback/index.php updates sms_log to failure status, when it is judged that the sms type is not verify_code, a failure record is sent to sms_failure_history.
Write a planned task (refer to other tasks under bin/cron), and execute 1 time every1minute, get unprocessed records in sms_failure_history table and resend short messages. If the replacement is successful, change the status field to Processed. If the replacement fails, add 1 to failure_count and change the status to processing failure.
- Related articles
- Why did Huawei's mobile phone content suddenly turn black?
- How to inquire about the credit card limit of Shanghai Pudong Development Bank?
- "The phone you dialed has been opened for full-time service, and we will inform the other party of your caller ID by SMS", was it hacked by the other party?
- Tips on daily health care in summer!
- How do you know that the electricity bill is out of power?
- What does the voice prompt in the electronic dog mean?
- How to write the speech on raising the national flag at the age of 5 in kindergarten about increasing or decreasing clothes?
- How to turn on network acceleration with one plus 9pro?
- Interesting safety and fire protection reminders (50 selected sentences)
- I am planning to replace my iPhone 4 with iPhone 5? How can I get the information? How to change the card?