Verification code receiving and sending method, device and equipment

By pre-setting or intelligently recommending phone numbers in multiple SIM card terminals, the terminal can automatically receive verification codes, which solves the problem that users need to manually enter phone numbers and improves the flexibility of receiving verification codes.

CN120018066APending Publication Date: 2025-05-16VIVO MOBILE COMM CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510184812.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-19
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

In terminals that support multiple SIM cards, users need to manually enter the telephone number of the sub-SIM card to receive the verification code, resulting in less flexibility in receiving the verification code.

Method used

By pre-setting or intelligently recommending phone numbers in the terminal, the terminal can send verification code requests to the application server, receive verification codes from the server, and realize the function of automatically receiving verification codes.

Benefits of technology

It improves the flexibility of terminals to receive verification codes, reduces the steps for users to manually enter phone numbers, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120018066A_ABST
    Figure CN120018066A_ABST
Patent Text Reader

Abstract

The invention discloses a verification code receiving and sending method, device and equipment, and belongs to the technical field of communication, and the verification code receiving method comprises the steps that a terminal comprising at least two SIM cards sends a verification code request to an application server of a first application, and the verification code request comprises a first phone number; the first phone number is a preset phone number or a phone number recommended by a terminal, and the SIM card corresponding to the first phone number is an SIM card in at least two SIM cards; and receiving a verification code corresponding to the verification code request from the application server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and specifically relates to a verification code receiving and sending method, device and equipment. Background Art

[0002] With the development of communication technology, terminals that can support multiple Subscriber Identity Module (SIM) cards are becoming more and more popular. Among the multiple SIM cards, the primary SIM card can usually provide call services and data services, while the secondary SIM card mainly provides call services.

[0003] However, when the terminal receives the verification code, since the terminal that supports multiple SIM cards usually receives it through the primary SIM card by default, if the verification code is to be received through the secondary SIM card, the user needs to manually enter the phone number corresponding to the secondary SIM card. This results in low flexibility in the terminal receiving the verification code. Summary of the invention

[0004] The embodiments of the present application provide a verification code receiving and sending method, device and equipment, which can improve the flexibility of a terminal in receiving a verification code.

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

[0006] In a second aspect, a verification code sending method is provided, which is executed by a first network device, and the method includes: receiving a first telephone number and a verification code from an application server; in case of failure to send the verification code to the first telephone number, sending the verification code to a third telephone number or a system application of the terminal, the third telephone number being a telephone number associated with the first telephone number, and the first network device being a network device that provides services for the terminal.

[0007] According to a third aspect, a verification code sending method is provided, which is executed by a manufacturer server, and the method includes: receiving a first telephone number and a manufacturer account of a user from a first network device; when a third telephone number associated with the manufacturer account and different from the first telephone number is found, sending the third telephone number to the first network device; when a telephone number associated with the manufacturer account and different from the first telephone number is not found, sending an identifier of a terminal corresponding to the manufacturer account to the first network device.

[0008] In a fourth aspect, a verification code receiving device is provided, which includes at least two SIM cards, and the device includes: a sending module and a receiving module; the sending module is used to send a verification code request to an application server of a first application, and the verification code request includes a first telephone number, and the first telephone number is a pre-set telephone number or a telephone number recommended by a terminal, and the SIM card corresponding to the first telephone number is a SIM card among 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.

[0009] In a fifth aspect, a verification code sending device is provided, which includes: a receiving module and a sending module; the receiving module is used to receive a first telephone number and a verification code from an application server; the sending module is used to send the verification code to a third telephone number or a system application of the terminal if the verification code fails to be sent to the first telephone number, and the third telephone number is a telephone number associated with the first telephone number.

[0010] In a sixth aspect, a verification code sending device is provided, which includes: a receiving module and a sending module; the receiving module is used to receive a first telephone number from a first network device and a manufacturer account of a user; the sending module is used to send a third telephone number to the first network device when a third telephone number associated with the manufacturer account and different from the first telephone number is found; or, when a telephone number associated with the manufacturer account and different from the first telephone number is not found, send an identifier of a terminal corresponding to the manufacturer account to the first network device.

[0011] According to a seventh aspect, a verification code receiving device is provided, wherein the verification code receiving device is configured to execute the steps of the method described in the first aspect.

[0012] In an eighth aspect, a verification code sending device is provided, wherein the verification code sending device is configured to execute the steps of the method described in the second aspect, or implement the steps of the method described in the third aspect.

[0013] In a ninth aspect, a terminal is provided, comprising a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method described in the first aspect are implemented.

[0014] In the tenth aspect, a terminal is provided, comprising a processor and a communication interface, wherein the communication interface is used to send a verification code request to an application server of a first application, the verification code request comprising a first telephone number, the first telephone number being a pre-set telephone number or a telephone number recommended by the terminal, and the SIM card corresponding to the first telephone number being a SIM card among at least two SIM cards; and, receiving a verification code corresponding to the verification code request from the application server.

[0015] In the eleventh aspect, a network device is provided, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the second aspect are implemented, or the steps of the method described in the third aspect are implemented.

[0016] In a twelfth aspect, a network device is provided, comprising a processor and a communication interface, wherein the communication interface is used to receive a first telephone number and a verification code from an application server, and in the case where sending the verification code to the first telephone number fails, send the verification code to a third telephone number or a system application of a terminal, the third telephone number being a telephone number associated with the first telephone number. Alternatively, the communication interface is used to receive a first telephone number and a manufacturer account of a user from a first network device; in the case where a third telephone number associated with the manufacturer account and different from the first telephone number is found, send the third telephone number to the first network device; in the case where a telephone number associated with the manufacturer account and different from the first telephone number is not found, send an identifier of a terminal corresponding to the manufacturer account to the first network device.

[0017] In the thirteenth aspect, a readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented, or the steps of the method described in the second aspect are implemented, or the steps of the method described in the third aspect are implemented.

[0018] In the fourteenth aspect, a wireless communication system is provided, including: a terminal and a network device, wherein the terminal can be used to execute the steps of the method described in the first aspect, and the network device can be used to execute the steps of the method described in the second aspect, or the steps of the method described in the third aspect.

[0019] In the fifteenth aspect, a chip is provided, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instructions to 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 the sixteenth aspect, a computer program / program product is provided, wherein the computer program / program product is stored in a storage medium, and the computer program / program product is executed by at least one processor to 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.

[0021] In an embodiment of the present application, a terminal including at least two SIM cards can send a verification code request to an application server of a first application, wherein 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 terminal receives a verification code corresponding to the verification code request from the application server. Through this solution, when the terminal needs to receive a verification code, the phone number for receiving the verification code can be flexibly selected by pre-setting or intelligent recommendation, thereby eliminating the need for the user to manually enter the phone number for receiving the verification code, thereby improving the flexibility of the terminal in receiving the verification code. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0023] Figure 2 This is one of the flow charts of a verification code receiving method provided in an embodiment of the present application;

[0024] Figure 3 This is the second flowchart of a verification code receiving method provided in an embodiment of the present application;

[0025] Figure 4 This is a flowchart of a verification code receiving method provided in an embodiment of the present application;

[0026] Figure 5 This is one of the flow charts of a verification code sending method provided in an embodiment of the present application;

[0027] Figure 6 This is the second flowchart of a verification code sending method provided in an embodiment of the present application;

[0028] Figure 7 This is the third flowchart of a verification code sending method provided in an embodiment of the present application;

[0029] Figure 8 This is a fourth flowchart of a verification code sending method provided in an embodiment of the present application;

[0030] Fig. 9 This is a flowchart of a verification code sending method provided in an embodiment of the present application;

[0031] Fig.10 This is the sixth flowchart of a verification code sending method provided in an embodiment of the present application;

[0032] Fig.11 This is one of the flow charts of a verification code receiving and sending method provided in an embodiment of the present application;

[0033] Fig.12This is the second flowchart of a verification code receiving and sending method provided in an embodiment of the present application;

[0034] Fig.13 This is the third flowchart of a verification code receiving and sending method provided in an embodiment of the present application;

[0035] Fig.14 This is a fourth flowchart of a verification code receiving and sending method provided in an embodiment of the present application;

[0036] Fig.15 It is a structural diagram of a verification code receiving device provided in an embodiment of the present application;

[0037] Fig.16 It is a structural diagram of a verification code sending device provided in an embodiment of the present application;

[0038] Fig.17 It is a structural diagram of a verification code sending device provided in an embodiment of the present application;

[0039] Fig.18 It is a schematic diagram of the hardware structure of a communication device provided in an embodiment of the present application;

[0040] Fig.19 is a schematic diagram of the hardware structure of a terminal provided in an embodiment of the present application;

[0041] Fig. 20 It is a schematic diagram of the hardware structure of a network device provided in an embodiment of the present application;

[0042] Fig.21 It is a schematic diagram of the hardware structure of a network device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0043] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of this application.

[0044] The terms "first", "second", etc. of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first" and "second" are generally of one type, and the number of objects is not limited, for example, the first object can be one or more. In addition, "or" in the present application represents at least one of the connected objects. For example, the protection scope of "A or B" covers at least three schemes, that is, scheme one: including A and excluding B; scheme two: including B and excluding A; scheme three: 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 schemes respectively. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0045] The term "indication" in this application can be a direct indication (or explicit indication) or an indirect indication (or implicit indication). A direct indication can be understood as the sender explicitly notifying the receiver of specific information, operations to be performed, or results of requests in the instructions sent; an indirect indication can be understood as the receiver determining the corresponding information according to the instructions sent by the sender, or making a judgment and determining the operations to be performed or results of requests according to the judgment results.

[0046] It is worth noting that the technology described in the embodiments of the present application is not limited to the Long Term Evolution (LTE) / LTE-Advanced (LTE-A) system, 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 the embodiments of the present application are often used interchangeably, and the described technology can be used for the systems and radio technologies mentioned above as well as for other systems and radio technologies. The following description describes a New Radio (NR) system for illustrative purposes, and NR terminology is used in most of the following descriptions, but these technologies can also be applied to systems other than NR systems, such as the 6th generation (6 th Generation, 6G) communication system.

[0047] Figure 1A block diagram of a wireless communication system applicable to an embodiment of the present application is shown. The wireless communication system includes a terminal 11 and a network device 12. The terminal 11 may also be referred to as a user equipment (UE), and the terminal 11 may be a mobile phone, a tablet computer (Tablet Personal Computer), a laptop computer (Laptop Computer), a notebook computer, a personal digital assistant (Personal Digital Assistant, PDA), a handheld computer, a netbook, an ultra-mobile personal computer (Ultra-mobile Personal Computer, UMPC), a mobile Internet device (Mobile Internet Device, MID), an augmented reality (Augmented Reality, AR), a virtual reality (Virtual Reality, VR) device, a robot, a wearable device (Wearable Device), an aircraft (flight vehicle), a vehicle user equipment (VUE), a shipborne device, a pedestrian user equipment (Pedestrian User Equipment, PUE), a smart home (a home appliance with a wireless communication function, such as a refrigerator, a television, a washing machine or furniture, etc.), a game console, a personal computer (Personal Computer, PC), a teller machine or a self-service machine and other terminal side devices. Wearable devices include: smart watches, smart bracelets, smart headphones, smart glasses, smart jewelry (smart bracelets, smart bracelets, smart rings, smart necklaces, smart anklets, smart anklets, etc.), smart wristbands, smart clothing, etc. Among them, the vehicle-mounted device can also be called a vehicle-mounted terminal, a vehicle-mounted controller, a vehicle-mounted module, a vehicle-mounted component, a vehicle-mounted chip or a vehicle-mounted unit, etc. It should be noted that the specific type of the terminal 11 is not limited in the embodiment of the present application. The network device 12 may include an access network device or a core network device, wherein the access network device may also be referred to as a radio access network (Radio Access Network, RAN) device, a radio access network function or a radio access network unit. The access network device may include a base station, a wireless local area network (Wireless Local Area Network, WLAN) access point (Access Point, AP) or a wireless fidelity (Wireless Fidelity, WiFi) node, etc.Among them, the base station can be called Node B (NB), Evolved Node B (eNB), the 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 (home evolved Node B), Transmit / Receive Point (TRP), Non-Terrestrial Network (NTN) equipment (such as satellite or high altitude platform station) station) or some other appropriate term in the field, as long as the same technical effect is achieved, the base station is not limited to specific technical vocabulary. It should be noted that in the embodiments of the present application, only the base station in the NR system is introduced as an example, and the specific type of the base station is not limited.

[0048] The core network device may also be referred to as a core network node, a core network function or a core network element, etc., which 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), Binding Support Function (Binding Support Function (BSF), Application Function (AF), Location Management Function (LMF), Gateway Mobile Location Centre (GMLC), Network Data Analytics Function (NWDAF), Non-Terrestrial Network (NTN) equipment (such as satellite or high altitude platform station, etc.), etc.It should be noted that in the embodiments of the present application, only the core network device in the NR system is introduced as an example, and the specific type of the core network device is not limited. If the name of the core network device mentioned in the embodiments of the present application changes in subsequent protocol versions (such as 6G), it is also within the scope of protection of the present application.

[0049] Optionally, the core network device can be implemented by one or more functional modules in one device, or by multiple devices together, which is not specifically limited in the embodiments of the present application. It is understandable that the above-mentioned functional modules can be network elements in hardware devices, or software functional modules running on dedicated hardware, or virtualized functional modules instantiated on a platform (e.g., a cloud platform), etc.

[0050] The verification code receiving and sending method provided in the embodiment of the present application is described in detail below through some embodiments and their application scenarios in combination with the accompanying drawings.

[0051] The verification code receiving and sending method, apparatus and device provided in the embodiments of the present application can be applicable to scenarios where a terminal receives a verification code, especially scenarios where a terminal including at least two SIM cards receives a verification code.

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

[0053] In scenario 1, SIM1 included in the terminal is the main SIM card, SIM card 2 included in the terminal is the secondary SIM card, the first application is a video playback application, the user sets the telephone number corresponding to the secondary SIM card as the first telephone number, and the first network device is a base station. When the user logs in to the video playback application through the video playback account, the terminal can send a verification code request to the application server of the video playback application, and the verification code request can include the telephone number corresponding to the secondary SIM card. After receiving the verification code request sent by the terminal, the application server can send the verification code corresponding to the verification code request and the telephone number corresponding to the secondary SIM card of the terminal to the base station, so that the base station can send the verification code to the telephone number corresponding to the secondary SIM card. In the case where the base station fails to send the verification code to the telephone number corresponding to the secondary SIM card, the base station can send the verification code, the telephone number corresponding to the secondary SIM card, and the manufacturer account of the user to the manufacturer server corresponding to the terminal, so that the manufacturer server can find the telephone number corresponding to the primary SIM card associated with the manufacturer account and different from the telephone number corresponding to the secondary SIM card. Send the telephone number and verification code corresponding to the primary SIM card to the base station. Finally, the base station can send a verification code to the terminal based on the telephone number corresponding to the primary SIM card of the terminal sent by the manufacturer server.

[0054] In another specific application scenario, the verification code receiving and sending method provided in the embodiment of the present application can be applied to a scenario in which a terminal including three SIM cards receives a verification code, such as scenario 2.

[0055] In scenario 2, the SIM1 included in the terminal is the main SIM card, the SIM card 2 and SIM card 3 included in the terminal are both secondary SIM cards, the first application is a financial application, and the first network device is a base station. When the user logs in to the financial application through the financial account, the terminal can recommend the commonly used SIM card 3 to the user to receive the verification code, and the terminal can send a verification code request including the phone number corresponding to the SIM card 3 to the application server of the financial application. After receiving the verification code request sent by the terminal, the application server can send the verification code corresponding to the verification code request and the phone number corresponding to the SIM card 3 of the terminal to the base station, so that the base station can send the verification code to the phone number corresponding to the SIM card 3. In the case where the base station fails to send the verification code to the phone number corresponding to the SIM card 3, the base station can send the verification code, the phone number corresponding to the SIM card 3, and the manufacturer account of the user to the manufacturer server corresponding to the terminal, so that the manufacturer server can send the terminal identifier and verification code to the base station when the phone number associated with the manufacturer account and different from the phone number corresponding to the SIM card 3 is not found. Finally, the base station can send the verification code to the terminal based on the identifier of the terminal sent by the manufacturer server.

[0056] The verification code receiving and sending method provided in the embodiment of the present application can 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, thereby improving the flexibility of the terminal in receiving the verification code.

[0057] Figure 2 A flow chart of a verification code receiving method provided in an embodiment of the present application is shown, which can be applied to a terminal including at least two SIM cards, such as Figure 2 As shown, the verification code receiving method may include the following steps 201 and 202.

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

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

[0060] In the embodiment of the present application, the SIM card corresponding to the first telephone number may be a SIM card among the at least two SIM cards of the terminal.

[0061] In some embodiments of the present application, the terminal is a terminal including at least two SIM cards. It can be understood that the terminal including at least two SIM cards refers to a device that can insert and use at least two SIM cards.

[0062] In some embodiments of the present application, the first application may be any application in the terminal.

[0063] It can be understood that the application server of the above-mentioned first application can be a network device that supports the development, operation and deployment of the first application, which can provide a stable, reliable and secure operating environment for the first application so that the first application can run in the operating environment.

[0064] In some embodiments of the present application, during the process of a terminal running a first application, if the first application requires a verification code for verification, the terminal may send a verification code request to an application server of the first application.

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

[0066] In some embodiments of the present application, the telephone number may be a telephone number corresponding to a SIM card in the terminal.

[0067] In some embodiments of the present application, the telephone number may also be referred to as a mobile subscriber number, specifically a mobile station international subscriber number (Mobile Station International Subscriber Directory Number, MSISDN), which is a telephone number publicly disclosed by a mobile subscriber. Generally, when a calling terminal wants to call other terminals in a Global System for Mobile Communications (GSM) network, the user of the calling terminal can dial the telephone number of the other terminal.

[0068] In some embodiments of the present application, the terminal can read the International Mobile Subscriber Identity (IMSI) and the Integrated Circuit Card Identity (CCID) in the SIM card through the SIM card, and use the IMSI to initiate a registration request to the mobile network. After receiving the registration request sent by the terminal, the mobile network can verify the legitimacy of the IMSI, assign a Temporary Mobile Subscriber Identity (TMSI) to the terminal, associate the phone number with the IMSI, push the phone to the terminal through the Over-the-Air Technology (OTA), or the terminal can request the phone number from the mobile network through the network query interface. In this way, the terminal can store the phone number corresponding to the acquired SIM card and display the phone number corresponding to the SIM card in the corresponding user interface.

[0069] In some embodiments of the present application, the pre-set phone number may be a default phone number for receiving verification codes set by the user. It is understood that the user may set a default phone number for receiving verification codes according to his / her own usage habits and the phone number for receiving verification codes that is commonly used, thereby ensuring the accuracy of the phone number for receiving verification codes.

[0070] In some embodiments of the present application, the user can manually set the default phone number for receiving verification codes in the verification code setting interface of the terminal.

[0071] Exemplarily, the verification code setting interface of the terminal may include a selection control for a default phone number for receiving verification codes, so that the user can select a default phone number for receiving verification codes by inputting into the selection control.

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

[0073] a telephone number associated with the first application;

[0074] The phone number that received the verification code most recently;

[0075] A telephone number whose frequency of receiving verification codes within a first time period is greater than or equal to a first threshold.

[0076] In some embodiments of the present application, the telephone number associated with the first application may be a telephone number associated with an application account corresponding to the first application.

[0077] Exemplarily, the telephone number associated with the first application may be a telephone number associated with an application account used to log in to the first application.

[0078] In some embodiments of the present application, the telephone number that most recently received the verification code may be the telephone number that most recently received the verification code in the first application.

[0079] In some embodiments of the present application, the phone number whose frequency of receiving verification codes within the first time period is greater than or equal to the first threshold may indicate that the phone number is a phone number that the user frequently uses to receive verification codes. Therefore, the terminal may recommend the frequently used phone number to receive verification codes.

[0080] In some embodiments of the present application, the first time period and the first threshold may be set by the user, or may be a default value of the terminal, or may be determined by the terminal according to big data. The embodiments of the present application are not specifically limited.

[0081] In some embodiments of the present application, when the number of telephone numbers recommended by the terminal is at least two, the user can select a telephone number to receive a verification code from the at least two telephone numbers recommended by the terminal.

[0082] In some embodiments of the present application, after the user selects the phone number to receive the verification code, the terminal may also display a prompt message to ask the user whether to select the phone number by default to receive the verification code in the future. If the user selects "yes", the terminal may set the phone number as the default phone number for receiving the verification code; if the user selects "no", the terminal may display the recommended phone number again for the user to select the next time the verification code needs to be received.

[0083] In some embodiments of the present application, when the number of telephone numbers recommended by the terminal is at least two, the terminal may display the at least two recommended telephone numbers in descending order of the frequency of use of the at least two telephone numbers. In actual implementation, the terminal may also display the at least two recommended telephone numbers in any other possible arrangement order. This embodiment of the present application is not specifically limited.

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

[0085] In some embodiments of the present application, after receiving the 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.

[0086] In some embodiments of the present application, after receiving the verification code request sent by the terminal, the application server may generate a random verification code and send the verification code to the terminal.

[0087] Exemplarily, the terminal may randomly generate a 4 to 6-digit digital sequence as a verification code and send it to the terminal.

[0088] It can be understood that if the verification code is correct, the terminal can pass the verification of the first application; if the verification code is wrong, the terminal can prompt the user to re-enter the correct verification code.

[0089] The verification code receiving method provided in the present application can flexibly select the phone number for receiving 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 for receiving the verification code, thereby improving the flexibility of the terminal in receiving the verification code.

[0090] In some embodiments of the present application, the terminal may receive the verification code by receiving a message from the application server, that is, the message includes the verification code, wherein the message may be any of the following: a short message, an Internet text message, a notification message, or a voice message.

[0091] In some embodiments of the present application, after receiving the verification code request sent by the terminal, the application server may send a short message containing the verification code to the terminal.

[0092] In some embodiments of the present application, the short message mentioned above may refer to Short Message Service (SMS), which is a service for transmitting short text messages in a mobile network.

[0093] In some embodiments of the present application, the short message can be transmitted through a signaling channel of a mobile network. That is, when the data network of the SIM card in the terminal is unavailable, the short message can still be sent and received.

[0094] It should be noted that the mobile network may also be referred to as a mobile communication network. The two have the same meaning and can be interchanged in the text. For a detailed description of the mobile network, please refer to the detailed description in the following step 202a. To avoid repetition, it will not be described here.

[0095] In some embodiments of the present application, after receiving the verification code request sent by the terminal, the application server may send a network SMS containing the verification code to the terminal.

[0096] In some embodiments of the present application, the network short message may refer to a short message service sent and received via the Internet, which may be transmitted using the Internet as a transmission medium. In other words, the network short message is transmitted via the Internet, rather than via a signaling channel of a mobile communication network.

[0097] In some embodiments of the present application, after receiving the verification code request sent by the terminal, the application server may send a notification message including the verification code to the terminal.

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

[0099] In some embodiments of the present application, the notification message may be a notification message sent by the server to the terminal through a message push technology. It is understood that in this case, the user does not need to open an application for receiving the notification message to receive the notification message.

[0100] In some embodiments of the present application, after receiving the verification code request sent by the terminal, the application server may send a voice message containing the verification code to the terminal.

[0101] For example, the application server may directly broadcast the verification code to the user via a voice call.

[0102] In this way, through a variety of different message forms, it is ensured that the terminal can receive the required verification code.

[0103] In some embodiments of the present application, Figure 2 ,like Figure 3 As shown, the above step 202 can also be specifically implemented through the following step 202a.

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

[0105] The second telephone number may be the first telephone number, or the second telephone number may be a third telephone number associated with the first telephone number. The SIM card corresponding to the third telephone number is a different SIM card from the SIM card corresponding to the first telephone number among the at least two SIM cards.

[0106] In some embodiments of the present application, the mobile network is a network that uses radio waves to communicate between mobile users or between mobile users and fixed users. The mobile network can allow users to perform voice, data and video communications while on the move.

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

[0108] In some embodiments of the present application, the above-mentioned mobile network may include but is not limited to: 3G network, 4G network, 5G network or 6G network.

[0109] In some embodiments of the present application, the terminal may receive a short message or a voice message from the application server through a mobile network.

[0110] In some embodiments of the present application, when the communication service of the SIM card corresponding to the first phone number is normal, the second phone number may be the first phone number. At this time, the terminal may directly receive a short message, network SMS or voice message from the application server through the first phone number.

[0111] In some embodiments of the present application, when the communication service of the SIM card corresponding to the first phone number is abnormal, the second phone number may be a third phone number associated with the first phone number. At this time, the terminal may 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.

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

[0113] In some embodiments of the present application, the third telephone number associated with the first telephone number can be understood as: the SIM card corresponding to the third telephone number and the SIM card corresponding to the first telephone number can be located in the same terminal; or, the user to which the third telephone number belongs can be the same as the user to which the first telephone number belongs; or, the third telephone number and the first telephone number are both associated with the user's manufacturer account.

[0114] In some embodiments of the present application, when the above-mentioned second telephone number is a third telephone number associated with the first telephone number, the terminal can receive the verification code through the second telephone number corresponding to a SIM card among at least two SIM cards whose signal quality is greater than the signal quality of the SIM card corresponding to the first telephone number.

[0115] In some embodiments of the present application, the above-mentioned signal quality may include but is not limited to at least one of the following: received signal strength indication (Received Signal Strength Indicator, RSSI), bit error rate (Bit Error Rate, BER), reference signal received power (Reference Signal Receiving Power, RSRP), reference signal received quality (Reference Signal Receiving Quality, RSRQ), signal to interference plus noise ratio (Signal toInterference plus Noise Ratio, SINR).

[0116] It should be noted that for a detailed description of how to determine, from at least two SIM cards, the second telephone number corresponding to the SIM card whose signal quality is greater than the signal quality of the SIM card corresponding to the first telephone number, please refer to the detailed description on the first network device side and the manufacturer's server side described below. To avoid repetition, it will not be described here.

[0117] It should be noted that the above-mentioned terminal is based on a mobile network, and receiving the verification code corresponding to the verification code request from the application server through the second telephone number can also be understood as: the terminal is based on a mobile network, and receives the verification code corresponding to the verification code request from the application server through the SIM card corresponding to the second telephone number.

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

[0119] In some embodiments of the present application, Figure 3 ,like Figure 4 As shown, the above step 202 can also be specifically implemented through the following step 202b.

[0120] Step 202b: When the verification code fails to be received through the mobile network, the terminal receives the verification code through the system application or the second phone number based on the wireless network.

[0121] It can be understood that when the terminal fails to receive the verification code through the second phone number based on the mobile network, the terminal can receive the verification code through the system application based on the wireless network, or the terminal can also receive the verification code through the second phone number based on the wireless network.

[0122] In some embodiments of the present application, a wireless network is a network technology that uses radio waves to transmit data, which can allow terminals to communicate and exchange data without physical connection.

[0123] In some embodiments of the present application, the wireless network may be a data network or Wireless Fidelity (WiFi).

[0124] In some embodiments of the present application, the system application may refer to an application program that is tightly integrated with the operating system of the terminal and provides basic functions and services. These system applications may usually be developed by the terminal manufacturer or the operating system developer and pre-installed on the terminal.

[0125] In some embodiments of the present application, "the terminal receives the verification code through the system application or the second phone number based on the wireless network" in the above step 202b can also be specifically implemented through the following step 202b1 or step 202b2.

[0126] Step 202b1: The terminal receives a notification message through a system application based on a wireless network, where the notification message includes a verification code.

[0127] In some embodiments of the present application, when the mobile network of the terminal is unavailable or abnormal, that is, the verification code reception through the mobile network fails, the terminal can receive a notification message from the application server through the system application based on the wireless network to realize the reception of the verification code.

[0128] Step 202b2: The terminal receives a network text message through the second phone number based on the wireless network, and the network text message includes a verification code.

[0129] In some embodiments of the present application, when the mobile network of the terminal is unavailable or abnormal, that is, the verification code reception through the mobile network fails, the terminal can receive a network SMS from the application server through the second phone number based on the wireless network to realize the reception of the verification code.

[0130] In this way, the terminal can also receive the verification code from the application server through the system application or the second telephone number based on the wireless network, thereby ensuring that the terminal can receive the verification code.

[0131] In some embodiments of the present application, before the above step 201, the verification code receiving method provided by the embodiment of the present application may further include the following step 203.

[0132] Step 203: The terminal sends a first message to the manufacturer server of the terminal.

[0133] The first message may indicate the association between the manufacturer account of the user and the telephone numbers corresponding to at least two SIM cards.

[0134] In some embodiments of the present application, the first message is used by the manufacturer server to query a third telephone number associated with the first telephone number.

[0135] In some embodiments of the present application, the third telephone number and the first telephone number are both associated with the user's manufacturer account.

[0136] In some embodiments of the present application, the manufacturer server of the terminal may refer to a server provided by a terminal manufacturer, which may be used to support and manage the terminals produced by the terminal manufacturer.

[0137] Exemplarily, the manufacturer's server can be used to remotely manage and monitor the status and performance of the terminal, such as firmware update, configuration management, and fault diagnosis of the terminal.

[0138] Exemplarily, the manufacturer's server may also be used to collect terminal usage data and feedback information, and perform data analysis to improve products and services.

[0139] Exemplarily, the manufacturer's server may also be used to provide technical support and assistance to users, and answer questions that users encounter when using the terminal.

[0140] In some embodiments of the present application, when a user uses a terminal, he or she may usually register and log in to a manufacturer account of the terminal in the terminal.

[0141] Exemplarily, when a user uses a terminal of brand A, the user may register and log in to a manufacturer account corresponding to brand A in the terminal.

[0142] In some embodiments of the present application, the association relationship between the above-mentioned user's manufacturer account and the telephone numbers corresponding to at least two SIM cards may be: a binding relationship or a mapping relationship between the user's manufacturer account and the telephone numbers corresponding to at least two SIM cards.

[0143] In some embodiments of the present application, the terminal may bind or map the ID of the manufacturer account with the telephone numbers corresponding to the at least two SIM cards to obtain an association relationship between the manufacturer account and the telephone numbers corresponding to the at least two SIM cards.

[0144] Exemplarily, assuming that the terminal includes SIM card 1 and SIM card 2, the association relationship between the above-mentioned user's manufacturer account 1 and the telephone numbers corresponding to at least two SIM cards may include: manufacturer account 1-telephone number corresponding to SIM card 1, and manufacturer account 1-telephone number corresponding to SIM card 2.

[0145] In some embodiments of the present application, after acquiring the association relationship between the user's manufacturer account and the telephone numbers corresponding to at least two SIM cards, the terminal may store and report the association relationship.

[0146] It should be noted that since the mapping relationship between the SIM card and its corresponding phone number is a one-to-one mapping relationship, the terminal can also obtain the association relationship between the user's manufacturer account and at least two SIM cards, and thus can determine the association relationship between the user's manufacturer account and the phone numbers corresponding to at least two SIM cards through the phone numbers corresponding to the SIM cards.

[0147] In some embodiments of the present application, the terminal can bind the user's manufacturer account with 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 be used for data transmission.

[0148] 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 server in advance. Therefore, when receiving the verification code through the first phone number fails, the manufacturer server can find other phone numbers that can enable the terminal to receive the verification code through the association.

[0149] In some embodiments of the present application, before the above step 201, the verification code receiving method provided by the embodiment of the present application may further include the following step 204.

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

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

[0152] In some embodiments of the present application, the first network device may be a network device that provides services for the terminal.

[0153] In some embodiments of the present application, the first network device may be a message relay network device between a terminal and a server.

[0154] Exemplarily, the first network device may be a base station.

[0155] In some embodiments of the present application, the terminal can bind the user's manufacturer account with the telephone numbers corresponding to at least two SIM cards in the terminal, and report the binding relationship to the first network device, so that when the communication of the first telephone number included in the verification code request is abnormal, the corresponding manufacturer server can be found through the first network device, so that the manufacturer server can find other telephone numbers that can be used for data transmission.

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

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

[0158] Figure 5 A flow chart of a verification code sending method provided in an embodiment of the present application is shown, which can be applied to a first network device, such as Figure 5 As shown, the verification code sending method may include the following steps 301 and 302.

[0159] Step 301: A first network device receives a first telephone number and a verification code from an application server.

[0160] In some embodiments of the present application, the first network device may be a network device that provides services for the terminal.

[0161] In some embodiments of the present application, the first network device may be a message relay network device between a terminal and a server.

[0162] Exemplarily, the first network device may be a base station.

[0163] In some embodiments of the present application, after the application server receives a verification code request including a first telephone number sent by the terminal, the application server may generate a random verification code and send the first telephone number and the verification code to the first network device to send the verification code to the terminal through the first network device.

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

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

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

[0167] The third telephone number may be a telephone number associated with the first telephone number.

[0168] In the embodiment of the present application, the above-mentioned first network device may be a network device that provides services for the terminal.

[0169] In some embodiments of the present 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.

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

[0171] It should be noted that for the detailed description of the above step 301 and step 302, reference may be made to the relevant description of the verification code receiving method in the above embodiment, which will not be described again to avoid repetition.

[0172] In the verification code sending method provided in the embodiment of the present application, when the verification code fails to be sent to the first phone number, the first network device can send the verification code to the third phone number or the system application of the terminal. In this way, even if the SIM card signal corresponding to the first phone number is poor, the terminal can receive the verification code in other ways, ensuring the successful reception of the terminal verification code.

[0173] In some embodiments of the present application, Figure 5 ,like Figure 6 As shown, the above step 302 can also be specifically implemented through the following step 302a.

[0174] Step 302a: When 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.

[0175] In some embodiments of the present application, Figure 5 ,like Figure 7 As shown, the above step 302 can also be specifically implemented through the following step 302b.

[0176] Step 302b: When sending the verification code to the first phone number fails, the first network device sends the verification code to the system application of the terminal based on the wireless network.

[0177] It should be noted that, for the description of the relevant technologies and solutions of the mobile network and the wireless network here, reference can be made to the relevant description of the verification code receiving method in the above embodiment. To avoid repetition, it will not be repeated here.

[0178] In addition, for a detailed description of how the first network device determines the third telephone number and the system application of the terminal, please refer to the following description of step 303 and step 304. To avoid repetition, it will not be described here.

[0179] 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 based on the mobile network, or send the verification code to the terminal's system application based on the wireless network, thereby ensuring that the terminal can successfully receive the verification code.

[0180] In some embodiments of the present application, Figure 5 ,like Figure 8 As shown, after the above step 301, the verification code sending method provided in the embodiment of the present application may further include the following steps 303 to 305.

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

[0182] The third message indicates the association between the manufacturer account of the user and the telephone numbers corresponding to at least two SIM cards of the terminal.

[0183] Step 304: The first network device sends the first telephone number and the manufacturer account to the manufacturer server of the terminal based on the association relationship between the first telephone number and the manufacturer account of the user.

[0184] In some embodiments of the present application, the first network device may store an association relationship between a user's manufacturer account reported by the terminal and at least two phone numbers corresponding to SIM cards. In other words, the first network device may store at least two association relationships, each of which may indicate an association relationship between a user's manufacturer account and at least two phone numbers corresponding to SIM cards.

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

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

[0187] Step 305: The first network device receives first information from the manufacturer server.

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

[0189] It can be understood that the third telephone number and the first telephone number are both associated with the manufacturer account.

[0190] In some embodiments of the present application, the identification of the terminal may be used to send a verification code to a system application of the terminal.

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

[0192] In some embodiments of the present application, if the signal quality of the SIM card corresponding to the first phone number is poor or abnormal, it may cause the failure of sending the verification code to the first phone number. Therefore, when the first network device detects that the verification code fails 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, so that the manufacturer server can send the verification code to the terminal through the message push technology when the signal of other SIM cards of the terminal is good or the terminal is connected to WiFi.

[0193] In some embodiments of the present application, when the manufacturer server finds other phone numbers associated with the first phone number, the manufacturer server can send the other phone numbers to the first network device, so that the first network device can send a verification code to the other phone numbers.

[0194] In some embodiments of the present application, when the manufacturer server fails to find a telephone number associated with the first telephone number, the manufacturer server may send an identifier of the terminal to the first network device, so that the first network device may send a verification code to a system application of the terminal.

[0195] In some embodiments of the present application, the terminal identifier may be a mobile equipment identity (Mobilestation Equipment Identity, MEI).

[0196] It can be understood that, through the identification of the terminal, the first network device can send a system notification including a verification code to the system application of the terminal specified by the identification through the wireless network.

[0197] In some embodiments of the present application, when the first network device receives the first information from the manufacturer server, it may also simultaneously receive a verification code from the manufacturer server.

[0198] In this way, even if the SIM card signal corresponding to the phone number that the terminal originally wants to receive the verification code from is poor, the terminal can still successfully receive the verification code for verification, thereby improving the success rate of receiving the verification code.

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

[0200] Step 306: When 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 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.

[0201] In some embodiments of the present application, when the manufacturer server returns the third telephone number to the first network device, the first network device may send a verification code to the third telephone number.

[0202] In some embodiments of the present application, in the event that sending a verification code to the third phone number fails, the first network device may 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, the third phone number and the user's manufacturer account.

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

[0204] Step 307: The first network device receives the terminal identifier from the manufacturer server.

[0205] In some embodiments of the present application, after the manufacturer server receives the first telephone number, the third telephone number and the manufacturer account sent by the first network device, the manufacturer server can find a telephone number associated with the manufacturer account and different from the first telephone number and the third telephone number.

[0206] In some embodiments of the present application, when no telephone number associated with the manufacturer's account and different from both the first telephone number and the third telephone number is found, the manufacturer server may send the identifier of the terminal to the first network device.

[0207] Step 302c: When sending the verification code to the first phone number fails, the first network device sends the verification code to the system application of the terminal based on the identifier of the terminal.

[0208] In this way, even if the SIM card signal corresponding to the phone number that the terminal originally wants to receive the verification code from is poor, the terminal can still successfully receive the verification code for verification, thereby improving the success rate of receiving the verification code.

[0209] Fig. 9 A flow chart of a verification code sending method provided in an embodiment of the present application is shown, which can be applied to a manufacturer server, such as Fig. 9 As shown, the verification code sending method may include the following steps 401 to 403.

[0210] Step 401: The manufacturer server receives a first telephone number and a user's manufacturer account from a first network device.

[0211] Step 402: When a third telephone number associated with the manufacturer account and different from the first telephone number is found, the manufacturer server sends the third telephone number to the first network device.

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

[0213] In some embodiments of the present application, the manufacturer server may store an association relationship between the manufacturer account of the user reported by the terminal and the telephone numbers corresponding to at least two SIM cards. In other words, the manufacturer server may store at least two association relationships, each of which may indicate an association relationship between a manufacturer account of a user and the telephone numbers corresponding to at least two SIM cards.

[0214] In some embodiments of the present application, the manufacturer server may also store the association between the terminal identifier and the user's manufacturer account, so that the manufacturer server can find the terminal identifier according to the user's manufacturer account.

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

[0216] It can be understood that the execution relationship between the above step 402 and step 403 is an "or" relationship, and either of the two steps is executed.

[0217] It should be noted that for detailed descriptions of the above steps 401 to 403, reference may be made to the descriptions of the above steps 301 to 305 and their related steps, and the above steps 201 and 202 and their related steps. To avoid repetition, they will not be described here.

[0218] In this way, even if the SIM card signal corresponding to the phone number that the terminal originally wants to receive the verification code from is poor, the terminal can still successfully receive the verification code for verification, thereby improving the success rate of receiving the verification code.

[0219] In some embodiments of the present application, Fig. 9 ,like Fig.10 As shown, after the above step 402, the verification code sending method provided in the embodiment of the present application may further include the following steps 404 and 405.

[0220] Step 404: The manufacturer server receives the first telephone number, the third telephone number, and the manufacturer account from the first network device.

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

[0222] It can be understood that, in the case where the terminal fails to receive the verification code through the first telephone number and the third telephone number, the first network device sends the first telephone number, the third telephone number and the manufacturer account to the manufacturer server, so that the manufacturer server searches for a telephone number associated with the manufacturer account and different from the first telephone number and the third telephone number to send the verification code. If a telephone number associated with the manufacturer account and different from the first telephone number and the third telephone number is not found, the manufacturer server can indicate the terminal identifier to the first network device, so that the first network device can send the verification code to the terminal system application based on the terminal identifier, so that the terminal can receive the verification code through the system application.

[0223] It should be noted that for detailed description of the above steps 404 and 405, reference may be made to the description of the above steps 301 to 305 and their related steps, and the above steps 201 and 202 and their related steps. To avoid repetition, they will not be described here.

[0224] In this way, even if the SIM card signal corresponding to the phone number that the terminal originally wants to receive the verification code from is poor, the terminal can still successfully receive the verification code for verification, thereby improving the success rate of receiving the verification code.

[0225] Fig.11 A flow chart of a verification code receiving and sending method provided in an embodiment of the present application is shown, such as Fig.11 As shown, the verification code receiving and sending method may include the following steps 501 to 508.

[0226] Step 501: A terminal sends a verification code request to an application server of a first application through a first network device.

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

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

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

[0230] Step 504: When 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 manufacturer server of the terminal based on the association between the first phone number and the manufacturer account of the user.

[0231] Step 505: The manufacturer server receives the first telephone number and the user's manufacturer account from the first network device.

[0232] Step 506: When a third telephone number associated with the manufacturer account and different from the first telephone number is found, the manufacturer server sends the third telephone number to the first network device; or when a telephone number associated with the manufacturer account and different from the first telephone number is not found, the manufacturer server sends the identifier of the terminal corresponding to the manufacturer account to the first network device.

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

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

[0235] The verification code receiving and sending method provided in the embodiment of the present application 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, thereby improving the flexibility of the terminal in receiving the verification code. Moreover, in the event that the verification code fails to be sent to the first phone number, the first network device can send the verification code to the second phone number or the system application of the terminal. In this way, even if the SIM card signal corresponding to the first phone number is poor, the terminal can receive the verification code by other means, ensuring the successful reception of the terminal verification code.

[0236] Each of the above method embodiments, or various possible implementations in each method embodiment, can be executed separately, or any two or more of them can be executed in combination with each other, which can be determined according to actual use requirements, and the embodiments of the present application do not limit this. The following uses a specific example to illustrate the verification code receiving and sending method provided in the embodiments of the present application.

[0237] For example, SIM1 included in the terminal is the main SIM card, SIM card 2 included in the terminal is the secondary SIM card, the first application is a video playback application, the user sets the telephone number corresponding to the secondary SIM card as the first telephone number, and the first network device is a base station.

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

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

[0240] It is understood that when starting the terminal or inserting a SIM card, the terminal can detect whether a SIM card is currently inserted and the number of inserted SIM cards. In addition, the terminal can determine the primary SIM card and the secondary SIM card. Generally, the primary SIM card and the secondary SIM card can be determined by user settings or default settings. For example, SIM1 of the terminal is set as the primary SIM card by default, and SIM2 of the terminal is set as the secondary SIM card.

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

[0242] The user can manually set the default phone number for receiving verification codes in the verification code setting interface. A "default phone number for receiving verification codes" option control can be added in the verification code setting interface, so that the user can select the phone number corresponding to the primary SIM card or the phone number corresponding to the secondary SIM card as the default phone number for receiving verification codes.

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

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

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

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

[0247] The user can receive the corresponding verification code through the selected phone number, which can be sent via SMS or phone call.

[0248] After receiving the verification code, the user can enter the verification code to complete the account login verification. It can be understood that if the verification code is correct, the user can successfully log in to the account; if the verification code is wrong, the terminal can prompt the user to re-enter the verification code.

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

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

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

[0252] Step S202: The terminal displays a recommended phone number and determines a phone number for receiving a verification code based on the user's input.

[0253] When a user opens an application that requires a verification code to log in or verify identity, if the user clicks on a phone number to log in to the account, the terminal can provide a selection interface, which can display the phone number recommended by the terminal. For example, the terminal can display two options in the selection interface: the phone number corresponding to the primary SIM card and the phone number corresponding to the secondary SIM card. Then, the user can choose to use the phone number corresponding to the primary SIM card or the phone number corresponding to the secondary SIM card to receive the verification code. For example, the user can choose to use the phone number corresponding to the secondary SIM card to receive the verification code.

[0254] Furthermore, after the user selects a phone number, the terminal may pop up a window to ask the user whether to use the phone number corresponding to the secondary SIM card as the default phone number for receiving verification codes. If the user selects "yes", the terminal may automatically save the phone number corresponding to the secondary SIM card as the default phone number for receiving verification codes in the settings.

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

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

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

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

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

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

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

[0262] After the user logs in to the manufacturer account of the terminal, the terminal can establish and record the binding relationship between the manufacturer 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 relationship is established between each SIM card and its corresponding manufacturer account.

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

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

[0265] 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.

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

[0267] 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 manufacturer server of the terminal based on the association between the phone number corresponding to the secondary SIM card and the manufacturer account of the user.

[0268] It can be understood 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 detecting that the verification code fails to be sent.

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

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

[0271] Step S310: The first network device receives the telephone number and verification code corresponding to the primary SIM card, and if sending the verification code to the telephone number corresponding to the primary SIM card fails, based on the association between the telephone number corresponding to the secondary SIM card, the telephone number corresponding to the primary SIM card and the manufacturer account of the user, sends the verification code, the telephone number corresponding to the secondary SIM card, the telephone number corresponding to the primary SIM card and the manufacturer account to the manufacturer server of the terminal.

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

[0273] Step S312: The base station sends a verification code to the system application of the terminal based on the identification of the terminal.

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

[0275] In this way, when the terminal needs to receive a verification code, the phone number to receive the verification code can be flexibly selected by pre-setting or intelligent recommendation, so that the user does not need to manually enter the phone number to receive the verification code, thereby improving the flexibility of the terminal in receiving the verification code. In addition, in the event that the verification code fails to be sent to the first phone number, the first network device can send the verification code to the second phone number or the system application of the terminal. In this way, even if the SIM card signal corresponding to the first phone number is poor, the terminal can receive the verification code by other means, ensuring the successful reception of the terminal verification code.

[0276] The verification code receiving method provided in the embodiment of the present application can be executed by a verification code receiving device; the verification code sending method provided in the embodiment of the present application can be executed by a verification code sending device. In the embodiment of the present application, the verification code receiving device provided in the embodiment of the present application is taken as an example to execute the verification code receiving method; in the embodiment of the present application, the verification code sending device provided in the embodiment of the present application is taken as an example to execute the verification code sending method.

[0277] The embodiment of the present application provides a verification code receiving device. As an example, the verification code receiving device can be a communication device or a component in a communication device, such as a chip. The communication device can be a terminal. Exemplarily, the terminal can include but is not limited to the types of terminals 11 listed above, and the embodiment of the present application does not specifically limit it.

[0278] The embodiment of the present application provides a verification code sending device. As an example, the verification code receiving device can be a communication device or a component in the communication device, such as a chip. The communication device can be a network device or a server, etc. Exemplarily, the terminal can include but is not limited to the types of network devices listed above, and the embodiment of the present application does not specifically limit it.

[0279] The verification code receiving device and the verification code sending device both include a receiving module, a sending module and a processing module. Among them, the receiving module, the sending module and the processing module can be implemented by software or by hardware. When implemented by hardware, the processing module can be implemented by a processor. Exemplarily, the processor can include a general-purpose processor, a special-purpose processor, etc. For example, the processor includes a central processing unit (CPU), a microprocessor, a digital signal processor (DSP), an artificial intelligence (AI) processor, a graphics processor (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 module and the sending module can be implemented by a communication interface, and the communication interface can include one or more of a transceiver, a pin, a circuit, a bus, a radio frequency unit, etc.

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

[0281] For details, see Fig.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 .

[0282] The sending module 151 is used to send a verification code request to the application server of the first application, wherein the verification code request includes a first phone number, the first phone number is a preset phone number or a phone number recommended by the terminal, and the SIM card corresponding to the first phone number is a SIM card among the at least two SIM cards;

[0283] The receiving module 152 is configured to receive a verification code corresponding to the verification code request from the application server.

[0284] In a possible implementation, the receiving module 152 is specifically configured to receive a verification code via a second phone number based on a mobile network;

[0285] The second telephone number is the first telephone number, or is a third telephone number associated with the first telephone number.

[0286] In a possible implementation, when the second telephone number is the third telephone number, the signal quality of the SIM card corresponding to the second telephone number is greater than the signal quality of the SIM card corresponding to the first telephone number.

[0287] In a possible implementation, the receiving module 152 is specifically configured to receive a verification code through a system application or a second phone number based on a wireless network when receiving the verification code through a mobile network fails.

[0288] In a possible implementation, the receiving module 152 is specifically configured to:

[0289] Based on the wireless network, receiving a notification message through a system application, the notification message includes a verification code;

[0290] or,

[0291] Based on the wireless network, a network text message is received through the second phone number, and the network text message includes a verification code.

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

[0293] In a possible implementation, the sending module 151 is also used 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 manufacturer account and the telephone numbers corresponding to at least two SIM cards. The first network device is a network device that provides services for the terminal.

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

[0295] a telephone number associated with the first application;

[0296] The phone number that received the verification code most recently;

[0297] A telephone number whose frequency of receiving verification codes within a first time period is greater than or equal to a first threshold.

[0298] The verification code receiving device provided in the embodiment of the present application can flexibly select the phone number for receiving the verification code through 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 for receiving the verification code, thereby improving the flexibility of the terminal in receiving the verification code.

[0299] The verification code receiving device provided in the embodiment of the present application can implement each process implemented in the above-mentioned verification code receiving method embodiment and achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0300] See also Fig.16 When the verification code sending device is a network device or a component in the network device, the verification code sending device 160 includes a receiving module 161 and a sending module 162 .

[0301] The receiving module 161 is used to receive a first telephone number and a verification code from an application server;

[0302] The sending module 162 is configured to send the verification code to a third phone number or a system application of the terminal when the verification code fails to be sent to the first phone number. The third phone number is a phone number associated with the first phone number.

[0303] In a possible implementation, the receiving module 161 is further configured to receive a third message from the terminal, the third message indicating an association relationship between the manufacturer account of the user and the telephone numbers corresponding to at least two SIM cards of the terminal;

[0304] The sending module 162 is further configured to send the first telephone number and the manufacturer account to the manufacturer server of the terminal based on the association relationship between the first telephone number and the manufacturer account;

[0305] The above-mentioned receiving module 161 is also used to receive the first information from the manufacturer's server, and the first information includes a third telephone number or a terminal identifier. The third telephone number and the first telephone number are telephone numbers corresponding to different SIM cards in at least two SIM cards, and the terminal identifier is used to send a verification code to the system application of the terminal.

[0306] In a possible implementation, the sending module 162 is further configured to send the first telephone number, the third telephone number, and the manufacturer account to the manufacturer server of the terminal based on the association relationship between the first telephone number and the manufacturer account of the user, and the association relationship between the third telephone number and the manufacturer account of the user, when the verification code fails to be sent to the third telephone number;

[0307] The receiving module 161 is further used to receive the terminal identification from the manufacturer's server;

[0308] The sending module 162 is specifically configured to send a verification code to a system application of the terminal based on the identification of the terminal.

[0309] In a possible implementation, the sending module 162 is specifically configured to send a verification code to a third phone number based on a mobile network.

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

[0311] See also Fig.17 When the verification code sending device is a network device or a component in the network device, the verification code sending device 170 includes a receiving module 171 and a sending module 172 .

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

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

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

[0315] The sending module 172 is further configured to send the terminal identifier to the first network device when no telephone number associated with the manufacturer account and different from the first telephone number and the third telephone number is found.

[0316] The verification code sending device provided in the embodiment of the present application can send the verification code to the second phone number or the system application of the terminal when the verification code fails to be sent to the first phone number. In this way, even if the SIM card signal corresponding to the first phone number is poor, the terminal can receive the verification code in other ways, ensuring the successful reception of the terminal verification code.

[0317] The verification code sending device provided in the embodiment of the present application can implement each process implemented by the above-mentioned verification code sending method embodiment and achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0318] like Fig.18As shown, the embodiment of the present application further provides a communication device 1800, including a processor 1801 and a memory 1802, and the memory 1802 stores a program or instruction that can be run on the processor 1801. For example, when the communication device 1800 is a terminal, the program or instruction is executed by the processor 1801 to implement the various steps of the above-mentioned verification code receiving method and verification code sending method embodiments, and can achieve the same technical effect. When the communication device 1800 is a network device, the program or instruction is executed by the processor 1801 to implement the various steps of the above-mentioned verification code receiving method and verification code sending method embodiments, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0319] The present 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 a program or instruction to implement the steps in the verification code receiving method embodiment described above. The terminal embodiment corresponds to the terminal side method embodiment described above, and each implementation process and implementation method of the method embodiment described above can be applied to the terminal embodiment and can achieve the same technical effect. The terminal can be Fig.15 The verification code receiving device shown. Specifically, Fig.19 A schematic diagram of the hardware structure of a terminal for implementing an embodiment of the present application.

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

[0321] Those skilled in the art will appreciate that the terminal 1900 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1910 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.19 The terminal structure shown in the figure does not constitute a limitation on the terminal. The terminal may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0322] It should be understood that in the embodiment of the present application, the input unit 1904 may include a graphics processor 19041 and a microphone 19042, and the graphics processor 19041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1906 may include a display panel 19061, and the display panel 19061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1907 includes a touch panel 19071 and at least one of other input devices 19072. The touch panel 19071 is also called a touch screen. The touch panel 19071 may include two parts: a touch detection device and a touch controller. Other input devices 19072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0323] In the embodiment of the present application, after receiving downlink data from the network device, the RF unit 1901 can transmit the data to the processor 1910 for processing; in addition, the RF unit 1901 can send uplink data to the network device. Generally, the RF unit 1901 includes but is not limited to an antenna, an amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc.

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

[0325] The processor 1910 may include one or more processing units; optionally, the processor 1910 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1910.

[0326] Among them, the radio frequency unit 1901 is used to send a verification code request to an application server of the first application, the verification code request includes a first telephone number, the first telephone number is a pre-set telephone number or a telephone number recommended by the terminal, and the SIM card corresponding to the first telephone number is a SIM card among at least two SIM cards; and, receive a verification code corresponding to the verification code request from the application server.

[0327] In a possible implementation, the radio frequency unit 1901 is specifically configured to receive a verification code through a second phone number based on a mobile network;

[0328] The second telephone number is the first telephone number, or is a third telephone number associated with the first telephone number.

[0329] In a possible implementation, when the second telephone number is the third telephone number, the signal quality of the SIM card corresponding to the second telephone number is greater than the signal quality of the SIM card corresponding to the first telephone number.

[0330] In a possible implementation, the radio frequency unit 1901 is specifically configured to receive a verification code through a system application or a second phone number based on a wireless network when receiving the verification code through a mobile network fails.

[0331] In a possible implementation, the radio frequency unit 1901 is specifically configured to:

[0332] Based on the wireless network, receiving a notification message through a system application, the notification message includes a verification code;

[0333] or,

[0334] Based on the wireless network, a network text message is received through the second phone number, and the network text message includes a verification code.

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

[0336] In a possible implementation, the above-mentioned radio frequency unit 1901 is also used 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 manufacturer account and the telephone numbers corresponding to at least two SIM cards. The first network device is a network device that provides services for the terminal.

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

[0338] a telephone number associated with the first application;

[0339] The phone number that received the verification code most recently;

[0340] A telephone number whose frequency of receiving verification codes within a first time period is greater than or equal to a first threshold.

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

[0342] It can be 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 effect. To avoid repetition, it will not be repeated here.

[0343] The embodiment of the present application also provides a network device, including a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the steps of the verification code sending method embodiment described above. The network device embodiment corresponds to the network device method embodiment described above, and each implementation process and implementation method of the method embodiment described above can be applied to the network device embodiment and can achieve the same technical effect.

[0344] Specifically, the embodiment of the present application also provides a network device, which can be Fig.16 The verification code sending device shown. Fig. 20 As shown, 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, and the radio frequency device 2002 processes the received information and sends it out through the antenna 2001.

[0345] The method executed by the network device in the above embodiment may be implemented in the baseband device 2003, which includes a baseband processor.

[0346] The baseband device 2003 may include, for example, at least one baseband board on which a plurality of chips are arranged. Fig. 20 As shown, one of the chips is, for example, a baseband processor, which is connected to the memory 2005 through a bus interface to call the program or instruction in the memory 2005 to execute the network device operation shown in the above method embodiment.

[0347] The network device may further include a network interface 2006, which is, for example, a Common Public Radio Interface (CPRI).

[0348] The radio frequency device 2002 is used 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, send the verification code to a third phone number or a system application of the terminal, where the third phone number is a phone number associated with the first phone number.

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

[0350] In a possible implementation, the radio frequency device 2002 is further configured to, when sending the verification code to the third telephone number fails, send the first telephone number, the third telephone number and the manufacturer account to the manufacturer server of the terminal based on the association relationship between the first telephone number and the manufacturer account of the user, and the association relationship between the third telephone number and the manufacturer account of the user; and receive the terminal identifier from the manufacturer server;

[0351] The radio frequency device 2002 is specifically used to send a verification code to a system application of the terminal based on the identification of the terminal.

[0352] In a possible implementation, the radio frequency device 2002 is specifically configured to send a verification code to a third phone number based on a mobile network.

[0353] In a possible implementation, the radio frequency device 2002 is specifically configured to send a verification code to a system application of a terminal based on a wireless network.

[0354] The network device provided in the embodiment of the present application can send the verification code to the second phone number or the system application of the terminal when the verification code fails to be sent to the first phone number. In this way, even if the SIM card signal corresponding to the first phone number is poor, the terminal can receive the verification code in other ways, ensuring the successful reception of the terminal verification code.

[0355] In addition, the network device 2000 of the embodiment of the present application further includes: a program or instruction stored in the memory 2005 and executable on the processor 2004, and the processor 2004 calls the program or instruction in the memory 2005 to execute. Fig.16The methods executed by the modules shown achieve the same technical effects, and therefore will not be described here in detail to avoid repetition.

[0356] Specifically, the embodiment of the present application also provides a network device. Fig.21 As shown, the network device 2100 includes: a processor 2101, a network interface 2102 and a memory 2103. The network device may be Fig.17 The verification code sending device shown in the figure. Wherein, the network interface 2102 is, for example, a common public radio interface (CPRI).

[0357] Among them, the above-mentioned network interface 2102 is used to receive a first telephone number and a manufacturer account of a user from a first network device; and, when a third telephone number associated with the manufacturer account and different from the first telephone number is found, send the third telephone number to the first network device; or, when a telephone number associated with the manufacturer account and different from the first telephone number is not found, send the identifier of the terminal corresponding to the manufacturer account to the first network device.

[0358] In one possible implementation, the network interface 2102 is also used to receive a first telephone number, a third telephone number and a manufacturer account from a first network device; and, when no telephone number associated with the manufacturer account and different from the first telephone number and the third telephone number is found, send the terminal identifier to the first network device.

[0359] The network device provided in the embodiment of the present application can send the verification code to the second phone number or the system application of the terminal when the verification code fails to be sent to the first phone number. In this way, even if the SIM card signal corresponding to the first phone number is poor, the terminal can receive the verification code in other ways, ensuring the successful reception of the terminal verification code.

[0360] In addition, the network device 2100 of the embodiment of the present application further includes: a program or instruction stored in the memory 2103 and executable on the processor 2101, and the processor 2101 calls the program or instruction in the memory 2103 to execute Fig.17 The methods executed by the modules shown achieve the same technical effects, and therefore will not be described here in detail to avoid repetition.

[0361] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned verification code receiving method and verification code sending method embodiments is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

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

[0363] An embodiment of the present application further provides a chip, which includes 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 various processes of the above-mentioned verification code receiving method and verification code sending method embodiments, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0364] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0365] The embodiments of the present application further provide a computer program / program product, which is stored in a storage medium. The computer program / program product is executed by at least one processor to implement the various processes of the above-mentioned verification code receiving method and verification code sending method embodiments, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0366] An embodiment of the present application further provides a communication system, including: a terminal and a network device, wherein the terminal can be used to execute the steps of the verification code receiving method described above, and the network device can be used to execute the steps of the verification code sending method described above.

[0367] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises one..." does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0368] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of a computer software product plus a necessary general hardware platform, and of course 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 enable a terminal or network device to execute the methods described in each embodiment of the present application.

[0369] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms of implementation methods without departing from the purpose of the present application and the scope of protection of the claims, and these implementation methods are all within the protection of the present application.

Claims

1. A verification code receiving method, characterized in that: Applied to a terminal including at least two subscriber identity module SIM cards, the method comprises: Sending a verification code request to an application server of the first application, wherein the verification code request includes a first telephone number, the first telephone number is a preset telephone number or a telephone number recommended by the terminal, and the SIM card corresponding to the first telephone number is a SIM card among the at least two SIM cards; A verification code corresponding to the verification code request is received from the application server.

2. The method according to claim 1, characterized in that The receiving a verification code corresponding to the verification code request from the application server includes: Receiving the verification code via a second phone number based on a mobile network; The second telephone number is the first telephone number, or a third telephone number associated with the first telephone number, and the SIM card corresponding to the third telephone number is a SIM card different from the SIM card corresponding to the first telephone number among the at least two SIM cards.

3. The method according to claim 2, characterized in that In the case where the second telephone number is the third telephone number, the signal quality of the SIM card corresponding to the second telephone number is greater than the signal quality of the SIM card corresponding to the first telephone number.

4. The method according to claim 2, characterized in that: The receiving a verification code corresponding to the verification code request from the application server includes: In the case that the verification code fails to be received through the mobile network, the verification code is received through a system application or the second phone number based on a wireless network.

5. The method according to claim 4, characterized in that The receiving the verification code through a system application or the second phone number based on a wireless network includes: Based on a wireless network, receiving a notification message through the system application, wherein the notification message includes the verification code; or, Based on a wireless network, a network text message is received through the second phone number, where the network text message includes the verification code.

6. The method according to claim 2, characterized in that 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 server of the terminal, where the first message indicates an association relationship between the manufacturer account of the user and the telephone numbers corresponding to the at least two SIM cards.

7. The method according to claim 2 or 6, characterized in that: 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, where the second message indicates an association between a manufacturer account of the user and telephone numbers corresponding to the at least two SIM cards, and the first network device is a network device that provides services for the terminal.

8. The method according to claim 1, characterized in that The telephone number recommended by the terminal includes at least one of the following: a telephone number associated with the first application; The phone number that received the verification code most recently; A telephone number whose frequency of receiving verification codes within a first time period is greater than or equal to a first threshold.

9. A verification code sending method, characterized in that: Applied to a first network device, the method comprises: receiving a first phone number and a verification code from an application server; In case that sending the verification code to the first telephone number fails, the verification code is sent to a third telephone number or a system application of the terminal, the third telephone number is a telephone number associated with the first telephone number, and the first network device is a network device providing services for the terminal.

10. The method according to claim 9, characterized in that The method further comprises: receiving a third message from the terminal, the third message indicating an association relationship between a manufacturer account of a user and telephone numbers corresponding to at least two SIM cards of the terminal; Based on the association relationship between the first telephone number and the manufacturer account, sending the first telephone number and the manufacturer account to the manufacturer server of the terminal; Receive first information from the manufacturer server, where the first information includes the third telephone number or the identifier of the terminal, the third telephone number and the first telephone number are telephone numbers corresponding to different SIM cards of the at least two SIM cards, and 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, characterized in that: The method further comprises: In the case where sending the verification code to the third telephone number fails, based on the association relationship between the first telephone number and the user's manufacturer account, and the association relationship between the third telephone number and the user's manufacturer account, sending the first telephone number, the third telephone number and the manufacturer account to the manufacturer server of the terminal; Receiving an identification of the terminal from the manufacturer server; The sending the verification code to the system application of the terminal includes: Based on the identification of the terminal, the verification code is sent to a system application of the terminal.

12. The method according to claim 9, characterized in that The sending the verification code to the third phone number includes: The verification code is sent to the third telephone number based on a mobile network.

13. The method according to claim 9, characterized in that The sending the verification code to the system application of the terminal includes: Based on the wireless network, the verification code is sent to the system application of the terminal.

14. A verification code sending method, characterized in that: Applied to a manufacturer's server, the method includes: receiving a first telephone number and a user's manufacturer account from a first network device; When a third telephone number associated with the manufacturer account and different from the first telephone number is found, sending the third telephone number to the first network device; If a telephone number associated with the manufacturer account and different from the first telephone number is not found, an identifier of a terminal corresponding to the manufacturer account is sent to the first network device.

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

16. A verification code receiving device, characterized in that: The device comprises at least two subscriber identification module SIM cards, and the device comprises: a sending module and a receiving module; The sending module is used to send a verification code request to an application server of the first application, wherein the verification code request includes a first phone number, the first phone number is a preset phone number or a phone number recommended by the terminal, and the SIM card corresponding to the first phone number is a SIM card among the 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.

17. The device according to claim 16, characterized in that The receiving module is specifically configured to receive the verification code via a second phone number based on a mobile network; The second telephone number is the first telephone number, or a third telephone number associated with the first telephone number.

18. The device according to claim 17, characterized in that The receiving module is specifically configured to receive the verification code through a system application or the second phone number based on a wireless network when receiving the verification code through the mobile network fails.

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

20. A verification code sending device, characterized in that: The device comprises: a receiving module and a sending module; The receiving module is used to receive a first telephone number and a verification code from an application server; The sending module is used to send the verification code to a third telephone number or a system application of the terminal when sending the verification code to the first telephone number fails, and the third telephone number is a telephone number associated with the first telephone number.

21. The device according to claim 20, characterized in that The receiving module is further configured to receive a third message from the terminal, wherein the third message indicates an association between a user's manufacturer account and telephone numbers corresponding to at least two SIM cards of the terminal; The sending module is further configured to send the first telephone number and the manufacturer account to the manufacturer server of the terminal based on the association relationship between the first telephone number and the manufacturer account; The receiving module is also used to receive first information from the manufacturer server, the first information includes the third telephone number or the identifier of the terminal, the third telephone number and the first telephone number are telephone numbers corresponding to different SIM cards among the at least two SIM cards, and the identifier of the terminal is used to send the verification code to the system application of the terminal.

22. The device according to claim 20 or 21, characterized in that The sending module is further configured to send the first telephone number, the third telephone number and the manufacturer account to the manufacturer server of the terminal based on the association relationship between the first telephone number and the manufacturer account of the user, and the association relationship between the third telephone number and the manufacturer account of the user, if the verification code fails to be sent to the third telephone number; The receiving module is further used to receive the identifier of the terminal from the manufacturer server; The sending module is specifically configured to send the verification code to the system application of the terminal based on the identification of the terminal.

23. A verification code sending device, characterized in that: The device comprises: a receiving module and a sending module; The receiving module is used to receive a first telephone number from a first network device and a manufacturer account of a user; The sending module is used to send the third telephone number associated with the manufacturer account and different from the first telephone number to the first network device when a third telephone number associated with the manufacturer account and different from the first telephone number is found; or to send the identifier of the terminal corresponding to the manufacturer account to the first network device when a telephone number associated with the manufacturer account and different from the first telephone number is not found.

24. The device according to claim 23, characterized in that The receiving module is further configured to receive the first telephone number, the third telephone number and the manufacturer account from the first network device; The sending module is further configured to send the identifier of the terminal to the first network device if no telephone number associated with the manufacturer account and different from the first telephone number and the third telephone number is found.

25. A terminal, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the verification code receiving method according to any one of claims 1 to 8 are implemented.

26. A network device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the verification code sending method according to any one of claims 9 to 13 are implemented, or the steps of the verification code sending method according to claim 14 or 15 are implemented.

Citation Information

Cited By

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

    WO2026175322A1