CN112153582B - Verification code short message display method and device - Google Patents

Verification code short message display method and device Download PDF

Info

Publication number
CN112153582B
CN112153582B CN202011034284.8A CN202011034284A CN112153582B CN 112153582 B CN112153582 B CN 112153582B CN 202011034284 A CN202011034284 A CN 202011034284A CN 112153582 B CN112153582 B CN 112153582B
Authority
CN
China
Prior art keywords
verification code
short message
scene
terminal
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011034284.8A
Other languages
Chinese (zh)
Other versions
CN112153582A (en
Inventor
贾博宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202011034284.8A priority Critical patent/CN112153582B/en
Publication of CN112153582A publication Critical patent/CN112153582A/en
Application granted granted Critical
Publication of CN112153582B publication Critical patent/CN112153582B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to a verification code short message display method, a verification code short message display device, computer equipment and a computer readable storage medium, and belongs to the technical field of computers. By adding the information of the service scene where the terminal is located in the verification code acquisition request, the server can match different short message text information for different service scenes when generating the verification code short message, and generate the verification code short message corresponding to the service scene so as to meet the information safety requirements in different service scenes, avoid the verification code leakage caused by the fact that the verification code is directly displayed in a popup window of the terminal, and ensure the information safety of the user.

Description

Verification code short message display method and device
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a verification code short message display method and apparatus, a computer device, and a computer-readable storage medium.
Background
In order to ensure the security of services in the internet, more and more service scenes use short message verification codes to perform identity verification. In general, after a user terminal requests to acquire a verification code, a server sends a short message to the user terminal, the short message includes the verification code and some short description information, when the terminal receives the short message, a popup window for displaying the content of the short message pops up on a currently displayed interface, and a user can directly see the verification code included in the short message in the popup window.
However, in some scenes, for example, in a scene in which the anchor user performs screen recording and live broadcasting, the audience can see the mobile phone screen of the anchor user, when the anchor user receives the short message of the verification code, the anchor user can directly pop out the popup window in the live broadcasting interface and display the verification code, and in this case, the verification code can be directly exposed to the audience, so that the verification code is leaked, and the information security of the anchor user is seriously affected. Therefore, how to display the verification code short message is an important research direction to meet the information security requirements under different service scenes and ensure the information security of users.
Disclosure of Invention
The invention provides a verification code short message display method, a verification code short message display device, computer equipment and a computer readable storage medium, which can improve the safety of verification code short message display and avoid verification code leakage. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, a method for displaying a short message of a verification code is provided, including:
generating a verification code in response to receiving a verification code acquisition request of a terminal, wherein the verification code acquisition request comprises a service scene where the terminal is located;
acquiring target information corresponding to the service scene;
adding the verification code to the reference position of the target information to obtain a verification code short message;
And sending the verification code short message to the terminal, wherein the verification code short message is used for being displayed in a popup window of the terminal.
In a possible implementation manner, the obtaining target information corresponding to the service scenario includes:
responding to the fact that the service scene is any one of a live scene and a screen sharing scene, and obtaining first target information, wherein the number of characters included in the first target information is larger than the number of displayable characters of the popup window;
and acquiring second target information in response to the fact that the service scene is any scene except the live scene and the screen sharing scene, wherein the number of characters included in the second target information is smaller than or equal to the number of displayable characters of the pop-up window.
In a possible implementation manner, the verification code obtaining request further includes a model identifier of the terminal;
the responding to the service scene being any one of a live scene and a screen sharing scene, acquiring first target information, including:
in response to the fact that the service scene is any one of a live broadcast scene and a screen sharing scene, determining the number of displayable characters of a popup window of the terminal based on the model identification and the corresponding relation between the model identification and the displayable data volume of the popup window;
And acquiring text information which comprises more characters than the displayable characters of the popup window as the first target information.
In a possible implementation manner, the adding the verification code to the reference location of the target information to obtain a verification code short message includes:
responding to any one of a live broadcast scene and a screen sharing scene of the service scene, and adding the verification code to the tail of the target information to obtain a verification code short message;
and in response to the fact that the service scene is any scene except the live scene and the screen sharing scene, adding the verification code to the beginning of the target information to obtain a verification code short message.
In a possible implementation manner, the information of the service scenario in which the terminal is located in the target field of the verification code acquisition request.
In one possible implementation manner, the sending the verification code short message to the terminal, where the verification code short message is used for being displayed in a popup window of the terminal, includes:
processing reference data in the verification code short message, wherein the reference data comprises at least one item of user account identification, mobile phone number and service handling type;
and sending the processed verification code short message to the terminal, wherein the processed verification code short message is used for being displayed in a popup window of the terminal.
In a possible implementation manner, the method further includes sending the processed verification code short message to the terminal, where the processed verification code short message is used after being displayed in a popup window of the terminal, and the method further includes:
and responding to the short message detail information viewing instruction, and sending the unprocessed verification code short message to the terminal, wherein the unprocessed verification code short message is used for being displayed in a short message detail interface of the terminal.
According to a second aspect of the embodiments of the present disclosure, a method for displaying a verification code short message is provided, including:
responding to the verification code acquisition operation, and sending a verification code acquisition request to a server, wherein the verification code acquisition request comprises information of a service scene where a terminal is located;
acquiring a verification code short message matched with the service scene, wherein the verification code in the verification code short message is positioned at a reference position of the target information;
and displaying the short message of the verification code on a target interface in a popup window mode.
In a possible implementation manner, the displaying the short message of the verification code in the form of a popup window on the target interface includes:
acquiring characters of a previous reference number in the verification code short message as first characters, wherein the reference number is the number of displayable characters of the popup;
And displaying the first character in the short message of the verification code in a popup window mode on the target interface.
In one possible implementation manner, the displaying the first character in the verification code short message in the form of a popup on the target interface includes:
processing reference data in the first character, wherein the reference data comprises at least one item of user account identification, mobile phone number and business handling type;
and displaying the processed first character in the target interface in a popup mode.
In a possible implementation manner, the verification code in the verification code short message is located at the end of the target information, and the number of characters included in the target information is greater than the number of displayable characters of the popup window;
or the verification code in the verification code short message is positioned at the beginning of the target information, and the number of characters included in the target information is less than or equal to the number of displayable characters of the popup window.
In a possible implementation manner, after the obtaining of the verification code short message matched with the target scenario, the method further includes:
and displaying a verification code filling control on the target interface, wherein the verification code filling control is used for filling the verification code in a verification code filling area of the service interface.
In one possible implementation, the verification code acquisition request includes a target field for indicating a service scenario in which the terminal is located.
According to a third aspect of the embodiments of the present disclosure, there is provided a verification code short message display device, including:
the terminal comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is configured to respond to a verification code acquisition request of the terminal and generate a verification code, and the verification code acquisition request comprises a service scene where the terminal is located;
the information acquisition unit is configured to acquire target information corresponding to the service scene;
the short message acquisition unit is configured to add the verification code to the reference position of the target information to obtain a verification code short message;
and the sending unit is configured to send the verification code short message to the terminal, and the verification code short message is used for being displayed in a popup window of the terminal.
In one possible implementation, the information obtaining unit includes:
the first information acquisition subunit is configured to acquire first target information in response to the service scene being any one of a live scene and a screen sharing scene, wherein the number of characters included in the first target information is greater than the number of displayable characters of the popup window;
and the second information acquisition subunit is configured to acquire second target information in response to the service scene being any one of the live scene and the screen sharing scene, wherein the number of characters included in the second target information is less than or equal to the number of displayable characters of the popup window.
In a possible implementation manner, the verification code obtaining request further includes a model identifier of the terminal;
the first information obtaining subunit is configured to determine, in response to the service scene being any one of a live scene and a screen sharing scene, the number of displayable characters of the popup of the terminal based on the model identifier and the corresponding relationship between the model identifier and the displayable data amount of the popup; and acquiring text information which comprises more characters than the displayable characters of the popup window as the first target information.
In one possible implementation manner, the short message obtaining unit is configured to:
responding to any one of a live broadcast scene and a screen sharing scene of the service scene, and adding the verification code to the tail of the target information to obtain a verification code short message;
and in response to the fact that the service scene is any scene except the live scene and the screen sharing scene, adding the verification code to the beginning of the target information to obtain a verification code short message.
In a possible implementation manner, the information of the service scenario in which the terminal is located in the target field of the verification code acquisition request.
In one possible implementation, the transmitting unit is configured to:
Processing reference data in the verification code short message, wherein the reference data comprises at least one item of user account identification, mobile phone number and service handling type;
and sending the processed verification code short message to the terminal, wherein the processed verification code short message is used for being displayed in a popup window of the terminal.
In one possible implementation, the transmitting unit is configured to:
and responding to the short message detail information viewing instruction, and sending the unprocessed verification code short message to the terminal, wherein the unprocessed verification code short message is used for being displayed in a short message detail interface of the terminal.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a verification code short message display device, including:
the terminal comprises a sending unit, a receiving unit and a processing unit, wherein the sending unit is configured to respond to the verification code obtaining operation of the anchor user and send a verification code obtaining request to the server, and the verification code obtaining request comprises the information of the service scene where the terminal is located;
the acquisition unit is configured to acquire a verification code short message matched with the service scene, wherein the verification code in the verification code short message is positioned at the reference position of the target information;
and the display unit is configured to display the short message of the verification code on the target interface in a popup window mode.
In one possible implementation, the display unit includes:
the character acquisition subunit is configured to acquire characters with a front reference number in the verification code short message as first characters, wherein the reference number is the number of displayable characters of the popup window;
and the display subunit is configured to display the first character in the verification code short message in a popup mode on the target interface.
The display subunit is configured to:
processing reference data in the first character, wherein the reference data comprises at least one item of user account identification, mobile phone number and business handling type;
and displaying the processed first character in the target interface in a popup mode.
In a possible implementation manner, the verification code in the verification code short message is located at the end of the target information, and the number of characters included in the target information is greater than the number of displayable characters of the popup window;
or the verification code in the verification code short message is positioned at the beginning of the target information, and the number of characters included in the target information is less than or equal to the number of displayable characters of the popup window.
In one possible implementation, the display unit is configured to:
and displaying a verification code filling control on the target interface, wherein the verification code filling control is used for filling the verification code in a verification code filling area of the service interface.
In one possible implementation, the verification code acquisition request includes a target field for indicating a service scenario in which the terminal is located.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer device comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instruction to implement the verification code short message display method according to any one of the above items.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, wherein instructions of the computer-readable storage medium, when executed by a processor of a computer device, enable the computer device to perform any one of the above verification code short message display methods.
According to a seventh aspect of the embodiments of the present disclosure, there is provided a computer program product, which includes executable instructions, and when the instructions in the computer program product are executed by a processor of a computer device, the computer device is enabled to execute any one of the verification code short message display methods described above.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
by adding the information of the service scene where the terminal is located in the verification code acquisition request, the server can match different short message text information for different service scenes when generating the verification code short message, and generate the verification code short message corresponding to the service scene so as to meet the information safety requirements in different service scenes, avoid the verification code leakage caused by the fact that the verification code is directly displayed in a popup window of the terminal, and ensure the information safety of the user.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a flowchart illustrating a short message display method for a verification code according to an exemplary embodiment;
FIG. 2 is a flow chart illustrating a short message display method for an authentication code according to an exemplary embodiment;
FIG. 3 is a diagram illustrating an implementation environment of a short message display method for an authentication code according to an exemplary embodiment;
FIG. 4 is a flowchart illustrating an implementation of a short message display method for an authentication code according to an exemplary embodiment;
FIG. 5 is a diagram illustrating a method for displaying a short message of a verification code according to an exemplary embodiment;
FIG. 6 is a diagram illustrating a method for displaying a short message of a verification code according to an exemplary embodiment;
FIG. 7 is a diagram illustrating a captcha fill control, according to an exemplary embodiment;
FIG. 8 is a schematic diagram of a business interface shown in accordance with an exemplary embodiment;
FIG. 9 is a block diagram of a verification code message display apparatus according to an exemplary embodiment;
FIG. 10 is a block diagram of a verification code message display apparatus according to an exemplary embodiment;
FIG. 11 is a block diagram illustrating a computer device in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a short message display method for an authentication code according to an exemplary embodiment, where as shown in fig. 1, the method is applied in a server and includes the following steps.
In step 101, in response to receiving a verification code acquisition request of a terminal, a verification code is generated, where the verification code acquisition request includes a service scenario in which the terminal is located.
In step 102, target information corresponding to the service scenario is obtained.
In step 103, the verification code is added to the reference position of the target information to obtain a verification code short message.
In step 104, the short message of the verification code is sent to the terminal, and the short message of the verification code is used for being displayed in a popup window of the terminal.
According to the embodiment provided by the disclosure, the information of the service scene where the terminal is located is added in the verification code acquisition request, so that when the server generates the verification code short message, different short message text information can be matched for different service scenes, and the verification code short message corresponding to the service scene is generated, so that the information safety requirements under different service scenes are met, the verification code leakage caused by the fact that the verification code is directly displayed in a popup window of the terminal is avoided, and the information safety of a user is ensured.
In a possible implementation manner, the obtaining target information corresponding to the service scenario includes:
Responding to the fact that the service scene is any one of a live scene and a screen sharing scene, and acquiring first target information, wherein the number of characters included in the first target information is larger than the number of displayable characters of the pop-up window;
and responding to any scene except the live scene and the screen sharing scene of the service scene, and acquiring second target information, wherein the number of characters included in the second target information is less than or equal to the number of displayable characters of the pop-up window.
In a possible implementation manner, the verification code obtaining request further includes a model identifier of the terminal;
the responding to the fact that the service scene is any one of a live scene and a screen sharing scene, acquiring first target information, and including:
in response to the fact that the service scene is any one of a live broadcast scene and a screen sharing scene, determining the number of displayable characters of a popup window of the terminal based on the model identification and the corresponding relation between the model identification and the displayable data volume of the popup window;
and acquiring text information which comprises more characters than the displayable characters of the pop-up window as the first target information.
In a possible implementation manner, the adding the verification code to the reference location of the target information to obtain a verification code short message includes:
Responding to the fact that the service scene is any one of a live scene and a screen sharing scene, and adding the verification code to the tail of the target information to obtain a verification code short message;
and in response to the fact that the service scene is any scene except the live scene and the screen sharing scene, adding the verification code to the beginning of the target information to obtain a verification code short message.
In a possible implementation manner, the information of the service scenario in which the terminal is located in the target field of the verification code acquisition request.
In one possible implementation manner, the sending the verification code short message to the terminal, where the verification code short message is used for being displayed in a popup window of the terminal, includes:
processing reference data in the verification code short message, wherein the reference data comprises at least one item of user account identification, mobile phone number and service handling type;
and sending the processed verification code short message to the terminal, wherein the processed verification code short message is used for being displayed in a popup window of the terminal.
In a possible implementation manner, the method further includes sending the processed verification code short message to the terminal, where the processed verification code short message is used after being displayed in a popup window of the terminal, and the method further includes:
And responding to the short message detail information viewing instruction, and sending the unprocessed verification code short message to the terminal, wherein the unprocessed verification code short message is used for being displayed in a short message detail interface of the terminal.
Fig. 2 is a flowchart illustrating a short message display method for an authentication code according to an exemplary embodiment, where as shown in fig. 2, the method is applied to a terminal and includes the following steps.
In step 201, in response to the verification code obtaining operation, a verification code obtaining request is sent to the server, where the verification code obtaining request includes information of a service scenario in which the terminal is located.
In step 202, a verification code short message matched with the service scenario is obtained, wherein the verification code in the verification code short message is located at the reference position of the target information.
In step 203, the short message of the verification code is displayed in a popup window on the target interface.
According to the embodiment provided by the disclosure, the information of the service scene is added in the verification code acquisition request sent to the server, so that the server can match different short message text information for different service scenes when generating the verification code short message, and generate the verification code short message corresponding to the service scene, thereby meeting the information safety requirements under different service scenes, avoiding the verification code leakage caused by the fact that the verification code is directly displayed in a popup window of the terminal, and ensuring the information safety of a user.
In a possible implementation manner, the displaying the short message of the verification code in the form of a popup window on the target interface includes:
acquiring characters of a previous reference number in the verification code short message as first characters, wherein the reference number is the number of displayable characters of the popup;
and displaying the first character in the short message of the verification code in a popup window mode on the target interface.
In one possible implementation manner, the displaying the first character in the verification code short message in the form of a popup on the target interface includes:
processing reference data in the first character, wherein the reference data comprises at least one item of user account identification, mobile phone number and business handling type;
and displaying the processed first character in the target interface in a popup mode.
In a possible implementation manner, the verification code in the verification code short message is located at the end of the target information, and the number of characters included in the target information is greater than the number of displayable characters of the popup window;
or the verification code in the verification code short message is positioned at the beginning of the target information, and the number of characters included in the target information is less than or equal to the number of displayable characters of the popup window.
In a possible implementation manner, after the obtaining of the verification code short message matched with the target scenario, the method further includes:
and displaying a verification code filling control on the target interface, wherein the verification code filling control is used for filling the verification code in a verification code filling area of the service interface.
In one possible implementation, the verification code acquisition request includes a target field for indicating a service scenario in which the terminal is located.
The above-described embodiment is merely a brief introduction to embodiments of the present disclosure and various possible implementations, and the following description will specifically describe the embodiments of the present disclosure with reference to fig. 3 and 4.
Fig. 3 is a schematic diagram of an implementation environment of a short message display method for an authentication code according to an exemplary embodiment. Referring to fig. 3, the implementation environment includes a terminal 301 and a server 302.
In this disclosure, the terminal 301 is a user-side device, in an embodiment of the present disclosure, the terminal 301 is installed and operated with a target application program supporting screen sharing, for example, a live application program supporting screen recording and live broadcasting, and in an embodiment of the present disclosure, the terminal 301 is a terminal used by a user initiating screen sharing, for example, the terminal 301 is a terminal used by a host user. In the implementation of the present disclosure, the terminal 301 may request the server 302 for the verification code based on the verification code obtaining operation of the user, and receive and display the verification code short message sent by the server 302. The terminal 101 may be a smart phone, a tablet computer, a notebook computer, an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III, motion Picture Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion Picture Experts compression standard Audio Layer 4), a laptop computer, a desktop computer, and the like, which is not limited in the embodiment of the present disclosure.
The server 302 is configured to provide a background service for a target application program run by the terminal 301, and in the embodiment of the present disclosure, a service module and a short message service module are mounted in the server 302. The service module is used for providing data support for various services in the target application program, for example, the service module distributes a video stream uploaded by a terminal; the short message service module is used for sending a verification code short message to the terminal 301. The server 302 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a CDN (Content Delivery Network), a big data and artificial intelligence platform. It should be noted that the service module and the short message service module may be deployed on the same server, or may be deployed on different servers.
The terminal 301 and the server 302 may be directly or indirectly connected through wired or wireless communication, which is not limited in the embodiment of the present disclosure.
Those skilled in the art will appreciate that the number of the terminals may be greater or smaller, for example, the number of the terminals may be only one, or may be several tens or hundreds, or greater. The number of terminals and the type of devices in the implementation environment are not limited in the embodiments of the present disclosure.
Fig. 4 is a flowchart illustrating an implementation of a short message display method for an authentication code according to an exemplary embodiment, which specifically includes the following steps:
in step 401, the terminal sends an authentication code acquisition request to the server in response to an authentication code acquisition operation of the user.
In a possible implementation manner, when the terminal detects an authentication code obtaining operation of the user, for example, when a click operation of the user on an authentication code obtaining control is detected, a verification code obtaining request is generated, and the verification code obtaining request is sent to the server.
In a possible implementation manner, in order to enable the server to issue different verification code short messages based on different service scenarios, when the terminal generates the verification code acquisition request, information of the service scenario where the terminal is located needs to be added to the verification code acquisition request. In a possible implementation manner, when the terminal generates the verification code acquisition request, the terminal detects a current service scenario, for example, detects whether a screen recording function is currently started. The terminal may add a target field in the verification code acquisition request, where the target field represents a service scenario in which the terminal is located, that is, different values of the target field correspond to different service scenarios. For example, the target field is represented as a "specialTpl" field, and when the specialTpl field is a, it represents a non-live scene, and when the specialTpl field is b, it represents a live scene. For example, in some live scenes, the anchor user needs to record a screen for live broadcasting, for example, a game is live broadcasting through the screen for live broadcasting, in which case the verification code received by the anchor user is directly displayed on the screen, which causes the verification code to be leaked to the audience. In the embodiment of the disclosure, the server first acquires the service scene where the terminal is located, and in the subsequent generation process of the verification code short message, different verification code short messages are generated for different service scenes, for example, in a live scene and a non-live scene, the verification code short messages acquired by an anchor user are different, and the security of acquiring the verification code in the live broadcast process can be effectively improved by applying the method of issuing different verification code short messages in different scenes.
In a possible implementation manner, the verification code obtaining request may also be generated by a service module in the server. For example, when detecting the verification code obtaining operation of the user, the terminal sends a verification code obtaining instruction to a service module in the server, the service module responds to the verification code obtaining instruction to generate a verification code obtaining request carrying a scene field, the verification code obtaining request is sent to a short message server module, and a short message service module in the server executes the subsequent verification code short message generating step. It should be noted that, the embodiment of the present disclosure does not limit a specific generation method of the verification code acquisition request.
In the embodiment of the disclosure, information for indicating the service scene where the terminal is located is added in the verification code acquisition request, and when the subsequent server calls the short message server module to generate the verification code short message, the short message server module can issue the verification code short message matched with the service scene so as to meet the information security requirements in different service scenes.
In step 402, the server generates a passcode in response to receiving a passcode acquisition request.
In the embodiment of the disclosure, the server generates a random character string as the verification code in response to the verification code acquisition request. In a possible implementation manner, the request for obtaining the identifying code further includes a service type of a service for obtaining the identifying code this time, for example, the request for obtaining the identifying code includes a service type field, the service type field may be represented as a "bizType" field, different values of the service type field correspond to different types of services, and the target application program may include multiple types of services such as a login service, a registration service, and a payment service. In one possible implementation manner, the different service types correspond to different verification code configuration information, and the verification code configuration information is used for indicating a configuration rule of the verification code, namely, the number of bits of the verification code corresponding to the different service types and the element types of the verification code are different. In a possible implementation manner, a first data table is stored in the server, and the first data table is used for recording a corresponding relationship between a service type and authentication code configuration information, when the server receives an authentication code acquisition request, the server determines, based on a service type field in the authentication code acquisition request and the first data table, authentication code configuration information corresponding to a service requesting to acquire an authentication code this time, and generates the authentication code based on the authentication code configuration information. For example, when the acquired authentication code configuration information is "6-digit", the server calls the random number generator to generate a 6-digit random number. The specific generation method of the verification code is not limited in the embodiments of the present disclosure.
In step 403, the server obtains target information corresponding to the service scenario.
The target information is the short message case in the verification code short message.
Optionally, the different service types correspond to different short message scenarios; the same service type is also corresponding to different short message documents when the verification code is requested to be acquired in different service scenes. For example, when the service types are payment services, and when the services are transacted, the short message documents corresponding to the terminal in the live scene and the non-live scene are different. In a possible implementation manner, in response to a verification code acquisition request, a server determines at least one candidate message corresponding to a service type, namely at least one candidate short message case, based on information of the service type carried by the verification code acquisition request; and then, acquiring the information of the service scene carried by the request based on the verification code, and determining target information corresponding to the service scene where the terminal is located from the at least one candidate information. Specifically, the process of determining the target information may be executed by a short message server module in the server, for example, the server responds to a verification code acquisition request, invokes the short message service module, determines the at least one candidate information based on a service type field in the verification code acquisition request by the short message server module, and determines the target information corresponding to a target scene where the terminal is located from the at least one candidate information based on a scene field in the verification code acquisition request.
In a possible implementation manner, when the terminal receives the short message, the short message is displayed in a popup window manner on the screen, and when the terminal is in scenes such as live broadcast, screen sharing and the like, in order to avoid that when a user receives the verification code short message, the verification code in the short message is directly displayed in the popup window popped up on the screen, the target information, namely the short message file, needs to be extended and lengthened, so that the number of characters included in the target information is greater than or equal to the number of displayable characters of the popup window of the terminal, the terminal cannot directly display all contents of the verification code short message on the popup window, and the verification code is prevented from being leaked. When the terminal is in other scenes, the target information with less word number can be applied to display all the contents of the short message of the verification code in the short message popup window so that the user can see the verification code quickly. That is, the number of characters included in the target information corresponding to different service scenarios is different. Responding to the fact that the service scene is any one of a live scene and a screen sharing scene, and obtaining first target information by a server, wherein the number of characters included in the first target information is larger than the number of displayable characters of a popup window; and responding to any scene except a live scene and a screen sharing scene, and acquiring second target information by the server, wherein the number of characters included in the second target information is less than or equal to the number of displayable characters of the pop-up window.
In a possible implementation manner, since the sizes of the popups of the terminals of different models may be different, and the number of displayable characters of the popups of different sizes is different, the verification code acquisition request may further include the model identifier of the terminal, and the server may determine the target information based on the number of displayable characters of the popups of the current terminal. For example, in response to that the service scene where the terminal is located is any one of a live broadcast scene and a screen sharing scene, that is, the verification code cannot be directly displayed in the popup window of the terminal, the server determines the displayable character number of the short message popup window of the terminal based on the model identifier and the corresponding relationship between the model identifier and the displayable data amount of the popup window. Specifically, the server may store a second data table, where the second data table is used to record a corresponding relationship between a terminal model and a popup displayable data volume, and after receiving the verification code acquisition request, the server determines, based on the second data table, first target information corresponding to the model of the terminal used by the anchor user, that is, obtains text information including characters whose number is greater than the number of displayable characters of a current terminal popup, as the first target information. In the embodiment of the disclosure, different short message documents are adapted to terminals of different models, so that the condition that the verification code is directly displayed in a popup window due to the large size of the popup window of a certain terminal is avoided, and the security that an anchor user obtains the verification code is ensured.
In a possible implementation manner, the length of the text information included in the short message of the verification code in a live broadcast scene may also be set based on the maximum displayable data amount of the popup window, that is, the data amount of the text information included in the short message of the verification code in scenes such as live broadcast, screen sharing and the like is set to be larger than the displayable data amount of the popup window. In this case, it is not necessary to determine the first target information based on the terminal model. It should be noted that, the embodiment of the present disclosure does not limit which method is specifically adopted to determine the first target information included in the verification code short message.
In the embodiment of the disclosure, different short message patterns are matched for different service scenes, so that subsequently generated verification code short messages can meet safety requirements in different scenes, for example, in scenes such as live broadcast and screen sharing, by applying a lengthened short message pattern, the verification code in the verification code short messages can be prevented from being directly exposed in a screen when the verification code short messages are received.
In step 404, the server adds the verification code to the reference position of the target information, generates a verification code short message, and sends the verification code short message to the terminal.
In a possible implementation manner, the reference position may be determined based on a service scenario in which the terminal is located, for example, the reference position corresponding to a live scene and a screen sharing scene is the end of the target information, and the verification code short message generated by the server may be "detect that you are currently in a live state. The risk that the account number and property are stolen can be caused by the leakage of the verification code. Please carefully use the verification code acquisition function during the live broadcast process. If the operation is not self-operated, the short message notification reminding function of the mobile phone is turned off in time during the live broadcast period. Your currently acquired verification code is 123456. For example, in a scene except a live scene and a screen sharing scene, the corresponding reference position is the beginning of the target information, and the short message of the verification code generated by the server may be the "123456 verification code, which is valid within 15 minutes. In the embodiment of the present disclosure, after obtaining the verification code short message, the server sends the verification code short message to the terminal through the short message service module, and the terminal displays the verification code short message.
In a possible implementation manner, before the verification code is sent to the terminal, the server may further perform data processing on the verification code short message to improve the information security of the verification code short message. For example, the server processes the reference data in the verification code short message, and the reference data may be sensitive data related to user information, for example, the reference data includes at least one of a user account identifier, a mobile phone number, and a service handling type. In a possible implementation manner, the server may perform data desensitization processing on the verification code, and may also perform data desensitization processing on sensitive data such as a user account identifier, a mobile phone number, a service transaction type, and the like included in the verification code short message. The server sends the verification code short message subjected to data desensitization processing to the terminal, and the terminal displays the verification code short message. The above-mentioned reference data processing method may be encryption, modification, replacement, deletion, or blocking of sensitive data, and it should be noted that the specific method of desensitizing data in the embodiments of the present disclosure is not limited. In the embodiment of the disclosure, before sending the verification code short message, the sensitive data in the verification code short message is processed, so that the sensitive information of the user can be effectively prevented from being leaked, and the safety of the user information is further improved.
In step 405, in response to receiving the verification code short message, the terminal displays the verification code short message in a popup mode on the target interface.
The target interface may be a service interface corresponding to any service scenario, for example, in a live scene, the target interface is a live interface; in a screen-cast conference scenario, the target interface is a conference interface.
In any service scene, the terminal responds to the received verification code short message and pops up a popup window on a target interface, and the popup window displays part of the content of the verification code short message. For example, the terminal obtains the characters of the previous reference number in the verification code short message as the first character, and displays the first character in the target interface in a popup mode. Wherein, the reference number is the number of displayable characters of the popup window. Fig. 5 is a schematic diagram illustrating a method for displaying a verification code short message according to an exemplary embodiment, taking the target scene as a live scene as an example, referring to fig. 5, when a received verification code short message is received, for example, "it is detected that you are currently in a live state. The risk that the account number and property are stolen can be caused by the leakage of the verification code. Please carefully use the verification code acquisition function during the live broadcast process. If the operation is not self-operated, the short message notification reminding function of the mobile phone is turned off in time during the live broadcast period. Your currently acquired verification code is 123456. When the terminal pops out the popup window 502 in the target interface 501, the popup window 502 only displays part of the content in the verification code short message and does not display a specific verification code, and the anchor user can see the complete verification code short message only by clicking a viewing control and entering a short message detailed information display interface.
In a possible implementation manner, before the terminal displays the verification code short message, the terminal may further perform data processing on the verification code short message to improve the data security of the verification code short message. For example, because the terminal only displays part of the content of the verification code short message in the popup window, that is, only displays the first character in the verification code short message, the terminal may process the reference data in the first character, and display the processed first character in the target interface in the form of the popup window. The reference data comprises at least one item of user account identification, mobile phone number and business handling type. The method for processing the reference data may include encrypting, replacing, deleting, or blocking the reference data, which is not limited in the embodiment of the present disclosure. And when the terminal detects the checking operation of the short message detailed information, displaying the complete verification code short message on a short message detailed information display interface. Fig. 6 is a schematic diagram of a display method of a verification code short message according to an exemplary embodiment, taking the target scene as a live scene as an example, referring to fig. 6, when the terminal receives the verification code short message, a popup window 602 pops up in a target interface 601, and a first character with desensitized data is displayed in the popup window 602, for example, in content displayed in the short message popup window 602, an account identifier of a anchor user is replaced with a character "×".
In a possible implementation manner, if the server processes the reference data, i.e., the sensitive data, in the verification code short message before sending the verification code short message, the terminal may directly display the received verification code short message in the short message popup window. And when the terminal detects the checking operation of the short message detailed information, sending a short message detailed information checking instruction to the server. And the server responds to the short message detail information checking instruction, sends the unprocessed verification code short message to the terminal, and displays the unprocessed verification code short message on a short message detail interface of the terminal.
In a possible implementation manner, after detecting that the user completes the verification code filling, that is, after detecting that the anchor user submits the verification code, the terminal may further send a prompt message to the server to prompt the server that the verification code filling is completed, and the server deletes the random number seed corresponding to the verification code in response to the prompt message. For example, when the server generates the verification code, a random number seed is generated first, and then a random number generation algorithm is applied to the random number seed to obtain a random number as the verification code. In the embodiment of the disclosure, the server deletes the random number seed in time, so that other devices can be prevented from stealing the random number seed, the same verification code is regenerated, and the risk of verification code leakage is reduced.
According to the technical scheme provided by the embodiment of the disclosure, the information of the service scene where the terminal is located is added in the verification code acquisition request, so that when the server generates the verification code short message, different short message text information can be matched for different service scenes, and the verification code short message corresponding to the service scene is generated, so that the information safety requirements under different service scenes are met, the verification code is prevented from being leaked due to the fact that the verification code is directly displayed in a popup window of the terminal, and the information safety of a user is ensured.
Taking the service scene as any one of a live broadcast scene and a screen sharing scene as an example, in such a scene, the server generates a longer verification code short message, and places the verification code at the tail of the verification code short message, so that when the terminal displays the verification code short message in the popup window, only the first half content of the verification code short message is displayed and the verification code is not directly displayed due to the limitation of the number of characters which can be displayed in the popup window, thereby avoiding the verification code from being directly exposed to a viewer watching live broadcast, avoiding the verification code from being leaked, and further ensuring the information safety of a user of the anchor broadcast.
In the embodiment of the disclosure, by adding the scene field for indicating the service scene where the terminal is located in the verification code acquisition request, on one hand, different short message patterns can be adapted to different service scenes, namely, a live scene and a non-live scene correspond to different short message patterns, and in the live scene, a lengthened short message pattern is adopted to ensure that the verification code cannot be directly displayed on a target interface of a user, so that the safety of short message display of the verification code is improved; on the other hand, the expandability of the short message service can be improved, and for the services with the same property, different short message services do not need to be applied for different service scenes of the terminal.
The above embodiments mainly describe a process of displaying the verification code short message on the terminal in different service scenarios. In a possible implementation manner, when the terminal receives the verification code short message, a verification code filling control can be displayed on the target interface, and the verification code filling control is used for automatically filling the verification code in a verification code filling area of the service interface. Referring to fig. 7, fig. 7 is a schematic diagram of a verification code filling control according to an exemplary embodiment, and a popup 702 and a verification code filling control 703 are displayed in a live interface 701, taking as an example that the target interface is a live interface. The terminal responds to the triggering operation of the verification code filling control, and jumps to a service interface, where the service interface is corresponding to the service requesting to acquire the verification code, for example, the service interface may be a payment interface, a login interface, or the like, which is not limited in the embodiments of the present disclosure. And the terminal automatically fills the verification code in the verification code short message into the verification code filling area of the service interface.
In a possible implementation manner, in response to the triggering operation of the verification code filling control, the terminal may suspend screen sharing first and then jump to the service interface, so as to avoid that the verification code filled in the service interface is leaked to other users, and when it is detected that the user switches back to the target interface, screen sharing is started.
In a possible implementation manner, in response to the triggering operation of the verification code filling control, the terminal may directly jump to the service interface without suspending screen sharing, and in this case, the specific verification code may not be displayed in the verification code filling area of the service interface, and the verification code filled in the verification code filling area is replaced with the target character. The target character is set by a developer, which is not limited in this disclosure. Referring to fig. 8, fig. 8 is a schematic diagram of a service interface including a validation code filling area 801 in which the same number of target characters "×" as the number of validation codes are displayed, according to an exemplary embodiment. Of course, the verification code short message may also be blocked, which is not limited in the embodiment of the present disclosure. It should be noted that the operation of suspending screen sharing may be automatically executed by the terminal or manually operated by the user, which is not limited in this disclosure.
In the embodiment of the disclosure, the safety problem of the user information in the whole verification code use period is fully considered, and in the verification code filling stage, the verification code is prevented from being directly exposed to other users by suspending screen sharing or replacing and shielding the verification code, so that the safety of the verification code is ensured.
Fig. 9 is a block diagram of an apparatus for displaying an authentication code message according to an exemplary embodiment. Referring to fig. 9, the apparatus includes a receiving unit 901, an information acquiring unit 902, a short message acquiring unit 903, and a transmitting unit 904.
A receiving unit 901, configured to generate a verification code in response to receiving a verification code acquisition request of a terminal, where the verification code acquisition request includes a service scenario in which the terminal is located;
an information obtaining unit 902 configured to obtain target information corresponding to the service scenario;
a short message obtaining unit 903 configured to add the verification code to the reference position of the target information to obtain a verification code short message;
a sending unit 904 configured to send the short message of the verification code to the terminal, where the short message of the verification code is for displaying in a popup window of the terminal.
In one possible implementation, the information obtaining unit includes:
the first information acquisition subunit is configured to acquire first target information in response to the service scene being any one of a live scene and a screen sharing scene, wherein the number of characters included in the first target information is greater than the number of displayable characters of the popup window;
and the second information acquisition subunit is configured to acquire second target information in response to the service scene being any one of the live scene and the screen sharing scene, wherein the number of characters included in the second target information is less than or equal to the number of displayable characters of the popup window.
In a possible implementation manner, the verification code obtaining request further includes a model identifier of the terminal;
the first information obtaining subunit is configured to determine, in response to the service scene being any one of a live scene and a screen sharing scene, the number of displayable characters of the popup of the terminal based on the model identifier and the corresponding relationship between the model identifier and the displayable data amount of the popup; and acquiring text information which comprises more characters than the displayable characters of the pop-up window as the first target information.
In a possible implementation manner, the short message acquiring unit is configured to:
responding to any one of a live broadcast scene and a screen sharing scene of the service scene, and adding the verification code to the tail of the target information to obtain a verification code short message;
and in response to the fact that the service scene is any scene except the live scene and the screen sharing scene, adding the verification code to the beginning of the target information to obtain a verification code short message.
In a possible implementation manner, the information of the service scenario in which the terminal is located in the target field of the verification code acquisition request.
In one possible implementation, the transmitting unit is configured to:
Processing reference data in the verification code short message, wherein the reference data comprises at least one item of user account identification, mobile phone number and service handling type;
and sending the processed verification code short message to the terminal, wherein the processed verification code short message is used for being displayed in a popup window of the terminal.
In one possible implementation, the transmitting unit is configured to:
and responding to the short message detail information viewing instruction, and sending the unprocessed verification code short message to the terminal, wherein the unprocessed verification code short message is used for being displayed in a short message detail interface of the terminal.
According to the device provided by the embodiment of the disclosure, the information of the service scene where the terminal is located is added in the verification code acquisition request, so that the server can match different short message text information for different service scenes when generating the verification code short message, and generate the verification code short message corresponding to the service scene, thereby meeting the information safety requirements under different service scenes, avoiding the verification code leakage caused by the fact that the verification code is directly displayed in the popup window of the terminal, and ensuring the information safety of the user.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 10 is a block diagram illustrating an apparatus for displaying an authentication code message according to an exemplary embodiment. Referring to fig. 10, the apparatus includes a transmitting unit 1001, an acquiring unit 1002, and a display unit 1004.
A sending unit 1001 configured to send, in response to an authentication code obtaining operation of an anchor user, an authentication code obtaining request to a server, where the authentication code obtaining request includes information of a service scenario in which the terminal is located;
an obtaining unit 1002, configured to obtain a verification code short message matched with the target scene, where the verification code in the verification code short message is located at the end of the target information;
the display unit 1003 is configured to display the short message of the verification code in a form of a popup window on the target interface, wherein the characters displayed in the popup window do not include the verification code.
In one possible implementation, the display unit 1003 includes:
the character acquisition subunit is configured to acquire characters with a former reference number in the short message of the verification code as first characters, wherein the reference number is the number of displayable characters of the popup window;
and the display subunit is configured to display the first character in the verification code short message in a popup window mode on the target interface.
In one possible implementation, the display subunit is configured to:
Processing reference data in the first character, wherein the reference data comprises at least one item of user account identification, mobile phone number and business handling type;
and displaying the processed first character in the target interface in a popup mode.
In a possible implementation manner, the verification code in the verification code short message is located at the end of the target information, and the number of characters included in the target information is greater than the number of displayable characters of the popup window;
or the verification code in the verification code short message is positioned at the beginning of the target information, and the number of characters included in the target information is less than or equal to the number of displayable characters of the popup window.
In one possible implementation, the display unit 1003 is configured to:
and displaying a verification code filling control on the target interface, wherein the verification code filling control is used for filling the verification code in a verification code filling area of the service interface.
In one possible implementation, the verification code acquisition request includes a target field for indicating a service scenario in which the terminal is located.
According to the device provided by the embodiment of the disclosure, the information of the service scene where the terminal is located is added in the verification code acquisition request sent to the server, so that the server can match different short message text information for different service scenes when generating the verification code short message, and generate the verification code short message corresponding to the service scene, thereby meeting the information safety requirements under different service scenes, avoiding the verification code leakage caused by the fact that the verification code is directly displayed in a popup window of the terminal, and ensuring the information safety of the user.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The terminal and the server can be regarded as computer equipment. FIG. 11 is a block diagram illustrating a computer device in accordance with an example embodiment. The computer device 1100 may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 1101 and one or more memories 1102, where the memory 1102 stores at least one instruction, and the at least one instruction is loaded and executed by the processors 1101 to implement the verification code short message display method provided by the above-mentioned method embodiments. Certainly, the computer device may further have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input and output, and the computer device may further include other components for implementing the functions of the device, which is not described herein again.
In an exemplary embodiment, a computer-readable storage medium comprising instructions, such as a memory comprising instructions, executable by a processor of a computer device to perform the above-described method is also provided. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (28)

1. A short message display method for a verification code is characterized by comprising the following steps:
generating a verification code in response to receiving a verification code acquisition request of a terminal, wherein the verification code acquisition request comprises a service scene where the terminal is located;
responding to the fact that the service scene is any one of a live scene and a screen sharing scene, and obtaining first target information, wherein the number of characters included in the first target information is larger than the number of displayable characters of the popup window;
Adding the verification code to the tail of the target information to obtain a verification code short message;
and sending the verification code short message to the terminal, wherein the verification code short message is used for being displayed in a popup window of the terminal.
2. The method of claim 1, further comprising:
and responding to any scene except the live scene and the screen sharing scene of the service scene, and acquiring second target information, wherein the number of characters included in the second target information is less than or equal to the number of displayable characters of the pop-up window.
3. The method according to claim 1, wherein the request for obtaining the verification code further comprises a model identification of the terminal;
the responding to the service scene being any one of a live scene and a screen sharing scene, acquiring first target information, including:
in response to the fact that the service scene is any one of a live broadcast scene and a screen sharing scene, determining the number of displayable characters of a popup window of the terminal based on the model identification and the corresponding relation between the model identification and the displayable data volume of the popup window;
and acquiring text information with the number of included characters larger than the number of displayable characters of the popup window as the first target information.
4. The method of claim 2, further comprising:
and in response to the fact that the service scene is any scene except the live scene and the screen sharing scene, adding the verification code to the beginning of the target information to obtain the verification code short message.
5. The method of claim 1, wherein the information of the service scenario in which the terminal is located in a target field of the request for obtaining the verification code.
6. The method of claim 1, wherein the sending the verification code short message to the terminal, the verification code short message for displaying in a popup window of the terminal, comprises:
processing reference data in the verification code short message, wherein the reference data comprises at least one of a user account identifier, a mobile phone number and a service handling type;
and sending the processed verification code short message to the terminal, wherein the processed verification code short message is used for being displayed in a popup window of the terminal.
7. The method of claim 6, wherein the sending the processed short message of the verification code to the terminal is performed after the processed short message of the verification code is displayed in a popup window of the terminal, and the method further comprises:
And responding to a short message detail information checking instruction, and sending an unprocessed verification code short message to the terminal, wherein the unprocessed verification code short message is used for being displayed in a short message detail interface of the terminal.
8. A short message display method for a verification code is characterized by comprising the following steps:
responding to the verification code acquisition operation, and sending a verification code acquisition request to a server, wherein the verification code acquisition request comprises information of a service scene where a terminal is located;
when the service scene is any one of a live broadcast scene and a screen sharing scene, acquiring a verification code short message matched with the service scene, wherein the verification code in the verification code short message is positioned at the tail of target information, and the number of characters included in the target information is greater than the number of displayable characters of a popup window;
and displaying the short message of the verification code on a target interface in a popup window mode.
9. The method of claim 8, wherein displaying the verification code text message in a popup window on the target interface comprises:
acquiring characters of a front reference number in the verification code short message as first characters, wherein the reference number is the number of displayable characters of the popup window;
And displaying the first character in the verification code short message on the target interface in a popup window mode.
10. The method of claim 9, wherein displaying the first character in the verification code text message in a form of a popup window on the target interface comprises:
processing reference data in the first character, wherein the reference data comprises at least one of user account identification, mobile phone number and service handling type;
displaying the processed first character in the target interface in a form of a popup window.
11. The method of claim 8, further comprising:
when the service scene is any one of a live broadcast scene and a screen sharing scene, acquiring a verification code short message matched with the service scene, wherein a verification code in the verification code short message is positioned at the beginning of the target information, and the number of characters included in the target information is less than or equal to the number of displayable characters of the popup window.
12. The method of claim 8, wherein after obtaining the short message of the verification code matching the target scene, the method further comprises:
And displaying a verification code filling control on the target interface, wherein the verification code filling control is used for filling the verification code in a verification code filling area of the service interface.
13. The method of claim 8, wherein the authentication code acquisition request comprises a target field for indicating a service scenario in which the terminal is located.
14. A verification code short message display device is characterized by comprising:
the terminal comprises a receiving unit and a processing unit, wherein the receiving unit is configured to respond to receiving a verification code acquisition request of a terminal and generate a verification code, and the verification code acquisition request comprises a service scene where the terminal is located;
the information acquisition unit comprises a first information acquisition subunit;
the first information obtaining subunit is configured to obtain first target information in response to the service scene being any one of a live scene and a screen sharing scene, where the number of characters included in the first target information is greater than the number of displayable characters of the popup window;
the short message acquisition unit is configured to add the verification code to the tail of the target information to obtain a verification code short message;
and the sending unit is configured to send the verification code short message to the terminal, and the verification code short message is used for being displayed in a popup window of the terminal.
15. The apparatus according to claim 14, wherein the information obtaining unit further comprises:
and the second information obtaining subunit is configured to obtain second target information in response to that the service scene is any one of the live broadcast scene and the screen sharing scene, wherein the number of characters included in the second target information is less than or equal to the number of displayable characters of the pop window.
16. The apparatus according to claim 15, wherein the request for obtaining the verification code further comprises a model identifier of the terminal;
the first information obtaining subunit is configured to, in response to the service scene being any one of a live scene and a screen sharing scene, determine the displayable character number of the popup of the terminal based on the model identifier and the corresponding relationship between the model identifier and the displayable data amount of the popup; and acquiring text information with the number of included characters larger than the number of displayable characters of the popup window as the first target information.
17. The apparatus of claim 15, wherein the short message obtaining unit is configured to:
and in response to the fact that the service scene is any scene except the live scene and the screen sharing scene, adding the verification code to the beginning of the target information to obtain the verification code short message.
18. The apparatus of claim 14, wherein the information about the service scenario in which the terminal is located in a target field of the request for obtaining the verification code.
19. The apparatus of claim 14, wherein the sending unit is configured to:
processing reference data in the verification code short message, wherein the reference data comprises at least one of a user account identifier, a mobile phone number and a service handling type;
and sending the processed verification code short message to the terminal, wherein the processed verification code short message is used for being displayed in a popup window of the terminal.
20. The apparatus of claim 19, wherein the transmitting unit is configured to:
and responding to a short message detail information viewing instruction, and sending the unprocessed verification code short message to the terminal, wherein the unprocessed verification code short message is used for being displayed in a short message detail interface of the terminal.
21. A verification code short message display device is characterized by comprising:
the terminal comprises a sending unit, a receiving unit and a processing unit, wherein the sending unit is configured to respond to the verification code obtaining operation of an anchor user and send a verification code obtaining request to a server, and the verification code obtaining request comprises information of a service scene where the terminal is located;
The acquisition unit is configured to acquire a verification code short message matched with the service scene when the service scene is any one of a live broadcast scene and a screen sharing scene, wherein the verification code in the verification code short message is positioned at the tail of target information, and the number of characters included in the target information is greater than the number of displayable characters of a popup window;
and the display unit is configured to display the verification code short message in a popup window form on a target interface.
22. The apparatus of claim 21, wherein the display unit comprises:
the character acquisition subunit is configured to acquire characters with a front reference number in the verification code short message as first characters, wherein the reference number is the number of displayable characters of the popup window;
and the display subunit is configured to display the first character in the verification code short message in a form of a popup window on the target interface.
23. The apparatus of claim 22, wherein the display subunit is configured to:
processing reference data in the first character, wherein the reference data comprises at least one of user account identification, mobile phone number and service handling type;
Displaying the processed first character in the target interface in a form of a popup window.
24. The apparatus of claim 21, wherein the obtaining unit is further configured to:
when the service scene is any one of a live broadcast scene and a screen sharing scene, acquiring a verification code short message matched with the service scene, wherein a verification code in the verification code short message is positioned at the beginning of the target information, and the number of characters included in the target information is less than or equal to the number of displayable characters of the popup window.
25. The apparatus of claim 21, wherein the display unit is configured to:
and displaying a verification code filling control on the target interface, wherein the verification code filling control is used for filling the verification code in a verification code filling area of the service interface.
26. The apparatus of claim 21, wherein the authentication code acquisition request comprises a target field for indicating a service scenario in which the terminal is located.
27. A computer device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the short message display method of the verification code according to any one of claims 1 to 7 or 8 to 13.
28. A computer-readable storage medium, wherein instructions, when executed by a processor of a computer device, enable the computer device to perform the captcha text message display method of any one of claims 1 to 7 or 8 to 13.
CN202011034284.8A 2020-09-27 2020-09-27 Verification code short message display method and device Active CN112153582B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011034284.8A CN112153582B (en) 2020-09-27 2020-09-27 Verification code short message display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011034284.8A CN112153582B (en) 2020-09-27 2020-09-27 Verification code short message display method and device

Publications (2)

Publication Number Publication Date
CN112153582A CN112153582A (en) 2020-12-29
CN112153582B true CN112153582B (en) 2022-05-24

Family

ID=73894919

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011034284.8A Active CN112153582B (en) 2020-09-27 2020-09-27 Verification code short message display method and device

Country Status (1)

Country Link
CN (1) CN112153582B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113423076B (en) * 2021-05-20 2022-10-04 北京达佳互联信息技术有限公司 Method and device for acquiring verification code short message, electronic equipment and storage medium
CN115567937A (en) * 2022-09-16 2023-01-03 北京字跳网络技术有限公司 Short message verification method and device, storage medium and electronic equipment
CN115618025A (en) * 2022-10-08 2023-01-17 北京泰迪熊移动科技有限公司 Short message processing method, client, server and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109429191A (en) * 2017-08-28 2019-03-05 中兴通讯股份有限公司 Short message protecting method, terminal and computer readable storage medium
CN109982274A (en) * 2019-04-08 2019-07-05 上海载德信息科技有限公司 A kind of information acquisition method, device, server and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014142432A1 (en) * 2013-03-15 2014-09-18 에스케이플래닛 주식회사 Messenger service providing method and system and apparatus for same
CN104243155B (en) * 2013-06-18 2019-01-22 腾讯科技(深圳)有限公司 The method and device of safety verification
CN107580105A (en) * 2017-07-26 2018-01-12 努比亚技术有限公司 A kind of screen sharing method, terminal and computer-readable recording medium
CN110557499B (en) * 2018-06-01 2021-08-17 Oppo广东移动通信有限公司 Information processing method and device and mobile terminal
CN109286905A (en) * 2018-10-30 2019-01-29 北京珠穆朗玛移动通信有限公司 Short message treatment method sends terminal and SMS encryption processing system
CN110134356A (en) * 2019-04-29 2019-08-16 维沃移动通信有限公司 A kind of throwing screen method and terminal
CN110149628B (en) * 2019-05-10 2023-02-07 维沃移动通信有限公司 Information processing method and terminal equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109429191A (en) * 2017-08-28 2019-03-05 中兴通讯股份有限公司 Short message protecting method, terminal and computer readable storage medium
CN109982274A (en) * 2019-04-08 2019-07-05 上海载德信息科技有限公司 A kind of information acquisition method, device, server and storage medium

Also Published As

Publication number Publication date
CN112153582A (en) 2020-12-29

Similar Documents

Publication Publication Date Title
US10735547B2 (en) Systems and methods for caching augmented reality target data at user devices
CN112153582B (en) Verification code short message display method and device
CN104572278B (en) The method, device and equipment of light application calling local side ability
US9607147B2 (en) Method and device for detecting software-tampering
JP7397094B2 (en) Resource configuration method, resource configuration device, computer equipment, and computer program
CN113949697B (en) Data distribution method, device, electronic equipment and storage medium
WO2022142536A1 (en) Grayscale publishing method, system and apparatus, and device and storage medium
CN113805991A (en) Object prompting method and device, electronic equipment and storage medium
JP2015531501A (en) Managing digital receipts
CN110998503A (en) Capture content sharing interface
CN108196902A (en) For showing the method and apparatus for advertisement of spreading its tail
US20210112025A1 (en) Method and server for processing messages
CN106817296B (en) Information recommendation test method and device and electronic equipment
CN110674426B (en) Webpage behavior reporting method and device
CN112598810A (en) Exhibition entrance processing method and device
CN107330126B (en) Method and apparatus for outputting information
WO2017129068A1 (en) Event execution method and device and system therefor
CN107666497B (en) Data access method and device
CN111291644B (en) Method and apparatus for processing information
CN116437124A (en) Information prompting method, device, electronic equipment and storage medium
CN117389762A (en) Application program interface calling method and device, computer equipment and storage medium
CN114021055A (en) Friend information acquisition method, device, equipment and storage medium
CN113254108A (en) Store operation method and device based on small program, electronic equipment and storage medium
CA3191592A1 (en) Systems and methods for improving notifications
CN113761508A (en) Information processing method, information processing device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant