Verification code receiving method and apparatus, verification code sending method and apparatus, and device

WO2026175322A1PCT designated stage Publication Date: 2026-08-27VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2026/078959
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-02-19
Filing Date
2026-02-12
Publication Date
2026-08-27

Smart Images

  • Figure CN2026078959_27082026_PF_FP_ABST
    Figure CN2026078959_27082026_PF_FP_ABST
Patent Text Reader

Abstract

The present application belongs to the technical field of communications. Disclosed are a verification code receiving method and apparatus, a verification code sending method and apparatus, and a device. The verification code receiving method in the embodiments of the present application comprises: a terminal, which comprises at least two SIM cards, sending a verification code request to an application server of a first application, wherein the verification code request comprises a first telephone number, the first telephone number being a preset telephone number or a telephone number recommended by the terminal, and a SIM card corresponding to the first telephone number being a SIM card among the at least two SIM cards; and receiving a verification code which is from the application server and corresponds to the verification code request.
Need to check novelty before this filing date? Find Prior Art

Description

Verification code receiving and sending methods, devices and equipment

[0001] Cross-reference to related applications

[0002] This application claims priority to Chinese Patent Application No. 202510184812.4, filed in China on February 19, 2025, the entire contents of which are incorporated herein by reference. Technical Field

[0003] This application belongs to the field of communication technology, and specifically relates to a method, apparatus and device for receiving and sending verification codes. Background Technology

[0004] With the development of communication technology, terminals that can support multiple Subscriber Identity Module (SIM) cards are becoming increasingly common. Typically, the primary SIM card in a multi-SIM setup provides both voice and data services, while the secondary SIM card primarily provides voice services.

[0005] However, when receiving verification codes, terminals that support multiple SIM cards typically default to receiving them through the primary SIM card. Therefore, to receive verification codes through the secondary SIM card, the user needs to manually enter the phone number associated with that secondary SIM card. This results in limited flexibility in receiving verification codes. Summary of the Invention

[0006] This application provides a method, apparatus, and device for receiving and sending verification codes, which can improve the flexibility of terminals in receiving verification codes.

[0007] In a first aspect, a verification code receiving method is provided, executed by a terminal including at least two SIM cards. The method includes: sending a verification code request to an application server of a first application, the verification code request including a first phone number, the first phone number being a pre-set phone number or a phone number recommended by the terminal, the SIM card corresponding to the first phone number being one of at least two SIM cards; and receiving a verification code corresponding to the verification code request from the application server.

[0008] Secondly, a verification code sending method is provided, executed by a first network device, the method comprising: receiving a first phone number and a verification code from an application server; and, in the event that sending the verification code to the first phone number fails, sending the verification code to a third phone number or a system application of the terminal, wherein the third phone number is a phone number associated with the first phone number, and the first network device is a network device that provides services to the terminal.

[0009] Thirdly, a verification code sending method is provided, executed by a vendor server. The method includes: receiving a first phone number from a first network device and a user's vendor account; if a third phone number associated with the vendor account and different from the first phone number is found, sending the third phone number to the first network device; if no phone number associated with the vendor account and different from the first phone number is found, sending an identifier of a terminal corresponding to the vendor account to the first network device.

[0010] Fourthly, a verification code receiving device is provided, the device including at least two SIM cards, the device including: a sending module and a receiving module; the sending module is used to send a verification code request to the application server of a first application, the verification code request including a first phone number, the first phone number being a pre-set phone number or a terminal-recommended phone number, the SIM card corresponding to the first phone number being one of at least two SIM cards; the receiving module is used to receive a verification code corresponding to the verification code request from the application server.

[0011] Fifthly, a verification code sending device is provided, the device comprising: a receiving module and a sending module; the receiving module is configured to receive a first telephone number and a verification code from an application server; the sending module is configured to send a verification code to a third telephone number or a system application of a terminal if sending the verification code to the first telephone number fails, the third telephone number being a telephone number associated with the first telephone number.

[0012] A sixth aspect provides a verification code sending device, comprising: a receiving module and a sending module; the receiving module is configured to receive a first telephone number from a first network device and a user's vendor account; the sending module is configured to send a third telephone number to the first network device if a third telephone number associated with the vendor account and different from the first telephone number is found; or, if a telephone number associated with the vendor account and different from the first telephone number is not found, send an identifier of a terminal corresponding to the vendor account to the first network device.

[0013] In a seventh aspect, a verification code receiving device is provided, the verification code receiving device being configured to perform the steps of the method described in the first aspect.

[0014] Eighthly, a verification code sending device is provided, the verification code sending device being configured to perform the steps of the method described in the second aspect, or to implement the steps of the method described in the third aspect.

[0015] In a ninth aspect, a terminal is provided, the terminal including a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the method as described in the first aspect.

[0016] In a tenth aspect, a terminal is provided, including a processor and a communication interface, wherein the communication interface is configured to send a verification code request to an application server of a first application, the verification code request including a first phone number, the first phone number being a pre-set phone number or a phone number recommended by the terminal, the SIM card corresponding to the first phone number being one of at least two SIM cards; and to receive a verification code corresponding to the verification code request from the application server.

[0017] Eleventhly, a network device is provided, the network device including a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the method as described in the second aspect, or implementing the steps of the method as described in the third aspect.

[0018] In a twelfth aspect, a network device is provided, including a processor and a communication interface, wherein the communication interface is configured to receive a first phone number and a verification code from an application server, and, if sending the verification code to the first phone number fails, to send the verification code to a third phone number or a system application of a terminal, wherein the third phone number is a phone number associated with the first phone number. Alternatively, the communication interface is configured to receive a first phone number and a user's vendor account from a first network device; if a third phone number associated with the vendor account and different from the first phone number is found, to send the third phone number to the first network device; if no phone number associated with the vendor account and different from the first phone number is found, to send an identifier of a terminal corresponding to the vendor account to the first network device.

[0019] In a thirteenth aspect, a readable storage medium is provided, on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect, or the steps of the method described in the second aspect, or the steps of the method described in the third aspect.

[0020] In a fourteenth aspect, a wireless communication system is provided, comprising: a terminal and a network device, wherein the terminal is configured to perform the steps of the method described in the first aspect, and the network device is configured to perform the steps of the method described in the second aspect, or the steps of the method described in the third aspect.

[0021] In a fifteenth aspect, a chip is provided, the chip including a processor and a communication interface coupled to the processor, the processor being configured to run a program or instructions to implement the steps of the method as described in the first aspect, or the steps of the method as described in the second aspect, or the steps of the method as described in the third aspect.

[0022] In a sixteenth aspect, a computer program / program product is provided, the computer program / program product being stored in a storage medium, the computer program / program product being executed by at least one processor to implement the steps of the method as described in the first aspect, or the steps of the method as described in the second aspect, or the steps of the method as described in the third aspect.

[0023] In this embodiment, a terminal including at least two SIM cards can send a verification code request to the application server of a first application. The verification code request includes a first phone number, which may be a pre-set phone number or a phone number recommended by the terminal. The terminal then receives a verification code corresponding to the verification code request from the application server. This scheme allows the terminal to flexibly select the phone number to receive the verification code when it needs to do so, either through pre-setting or intelligent recommendation, eliminating the need for the user to manually enter the phone number and improving the flexibility of the terminal in receiving verification codes. Attached Figure Description

[0024] Figure 1 is a possible structural diagram of the communication system involved in an embodiment of this application;

[0025] Figure 2 is a flowchart of one of the verification code receiving methods provided in an embodiment of this application;

[0026] Figure 3 is a second flowchart of a verification code receiving method provided in an embodiment of this application;

[0027] Figure 4 is a flowchart of a verification code receiving method provided in an embodiment of this application;

[0028] Figure 5 is a flowchart of one of the verification code sending methods provided in an embodiment of this application;

[0029] Figure 6 is a second flowchart of a verification code sending method provided in an embodiment of this application;

[0030] Figure 7 is a flowchart of a verification code sending method provided in an embodiment of this application;

[0031] Figure 8 is a flowchart of a verification code sending method provided in an embodiment of this application;

[0032] Figure 9 is a flowchart of a verification code sending method provided in an embodiment of this application;

[0033] Figure 10 is a flowchart of a verification code sending method provided in an embodiment of this application;

[0034] Figure 11 is a flowchart of one of the verification code receiving and sending methods provided in an embodiment of this application;

[0035] Figure 12 is a second flowchart of a verification code receiving and sending method provided in an embodiment of this application;

[0036] Figure 13 is a flowchart of a verification code receiving and sending method provided in an embodiment of this application;

[0037] Figure 14 is a flowchart of a verification code receiving and sending method provided in an embodiment of this application;

[0038] Figure 15 is a schematic diagram of a verification code receiving device provided in an embodiment of this application;

[0039] Figure 16 is a schematic diagram of a verification code sending device provided in an embodiment of this application;

[0040] Figure 17 is a structural schematic diagram of a verification code sending device provided in an embodiment of this application;

[0041] Figure 18 is a schematic diagram of the hardware structure of a communication device provided in an embodiment of this application;

[0042] Figure 19 is a schematic diagram of the hardware structure of a terminal provided in an embodiment of this application;

[0043] Figure 20 is a schematic diagram of the hardware structure of a network device provided in an embodiment of this application;

[0044] Figure 21 is a schematic diagram of the hardware structure of a network device provided in an embodiment of this application. Detailed Implementation

[0045] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0046] The terms "first," "second," etc., used in this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first" and "second" are generally of the same class, not limited in number; for example, the first object can be one or more. Furthermore, "or" in this application indicates at least one of the connected objects. For example, the scope of protection for "A or B" covers at least three scenarios: Scenario 1: including A but not B; Scenario 2: including B but not A; Scenario 3: including both A and B. In addition, the terms "A and / or B," "at least one of A and B," and "at least one of A or B" also cover at least the above three scenarios. The character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0047] The term "instruction" in this application can be either a direct instruction (or explicit instruction) or an indirect instruction (or implicit instruction). A direct instruction can be understood as the sender explicitly informing the receiver of specific information, the required operation, or the requested result in the instruction sent. An indirect instruction can be understood as the receiver determining the corresponding information based on the instruction sent by the sender, or making a judgment and determining the required operation or requested result based on the judgment result.

[0048] It is worth noting that the technologies described in this application are not limited to Long Term Evolution (LTE) / LTE-Advanced (LTE-A) systems, but can also be used in other wireless communication systems, such as Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Frequency Division Multiple Access (FDMA), Orthogonal Frequency Division Multiple Access (OFDMA), Single-carrier Frequency-Division Multiple Access (SC-FDMA), or other systems. The terms "system" and "network" in this application are often used interchangeably, and the described technologies can be used with the systems and radio technologies mentioned above, as well as with other systems and radio technologies. The following description describes New Radio (NR) systems for illustrative purposes, and the term NR is used in most of the following description; however, these technologies can also be applied to systems other than NR systems, such as 6th generation (6G) radio systems. th Generation 6G communication system.

[0049] Figure 1 shows a block diagram of a wireless communication system applicable to an embodiment of this application. The wireless communication system includes a terminal 11 and a network device 12. The terminal 11 can also be referred to as User Equipment (UE), and can be a mobile phone, tablet computer, laptop computer, notebook computer, personal digital assistant (PDA), handheld computer, netbook, ultra-mobile personal computer (UMPC), mobile internet device (MID), augmented reality (AR), virtual reality (VR) device, robot, wearable device, flight vehicle, vehicle user equipment (VUE), shipboard equipment, pedestrian user equipment (PUE), smart home (home devices with wireless communication capabilities, such as refrigerators, televisions, washing machines, or furniture), game console, personal computer (PC), ATM, or self-service machine, etc. Wearable devices include: smartwatches, smart bracelets, smart headphones, smart glasses, smart jewelry (smart bracelets, smart chains, smart rings, smart necklaces, smart anklets, smart anklets, etc.), smart wristbands, smart clothing, etc. Among these, in-vehicle devices can also be referred to as in-vehicle terminals, in-vehicle controllers, in-vehicle modules, in-vehicle components, in-vehicle chips, or in-vehicle units, etc. It should be noted that the specific type of terminal 11 is not limited in this application embodiment. Network device 12 may include access network devices or core network devices, wherein access network devices may also be referred to as Radio Access Network (RAN) devices, radio access network functions, or radio access network units. Access network devices may include base stations, Wireless Local Area Network (WLAN) access points (APs), or Wireless Fidelity (WiFi) nodes, etc.Among them, base stations can be referred to as Node B (NB), Evolved Node B (eNB), Next Generation Node B (gNB), New Radio Node B (NR Node B), Access Point, Relay Base Station (RBS), Serving Base Station (SBS), Base Transceiver Station (BTS), Radio Base Station, Radio Transceiver, Basic Service Set (BSS), Extended Service Set (ESS), Home Node B (HNB), Home Evolved Node B, Transmit / Receive Point (TRP), Non-Terrestrial Network (NTN) equipment (such as satellite or high altitude platform stations). The term "base station" can be any suitable term in the field, such as "station" or any other appropriate term in the relevant field, as long as the same technical effect is achieved. The term "base station" is not limited to any specific technical term. It should be noted that the embodiments of this application only use the base station in the NR system as an example for introduction, and do not limit the specific type of base station.

[0050] Core network equipment, also known as core network nodes, core network functions, or core network elements, includes, but is not limited to, at least one of the following: Mobility Management Entity (MME), Access and Mobility Management Function (AMF), Session Management Function (SMF), User Plane Function (UPF), Policy Control Function (PCF), Policy and Charging Rules Function (PCRF), Edge Application Server Discovery Function (EASDF), Unified Data Management (UDM), Unified Data Repository (UDR), Home Subscriber Server (HSS), Centralized network configuration (CNC), Network Repository Function (NRF), Network Exposure Function (NEF), Local NEF (L-NEF), and Binding Support. Functions include BSF, Application Function (AF), Location Management Function (LMF), Gateway Mobile Location Centre (GMLC), Network Data Analytics Function (NWDAF), and Non-Terrestrial Network (NTN) equipment (such as satellite or high altitude platform station).It should be noted that the embodiments of this application only use the core network equipment in the NR system as an example for introduction, and do not limit the specific type of core network equipment. If the name of the core network equipment mentioned in the embodiments of this application changes in subsequent protocol versions (such as 6G), it is also within the scope of protection of this application.

[0051] Optionally, the core network equipment can be implemented by one or more functional modules in a single device, or by multiple devices working together; this application does not specifically limit this. It is understood that the aforementioned functional modules can be network elements in hardware devices, software functional modules running on dedicated hardware, or virtualized functional modules instantiated on a platform (e.g., a cloud platform).

[0052] The verification code receiving and sending method provided in this application will be described in detail below with reference to the accompanying drawings and through some embodiments and application scenarios.

[0053] The verification code receiving and sending method, apparatus and device provided in the embodiments of this application can be applied to scenarios where terminals receive verification codes, especially scenarios where terminals including at least two SIM cards receive verification codes.

[0054] In a specific application scenario, the verification code receiving and sending method provided in this application embodiment can be applied to a scenario in which a terminal with two SIM cards receives a verification code, such as scenario 1.

[0055] In Scenario 1, taking SIM1 as the primary SIM card and SIM2 as the secondary SIM card in the terminal, the first application as a video playback application, the user setting the phone number corresponding to the secondary SIM card as the primary phone number, and the first network device as a base station as an example: When the user logs into the video playback application through their video playback account, the terminal can send a verification code request to the application server of the video playback application. This verification code request may include the phone number corresponding to the secondary SIM card. After receiving the verification code request from the terminal, the application server can send the verification code and the phone number corresponding to the secondary SIM card to the base station, enabling the base station to send the verification code to the phone number corresponding to the secondary SIM card. If the base station fails to send the verification code to the phone number corresponding to the secondary SIM card, it can send the verification code, the phone number corresponding to the secondary SIM card, and the user's manufacturer account to the manufacturer's server. The manufacturer's server can then find the phone number corresponding to the primary SIM card associated with the manufacturer account and different from the phone number corresponding to the secondary SIM card, and send the phone number corresponding to the primary SIM card and the verification code to the base station. Finally, the base station can send the verification code to the terminal based on the phone number corresponding to the primary SIM card sent by the manufacturer's server.

[0056] Another specific application scenario is that the verification code receiving and sending method provided in this application embodiment can be applied to a scenario in which a terminal with three SIM cards receives a verification code, such as scenario 2.

[0057] In Scenario 2, taking SIM1 as the primary SIM card and SIM2 and SIM3 as secondary SIM cards, the first application as a financial management application, and the first network device as a base station, the following scenario applies: When a user logs into the financial management application through their financial management account, the terminal can recommend the user's preferred SIM3 to receive verification codes. The terminal can send a verification code request, including the phone number corresponding to SIM3, to the application server of the financial management application. After receiving the verification code request from the terminal, the application server can send the verification code and the phone number corresponding to SIM3 to the base station, enabling the base station to send the verification code to the phone number corresponding to SIM3. If the base station fails to send the verification code to the phone number corresponding to SIM3, it can send the verification code, the phone number corresponding to SIM3, and the user's manufacturer account to the terminal's manufacturer server. This allows the manufacturer server to send the terminal's identifier and verification code to the base station even if no phone number associated with the manufacturer account and different from the phone number corresponding to SIM3 is found. Finally, the base station can send the verification code to the terminal based on the terminal identifier sent by the manufacturer server.

[0058] The verification code receiving and sending method provided in this application embodiment allows the terminal to flexibly select the phone number to receive the verification code through pre-setting or intelligent recommendation when the terminal needs to receive the verification code, thereby eliminating the need for the user to manually enter the phone number to receive the verification code and improving the flexibility of the terminal in receiving verification codes.

[0059] Figure 2 shows a flowchart of a verification code receiving method provided in an embodiment of this application, which can be applied to a terminal including at least two SIM cards. As shown in Figure 2, the verification code receiving method may include the following steps 201 and 202.

[0060] Step 201: The terminal sends a verification code request to the application server of the first application.

[0061] The verification code request may include a first phone number, which may be a pre-set phone number or a phone number recommended by the terminal.

[0062] In this embodiment of the application, the SIM card corresponding to the first phone number can be one of the SIM cards in the terminal's at least two SIM cards.

[0063] In some embodiments of this application, the terminal described above is a terminal that includes at least two SIM cards. It is understood that the terminal including at least two SIM cards refers to a device capable of inserting and using at least two SIM cards.

[0064] In some embodiments of this application, the first application described above can be any application in the terminal.

[0065] It is understandable that the application server of the first application can be a network device that supports the development, operation and deployment of the first application, and can provide a stable, reliable and secure operating environment for the first application, so that the first application can run in the operating environment.

[0066] In some embodiments of this application, if the first application requires verification code verification during the process of running the first application on the terminal, the terminal can send a verification code request to the application server of the first application.

[0067] For example, taking a communication application as the first application. When a user chooses to use a verification code to log in to their communication account in this application, the terminal can send a verification code request to the application server of the communication application to obtain a verification code that can be used to log in to the communication account.

[0068] In some embodiments of this application, the phone number can be the phone number corresponding to the SIM card in the terminal.

[0069] In some embodiments of this application, the aforementioned telephone number may also be referred to as a mobile subscriber number, specifically a Mobile Station International Subscriber Directory Number (MSISDN), which is a publicly disclosed telephone number for a mobile user. Typically, when a calling terminal wants to call another terminal in a Global System for Mobile Communications (GSM) network, the user of the calling terminal can dial the telephone number of that other terminal.

[0070] In some embodiments of this application, the terminal can read the International Mobile Subscriber Identity (IMSI) and Integrated Circuit Card Identity (CCID) from the SIM card and use the IMSI to initiate a registration request to the mobile network. After receiving the registration request from the terminal, the mobile network can verify the legitimacy of the IMSI and assign a Temporary Mobile Subscriber Identity (TMSI) to the terminal, associating the phone number with the IMSI. The phone number can then be pushed to the terminal via Over-the-Air Technology (OTA), or the terminal can request the phone number from the mobile network through a network query interface. In this way, the terminal can store the obtained phone number corresponding to the SIM card and display it in the corresponding user interface.

[0071] In some embodiments of this application, the aforementioned pre-set phone number can be the default phone number set by the user to receive verification codes. It is understood that users can set a default phone number to receive verification codes based on their usage habits and commonly used phone numbers, thereby ensuring the accuracy of the phone number used to receive verification codes.

[0072] In some embodiments of this application, users can manually set the default phone number for receiving verification codes in the terminal's verification code settings interface.

[0073] For example, the terminal's verification code settings interface may include a selection control for the default phone number to receive verification codes, so that users can select the default phone number to receive verification codes by inputting into the selection control.

[0074] In some embodiments of this application, the telephone number recommended by the terminal may include at least one of the following:

[0075] The phone number associated with the first application;

[0076] The phone number that last received the verification code;

[0077] Phone numbers that receive verification codes more frequently than or equal to a first threshold within the first time period.

[0078] In some embodiments of this application, the phone number associated with the first application may be the phone number associated with the application account corresponding to the first application.

[0079] For example, the phone number associated with the first application may be the phone number associated with the application account used to log in to the first application.

[0080] In some embodiments of this application, the phone number that most recently received the verification code may be the phone number that most recently received the verification code in the first application.

[0081] In some embodiments of this application, the phone number that receives verification codes more frequently than or equal to a first threshold during the first time period can indicate that the phone number is a commonly used phone number for receiving verification codes. Therefore, the terminal can recommend the commonly used phone number for receiving verification codes.

[0082] In some embodiments of this application, the first time period and the first threshold mentioned above can be set by the user, can be the terminal default, or can be determined by the terminal based on big data. This application does not impose specific limitations on these embodiments.

[0083] In some embodiments of this application, when the terminal recommends at least two phone numbers, the user can select the phone number to receive the verification code from the at least two phone numbers recommended by the terminal.

[0084] In some embodiments of this application, after the user selects a phone number to receive the verification code, the terminal may also display a prompt asking the user whether to select that phone number as the default for receiving verification codes in the future. If the user selects "yes," the terminal can set that phone number as the default phone number for receiving verification codes; if the user selects "no," the terminal can display recommended phone numbers for the user to choose from the next time a verification code needs to be received.

[0085] In some embodiments of this application, when the terminal recommends at least two phone numbers, the terminal can display the at least two recommended phone numbers in descending order of their usage frequency. In actual implementation, the terminal can also display the at least two recommended phone numbers in any other possible arrangement. This application does not impose specific limitations on these embodiments.

[0086] Step 202: The terminal receives the verification code corresponding to the verification code request from the application server.

[0087] In some embodiments of this application, after receiving a verification code request sent by the terminal, the application server of the first application can return a verification code corresponding to the verification code request to the terminal, so that the terminal can complete the verification of the first application based on the verification code.

[0088] In some embodiments of this application, after receiving a verification code request from a terminal, the application server can generate a random verification code and send the verification code to the terminal.

[0089] For example, the terminal can randomly generate a 4- to 6-digit number sequence as a verification code and send it to the terminal.

[0090] Understandably, if the verification code is correct, the terminal can pass the verification of the first application; if the verification code is incorrect, the terminal can prompt the user to re-enter the correct verification code.

[0091] The verification code receiving method provided in this application allows the terminal to flexibly select the phone number to receive the verification code through pre-setting or intelligent recommendation when the terminal needs to receive the verification code, thereby eliminating the need for the user to manually enter the phone number to receive the verification code and improving the flexibility of the terminal in receiving verification codes.

[0092] In some embodiments of this application, the terminal can receive a verification code by receiving a message from the application server; that is, the message includes a verification code. This message can be any of the following: a short message, a web message, a notification message, or a voice message.

[0093] In some embodiments of this application, after receiving a verification code request from a terminal, the application server may send a short message containing a verification code to the terminal.

[0094] In some embodiments of this application, the aforementioned short message may refer to Short Message Service (SMS), which is a service that transmits short text messages in a mobile network.

[0095] In some embodiments of this application, the aforementioned short messages can be transmitted via the signaling channel of the mobile network. That is, even when the data network of the SIM card in the terminal is unavailable, short messages can still be sent and received.

[0096] It should be noted that the aforementioned mobile network can also be referred to as a mobile communication network. The two terms have the same meaning and can be used interchangeably in this text. For a detailed description of this mobile network, please refer to the detailed description in step 202a below; to avoid repetition, it will not be repeated here.

[0097] In some embodiments of this application, after receiving a verification code request from a terminal, the application server may send a network SMS containing a verification code to the terminal.

[0098] In some embodiments of this application, the aforementioned online text messaging can refer to a text messaging service sent and received via the Internet, which can utilize the Internet as a transmission medium. That is, online text messaging is transmitted via the Internet, rather than through the signaling channels of a mobile communication network.

[0099] In some embodiments of this application, after receiving a verification code request from a terminal, the application server may send a notification message containing a verification code to the terminal.

[0100] In some embodiments of this application, the notification message may be provided by an application, a terminal operating system, or a service.

[0101] In some embodiments of this application, the notification message can be a notification message sent by the server to the terminal via push notification technology. It is understood that in this case, the user does not need to open the application receiving the notification message to receive it.

[0102] In some embodiments of this application, after receiving a verification code request from a terminal, the application server may send a voice message containing a verification code to the terminal.

[0103] For example, the application server can broadcast the verification code directly to the user via voice call.

[0104] In this way, by using various message formats, it is ensured that the terminal can receive the required verification code.

[0105] In some embodiments of this application, referring to FIG2 and FIG3, the above step 202 can also be implemented by the following step 202a.

[0106] Step 202a: The terminal receives a verification code via a second phone number based on the mobile network.

[0107] The second phone number can be either the first phone number or a third phone number associated with the first phone number. The SIM card corresponding to the third phone number is a different SIM card from the SIM card corresponding to the first phone number among the at least two SIM cards mentioned above.

[0108] In some embodiments of this application, the mobile network described above is a network that uses radio waves to communicate between mobile users or between a mobile user and a fixed user. This mobile network allows users to conduct voice, data, and video communications while on the move.

[0109] It is understood that the mobile network may include multiple devices such as terminals, base stations, and core networks (such as gateways, routers, servers, etc.). These multiple devices can be connected through the transmission network, so that they can transmit and exchange data through the transmission network.

[0110] In some embodiments of this application, the mobile network described above may include, but is not limited to, a 3G network, a 4G network, a 5G network, or a 6G network.

[0111] In some embodiments of this application, the terminal can receive short messages or voice messages from an application server via a mobile network.

[0112] In some embodiments of this application, when the communication service of the SIM card corresponding to the first phone number is normal, the second phone number can be the first phone number. In this case, the terminal can directly receive SMS messages, network SMS messages, or voice messages from the application server through the first phone number.

[0113] In some embodiments of this application, if the communication service of the SIM card corresponding to the first phone number is abnormal, the second phone number can be a third phone number associated with the first phone number. In this case, the terminal can receive a verification code corresponding to the verification code request from the application server through the third phone number associated with the first phone number.

[0114] In some embodiments of this application, when the second phone number is a third phone number associated with the first phone number, the signal quality of the SIM card corresponding to the second phone number is greater than the signal quality of the SIM card corresponding to the first phone number.

[0115] In some embodiments of this application, the third phone number associated with the first phone number can be understood as: the SIM card corresponding to the third phone number and the SIM card corresponding to the first phone number can be located in the same terminal; or, the user to whom the third phone number belongs can be the same as the user to whom the first phone number belongs; or, both the third phone number and the first phone number are associated with the user's vendor account.

[0116] In some embodiments of this application, when the second phone number is a third phone number associated with the first phone number, the terminal can receive the verification code through the second phone number corresponding to one of at least two SIM cards whose signal quality is greater than that of the SIM card corresponding to the first phone number.

[0117] In some embodiments of this application, the aforementioned signal quality may include, but is not limited to, at least one of the following: Received Signal Strength Indicator (RSSI), Bit Error Rate (BER), Reference Signal Receiving Power (RSRP), Reference Signal Receiving Quality (RSRQ), and Signal to Interference plus Noise Ratio (SINR).

[0118] It should be noted that a detailed description of how to determine the second phone number corresponding to the SIM card with a signal quality greater than that of the SIM card corresponding to the first phone number from at least two SIM cards can be found in the detailed descriptions below on the first network device side and the manufacturer's server side. To avoid repetition, it will not be repeated here.

[0119] It should be noted that the above-mentioned terminal receiving the verification code corresponding to the verification code request from the application server via the second phone number based on the mobile network can also be understood as: the terminal receiving the verification code corresponding to the verification code request from the application server via the SIM card corresponding to the second phone number based on the mobile network.

[0120] In this way, the terminal can receive a verification code from the application server via a first phone number or a phone number associated with that first phone number, based on the mobile network, thereby ensuring that the terminal can receive the verification code.

[0121] In some embodiments of this application, as shown in FIG3 and FIG4, the above step 202 can also be implemented by the following step 202b.

[0122] Step 202b: If receiving the verification code via the mobile network fails, the terminal receives the verification code via the system application or a second phone number through the wireless network.

[0123] It is understandable that if the terminal fails to receive the verification code via a second phone number based on the mobile network, the terminal can receive the verification code via the system application based on the wireless network, or the terminal can receive the verification code via a second phone number based on the wireless network.

[0124] In some embodiments of this application, a wireless network is a network technology that uses radio waves to transmit data, which allows terminals to communicate and exchange data without a physical connection.

[0125] In some embodiments of this application, the wireless network described above may be a data network or Wireless Fidelity (WiFi).

[0126] In some embodiments of this application, the aforementioned system applications may refer to applications that are tightly integrated with the terminal's operating system and provide basic functions and services. These system applications are typically developed by the terminal manufacturer or operating system developer and pre-installed on the terminal.

[0127] In some embodiments of this application, the step 202b described above, "the terminal receives the verification code via a system application or a second telephone number based on a wireless network," can also be implemented through the following steps 202b1 or 202b2.

[0128] Step 202b1: The terminal receives a notification message via a system application based on the wireless network. The notification message includes a verification code.

[0129] In some embodiments of this application, when the terminal's mobile network is unavailable or malfunctions, i.e., when receiving the verification code via the mobile network fails, the terminal can receive a notification message from the application server via the system application based on the wireless network to achieve the reception of the verification code.

[0130] Step 202b2: The terminal receives a network SMS message via a second phone number based on the wireless network. The network SMS message includes a verification code.

[0131] In some embodiments of this application, when the terminal's mobile network is unavailable or malfunctions, i.e., when receiving the verification code via the mobile network fails, the terminal can receive a network SMS from the application server via a second phone number based on the wireless network to achieve the receiving of the verification code.

[0132] In this way, the terminal can also receive verification codes from the application server via the system application or a second phone number through the wireless network, thereby ensuring that the terminal can receive the verification codes.

[0133] In some embodiments of this application, before step 201 above, the verification code receiving method provided in the embodiments of this application may further include the following step 203.

[0134] Step 203: The terminal sends the first message to the terminal's manufacturer's server.

[0135] The first message can indicate the association between the user's manufacturer account and the phone numbers corresponding to at least two SIM cards.

[0136] In some embodiments of this application, the first message is used by the vendor server to query a third phone number associated with the first phone number.

[0137] In some embodiments of this application, both the third telephone number and the first telephone number are associated with the user's vendor account.

[0138] In some embodiments of this application, the manufacturer server of the aforementioned terminal may refer to a server provided by the terminal manufacturer, which can be used to support and manage the terminals it produces.

[0139] For example, the vendor's server can be used to remotely manage and monitor the status and performance of the terminal, such as firmware updates, configuration management, and fault diagnosis.

[0140] For example, the vendor's server can also be used to collect terminal usage data and feedback information, and to perform data analysis to improve products and services.

[0141] For example, the vendor's server can also be used to provide technical support and assistance to users, and to answer questions that users encounter while using the terminal.

[0142] In some embodiments of this application, during the user's use of the terminal, the user can typically register and log in to the terminal's manufacturer account.

[0143] For example, when a user uses a terminal of brand A, the user can register and log in to the manufacturer account corresponding to brand A on that terminal.

[0144] In some embodiments of this application, the association between the user's manufacturer account and the phone numbers corresponding to at least two SIM cards can be: a binding relationship or mapping relationship between the user's manufacturer account and the phone numbers corresponding to at least two SIM cards.

[0145] In some embodiments of this application, the terminal can bind or map the manufacturer account ID to the phone numbers corresponding to the at least two SIM cards to obtain the association between the manufacturer account and the phone numbers corresponding to the at least two SIM cards.

[0146] For example, assuming the terminal includes SIM card 1 and SIM card 2, the association between the user's manufacturer account 1 and the phone numbers corresponding to at least two SIM cards may include the following two associations: manufacturer account 1 - phone number corresponding to SIM card 1, and manufacturer account 1 - phone number corresponding to SIM card 2.

[0147] In some embodiments of this application, after obtaining the association between the user's manufacturer account and the phone numbers corresponding to at least two SIM cards, the terminal can store and report the association.

[0148] It should be noted that since the mapping relationship between SIM cards and their corresponding phone numbers is one-to-one, the terminal can also obtain the association relationship between the user's manufacturer account and at least two SIM cards. Thus, the association relationship between the user's manufacturer account and the phone numbers corresponding to at least two SIM cards can be determined through the phone numbers corresponding to the SIM cards.

[0149] In some embodiments of this application, the terminal can bind the user's manufacturer account to the phone numbers corresponding to at least two SIM cards in the terminal, and report the binding relationship to the manufacturer server, so that when the communication of the first phone number included in the verification code request is abnormal, the manufacturer server can find other phone numbers that can transmit data.

[0150] In this way, the terminal can report the association between the user's manufacturer account and the phone numbers corresponding to at least two SIM cards to the manufacturer's server in advance. Therefore, when receiving the verification code through the first phone number fails, the manufacturer's server can use this association to find other phone numbers that can allow the terminal to receive the verification code.

[0151] In some embodiments of this application, before step 201 above, the verification code receiving method provided in the embodiments of this application may further include the following step 204.

[0152] Step 204: The terminal sends a second message to the first network device.

[0153] The second message indicates the association between the user's manufacturer account and the phone numbers corresponding to at least two SIM cards.

[0154] In some embodiments of this application, the first network device described above may be a network device that provides services to the terminal.

[0155] In some embodiments of this application, the first network device described above may be a message relay network device between a terminal and a server.

[0156] For example, the first network device described above may be a base station.

[0157] In some embodiments of this application, the terminal can bind the user's manufacturer account to the phone numbers corresponding to at least two SIM cards in the terminal, and report the binding relationship to the first network device. In the event of a communication failure of the first phone number included in the verification code request, the terminal can find the corresponding manufacturer server through the first network device, so that the manufacturer server can find other phone numbers that can transmit data.

[0158] In this way, the terminal can report the association between the user's manufacturer account and the phone numbers corresponding to at least two SIM cards to the first network device in advance. Therefore, when receiving the verification code through the first phone number fails, the first network device can find the corresponding manufacturer server through the association. The manufacturer server can then find other phone numbers that can allow the terminal to receive the verification code through the association between the user's manufacturer account and the phone numbers corresponding to at least two SIM cards.

[0159] In some embodiments of this application, the terminal may report the association between the user's manufacturer account and the phone numbers corresponding to at least two SIM cards to the first network device and the manufacturer server in advance. Therefore, when receiving a verification code through the first phone number fails, the first network device and the manufacturer server can find other phone numbers that can enable the terminal to receive the verification code through the association.

[0160] Figure 5 shows a flowchart of a verification code sending method provided in an embodiment of this application, which can be applied to a first network device. As shown in Figure 5, the verification code sending method may include the following steps 301 and 302.

[0161] Step 301: The first network device receives the first phone number and verification code from the application server.

[0162] In some embodiments of this application, the first network device described above may be a network device that provides services to the terminal.

[0163] In some embodiments of this application, the first network device described above may be a message relay network device between a terminal and a server.

[0164] For example, the first network device described above may be a base station.

[0165] In some embodiments of this application, after the application server receives a verification code request containing a first phone number sent by the terminal, the application server can generate a random verification code and send the first phone number and the verification code to the first network device so that the verification code can be sent to the terminal through the first network device.

[0166] In some embodiments of this application, after the first network device receives the first phone number and verification code sent by the application server, the first network device may send the verification code to the first phone number.

[0167] It is understandable that when the first network device sends a verification code to the terminal, it can send a short message, network SMS, notification message, or voice message containing the verification code to the terminal.

[0168] Step 302: If sending the verification code to the first phone number fails, the first network device sends the verification code to the system application of the third phone number or terminal.

[0169] The third phone number mentioned above can be a phone number associated with the first phone number.

[0170] In this embodiment of the application, the first network device may be a network device that provides services to the terminal.

[0171] In some embodiments of this application, if the signal quality of the SIM card corresponding to the first phone number is poor or abnormal, the terminal may be unable to receive the verification code through the first phone number, thereby causing the first network device to fail to send the verification code to the first phone number.

[0172] In some embodiments of this application, if sending a verification code to a first phone number fails, the first network device may send a verification code to a system application of a phone number or terminal associated with the first phone number to ensure that the terminal can receive the verification code.

[0173] It should be noted that for a detailed description of steps 301 and 302 above, please refer to the relevant description in the verification code receiving method of the above embodiments. To avoid repetition, it will not be repeated here.

[0174] The verification code sending method provided in this application embodiment allows a first network device to send the verification code to a third phone number or the terminal's system application if sending the verification code to the first phone number fails. Thus, even if the SIM card signal corresponding to the first phone number is weak, the terminal can still receive the verification code through other means, ensuring successful reception of the verification code.

[0175] In some embodiments of this application, as shown in FIG5 and FIG6, the above step 302 can also be implemented by the following step 302a.

[0176] Step 302a: If sending the verification code to the first phone number fails, the first network device sends the verification code to the third phone number based on the mobile network.

[0177] In some embodiments of this application, referring to FIG5 and FIG7, the above step 302 can also be implemented by the following step 302b.

[0178] Step 302b: If sending the verification code to the first phone number fails, the first network device sends the verification code to the terminal's system application via the wireless network.

[0179] It should be noted that the relevant technologies and solutions for mobile networks and wireless networks described here can be found in the description of the verification code receiving method in the above embodiments. To avoid repetition, they will not be repeated here.

[0180] Furthermore, a detailed description of how the first network device determines the third telephone number and terminal system application can be found in the following descriptions of steps 303 and 304. To avoid repetition, these details will not be repeated here.

[0181] In this way, if the first network device fails to send the verification code to the first phone number, it can send the verification code to the third phone number via the mobile network, or send the verification code to the terminal's system application via the wireless network, thereby confirming that the terminal can successfully receive the verification code.

[0182] In some embodiments of this application, referring to FIG5 and FIG8, after step 301 above, the verification code sending method provided in the embodiments of this application may further include the following steps 303 to 305.

[0183] Step 303: The first network device receives a third message from the terminal.

[0184] The third message indicates the association between the user's manufacturer account and the phone numbers corresponding to at least two SIM cards on the terminal.

[0185] Step 304: The first network device sends the first phone number and the manufacturer account to the terminal's manufacturer server based on the association between the first phone number and the user's manufacturer account.

[0186] In some embodiments of this application, the first network device may store associations between a user's vendor account reported by the terminal and the phone numbers corresponding to at least two SIM cards. In other words, the first network device may store at least two associations, each association indicating the association between a user's vendor account and the phone numbers corresponding to at least two SIM cards.

[0187] In some embodiments of this application, after receiving the first phone number and verification code sent by the application server, if sending the verification code to the first phone number fails, the first network device can search for the user's manufacturer account corresponding to the first phone number from the association between the user's manufacturer account and the phone numbers corresponding to at least two SIM cards, and thus determine the terminal's manufacturer server based on the user's manufacturer account.

[0188] In some embodiments of this application, when the first network device sends the first phone number and manufacturer account to the manufacturer server of the terminal, it may also send the verification code together with the first phone number and manufacturer account to the manufacturer server of the terminal, that is, the verification code, the first phone number and the manufacturer account are a whole data packet.

[0189] Step 305: The first network device receives the first information from the vendor's server.

[0190] The first information may include the identifier of a third phone number or terminal, wherein the third phone number and the first phone number are phone numbers corresponding to different SIM cards in at least two SIM cards.

[0191] It is understandable that both the third and first phone numbers mentioned above are associated with the aforementioned manufacturer's account.

[0192] In some embodiments of this application, the identifier of the terminal described above can be used to send a verification code to the system application of the terminal.

[0193] In some embodiments of this application, after receiving the first phone number and manufacturer account sent by the first network device, the manufacturer server can search for the identifier of other phone numbers or terminals associated with the manufacturer account based on the association between the user's manufacturer account reported by the terminal and the phone numbers corresponding to at least two SIM cards. This allows the first network device to send a verification code to the system application of the third phone number or terminal.

[0194] In some embodiments of this application, if the signal quality of the SIM card corresponding to the first phone number is poor or abnormal, sending the verification code to the first phone number may fail. Therefore, if the first network device detects that the verification code has failed to be sent, the first network device can forward the verification code to the terminal's manufacturer server based on the association between the user's manufacturer account and the phone numbers corresponding to at least two SIM cards. The manufacturer server can then use push notification technology to send the verification code to the terminal if the other SIM cards on the terminal have good signals or if the terminal is connected to WiFi.

[0195] In some embodiments of this application, if the vendor server finds other phone numbers associated with the first phone number, the vendor server can send the other phone number to the first network device, so that the first network device can send a verification code to the other phone number.

[0196] In some embodiments of this application, if the vendor server does not find a phone number associated with the first phone number, the vendor server may send the terminal's identifier to the first network device, so that the first network device may send a verification code to the terminal's system application.

[0197] In some embodiments of this application, the identifier of the terminal can be a Mobile Station Equipment Identity (MEI).

[0198] Understandably, by using the terminal's identifier, the first network device can send a system notification containing a verification code to the system application of the terminal specified by that identifier via the wireless network.

[0199] In some embodiments of this application, when the first network device receives the first information from the vendor server, it may also simultaneously receive the verification code from the vendor server.

[0200] This allows the verification code to be successfully received and verified even when the SIM card corresponding to the phone number to which the terminal was originally supposed to receive the verification code has a poor signal, thus improving the success rate of receiving the verification code.

[0201] In some embodiments of this application, after step 301 above, the verification code sending method provided in this application embodiment may further include steps 306 and 307 below, and step 302 above can be specifically implemented by step 302c below.

[0202] Step 306: If sending the verification code to the third phone number fails, the first network device sends the first phone number, the third phone number, and the manufacturer account to the terminal's manufacturer server based on the association between the first phone number and the user's manufacturer account, and the association between the third phone number and the user's manufacturer account.

[0203] In some embodiments of this application, when the vendor server returns a third phone number to the first network device, the first network device may send a verification code to the third phone number.

[0204] In some embodiments of this application, if sending a verification code to a third phone number fails, the first network device may send the first phone number, the third phone number, and the manufacturer account to the terminal's manufacturer server based on the association between the first phone number, the third phone number, and the user's manufacturer account.

[0205] In some embodiments of this application, when the first network device sends the first phone number, the third phone number, and the manufacturer account to the manufacturer server of the terminal, it may also send the verification code together with the first phone number, the third phone number, and the manufacturer account to the manufacturer server of the terminal, that is, the verification code, the first phone number, the third phone number, and the manufacturer account are a whole data packet.

[0206] Step 307: The first network device receives the terminal identifier from the vendor's server.

[0207] In some embodiments of this application, after the vendor server receives the first phone number, the third phone number, and the vendor account sent by the first network device, the vendor server can find the phone number associated with the vendor account that is different from both the first phone number and the third phone number.

[0208] In some embodiments of this application, if no phone number associated with the vendor account and different from both the first and third phone numbers is found, the vendor server may send the terminal's identifier to the first network device.

[0209] Step 302c: If sending the verification code to the first phone number fails, the first network device sends the verification code to the terminal's system application based on the terminal's identifier.

[0210] This allows the verification code to be successfully received and verified even when the SIM card corresponding to the phone number to which the terminal was originally supposed to receive the verification code has a poor signal, thus improving the success rate of receiving the verification code.

[0211] Figure 9 shows a flowchart of a verification code sending method provided in an embodiment of this application, which can be applied to a vendor server. As shown in Figure 9, the verification code sending method may include the following steps 401 to 403.

[0212] Step 401: The vendor server receives the first phone number and the user's vendor account from the first network device.

[0213] Step 402: If a third phone number is found that is associated with the vendor account and is different from the first phone number, the vendor server sends the third phone number to the first network device.

[0214] Step 403: If no phone number associated with the manufacturer account and different from the first phone number is found, the manufacturer server sends the identifier of the terminal corresponding to the manufacturer account to the first network device.

[0215] In some embodiments of this application, the manufacturer's server may store the association relationships between a user's manufacturer account reported by the terminal and the phone numbers corresponding to at least two SIM cards. In other words, the manufacturer's server may store at least two association relationships, each indicating the association relationship between a user's manufacturer account and the phone numbers corresponding to at least two SIM cards.

[0216] In some embodiments of this application, the vendor server may also store the association between the terminal's identifier and the user's vendor account, so that the vendor server can find the terminal's identifier based on the user's vendor account.

[0217] In some embodiments of this application, the manufacturer server may receive and store the association between the terminal's identifier and the user's manufacturer account reported by the terminal; or, the manufacturer server may directly receive and store the association between the terminal's identifier, the user's manufacturer account, and the phone numbers corresponding to at least two SIM cards reported by the terminal. The embodiments of this application are not specifically limited.

[0218] It can be understood that the execution relationship between steps 402 and 403 above is an "OR" relationship, and one of these two steps will be executed.

[0219] It should be noted that for a detailed description of steps 401 to 403 above, please refer to the descriptions of steps 301 to 305 and their related steps, as well as steps 201 and 202 and their related steps. To avoid repetition, they will not be repeated here.

[0220] This allows the verification code to be successfully received and verified even when the SIM card corresponding to the phone number to which the terminal was originally supposed to receive the verification code has a poor signal, thus improving the success rate of receiving the verification code.

[0221] In some embodiments of this application, referring to FIG9 and FIG10, after step 402 above, the verification code sending method provided in the embodiments of this application may further include the following steps 404 and 405.

[0222] Step 404: The vendor server receives the first phone number, the third phone number, and the vendor account from the first network device.

[0223] Step 405: If no phone number associated with the manufacturer account is found that is different from both the first and third phone numbers, the manufacturer server sends the terminal's identifier to the first network device.

[0224] Understandably, if the terminal fails to receive the verification code via the first and third phone numbers, the first network device sends the first and third phone numbers, along with the vendor account, to the vendor server. The vendor server then searches for a phone number associated with the vendor account that is different from both the first and third phone numbers to send the verification code. If no phone number is found that is associated with the vendor account and is different from both the first and third phone numbers, the vendor server can indicate the terminal's identifier to the first network device. This allows the first network device to send the verification code to the terminal's system application based on the terminal's identifier, enabling the terminal to receive the verification code through the system application.

[0225] It should be noted that for a detailed description of steps 404 and 405 above, please refer to the descriptions of steps 301 to 305 and their related steps, as well as steps 201 and 202 and their related steps. To avoid repetition, they will not be repeated here.

[0226] This allows the verification code to be successfully received and verified even when the SIM card corresponding to the phone number to which the terminal was originally supposed to receive the verification code has a poor signal, thus improving the success rate of receiving the verification code.

[0227] Figure 11 shows a flowchart of a verification code receiving and sending method provided in an embodiment of this application. As shown in Figure 11, the verification code receiving and sending method may include the following steps 501 to 508.

[0228] Step 501: The terminal sends a verification code request to the application server of the first application through the first network device.

[0229] The verification code request may include a first phone number, which may be a pre-set phone number or a phone number recommended by the terminal, and the SIM card corresponding to the first phone number may be one of the terminal's at least two SIM cards.

[0230] Step 502: The application server receives the verification code request sent by the terminal and sends the first phone number and verification code to the first network device.

[0231] Step 503: The first network device receives the first phone number and verification code from the application server.

[0232] Step 504: If sending the verification code to the first phone number fails, the first network device sends the first phone number and the manufacturer account to the terminal's manufacturer server based on the association between the first phone number and the user's manufacturer account.

[0233] Step 505: The vendor server receives the first phone number and the user's vendor account from the first network device.

[0234] Step 506: If a third phone number associated with the manufacturer account and different from the first phone number is found, the manufacturer server sends the third phone number to the first network device; or if no phone number associated with the manufacturer account and different from the first phone number is found, the manufacturer server sends the identifier of the terminal corresponding to the manufacturer account to the first network device.

[0235] Step 507: The first network device sends a verification code to the system application of the third phone number or terminal.

[0236] Step 508: The terminal receives the verification code and performs the verification.

[0237] The verification code receiving and sending method provided in this application allows for flexible selection of the receiving phone number when a terminal needs to receive a verification code. This can be achieved through pre-setting or intelligent recommendation, eliminating the need for the user to manually enter the receiving phone number and improving the flexibility of the terminal in receiving verification codes. Furthermore, if sending the verification code to the first phone number fails, the first network device can send the verification code to a second phone number or the terminal's system application. Thus, even if the SIM card signal corresponding to the first phone number is weak, the terminal can still receive the verification code through other means, ensuring successful reception of the verification code.

[0238] Each of the above-described method embodiments, or various possible implementations of each method embodiment, can be executed individually or in combination of any two or more, depending on actual usage requirements. This application embodiment does not impose any limitations in this regard. The following specific examples illustrate the verification code receiving and sending method provided by this application embodiment.

[0239] Taking a terminal with SIM1 as the primary SIM card, SIM2 as the secondary SIM card, a video playback application as the first application, a user setting the phone number corresponding to the secondary SIM card as the primary phone number, and a base station as the primary network device as an example.

[0240] Example 1: As shown in Figure 12, the verification code receiving and sending method provided in this application embodiment may include the following steps S101 to S105.

[0241] Step S101: The terminal detects the dual-SIM status.

[0242] It's understandable that when the terminal is powered on or a SIM card is inserted, it can detect whether a SIM card is currently inserted and the number of SIM cards inserted. Furthermore, the terminal can determine the primary and secondary SIM cards. Typically, the primary and secondary SIM cards are determined through user settings or default settings. For example, by default, the terminal's SIM1 is set as the primary SIM card, and SIM2 as the secondary SIM card.

[0243] Step S102: The terminal sets the phone number corresponding to the secondary SIM card as the default phone number for receiving verification codes based on the user's input.

[0244] Users can manually set the default phone number for receiving verification codes in the verification code settings interface. This interface can include a "Default Phone Number for Receiving Verification Codes" option, allowing users to select either the phone number associated with their primary SIM card or the phone number associated with their secondary SIM card as the default verification code recipient.

[0245] Step S103: The terminal sends a verification code request to the application server.

[0246] When a user opens an application that requires a verification code to log in or verify their identity (i.e., the first application mentioned above), if the user clicks on a phone number (i.e., the phone number) to log in to their account, the terminal can send a verification code request through the application using the user's preset default phone number for receiving verification codes. This verification code request may include the default phone number selected by the user for receiving verification codes.

[0247] Step S104: The application server receives the verification code request and sends the verification code to the phone number.

[0248] Step S105: The terminal receives the verification code and verifies the login.

[0249] Users can receive a verification code via a selected phone number, which can be sent via SMS or phone call.

[0250] After receiving the verification code, the user can enter it to complete the account login verification. Understandably, if the verification code is correct, the user can successfully log in; if the verification code is incorrect, the terminal can prompt the user to re-enter the verification code.

[0251] In this way, when a terminal needs to receive a verification code, the phone number to receive the verification code can be flexibly selected through pre-setting or intelligent recommendation, thus eliminating the need for the user to manually enter the phone number to receive the verification code and improving the flexibility of the terminal in receiving verification codes.

[0252] Example 2: As shown in Figure 13, the verification code receiving and sending method provided in this application embodiment may include the following steps S201 to S205.

[0253] Step S201: The terminal detects the dual-SIM status.

[0254] Step S202: The terminal displays the recommended phone number and determines the phone number to receive the verification code based on the user's input.

[0255] When a user opens an application that requires verification code login or identity verification, if the user clicks on phone number login, the device can provide a selection interface displaying recommended phone numbers. For example, the device could display two options: the phone number corresponding to the primary SIM card and the phone number corresponding to the secondary SIM card. The user can then choose to use either the primary or secondary SIM card's phone number to receive the verification code.

[0256] Furthermore, after the user selects a phone number, the terminal can pop up a window asking the user whether they want to use the phone number associated with the secondary SIM card to receive verification codes by default. If the user selects "yes," the terminal can automatically save the phone number associated with the secondary SIM card as the default phone number for receiving verification codes in the settings.

[0257] Step S203: The terminal sends a verification code request to the application server.

[0258] Step S204: The application server receives the verification code request and sends the verification code to the phone number.

[0259] Step S205: The terminal receives the verification code and verifies the login.

[0260] In this way, when a terminal needs to receive a verification code, the phone number to receive the verification code can be flexibly selected through pre-setting or intelligent recommendation, thus eliminating the need for the user to manually enter the phone number to receive the verification code and improving the flexibility of the terminal in receiving verification codes.

[0261] Example 3: As shown in Figure 14, the verification code receiving and sending method provided in this application embodiment may include the following steps S301 to S313.

[0262] Step S301: The terminal detects the dual-SIM status.

[0263] Step S302: The terminal obtains the association between the user's manufacturer account and the phone numbers corresponding to at least two SIM cards.

[0264] After a user logs into the manufacturer's account on the terminal, the terminal can establish and record the binding relationship between that manufacturer's account and the two SIM cards. Specifically, the terminal can record the following mapping relationship: SIM card 1 - Manufacturer account ID, SIM card 2 - Manufacturer account ID, to ensure that a clear one-to-one association is established between each SIM card and its corresponding manufacturer account.

[0265] Step S303: The terminal reports the association between the user's manufacturer account and the phone numbers corresponding to at least two SIM cards to the base station and the manufacturer's server.

[0266] Step S304: The terminal sends a verification code request to the application server through the secondary SIM card.

[0267] Step S305: The application server receives the verification code request sent by the terminal and sends the phone number and verification code corresponding to the secondary SIM card to the base station.

[0268] Step S306: The base station receives the first phone number and verification code from the application server.

[0269] Step S307: If sending the verification code to the phone number corresponding to the secondary SIM card fails, the base station sends the verification code, the phone number corresponding to the secondary SIM card, and the manufacturer account to the terminal's manufacturer server based on the association between the phone number corresponding to the secondary SIM card and the user's manufacturer account.

[0270] It is understandable that if the secondary SIM card cannot receive the verification code normally due to poor network conditions, the base station can forward the verification code to the device manufacturer's server based on the association between the phone number corresponding to the secondary SIM card and the user's manufacturer account when it detects the verification code transmission failure.

[0271] Step S308: The manufacturer's server receives the verification code, the phone number corresponding to the secondary SIM card, and the user's manufacturer account from the base station.

[0272] Step S309: If a phone number corresponding to the primary SIM card that is associated with the manufacturer's account and is different from the phone number corresponding to the secondary SIM card is found, the manufacturer's server sends the phone number and verification code corresponding to the primary SIM card to the base station.

[0273] Step S310: The first network device receives the phone number and verification code corresponding to the primary SIM card. If sending the verification code to the phone number corresponding to the primary SIM card fails, the device sends the verification code, the phone number corresponding to the secondary SIM card, the phone number corresponding to the primary SIM card, and the manufacturer account to the terminal's manufacturer server based on the association between the phone number corresponding to the secondary SIM card, the phone number corresponding to the primary SIM card, and the user's manufacturer account.

[0274] Step S311: If no phone number associated with the manufacturer's account is found, and the phone number corresponding to the secondary SIM card is different from the phone number corresponding to the primary SIM card, the manufacturer's server sends the terminal's identifier and verification code to the base station.

[0275] Step S312: The base station sends a verification code to the terminal's system application based on the terminal's identifier.

[0276] Step S313: The terminal receives the verification code and verifies the login.

[0277] Therefore, when a terminal needs to receive a verification code, the phone number to receive the verification code can be flexibly selected through pre-setting or intelligent recommendation, eliminating the need for the user to manually enter the phone number and improving the flexibility of the terminal in receiving verification codes. Furthermore, if sending the verification code to the first phone number fails, the first network device can send the verification code to a second phone number or the terminal's system application. Thus, even if the SIM card signal corresponding to the first phone number is weak, the terminal can still receive the verification code through other means, ensuring successful reception of the verification code.

[0278] The verification code receiving method provided in this application can be executed by a verification code receiving device; the verification code sending method provided in this application can also be executed by a verification code sending device. This application uses a verification code receiving device executing the verification code receiving method as an example to illustrate the verification code receiving device provided in this application; this application uses a verification code sending device executing the verification code sending method as an example to illustrate the verification code sending device provided in this application.

[0279] This application provides a verification code receiving device. As an example, the verification code receiving device may be a communication device or a component within a communication device, such as a chip. The communication device may be a terminal. Exemplarily, the terminal may include, but is not limited to, the types of terminals 11 listed above; this application does not impose specific limitations.

[0280] This application provides a verification code sending device. As an example, the verification code receiving device can be a communication device or a component within a communication device, such as a chip. The communication device can be a network device or a server, etc. Exemplarily, the terminal can be of types including but not limited to the network devices listed above, and this application does not impose specific limitations.

[0281] Both the verification code receiving device and the verification code sending device include a receiving module, a sending module, and a processing module. These modules can be implemented in software or hardware. When implemented in hardware, the processing module can be implemented by a processor. For example, the processor can include a general-purpose processor, a special-purpose processor, such as a Central Processing Unit (CPU), a microprocessor, a Digital Signal Processor (DSP), an Artificial Intelligence (AI) processor, a Graphics Processing Unit (GPU), an Application Specific Integrated Circuit (ASIC), a Network Processor (NP), a Field Programmable Gate Array (FPGA), or other programmable logic devices, gate circuits, transistors, discrete hardware components, etc. The receiving and sending modules can be implemented by a communication interface, which can include one or more of the following: a transceiver, pins, circuits, a bus, and a radio frequency unit.

[0282] In this embodiment of the application, the verification code receiving device may include at least two SIM cards.

[0283] Specifically, referring to Figure 15, when the verification code receiving device is a terminal or a component in a terminal, the verification code receiving device 150 includes a sending module 151 and a receiving module 152.

[0284] The sending module 151 is used to send a verification code request to the application server of the first application. The verification code request includes a first phone number, which is a pre-set phone number or a phone number recommended by the terminal. The SIM card corresponding to the first phone number is one of at least two SIM cards.

[0285] The receiving module 152 is used to receive the verification code corresponding to the verification code request from the application server.

[0286] In one possible implementation, the receiving module 152 is specifically used to receive a verification code via a second telephone number based on a mobile network.

[0287] The second phone number is either the first phone number or a third phone number associated with the first phone number.

[0288] In one possible implementation, when the second phone number is the third phone number, the signal quality of the SIM card corresponding to the second phone number is greater than the signal quality of the SIM card corresponding to the first phone number.

[0289] In one possible implementation, the receiving module 152 is specifically used to receive the verification code via a system application or a second phone number via a wireless network when receiving the verification code via the mobile network fails.

[0290] In one possible implementation, the receiving module 152 is specifically used for:

[0291] Based on the wireless network, a notification message is received through the system application, which includes a verification code;

[0292] or,

[0293] Based on a wireless network, a network SMS message containing a verification code is received via a second phone number.

[0294] In one possible implementation, the sending module 151 is further configured to send a first message to the terminal's manufacturer server before sending a verification code request to the application server of the first application. The first message indicates the association between the user's manufacturer account and the phone numbers corresponding to at least two SIM cards.

[0295] In one possible implementation, the sending module 151 is further configured to send a second message to the first network device before sending a verification code request to the application server of the first application. The second message indicates the association between the user's vendor account and the phone numbers corresponding to at least two SIM cards. The first network device is a network device that provides services to the terminal.

[0296] In one possible implementation, the telephone number recommended by the aforementioned terminal includes at least one of the following:

[0297] The phone number associated with the first application;

[0298] The phone number that last received the verification code;

[0299] Phone numbers that receive verification codes more frequently than or equal to a first threshold within the first time period.

[0300] The verification code receiving device provided in this application embodiment can flexibly select the phone number to receive the verification code by pre-setting or intelligent recommendation when the verification code receiving device needs to receive the verification code, thereby eliminating the need for the user to manually enter the phone number to receive the verification code and improving the flexibility of the terminal in receiving verification codes.

[0301] The verification code receiving device provided in this application embodiment can implement all the processes implemented in the above-described verification code receiving method embodiment and achieve the same technical effect. To avoid repetition, it will not be described again here.

[0302] Referring to Figure 16, when the verification code sending device is a network device or a component in a network device, the verification code sending device 160 includes a receiving module 161 and a sending module 162.

[0303] The receiving module 161 is used to receive the first phone number and verification code from the application server.

[0304] The sending module 162 is used to send a verification code to a third phone number or a system application of a terminal if sending the verification code to the first phone number fails. The third phone number is a phone number associated with the first phone number.

[0305] In one possible implementation, the receiving module 161 is further configured to receive a third message from the terminal, the third message indicating the association between the user's manufacturer account and the phone numbers corresponding to at least two SIM cards of the terminal.

[0306] The aforementioned sending module 162 is also used to send the first phone number and the manufacturer account to the manufacturer server of the terminal based on the association between the first phone number and the manufacturer account;

[0307] The receiving module 161 described above is further configured to receive first information from the manufacturer's server, the first information including a third phone number or the identifier of a terminal, the third phone number and the first phone number being phone numbers corresponding to different SIM cards in at least two SIM cards, and the identifier of the terminal being used to send a verification code to the terminal's system application.

[0308] In one possible implementation, the sending module 162 is further configured to, in the event that sending the verification code to the third phone number fails, send the first phone number, the third phone number, and the manufacturer account to the terminal's manufacturer server based on the association between the first phone number and the user's manufacturer account, and the association between the third phone number and the user's manufacturer account.

[0309] The aforementioned receiving module 161 is also used to receive the terminal identifier from the manufacturer's server;

[0310] The aforementioned sending module 162 is specifically used to send a verification code to the system application of the terminal based on the terminal's identifier.

[0311] In one possible implementation, the sending module 162 is specifically used to send a verification code to a third telephone number based on a mobile network.

[0312] In one possible implementation, the aforementioned sending module 162 is specifically used to send a verification code to the system application of the terminal based on a wireless network.

[0313] Referring to Figure 17, when the verification code sending device is a network device or a component in a network device, the verification code sending device 170 includes a receiving module 171 and a sending module 172.

[0314] The receiving module 171 is used to receive a first telephone number and a user's vendor account from the first network device;

[0315] The sending module 172 is used to send a third phone number to the first network device when a third phone number associated with the manufacturer account and different from the first phone number is found; or, when a phone number associated with the manufacturer account and different from the first phone number is not found, to send the identifier of the terminal corresponding to the manufacturer account to the first network device.

[0316] In one possible implementation, the receiving module 171 is further configured to receive a first telephone number, a third telephone number, and a vendor account from the first network device;

[0317] The aforementioned sending module 172 is also used to send the terminal's identifier to the first network device when no phone number associated with the manufacturer's account and different from both the first and third phone numbers is found.

[0318] The verification code sending device provided in this application embodiment allows the device to send the verification code to a second phone number or the terminal's system application if sending the verification code to the first phone number fails. Thus, even if the SIM card signal corresponding to the first phone number is weak, the terminal can still receive the verification code through other means, ensuring successful reception of the verification code.

[0319] The verification code sending device provided in this application embodiment can implement all the processes implemented in the above-described verification code sending method embodiment and achieve the same technical effect. To avoid repetition, it will not be described again here.

[0320] As shown in Figure 18, this application embodiment also provides a communication device 1800, including a processor 1801 and a memory 1802. The memory 1802 stores a program or instructions that can run on the processor 1801. For example, when the communication device 1800 is a terminal, the program or instructions executed by the processor 1801 implement the various steps of the above-described verification code receiving method and verification code sending method embodiments, and achieve the same technical effect. When the communication device 1800 is a network device, the program or instructions executed by the processor 1801 implement the various steps of the above-described verification code receiving method and verification code sending method embodiments, and achieve the same technical effect. To avoid repetition, further details are omitted here.

[0321] This application also provides a terminal, including a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the steps in the above-described verification code receiving method embodiment. This terminal embodiment corresponds to the above-described terminal-side method embodiment, and all implementation processes and methods of the above method embodiments can be applied to this terminal embodiment and achieve the same technical effect. The terminal can be the verification code receiving device shown in FIG15. Specifically, FIG19 is a schematic diagram of the hardware structure of a terminal implementing an embodiment of this application.

[0322] The terminal 1900 includes, but is not limited to, at least some of the following components: radio frequency unit 1901, network module 1902, audio output unit 1903, input unit 1904, sensor 1905, display unit 1906, user input unit 1907, interface unit 1908, memory 1909, and processor 1910.

[0323] Those skilled in the art will understand that terminal 1900 may also include a power supply (such as a battery) for powering various components. The power supply can be logically connected to processor 1910 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The terminal structure shown in Figure 19 does not constitute a limitation on the terminal. The terminal may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0324] It should be understood that, in this embodiment, the input unit 1904 may include a graphics processor 19041 and a microphone 19042. The graphics processor 19041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 1906 may include a display panel 19061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 1907 includes at least one of a touch panel 19071 and other input devices 19072. The touch panel 19071 is also called a touch screen. The touch panel 19071 may include a touch detection device and a touch controller. Other input devices 19072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.

[0325] In this embodiment, after receiving downlink data from the network device, the radio frequency unit 1901 can transmit it to the processor 1910 for processing; in addition, the radio frequency unit 1901 can send uplink data to the network device. Typically, the radio frequency unit 1901 includes, but is not limited to, antennas, amplifiers, transceivers, couplers, low-noise amplifiers, duplexers, etc.

[0326] The memory 1909 can be used to store software programs or instructions, as well as various data. The memory 1909 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 1909 may include volatile memory or non-volatile memory. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 1909 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.

[0327] Processor 1910 may include one or more processing units; optionally, processor 1910 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 1910.

[0328] The radio frequency unit 1901 is used to send a verification code request to the application server of the first application. The verification code request includes a first phone number, which is a pre-set phone number or a phone number recommended by the terminal. The SIM card corresponding to the first phone number is one of at least two SIM cards. The unit also receives a verification code corresponding to the verification code request from the application server.

[0329] In one possible implementation, the radio frequency unit 1901 is specifically used to receive a verification code via a second telephone number based on a mobile network.

[0330] The second phone number is either the first phone number or a third phone number associated with the first phone number.

[0331] In one possible implementation, when the second phone number is the third phone number, the signal quality of the SIM card corresponding to the second phone number is greater than the signal quality of the SIM card corresponding to the first phone number.

[0332] In one possible implementation, the aforementioned radio frequency unit 1901 is specifically used to receive a verification code via a system application or a second telephone number based on a wireless network in the event that the verification code fails to be received via the mobile network.

[0333] In one possible implementation, the aforementioned radio frequency unit 1901 is specifically used for:

[0334] Based on the wireless network, a notification message is received through the system application, which includes a verification code;

[0335] or,

[0336] Based on a wireless network, a network SMS message containing a verification code is received via a second phone number.

[0337] In one possible implementation, the radio frequency unit 1901 is further configured to send a first message to the terminal's manufacturer server before sending a verification code request to the application server of the first application. The first message indicates the association between the user's manufacturer account and the phone numbers corresponding to at least two SIM cards.

[0338] In one possible implementation, the radio frequency unit 1901 is further configured to send a second message to a first network device before sending a verification code request to the application server of the first application. The second message indicates the association between the user's vendor account and the phone numbers corresponding to at least two SIM cards. The first network device is a network device that provides services to the terminal.

[0339] In one possible implementation, the telephone number recommended by the aforementioned terminal includes at least one of the following:

[0340] The phone number associated with the first application;

[0341] The phone number that last received the verification code;

[0342] Phone numbers that receive verification codes more frequently than or equal to a first threshold within the first time period.

[0343] The terminal provided in this application embodiment can flexibly select the phone number to receive the verification code by pre-setting or intelligent recommendation when the terminal needs to receive the verification code, thereby eliminating the need for the user to manually enter the phone number to receive the verification code and improving the flexibility of the terminal in receiving verification codes.

[0344] It is understood that the implementation process of each implementation method mentioned in this embodiment can refer to the relevant description of the above-mentioned verification code receiving method embodiment and achieve the same or corresponding technical effects. To avoid repetition, it will not be described again here.

[0345] This application also provides a network device, including a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the steps of the verification code sending method embodiment described above. This network device embodiment corresponds to the network device method embodiment described above; all implementation processes and methods of the above method embodiments can be applied to this network device embodiment and achieve the same technical effects.

[0346] Specifically, this application embodiment also provides a network device, which can be the verification code sending device shown in FIG16. As shown in FIG20, the network device 2000 includes: an antenna 2001, a radio frequency device 2002, a baseband device 2003, a processor 2004, and a memory 2005. The antenna 2001 is connected to the radio frequency device 2002. In the uplink direction, the radio frequency device 2002 receives information through the antenna 2001 and sends the received information to the baseband device 2003 for processing. In the downlink direction, the baseband device 2003 processes the information to be sent and sends it to the radio frequency device 2002, which processes the received information and then sends it out through the antenna 2001.

[0347] The method executed by the network device in the above embodiments can be implemented in the baseband device 2003, which includes a baseband processor.

[0348] The baseband device 2003 may include at least one baseband board, on which multiple chips are disposed, as shown in FIG20. One of the chips is, for example, a baseband processor, which is connected to the memory 2005 via a bus interface to call the program or instructions in the memory 2005 to execute the network device operation shown in the above method embodiment.

[0349] The network device may also include a network interface 2006, such as a Common Public Radio Interface (CPRI).

[0350] The radio frequency device 2002 is used to receive a first phone number and a verification code from an application server; and, in the event that sending the verification code to the first phone number fails, to send the verification code to a third phone number or a system application of a terminal, wherein the third phone number is a phone number associated with the first phone number.

[0351] In one possible implementation, the radio frequency device 2002 is further configured to receive a third message from the terminal, the third message indicating the association between the user's manufacturer account and the phone numbers corresponding to at least two SIM cards of the terminal; and, based on the association between the first phone number and the manufacturer account, send the first phone number and the manufacturer account to the terminal's manufacturer server; and, receive first information from the manufacturer server, the first information including a third phone number or an identifier of the terminal, the third phone number and the first phone number being phone numbers corresponding to different SIM cards in at least two SIM cards, the identifier of the terminal being used to send a verification code to the terminal's system application.

[0352] In one possible implementation, the radio frequency device 2002 is further configured to, in the event that sending a verification code to a third phone number fails, send the first phone number, the third phone number, and the manufacturer account to the manufacturer server of the terminal based on the association between the first phone number and the user's manufacturer account, and the association between the third phone number and the user's manufacturer account; and receive the terminal's identifier from the manufacturer server.

[0353] The aforementioned radio frequency device 2002 is specifically used to send verification codes to the system applications of the terminal based on the terminal's identifier.

[0354] In one possible implementation, the aforementioned radio frequency device 2002 is specifically used to send a verification code to a third telephone number based on a mobile network.

[0355] In one possible implementation, the aforementioned radio frequency device 2002 is specifically used to send verification codes to the system application of a terminal based on a wireless network.

[0356] The network device provided in this application embodiment, in the event that sending a verification code to a first phone number fails, can send the verification code to a second phone number or the terminal's system application. Thus, even if the SIM card signal corresponding to the first phone number is weak, the terminal can still receive the verification code through other means, ensuring successful reception of the verification code.

[0357] In addition, the network device 2000 of this application embodiment also includes: a program or instructions stored in the memory 2005 and executable on the processor 2004. The processor 2004 calls the program or instructions in the memory 2005 to execute the methods executed by each module shown in FIG16 and achieve the same technical effect. To avoid repetition, it will not be described in detail here.

[0358] Specifically, this application also provides a network device. As shown in FIG21, the network device 2100 includes a processor 2101, a network interface 2102, and a memory 2103. The network device may be the verification code sending device shown in FIG17. The network interface 2102 is, for example, a common public radio interface (CPRI).

[0359] The aforementioned network interface 2102 is used to receive a first phone number and a user's vendor account from the first network device; and, if a third phone number associated with the vendor account and different from the first phone number is found, to send a third phone number to the first network device; or, if a phone number associated with the vendor account and different from the first phone number is not found, to send an identifier of the terminal corresponding to the vendor account to the first network device.

[0360] In one possible implementation, the network interface 2102 is further configured to receive a first telephone number, a third telephone number, and a vendor account from the first network device; and, if no telephone number associated with the vendor account and different from both the first and third telephone numbers is found, to send an identifier of the terminal to the first network device.

[0361] The network device provided in this application embodiment, in the event that sending a verification code to a first phone number fails, can send the verification code to a second phone number or the terminal's system application. Thus, even if the SIM card signal corresponding to the first phone number is weak, the terminal can still receive the verification code through other means, ensuring successful reception of the verification code.

[0362] In addition, the network device 2100 of this application embodiment also includes: a program or instructions stored in the memory 2103 and executable on the processor 2101. The processor 2101 calls the program or instructions in the memory 2103 to execute the methods executed by each module shown in FIG17 and achieve the same technical effect. To avoid repetition, it will not be described in detail here.

[0363] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described verification code receiving method and verification code sending method embodiments, and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0364] The processor mentioned above is either the processor in the terminal or the processor in the network device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk. In some examples, the readable storage medium may be a non-transient readable storage medium.

[0365] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described verification code receiving method and verification code sending method embodiments, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0366] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0367] This application also provides a computer program / program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the above-described verification code receiving method and verification code sending method embodiments, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0368] This application also provides a communication system, including: a terminal and a network device, wherein the terminal can be used to perform the steps of the verification code receiving method described above, and the network device can be used to perform the steps of the verification code sending method described above.

[0369] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0370] From the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of a computer software product plus the necessary general-purpose hardware platform, and of course, they can also be implemented by hardware. The computer software product is stored in a storage medium (such as ROM, RAM, magnetic disk, optical disk, etc.), and the computer software product includes several instructions to cause a terminal or network device to execute the methods described in the various embodiments of this application.

[0371] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other implementations under the guidance of this application without departing from the spirit and scope of the claims. All of these implementations are within the protection scope of this application.

Claims

1. A verification code receiving method, applied to a terminal including at least two User Identification Module (SIM) cards, the method comprising: Send a verification code request to the application server of the first application. The verification code request includes a first phone number, which is a pre-set phone number or a phone number recommended by the terminal. The SIM card corresponding to the first phone number is one of the at least two SIM cards. Receive the verification code corresponding to the verification code request from the application server.

2. The method according to claim 1, wherein, Receiving the verification code corresponding to the verification code request from the application server includes: The verification code is received via a second phone number using a mobile network. Wherein, the second phone number is the first phone number, or a third phone number associated with the first phone number, and the SIM card corresponding to the third phone number is a different SIM card from the SIM card corresponding to the first phone number among the at least two SIM cards.

3. The method according to claim 2, wherein, When the second phone number is the third phone number, the signal quality of the SIM card corresponding to the second phone number is greater than the signal quality of the SIM card corresponding to the first phone number.

4. The method according to claim 2, wherein, Receiving the verification code corresponding to the verification code request from the application server includes: If receiving the verification code via the mobile network fails, the verification code may be received via a system application or the second phone number via a wireless network.

5. The method according to claim 4, wherein, Receiving the verification code via a system application or the second phone number, based on a wireless network, includes: Based on the wireless network, the system application receives a notification message, which includes the verification code. or, Based on the wireless network, a network SMS message is received via the second phone number, and the network SMS message includes the verification code.

6. The method according to claim 2, wherein, Before sending the verification code request to the application server of the first application, the method further includes: A first message is sent to the manufacturer's server of the terminal, the first message indicating the association between the user's manufacturer account and the phone numbers corresponding to the at least two SIM cards.

7. The method according to claim 2 or 6, wherein, Before sending the verification code request to the application server of the first application, the method further includes: A second message is sent to a first network device, the second message indicating the association between the user's vendor account and the phone numbers corresponding to the at least two SIM cards, the first network device being a network device that provides services to the terminal.

8. The method according to claim 1, wherein, The phone number recommended by the terminal includes at least one of the following: The phone number associated with the first application; The phone number that last received the verification code; Phone numbers that receive verification codes more frequently than or equal to a first threshold within the first time period.

9. A method for sending verification codes, applied to a first network device, the method comprising: Receive the first phone number and verification code from the application server; If sending the verification code to the first phone number fails, the verification code is sent to a third phone number or the system application of the terminal, wherein the third phone number is a phone number associated with the first phone number, and the first network device is a network device that provides services to the terminal.

10. The method according to claim 9, wherein, The method further includes: Receive a third message from the terminal, the third message indicating the association between the user's manufacturer account and the phone numbers corresponding to at least two SIM cards of the terminal; Based on the association between the first phone number and the manufacturer account, the first phone number and the manufacturer account are sent to the manufacturer server of the terminal. The system receives first information from the manufacturer's server. The first information includes the third phone number or the identifier of the terminal. The third phone number and the first phone number are phone numbers corresponding to different SIM cards among the at least two SIM cards. The identifier of the terminal is used to send the verification code to the system application of the terminal.

11. The method according to claim 9 or 10, wherein, The method further includes: If sending the verification code to the third phone number fails, based on the association between the first phone number and the user's manufacturer account, and the association between the third phone number and the user's manufacturer account, the first phone number, the third phone number, and the manufacturer account are sent to the manufacturer server of the terminal. Receive the identifier of the terminal from the manufacturer's server; Sending the verification code to the system application on the terminal includes: Based on the identifier of the terminal, the verification code is sent to the system application of the terminal.

12. The method according to claim 9, wherein, Sending the verification code to the third phone number includes: The verification code is sent to the third phone number via a mobile network.

13. The method according to claim 9, wherein, Sending the verification code to the system application on the terminal includes: The verification code is sent to the system application of the terminal via a wireless network.

14. A method for sending verification codes, applied to a vendor server, the method comprising: Receive the first phone number and the user's vendor account from the first network device; If a third phone number is found that is associated with the manufacturer's account and is different from the first phone number, the third phone number is sent to the first network device; If no phone number is found that is associated with the vendor account and is different from the first phone number, the identifier of the terminal corresponding to the vendor account is sent to the first network device.

15. The method according to claim 14, wherein, The method further includes: Receive the first phone number, the third phone number, and the vendor account from the first network device; If no phone number is found that is associated with the manufacturer account and is different from both the first phone number and the third phone number, the identifier of the terminal is sent to the first network device.

16. A verification code receiving device, the device comprising at least two User Identification Modules (SIM cards), the device comprising: Sending module and receiving module; The sending module is used to send a verification code request to the application server of the first application. The verification code request includes a first phone number, which is a pre-set phone number or a phone number recommended by the terminal. The SIM card corresponding to the first phone number is one of the at least two SIM cards. The receiving module is used to receive the verification code corresponding to the verification code request from the application server.

17. The apparatus according to claim 16, wherein, The receiving module is specifically used to receive the verification code via a second telephone number based on a mobile network; The second phone number is either the first phone number or a third phone number associated with the first phone number.

18. The apparatus according to claim 17, wherein, The receiving module is specifically used to receive the verification code via a system application or the second phone number based on a wireless network when receiving the verification code via the mobile network fails.

19. The apparatus according to claim 17, wherein, The sending module is further configured to send a first message to the terminal's manufacturer server before sending a verification code request to the application server of the first application. The first message indicates the association between the user's manufacturer account and the phone numbers corresponding to the at least two SIM cards.

20. A verification code sending device, the device comprising: Receive module and transmit module; The receiving module is used to receive a first phone number and verification code from the application server; The sending module is configured to send the verification code to a third phone number or a system application of a terminal if sending the verification code to the first phone number fails. The third phone number is a phone number associated with the first phone number.

21. The apparatus according to claim 20, wherein, The receiving module is further configured to receive a third message from the terminal, the third message indicating the association between the user's manufacturer account and the phone numbers corresponding to at least two SIM cards of the terminal; The sending module is further configured to send the first phone number and the manufacturer account to the manufacturer server of the terminal based on the association between the first phone number and the manufacturer account; The receiving module is further configured to receive first information from the manufacturer's server, the first information including the third phone number or the identifier of the terminal, the third phone number and the first phone number being phone numbers corresponding to different SIM cards among the at least two SIM cards, and the identifier of the terminal being used to send the verification code to the system application of the terminal.

22. The apparatus according to claim 20 or 21, wherein, The sending module is further configured to, in the event that sending the verification code to the third phone number fails, send the first phone number, the third phone number, and the manufacturer account to the manufacturer server of the terminal based on the association between the first phone number and the user's manufacturer account, and the association between the third phone number and the user's manufacturer account. The receiving module is further configured to receive the identifier of the terminal from the manufacturer's server; The sending module is specifically used to send the verification code to the system application of the terminal based on the terminal's identifier.

23. A verification code sending device, the device comprising: Receive module and transmit module; The receiving module is used to receive a first telephone number and a user's vendor account from a first network device; The sending module is configured to send the third phone number to the first network device if a third phone number associated with the manufacturer account and different from the first phone number is found; or, if a phone number associated with the manufacturer account and different from the first phone number is not found, send the identifier of the terminal corresponding to the manufacturer account to the first network device.

24. The apparatus according to claim 23, wherein, The receiving module is further configured to receive the first telephone number, the third telephone number, and the vendor account from the first network device; The sending module is further configured to send the terminal's identifier to the first network device if no phone number associated with the manufacturer's account and different from both the first phone number and the third phone number is found.

25. A terminal comprising a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the verification code receiving method as claimed in any one of claims 1 to 8.

26. A network device comprising a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the verification code sending method as claimed in any one of claims 9 to 13, or implementing the steps of the verification code sending method as claimed in claim 14 or 15.

27. A computer program product, said program product being executed by at least one processor to implement the verification code receiving method as described in any one of claims 1 to 8, or the verification code sending method as described in any one of claims 9 to 13, or the verification code sending method as described in claim 14 or 15.

28. A user equipment (UE) comprising a UE configured to perform a verification code receiving method as described in any one of claims 1 to 8.