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.