Method, device, equipment and medium for receiving SMS verification code from cloud device

By establishing a communication connection between the cloud device client and the cloud device server, receiving verification code sending signals and determining whether the SMS forwarding conditions are met, the problem of cumbersome input of SMS verification codes received by the physical mobile phone to the cloud mobile phone is solved, and the user interaction experience is improved.

CN119789083APending Publication Date: 2025-04-08CHINA TELECOM CLOUD TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411765390.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-03
Publication Date
2025-04-08

AI Technical Summary

Technical Problem

In the prior art, the operation of inputting the SMS verification code received by a physical mobile phone to a cloud mobile phone is very cumbersome. Users need to frequently switch interfaces, remember the verification code and input it, which is inconvenient to operate.

Method used

By establishing a communication connection between the cloud device client and the cloud device server, receiving verification code sending signals, and obtaining the verification code reception status and current application usage status of the real device, comprehensively determine whether the SMS forwarding conditions are met. If so, forward the SMS to the cloud device server.

Benefits of technology

Users do not need to switch back and forth to the cloud device interface and enter verification code, which improves the user interaction experience of using cloud devices and solves the troublesome operation of inputting SMS verification codes received by physical mobile phones to the cloud mobile phone.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119789083A_ABST
    Figure CN119789083A_ABST
Patent Text Reader

Abstract

The present invention relates to the field of communication technology, and discloses a method, device, equipment and medium for cloud devices to receive SMS verification codes. The method for cloud devices to receive SMS verification codes is applied to a cloud device client of a real device, and the cloud device client and the cloud device server are connected in communication. The method includes: receiving a verification code sending signal, wherein the verification code sending signal is sent by the cloud device server when the verification code sending behavior is detected; obtaining the verification code receiving status and current application usage status of the real device, and detecting whether the verification code sending signal, the verification code receiving status and the current application usage status meet the SMS forwarding conditions; when it is detected that the SMS forwarding conditions are met, the SMS is forwarded to the cloud device server. This solves the problem of the troublesome operation of inputting the SMS verification code received by the physical mobile phone into the cloud mobile phone in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a method, device, equipment and medium for receiving a short message verification code by a cloud device. Background Art

[0002] The principle of SMS verification code technology is to use the SMS platform to send a text message containing specific information to the user, requiring the user to enter the numbers or characters of the information to complete the identity verification. The SMS platform will bind the verification code to the user's mobile phone number and limit the number of times the user can enter it within a specified time. When the user enters the correct verification code, the system will automatically verify and complete the verification process. This technical principle can effectively prevent malicious registration, ticket swiping and other behaviors, and improve the security and reliability of the system.

[0003] As cloud phones serve as a computing power supplement to users' physical phones, when users log in to various mainstream applications in cloud phones, they often choose to use their mobile phone numbers to receive verification codes to verify the login. SMS messages with verification codes are usually sent to physical phones with SIM cards. Users can only switch to the physical machine to view the SMS verification code, remember the verification code and switch back to the cloud phone interface to enter it. If they forget, they need to switch back and forth, which is extremely cumbersome. Summary of the invention

[0004] In view of this, the present invention provides a method, device, equipment and medium for a cloud device to receive a text message verification code, so as to solve the problem in the prior art that it is cumbersome to input a text message verification code received by a physical mobile phone into a cloud phone.

[0005] In a first aspect, the present invention provides a method for a cloud device to receive a text message verification code. The method for a cloud device to receive a text message verification code is applied to a cloud device client of a real device. The cloud device client is connected to a cloud device server in communication. The method includes:

[0006] Receiving a verification code sending signal, wherein the verification code sending signal is sent by the cloud device server when detecting a verification code sending behavior;

[0007] Obtaining the verification code reception status and current application usage status of the real device, and detecting whether the verification code sending signal, the verification code reception status and the current application usage status meet the SMS forwarding conditions;

[0008] When it is detected that the SMS forwarding condition is met, the SMS is forwarded to the cloud device server.

[0009] The cloud device receiving SMS verification code method provided in this embodiment, when the cloud device client receives the verification code sending signal sent by the cloud device server according to the detected verification code sending behavior, obtains the verification code reception status and current application usage status of the current real device, and forwards the SMS to the cloud device server when it is comprehensively judged that the SMS forwarding conditions are met based on the verification code sending signal, the verification code reception status and the current application usage status. Therefore, the user does not need to switch back and forth out of the cloud device interface and enter the verification code, which improves the interactive experience of users using the cloud device. Furthermore, the problem of the cumbersome operation of entering the SMS verification code received by the physical mobile phone into the cloud phone is solved.

[0010] In an optional implementation, the step of detecting whether the verification code sending signal, the verification code receiving status, and the current application usage status meet the SMS forwarding condition includes:

[0011] Confirming the verification code sending weighted information of the verification code sending signal, confirming the verification code receiving weighted information according to the verification code receiving situation of the actual device, and confirming the current application use weighted information according to the current application use situation;

[0012] Calculating the sum of the verification code sending weighted information, the verification code receiving weighted information and the current application use weighted information to obtain total weighted information;

[0013] When it is detected that the total weighted information is greater than the preset weighted information, it is confirmed that the SMS forwarding condition is met.

[0014] In an optional implementation, the step of confirming the verification code reception weighted information according to the verification code reception status of the actual device includes:

[0015] When it is detected that the real device receives the text message and the text message contains a verification code, the verification code reception weighted information is confirmed.

[0016] In an optional implementation, the step of confirming the current application usage weighted information according to the current application usage includes:

[0017] When it is detected that the current application is a cloud device service application and it is detected that the real device runs the cloud device service application within a preset time period for receiving the text message, the current application usage weighted information is confirmed.

[0018] In an optional implementation, before the step of obtaining the verification code reception status and current application usage status of the real device, the method further includes:

[0019] Request permission to monitor the verification code reception status of the actual device, and obtain permission to monitor the verification code reception status of the actual device.

[0020] In an optional implementation, the verification code sending signal is sent by the cloud device server when it detects that the current input method state is in an open state and when it detects that the current application is a preset application.

[0021] In an optional implementation, after the step of forwarding the text message to the cloud device server, the method further includes:

[0022] Delete the forwarded SMS in the SMS receiving list of the real device.

[0023] In a second aspect, the present invention provides a device for receiving a text message verification code from a cloud device, the device comprising:

[0024] A receiving module, used for receiving a verification code sending signal, wherein the verification code sending signal is sent by the cloud device server when the verification code sending behavior is detected;

[0025] A detection module is used to obtain the verification code reception status and current application usage status of the real device, and detect whether the verification code sending signal, the verification code reception status and the current application usage status meet the SMS forwarding conditions;

[0026] The forwarding module is used to forward the text message to the cloud device server when it is detected that the text message forwarding condition is met.

[0027] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the method for a cloud device to receive a text message verification code according to the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0028] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method for a cloud device to receive a text message verification code according to the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0030] Figure 1 is a flowchart of a method for a cloud device to receive a text message verification code according to an embodiment of the present invention;

[0031] Figure 2 is an application diagram of a method for a cloud device to receive a text message verification code according to an embodiment of the present invention;

[0032] Figure 3 is another flow chart of a method for a cloud device to receive a text message verification code according to an embodiment of the present invention;

[0033] Figure 4 is a structural block diagram of a device for receiving a short message verification code on a cloud device according to an embodiment of the present invention;

[0034] Figure 5 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0035] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0036] In the related technology, the principle of SMS verification code technology is to use the SMS platform to send a text message containing specific information to the user, requiring the user to enter the numbers or characters of the information to complete the identity verification. The SMS platform will bind the verification code to the user's mobile phone number and limit the number of times the user can enter it within a specified time. When the user enters the correct verification code, the system will automatically verify and complete the verification process. This technical principle can effectively prevent malicious registration, ticket swiping and other behaviors, and improve the security and reliability of the system.

[0037] As cloud phones serve as a computing power supplement to users' physical phones, when users log in to various mainstream applications in cloud phones, they often choose to use their mobile phone numbers to receive verification codes to verify the login. SMS messages with verification codes are usually sent to physical phones with SIM cards. Users can only switch to the physical machine to view the SMS verification code, remember the verification code and switch back to the cloud phone interface to enter it. If they forget, they need to switch back and forth, which is extremely cumbersome.

[0038] According to an embodiment of the present invention, an embodiment of a method for a cloud device to receive a text message verification code is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0039] In this embodiment, a method for receiving a text message verification code by a cloud device is provided, which can be used for the above-mentioned mobile terminals, such as mobile phones, tablet computers, etc. Figure 1 is a flow chart of a method for a cloud device to receive a text message verification code according to an embodiment of the present invention. Figure 1 As shown, the method for receiving SMS verification code by cloud device is applied to the cloud device client of the real device, and the cloud device client is connected with the cloud device server in communication. The process includes the following steps:

[0040] Step S101, receiving a verification code sending signal, wherein the verification code sending signal is sent by the cloud device server when detecting a verification code sending behavior;

[0041] Cloud devices can be cloud phones, cloud computers or cloud desktops. Taking cloud phones (CP) as an example, N cloud phone instances with Android operating systems and virtual phone functions are virtualized on the server. Cloud phones can be remotely controlled in real time to realize the cloud operation of Android APP (Application). Applications can also be efficiently built based on the basic computing power of cloud phone servers, such as cloud games, mobile office, live broadcast and interactive entertainment, and other scenarios.

[0042] Specifically, refer to Figure 2 , the actual device includes a cloud device client, and the cloud device client and the cloud device server are connected according to the established communication channel. The cloud device server includes a verification code behavior judgment unit management service (AutoVerificationCodeService). When the verification code behavior judgment unit detects that a verification code login behavior may be initiated, it determines that there is a verification code sending behavior, and then sends a verification code sending signal to the cloud device client. The initiation of the verification code login behavior refers to the behavior of waiting to receive the SMS verification code after the user clicks to log in or enters the mobile phone number.

[0043] Step S102, obtaining the verification code reception status and current application usage status of the real device, and detecting whether the verification code sending signal, the verification code reception status and the current application usage status meet the SMS forwarding condition;

[0044] Specifically, the cloud device client includes a forwarding SMS behavior judgment unit (TranformMsgService), which is implemented in the cloud device client as a background service. After receiving the verification code sending signal, the forwarding SMS behavior judgment unit immediately monitors and reads the SMS receiving content of the real device, thereby obtaining the verification code receiving status of the real device, and at the same time calls the current application usage of the real device. Optionally, the current application usage specifically includes the currently used application and the usage time of the application. Then, based on the verification code sending signal, the verification code receiving status and the current application usage, it is comprehensively judged whether the SMS forwarding conditions are met. Optionally, it can be detected whether the verification code sending signal is received, whether the verification code receiving status meets the verification code receiving conditions, and whether the current application usage meets the application usage conditions. When it is detected that the verification code sending signal is received, the verification code receiving conditions are met, and the application usage conditions are met, it is confirmed that the SMS forwarding conditions are met.

[0045] Step S103, when it is detected that the SMS forwarding condition is met, forward the SMS to the cloud device server.

[0046] Specifically, when the cloud device client detects that the SMS forwarding condition is met, the cloud device client sends the SMS received by the real device to the cloud device server through the communication channel.

[0047] The cloud device receiving SMS verification code method provided in this embodiment, when the cloud device client receives the verification code sending signal sent by the cloud device server according to the detected verification code sending behavior, obtains the verification code reception status and current application usage status of the current real device, and forwards the SMS to the cloud device server when it is comprehensively judged that the SMS forwarding conditions are met based on the verification code sending signal, the verification code reception status and the current application usage status. Therefore, the user does not need to switch back and forth out of the cloud device interface and enter the verification code, which improves the interactive experience of users using the cloud device. Furthermore, the problem of the cumbersome operation of entering the SMS verification code received by the physical mobile phone into the cloud phone is solved.

[0048] In some optional implementations, the step of "detecting whether the verification code sending signal, the verification code receiving status, and the current application usage status meet the SMS forwarding condition" in step S102 includes:

[0049] Step 1, confirming the verification code sending weighted information of the verification code sending signal, confirming the verification code receiving weighted information according to the verification code receiving situation of the actual device, and confirming the current application use weighted information according to the current application use situation;

[0050] Specifically, when the verification code behavior judgment unit detects the verification code sending behavior, it packages the verification code sending weighted information into a data packet and sends it to the cloud device client as a verification code sending signal. The cloud device client confirms the verification code sending weighted information in the verification code sending signal. Optionally, PEN_CODE_VER is the weighted information. The verification code behavior judgment unit packages PEN_CODE_VER=10 into a data packet and sends it to the cloud device client as a verification code sending signal. The forwarding SMS behavior judgment unit confirms that the verification code sending weighted information is 10.

[0051] When the SMS forwarding behavior judgment unit obtains PEN_CODE_VER1=10, it starts to monitor and read the SMS content of the actual device, and based on the actual verification code reception situation, when it detects that the actual device has received the SMS containing the verification code, it confirms that the verification code reception weighted information is 2, that is, PEN_CODE_VER=PEN_CODE_VER+2. At the same time, based on the current application usage situation, when it detects that the actual device is currently running the cloud device service application, the SMS forwarding behavior judgment unit confirms that the current application usage weighted information is 1, that is, PEN_CODE_VER=PEN_CODE_VER+1. It can be understood that if it is detected that the actual device has not received the SMS containing the verification code within the preset time, the verification code reception weighted information is 0, and if it is detected that the actual device is not currently running the cloud device service application within the preset time, the current application usage weighted information is confirmed to be 0.

[0052] Step 2, calculating the sum of the verification code sending weighted information, the verification code receiving weighted information and the current application use weighted information to obtain total weighted information;

[0053] Specifically, the total weighted information=the verification code sending weighted information+the verification code receiving weighted information+the current application use weighted information.

[0054] Step three: when it is detected that the total weighted information is greater than the preset weighted information, confirm that the SMS forwarding condition is met.

[0055] Specifically, the preset weighting information can be set to 13, and when it is detected that the total weighting information is greater than 13, it is confirmed that the SMS forwarding condition is met. That is, after receiving the verification code sending signal, the cloud device client detects that the actual device receives the SMS containing the verification code, and detects that the actual device is currently running the cloud device service application, it confirms that the SMS forwarding condition is met, and then forwards the SMS to the cloud device server. Therefore, only when the user logs in with the verification code through the cloud device server, the SMS containing the verification code is forwarded to the cloud device server, which greatly improves the accuracy of the cloud device client sending the SMS containing the verification code, thereby improving the convenience of the user's operation of logging in with the verification code on the cloud device server.

[0056] In some optional implementations, the step of "confirming the verification code reception weighted information according to the verification code reception status of the actual device" in step 1 includes:

[0057] Step (1): when it is detected that the real device has received a text message and the text message contains a verification code, the verification code reception weighted information is confirmed.

[0058] Specifically, when the actual device is not detected to have received the text message within the preset time period, the weighted information of confirmation verification code reception is 0; if the actual device is not detected to have received the text message within the preset time period, the text message is further analyzed to see whether it contains the verification code. If the text message contains the verification code, the weighted information of confirmation verification code reception is 2; if the text message does not contain the verification code, the weighted information of confirmation verification code reception is 0.

[0059] In some optional implementations, the step of "confirming current application usage weighted information according to current application usage" in step 1 includes:

[0060] Step (2): When it is detected that the current application is a cloud device service application and it is detected that the real device runs the cloud device service application within a preset time period for receiving text messages, the current application usage weighting information is confirmed.

[0061] Specifically, the current application usage of the actual device is called, and if it is detected that the current application is not a cloud device service application, the current application usage weighted information is confirmed to be 0; if it is detected that the current application is a cloud device service application, and the cloud device service application is running within the preset time period for receiving text messages, the current application usage weighted information is confirmed to be 1; if it is detected that the current application is a cloud device service application, and the cloud device service application is not running within the preset time period for receiving text messages, the current application usage weighted information is confirmed to be 0.

[0062] It should be noted that the preset time period for receiving a text message may be specifically from 5 seconds before the time of receiving the text message to the time of receiving the text message. If a cloud device service application has been run during this time, and the current application is detected to be a cloud device service application, the current application usage weighted information is confirmed to be 1.

[0063] In some optional implementations, before the step of "obtaining the verification code reception status and current application usage status of the real device" in step S102, the method for receiving the SMS verification code by the cloud device further includes:

[0064] Step S104: requesting permission for monitoring the verification code reception status of the actual device, and obtaining permission for monitoring the verification code reception status of the actual device.

[0065] Specifically, the cloud device client requests the permission of the real device to monitor the verification code reception status. After the user authorizes the permission of the cloud device client to monitor the verification code reception status, the cloud device client obtains the permission to monitor the verification code reception status of the real device. It should be noted that the cloud device client can also request the permission to call the current application usage status of the real device. After the user authorizes the permission of the cloud device client to call the current application usage status of the real device, the cloud device client obtains the permission to call the current application usage status.

[0066] In some optional implementations, the verification code sending signal is sent by the cloud device server when it detects that the current input method state is in an open state and when it detects that the current application is a preset application.

[0067] Specifically, the verification code behavior judgment unit management service mainly includes the input method management service, which realizes the monitoring of the input method status, and obtains the foreground application information and the parsing of the SMS content of the real device, the verification code extraction, and the communication with the clipboard service and injecting the clipboard content. Specifically, by transforming the input method management service (IMMS), an input method status monitoring interface is provided, and the verification code behavior judgment unit management service registers a listener with (IMMS). When the input method status is open, and the verification code behavior judgment unit obtains the foreground application package as a preset application, it is judged that there is a possibility of initiating a verification code login behavior, and then sends a verification code sending signal. The preset application can specifically be a list application that the user enters in the cloud device service application and needs to perform a verification code login.

[0068] In some optional implementations, after step S103, the method for the cloud device to receive the SMS verification code includes the following steps:

[0069] Step 1: Delete the forwarded SMS in the SMS receiving list of the real device.

[0070] Specifically, by deleting the forwarded SMS in the SMS receiving list of the real device, there is no need to protect the forwarded SMS in the real device, thereby reducing SMS data redundancy. At the same time, the cloud device server saves the SMS content from the real device instead of all SMS.

[0071] It should be noted that the reference Figure 2 After receiving the SMS message sent by the cloud device client, the verification code behavior judgment unit of the cloud device server extracts the verification code information through a regular expression. The regular expression formula is as follows:

[0072] ^[0-9a-zA-Z]{4,6}$

[0073] The regular expression indicates that the verification code consists of 4 to 6 numbers or letters (including upper and lower case). The parsed SMS verification code is communicated with the system clipboard service (ClipboardService) and the verification code information is written. The user can directly view the verification code in the input clipboard of the cloud device server, thereby realizing one-click input of the verification code, which greatly improves the convenience of user input of the verification code.

[0074] refer to Figure 3 , the user uses the cloud device server to open the application. The application requires login before use. After entering the mobile phone number and clicking to initiate the SMS verification code login, the user stays on the current interface. After the cloud device server initiates the verification code behavior judgment unit to identify the verification code sending behavior, it sends the verification code sending weighted information to the cloud device client, notifying the cloud device client to prepare to monitor and receive the SMS content of the actual device. After the actual device receives the verification code SMS, the client forwards the SMS behavior judgment unit to read and determine whether it is the verification code SMS + server weighted information + foreground application is the cloud device client (ie cloud device service application) + recent use record application is mainly the cloud device client, and finally forwards the SMS content to the cloud device server through the communication channel. The user finally finds the verification code information in the cloud phone input method selection column, clicks to complete the input and log in.

[0075] In this embodiment, a cloud device is also provided to receive SMS verification code, which is used to implement the above embodiments and preferred implementations, and will not be repeated here. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0076] This embodiment provides a cloud device receiving a text message verification code, such as Figure 4 As shown, including:

[0077] The receiving module 501 receives a verification code sending signal, wherein the verification code sending signal is sent by the cloud device server when the verification code sending behavior is detected.

[0078] The detection module 502 is used to obtain the verification code reception status and current application usage status of the real device, and detect whether the verification code sending signal, the verification code reception status and the current application usage status meet the SMS forwarding conditions.

[0079] The forwarding module 503 is used to forward the text message to the cloud device server when it is detected that the text message forwarding condition is met.

[0080] In some optional implementations, the detection module 502 includes:

[0081] A first confirmation unit is used to confirm the verification code sending weighted information of the verification code sending signal, confirm the verification code receiving weighted information according to the verification code receiving situation of the actual device, and confirm the current application use weighted information according to the current application use situation;

[0082] A calculation unit, configured to calculate the sum of the verification code sending weighted information, the verification code receiving weighted information and the current application use weighted information to obtain total weighted information;

[0083] The second confirmation unit is used to confirm that the SMS forwarding condition is met when it is detected that the total weighted information is greater than the preset weighted information.

[0084] In some optional implementations, the first confirmation unit includes:

[0085] The first confirmation subunit is used to confirm the verification code reception weighted information when it is detected that the real device receives the text message and the text message contains the verification code.

[0086] In some optional implementations, the first confirmation unit further includes:

[0087] The second confirmation subunit is used to confirm the current application usage weighting information when it is detected that the current application is a cloud device service application and it is detected that the real device runs the cloud device service application within a preset time period of receiving the text message.

[0088] In some optional implementations, the receiving module 501 includes:

[0089] The request unit is used to request the permission to monitor the verification code reception status of the real device and obtain the permission to monitor the verification code reception status of the real device.

[0090] In some optional implementations, the verification code sending signal is sent by the cloud device server when it detects that the current input method state is in an open state and when it detects that the current application is a preset application.

[0091] In some optional implementations, the forwarding module 503 includes:

[0092] Deletion unit, delete the forwarded SMS in the SMS receiving list of the real device.

[0093] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0094] The cloud device receiving SMS verification code device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0095] The embodiment of the present invention also provides a computer device having the above Figure 4 The cloud device shown receives the SMS verification code.

[0096] See also Figure 5 , Figure 5 Schematic diagram of the hardware structure of the computer device according to the embodiment of the present invention. Figure 5 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 5 A processor 10 is taken as an example.

[0097] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0098] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0099] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0100] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0101] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 5 The example of connecting through bus is taken in the following.

[0102] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.

[0103] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0104] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A method for receiving SMS verification code by a cloud device, characterized in that: The method for receiving a text message verification code from a cloud device is applied to a cloud device client of a real device, and the cloud device client is connected to a cloud device server for communication, and the method includes: Receiving a verification code sending signal, wherein the verification code sending signal is sent by the cloud device server when detecting a verification code sending behavior; Obtaining the verification code reception status and current application usage status of the real device, and detecting whether the verification code sending signal, the verification code reception status and the current application usage status meet the SMS forwarding conditions; When it is detected that the SMS forwarding condition is met, the SMS is forwarded to the cloud device server.

2. The method according to claim 1, characterized in that The step of detecting whether the verification code sending signal, the verification code receiving status and the current application usage status meet the SMS forwarding condition includes: Confirming the verification code sending weighted information of the verification code sending signal, confirming the verification code receiving weighted information according to the verification code receiving situation of the actual device, and confirming the current application use weighted information according to the current application use situation; Calculating the sum of the verification code sending weighted information, the verification code receiving weighted information and the current application use weighted information to obtain total weighted information; When it is detected that the total weighted information is greater than the preset weighted information, it is confirmed that the SMS forwarding condition is met.

3. The method according to claim 2, characterized in that The step of confirming the verification code reception weighted information according to the verification code reception status of the actual device includes: When it is detected that the real device receives the text message and the text message contains a verification code, the verification code reception weighted information is confirmed.

4. The method according to claim 2, characterized in that: The step of confirming the current application usage weighted information according to the current application usage includes: When it is detected that the current application is a cloud device service application and it is detected that the real device runs the cloud device service application within a preset time period for receiving the text message, the current application usage weighted information is confirmed.

5. The method according to claim 1, characterized in that Before the step of obtaining the verification code reception status and current application usage status of the real device, the method further includes: Request permission to monitor the verification code reception status of the actual device, and obtain permission to monitor the verification code reception status of the actual device.

6. The method according to claim 2, characterized in that The verification code sending signal is sent by the cloud device server when it detects that the current input method state is in the open state and when it detects that the current application is a preset application.

7. The method according to claim 1, characterized in that After the step of forwarding the text message to the cloud device server, the method further includes: Delete the forwarded SMS in the SMS receiving list of the real device.

8. A cloud device receiving SMS verification code device, characterized in that: The cloud device receiving SMS verification code device comprises: A receiving module, used to receive a verification code sending signal, wherein the verification code sending signal is sent by the cloud device server when the verification code sending behavior is detected; A detection module is used to obtain the verification code reception status and current application usage status of the real device, and detect whether the verification code sending signal, the verification code reception status and the current application usage status meet the SMS forwarding conditions; The forwarding module is used to forward the text message to the cloud device server when it is detected that the text message forwarding condition is met.

9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method for receiving SMS verification codes by a cloud device according to any one of claims 1 to 7 by executing the computer instructions.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method for a cloud device to receive a text message verification code according to any one of claims 1 to 7.

Citation Information

Cited By

  • Method and device for verifying short message login function, equipment, medium and program product

    CN120456024A

  • Short message processing method and device, electronic equipment and storage medium

    CN121334609A