CN113423076B - Method and device for acquiring verification code short message, electronic equipment and storage medium - Google Patents

Method and device for acquiring verification code short message, electronic equipment and storage medium Download PDF

Info

Publication number
CN113423076B
CN113423076B CN202110553544.0A CN202110553544A CN113423076B CN 113423076 B CN113423076 B CN 113423076B CN 202110553544 A CN202110553544 A CN 202110553544A CN 113423076 B CN113423076 B CN 113423076B
Authority
CN
China
Prior art keywords
short message
verification code
acquiring
terminal
service identifier
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
CN202110553544.0A
Other languages
Chinese (zh)
Other versions
CN113423076A (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 CN202110553544.0A priority Critical patent/CN113423076B/en
Publication of CN113423076A publication Critical patent/CN113423076A/en
Application granted granted Critical
Publication of CN113423076B publication Critical patent/CN113423076B/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
    • H04W12/068Authentication using credential vaults, e.g. password manager applications or one time password [OTP] applications

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 provides a verification code short message acquisition method and device, electronic equipment and a storage medium. After receiving a verification code acquisition request of the terminal, generating a verification code, acquiring a corresponding short message case according to a short message service identifier in the acquired verification code acquisition request and the region information of the terminal, generating a verification code short message according to the short message case and the verification code, and finally sending the verification code short message to the terminal. Therefore, the short message scheme in the short message verification code short message is provided by combining the area information of the terminal, and the user experience of obtaining the verification code short message by the user is improved.

Description

Method and device for acquiring verification code short message, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of short message technologies, and in particular, to a method and an apparatus for acquiring a verification code short message, an electronic device, and a 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 an authentication code, a server side sends an authentication code short message to the user terminal. The verification code short message comprises a short message case and verification code information.
At present, after an application program product is on line, users in different areas may use the application program product, and in the process of identity verification through a short message verification mode, short message documents used by a server in related technologies for different areas are the same, which affects the experience of users in different areas.
Disclosure of Invention
The present disclosure relates to the field of short message technologies, and in particular, to a method and an apparatus for acquiring a verification code short message, an electronic device, and a storage medium.
According to a first aspect of the embodiments of the present disclosure, a method for acquiring a verification code short message is provided, including: responding to a verification code acquisition request of a terminal, and generating a verification code, wherein the verification code acquisition request comprises a short message service identifier and area information of the terminal; acquiring a corresponding short message file according to the short message service identifier and the region information of the terminal; generating a verification code short message according to the short message case and the verification code; and sending the verification code short message to the terminal.
In an embodiment of the present disclosure, the obtaining a corresponding short message document according to the short message service identifier and the area information where the terminal is located includes: acquiring the language corresponding to the regional information; acquiring a short message file set corresponding to the short message service identifier; and acquiring the short message file corresponding to the language from the short message file set.
In an embodiment of the present disclosure, the obtaining a language corresponding to the region information includes: and inquiring the corresponding relation between the pre-stored region information and languages according to the region information to obtain the language corresponding to the region information.
In an embodiment of the present disclosure, the obtaining a corresponding short message document according to the short message service identifier and the area information where the terminal is located includes: acquiring a language set corresponding to the short message service identifier; acquiring a target language corresponding to the regional information from the language set; and acquiring a corresponding short message file according to the short message service identifier and the target language.
In an embodiment of the present disclosure, the obtaining a corresponding short message document according to the short message service identifier and the area information where the terminal is located includes: acquiring a short message file set corresponding to the region information; and acquiring the short message document corresponding to the short message service identification from the short message document set.
In an embodiment of the present disclosure, the obtaining a corresponding short message document according to the short message service identifier and the area information where the terminal is located includes: responding to the corresponding relation among the short message service identification, the area information and the short message document, wherein the short message document corresponding to the short message service identification and the area information of the terminal does not exist; acquiring a telephone number corresponding to the terminal, and acquiring target area information corresponding to the telephone number; and in response to the short message record corresponding to the short message service identifier and the target area information existing in the corresponding relationship, taking the short message record corresponding to the short message service identifier and the target area information as the short message record.
In one embodiment of the present disclosure, the method further comprises: and in response to the corresponding relation that the short message file corresponding to the short message service identifier and the target area information does not exist, taking the short message file only comprising verification code numbers as the short message file.
The invention discloses a method for acquiring a verification code short message, which comprises the steps of generating a verification code after receiving a verification code acquisition request of a terminal, acquiring a corresponding short message case according to a short message service identifier in the acquired verification code acquisition request and the region information of the terminal, generating a verification code short message according to the short message case and the verification code, and finally sending the verification code short message to the terminal. Therefore, the short message scheme in the short message verification code short message is provided by combining the area information of the terminal, and the user experience of obtaining the verification code short message by the user is improved.
According to a second aspect of the embodiments of the present disclosure, an apparatus for obtaining a verification code short message is provided, including: the terminal comprises a first generation module, a second generation module and a third generation module, wherein the first generation module 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 short message service identifier and area information of the terminal; the acquisition module is configured to acquire a corresponding short message file according to the short message service identifier and the region information of the terminal; the second generation module is configured to generate a verification code short message according to the short message file and the verification code; and the sending module is configured to send the verification code short message to the terminal.
In one embodiment of the present disclosure, the obtaining module includes: a first obtaining unit configured to obtain a language corresponding to the region information; the second acquisition unit is configured to acquire a short message document set corresponding to the short message service identifier; and the third acquisition unit is configured to acquire the short message file corresponding to the language from the short message file set.
In an embodiment of the disclosure, the first obtaining unit is specifically configured to: and inquiring the corresponding relation between the pre-stored region information and languages according to the region information to obtain the language corresponding to the region information.
In an embodiment of the disclosure, the obtaining module is specifically configured to: acquiring a language set corresponding to the short message service identifier; acquiring a target language corresponding to the region information from the language set; and acquiring a corresponding short message file according to the short message service identifier and the target language.
In an embodiment of the disclosure, the obtaining module is specifically configured to: acquiring a short message file set corresponding to the region information; and acquiring the short message file corresponding to the short message service identifier from the short message file set.
In an embodiment of the disclosure, the obtaining module is specifically configured to: responding to the corresponding relation among the short message service identification, the area information and the short message document, wherein the short message document corresponding to the short message service identification and the area information of the terminal does not exist; acquiring a telephone number corresponding to the terminal, and acquiring target area information corresponding to the telephone number; and in response to the short message record corresponding to the short message service identifier and the target area information existing in the corresponding relationship, taking the short message record corresponding to the short message service identifier and the target area information as the short message record.
In one embodiment of the present disclosure, the apparatus further comprises: a response module: and the short message pattern is configured to respond to the corresponding relation that no short message pattern corresponding to the short message service identifier and the target area information exists, and the short message pattern only comprising verification code numbers is taken as the short message pattern.
The invention discloses a verification code short message acquisition device, which generates a verification code after receiving a verification code acquisition request of a terminal, acquires a corresponding short message case according to a short message service identifier in the acquired verification code acquisition request and the region information of the terminal, generates a verification code short message according to the short message case and the verification code, and finally sends the verification code short message to the terminal. Therefore, the short message scheme in the short message verification code short message is provided by combining the area information of the terminal, and the user experience of obtaining the verification code short message by the user is improved.
A third aspect of an embodiment of the present disclosure provides an electronic device, including: a processor; a memory for storing the processor-executable instructions; the processor is configured to execute the instruction to implement the method for acquiring the verification code short message in the embodiment of the disclosure.
A fourth aspect of the embodiments of the present disclosure provides a storage medium, where when an instruction in the storage medium is executed by a processor of an electronic device, the electronic device is enabled to execute a method for acquiring a verification code short message in the embodiments of the present disclosure.
A fifth aspect of the embodiments of the present disclosure provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the computer program implements the method for acquiring the short message of the verification code in the embodiments of the present disclosure.
Other effects of the above-described alternative will be described below with reference to specific embodiments.
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 method for acquiring a short message of an authentication code according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating a method for acquiring a short message of an authentication code according to another exemplary embodiment.
Fig. 3 is a flowchart illustrating a method for acquiring a verification code short message according to another exemplary embodiment.
Fig. 4 is a flowchart illustrating a method for acquiring a short message of an authentication code according to another exemplary embodiment.
Fig. 5 is a block diagram illustrating an apparatus for acquiring a short message of an authentication code according to an exemplary embodiment.
Fig. 6 is a block diagram of an electronic device for an authentication code short message acquiring apparatus according to an exemplary embodiment.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Reference will now be made in detail to the embodiments of the present invention, examples of which are illustrated in the accompanying drawings, and the embodiments described below with reference to the accompanying drawings are exemplary and intended to be illustrative of the present invention and should not be construed as limiting the present invention.
The following describes a method, an apparatus, an electronic device, and a storage medium for acquiring a verification code short message according to an embodiment of the present disclosure with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a method for acquiring a verification code short message according to an exemplary embodiment, where as shown in fig. 1, the method for acquiring a verification code short message may include:
in step S11, a verification code is generated in response to a verification code acquisition request of the terminal, where the verification code acquisition request includes a short message service identifier and information of an area where the terminal is located.
In step S12, a corresponding short message document is obtained according to the short message service identifier and the information of the area where the terminal is located.
In step S13, a verification code short message is generated according to the short message file and the verification code.
It can be understood that the verification code short message is composed according to the verification code of step S11 and the short message pattern obtained in step S12.
In step S14, the verification code is sent to the terminal in a short message.
The invention discloses a method for acquiring a verification code short message, which comprises the steps of generating a verification code after receiving a verification code acquisition request of a terminal, acquiring a corresponding short message case according to a short message service identifier in the acquired verification code acquisition request and the region information of the terminal, generating a verification code short message according to the short message case and the verification code, and finally sending the verification code short message to the terminal. Therefore, the short message scheme in the short message verification code short message is provided by combining the area information of the terminal, and the user experience of obtaining the verification code short message by the user is improved.
Fig. 2 is a flowchart illustrating a method for acquiring a verification code short message according to another exemplary embodiment, where as shown in fig. 2, the method for acquiring a verification code short message may include:
in step S21, a verification code is generated in response to a verification code acquisition request of the terminal, where the verification code acquisition request includes a short message service identifier and information of an area where the terminal is located.
In different scenes, obtaining the area information of the terminal can be realized in various ways, and an exemplary way is as follows:
as an exemplary embodiment, in the case where the authentication code acquisition request includes a phone number of the terminal, the area information where the terminal is located may be determined according to the phone number.
Specifically, country code information corresponding to the telephone number may be determined, and the region information where the terminal is located may be determined according to the country code information.
In some embodiments, after acquiring the country code information, the area information corresponding to the country code information may be acquired according to a correspondence relationship between a country code and area information that is pre-stored, and the acquired area information may be used as the area information where the terminal is located.
As another exemplary embodiment, in the case that the authentication code acquisition request includes identification information for identifying area information where the terminal is located, the area information where the terminal is located may be determined according to the identification information.
For example, the identification information is a number 8, and the area information corresponding to the number 8 can be obtained according to a correspondence relationship between the identification information and the area information stored in advance, for example, the area information is china area information.
The region information may include country information and/or region information.
In step S22, the language corresponding to the region information is acquired.
In some embodiments, an implementation manner of obtaining a language corresponding to the region information may be: and inquiring the corresponding relation between the pre-stored region information and the languages according to the region information to obtain the language corresponding to the region information.
In some implementations, the language corresponding to each piece of region information may be obtained according to a mapping relationship between the region information and the language that is stored in advance.
In this embodiment, the languages may include, but are not limited to, chinese, english, turkish, indonesian, korean, etc.
The mapping relationship between each region information and the language may be: the method comprises the following steps that an area (local) field is added in a database table of a short message file stored at a service (server) end and used for identifying languages, different areas correspond to different languages, and the mapping relation is as follows: english (en), portuguese (pt _ BR), turkish (TR _ TR), indonesia (in _ ID), etc., and en, pt _ BR, TR _ TR, in _ ID, i.e., the stored region field, in parenthesis.
In step S23, a short message pattern set corresponding to the short message service identifier is obtained.
The short message service identifier is used to identify a service using a short message, for example, the service may be a login service, a registration service, or the like. It can be understood that, different short message services have different corresponding short message service identifiers.
In some embodiments, the language corresponding to each short message document in the short message document set is different.
It can be understood that the short message service identifier corresponding to each short message scheme in the short message scheme set is the same.
In some embodiments, the short message pattern set corresponding to the short message service identifier is preconfigured in the server side.
It can be understood that, in the actual application process, according to the language development requirement of the short message service corresponding to the short message service identifier, short message patterns of various language types can be added to the short message service in the server. In the process of adding the short message document in the embodiment, the short message service identifier corresponding to the short message service is not changed. Therefore, compared with the existing method of setting a new short message service identifier for the short message language case when the corresponding short message service needs to be added with the short message language case in the existing server, the short message language case management method in the server in this embodiment is more flexible and has stronger expansibility.
In step S24, a short message record corresponding to the language is obtained from the short message record set.
In step S25, a verification code short message is generated according to the short message pattern and the verification code.
In some embodiments, the verification code may be added to a predetermined position in the short message document to obtain the short message including the verification code.
The preset position may be preset according to a service requirement, for example, a start and an end of a short message document, and the preset position is not specifically limited in this embodiment.
In step S26, the verification code is sent to the terminal by short message.
The invention discloses a method for acquiring a verification code short message, which comprises the steps of generating a verification code after receiving a verification code acquisition request of a terminal, acquiring a short message service identifier in the verification code acquisition request, area information where the terminal is located and a language corresponding to the area information, acquiring a short message scheme set corresponding to the short message service identifier, acquiring a short message scheme corresponding to the language from the short message scheme set, generating a verification code short message according to the short message scheme and the verification code, and finally sending the verification code short message to the terminal. Therefore, the short message scheme corresponding to the language is obtained based on the language corresponding to the region where the terminal is located, the verification code short message is generated based on the verification code and the short message scheme, the verification code short message corresponding to the language used by the user is provided for the user, and the requirement that the user uses the verification code short message corresponding to other languages is met.
Fig. 3 is a flowchart illustrating a method for acquiring a verification code short message according to another exemplary embodiment, where as shown in fig. 3, the method for acquiring a verification code short message may include:
in step S31, a verification code is generated in response to a verification code acquisition request of the terminal, where the verification code acquisition request includes the short message service identifier and the area information where the terminal is located.
In step S32, a language set corresponding to the short message service identifier is obtained.
In step S33, a target language corresponding to the region information is acquired from the language set.
In step S34, a corresponding short message pattern is obtained according to the short message service identifier and the target language.
In some embodiments of the present application, a corresponding short message document is obtained according to a short message service identifier and information of an area where a terminal is located, and one implementation manner is: and responding to the corresponding relation among the short message service identification, the area information and the short message case that the short message case corresponding to the short message service identification and the area information where the terminal is located does not exist, acquiring a telephone number corresponding to the terminal, acquiring target area information corresponding to the telephone number, and responding to the short message case corresponding to the short message service identification and the target area information existing in the corresponding relation, and taking the short message case corresponding to the short message service identification and the target area information as the short message case.
The other implementation mode is as follows: and in response to the fact that the short message case corresponding to the short message service identification and the target area information does not exist in the corresponding relation, taking the short message case only comprising the verification code number as the short message case.
In step S35, a verification code short message is generated according to the short message pattern and the verification code.
In step S36, the verification code is sent to the terminal in a short message.
The invention discloses a method for acquiring a verification code short message, which comprises the steps of generating a verification code after receiving a verification code acquisition request of a terminal, acquiring a short message service identifier in the verification code acquisition request, region information where the terminal is located and a language set corresponding to the short message service identifier, acquiring a target language corresponding to the region information from the language set, acquiring a corresponding short message scheme according to the short message service identifier and the target language, generating a verification code short message according to the short message scheme and the verification code, and finally sending the verification code short message to the terminal. Therefore, in the process of sending the verification code short message to the user, the target language corresponding to the region information of the terminal is obtained from the language set corresponding to the corresponding service identifier, and the verification code short message is generated based on the short message file corresponding to the target language, so that the verification code short message in the language used by the user is provided for the user, and the reading efficiency and the use experience of the user in different regions are improved.
Fig. 4 is a flowchart illustrating a method for acquiring a verification code short message according to another exemplary embodiment, where as shown in fig. 3, the method for acquiring a verification code short message may include:
in step S41, a verification code is generated in response to a verification code acquisition request of the terminal, where the verification code acquisition request includes the short message service identifier and the area information where the terminal is located.
In step S42, a short message pattern set corresponding to the area information is obtained.
In step S43, a short message document corresponding to the short message service identifier is obtained from the short message document set.
In step S44, a verification code short message is generated according to the short message pattern and the verification code.
In some embodiments, the verification code may be added to a predetermined position in the short message document to obtain the short message including the verification code.
The preset position may be preset according to a service requirement, for example, a start and an end of a short message document, and the preset position is not specifically limited in this embodiment.
In step S45, the verification code is sent to the terminal in a short message.
The invention discloses a verification code short message acquisition method, which comprises the steps of generating a verification code after receiving a verification code acquisition request of a terminal, determining the area information of the terminal, acquiring a short message pattern set corresponding to a short message service identifier according to the area information of the terminal, acquiring a short message pattern corresponding to the short message service identifier according to the short message pattern set, generating a verification code short message according to the short message pattern and the verification code, and finally sending the verification code short message to the terminal. Therefore, the verification code short message is generated based on the short message pattern corresponding to the short message service identifier in the short message pattern set corresponding to the area where the terminal is located, so that different short message patterns are provided for the same short message service in different areas, and the diversity of the short message patterns of the short message service is ensured.
In order to make those skilled in the art clearly understand the technical solution of the present disclosure, the following takes the example that the verification code obtaining request includes the short message service identifier and the identification information for identifying the area information where the terminal is located, and an example of the verification code obtaining method of this embodiment is described.
Correspondingly, a verification code is generated in response to a verification code acquisition request of the terminal, wherein the verification code acquisition request comprises a short message service identifier and identification information used for identifying the area information where the terminal is located.
And then, determining the area information of the terminal according to the identification information.
And inquiring a preset database table according to the short message service identifier and the region information of the terminal to obtain an inquiry result.
The database table stores mapping relations among service identifiers, regional information, languages and short message patterns.
Specifically, in the case that the query result is that the language short message pattern corresponding to the short message service identifier and the regional information is queried, the verification code short message can be generated according to the language short message pattern and the verification code, and the verification code short message is sent to the terminal.
Correspondingly, if the query result is that the telephone number corresponding to the terminal is not found in the preset database table, the telephone number corresponding to the terminal can be obtained, the area information corresponding to the country code information is determined according to the country code information of the telephone number, and then the preset database table is continuously searched based on the service identifier and the area information corresponding to the country code information.
If the short message is inquired, generating a verification code short message according to the short message scheme and the verification code of the corresponding language, and sending the verification code short message to the terminal.
If the short message scheme corresponding to the language is not found in the preset database table according to the service identifier and the regional information corresponding to the country code information, the short message only including the verification code is directly returned to the terminal.
That is to say, in this embodiment, if the corresponding language pattern cannot be found in the database table through the short message service identifier and the corresponding language, a subsequent degradation scheme is adopted, and the short message service end also makes a degraded language matching policy, where the scheme is to configure a corresponding region for each country code, for example, a region corresponding to +1 corresponds to en, which indicates that a region corresponding to the united states region is en, +55 corresponds to pt _ BR, and which indicates that a region corresponding to the brazilian region is pt _ BR. Finding a preset region according to the country code of the mobile phone number of the user, continuously searching a corresponding language case in a database table according to a short message service identifier (bizType) and the region, and returning the case at the bottom of the pocket if the language case is not found.
Wherein, the case of the bottom pocket only has verification code numbers.
The preset region is a region identified by a country code, for example, en corresponds to +1, which indicates that en corresponds to the united states region.
Fig. 5 is a block diagram of an apparatus 150 for obtaining a verification code short message according to an exemplary embodiment. Referring to fig. 5, the apparatus includes a first generating module 151, an acquiring module 152, a second generating module 153, and a transmitting module 154.
The first generating module 151 is configured to generate a verification code in response to a verification code obtaining request of the terminal, where the verification code obtaining request includes a short message service identifier and information of an area where the terminal is located.
The obtaining module 152 is configured to obtain a corresponding short message document according to the short message service identifier and the information of the area where the terminal is located.
The obtaining module 152 includes:
a first obtaining unit 1521 configured to obtain a language type corresponding to the region information.
A second obtaining unit 1522, configured to obtain a short message pattern set corresponding to the short message service identifier.
A third obtaining unit 1523, configured to obtain, from the short message case set, a short message case corresponding to the language.
The first obtaining unit 1521 is specifically configured to: and inquiring the corresponding relation between the pre-stored region information and the languages according to the region information to obtain the language corresponding to the region information.
The obtaining module 152 is specifically configured to: and acquiring the language corresponding to the regional information, acquiring a short message case set corresponding to the short message service identifier, and acquiring the short message case corresponding to the language from the short message case set.
The obtaining module 152 is specifically further configured to: acquiring a language set corresponding to the short message service identifier, acquiring a target language corresponding to the region information from the language set, and acquiring a corresponding short message scheme according to the short message service identifier and the target language.
The obtaining module 152 is specifically further configured to: and acquiring a short message document set corresponding to the region information, and acquiring a short message document corresponding to the short message service identifier from the short message document set.
The obtaining module 152 is specifically further configured to: and responding to the corresponding relation among the short message service identification, the area information and the short message case that the short message case corresponding to the short message service identification and the area information where the terminal is located does not exist, acquiring a telephone number corresponding to the terminal, acquiring target area information corresponding to the telephone number, and responding to the short message case corresponding to the short message service identification and the target area information existing in the corresponding relation, and taking the short message case corresponding to the short message service identification and the target area information as the short message case.
The second generating module 153 is configured to generate the verification code short message according to the short message pattern and the verification code.
The sending module 154 is configured to send the verification code short message to the terminal.
In this embodiment, the apparatus further comprises: the response module 155: and the short message record is configured to respond to the condition that the short message record corresponding to the short message service identifier and the target area information does not exist in the corresponding relation, and the short message record only comprising the verification code number is taken as the short message record.
The invention discloses a method for acquiring a verification code short message, which comprises the steps of firstly, sending a verification code acquisition request to a server when receiving a verification code acquisition operation of a terminal, then determining the area information of the terminal, acquiring a corresponding short message scheme according to a short message service identifier in the verification code acquisition request and the area information of the terminal, generating a verification code short message according to the short message scheme and the verification code, and finally receiving the verification code short message returned by the server.
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.
In order to implement the above embodiments, an electronic device is further provided in the embodiments of the present disclosure. Wherein, electronic equipment includes: a processor; a memory for storing processor-executable instructions; wherein, the processor is configured to execute the instruction to realize the above method for acquiring the short message of the verification code.
As an example, fig. 6 is a block diagram of an electronic device 160 for acquiring a verification code short message according to an exemplary embodiment, and as shown in fig. 6, the electronic device 160 may further include:
a memory 161 and a processor 162, and a bus 163 connecting different components (including the memory 161 and the processor 162), wherein the memory 161 stores computer programs, and when the processor 162 executes the programs, the method for acquiring the short message of the verification code according to the embodiment of the disclosure is implemented.
Bus 163 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 160 typically includes a variety of electronic device readable media. Such media may be any available media that is accessible by electronic device 160 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 161 may also include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 164 and/or cache memory 165. The electronic device 160 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, the storage system 166 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, commonly referred to as a "hard drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 163 by one or more data media interfaces. Memory 161 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the disclosure.
Program/utility 168, having a set (at least one) of program modules 167, may be stored, for example, in memory 161, such program modules 167 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples, or some combination thereof, may include an implementation of a network environment. Program modules 167 generally perform the functions and/or methodologies of embodiments described in this disclosure.
The electronic device 160 may also communicate with one or more external devices 169 (e.g., keyboard, pointing device, display 1691, etc.), with one or more devices that enable a user to interact with the electronic device 160, and/or with any devices (e.g., network card, modem, etc.) that enable the electronic device 160 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interface 1692. Also, electronic device 160 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet) via network adapter 1693. As shown, the network adapter 1693 communicates with the other modules of the electronic device 160 via the bus 163. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with electronic device 160, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, to name a few.
The processor 160 executes various functional applications and data processing by executing programs stored in the memory 161.
In an embodiment, the processor 162 may be configured to execute the method for acquiring the short message of the verification code of the first aspect of the disclosure.
In another embodiment, the processor 182 may be configured to execute the method for acquiring the short message of the verification code according to the embodiment of the second aspect of the disclosure.
It should be noted that the above explanation of the embodiment of the method for acquiring a verification code short message is also applicable to the apparatus for acquiring a verification code short message of the present embodiment, and the embodiment is not limited to this specifically.
In an exemplary embodiment, a storage medium comprising instructions, such as a memory comprising instructions, executable by processor 162 of apparatus 160 to perform the above-described method is also provided. Alternatively, the storage medium may be a non-transitory computer readable storage medium, for example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product is further provided, which, when executed by a processor of an electronic device, enables the electronic device to execute the method for acquiring the short message of the verification code according to the first aspect, or the method for acquiring the short message of the verification code according to the second aspect.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present disclosure. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present disclosure, "a plurality" means at least two, e.g., two, three, etc., unless explicitly specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present disclosure in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present disclosure.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware that is related to instructions of a program, and the program may be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may also be stored in a computer readable storage medium.
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 (14)

1. A method for acquiring a verification code short message is characterized by comprising the following steps:
responding to a verification code acquisition request of a terminal, and generating a verification code, wherein the verification code acquisition request comprises a short message service identifier and area information of the terminal;
acquiring a corresponding short message file according to the short message service identification and the region information of the terminal;
generating a verification code short message according to the short message case and the verification code;
sending the verification code short message to the terminal;
the obtaining of the corresponding short message record according to the short message service identifier and the area information of the terminal comprises:
responding to the corresponding relation among the short message service identification, the area information and the short message document, wherein the short message document corresponding to the short message service identification and the area information of the terminal does not exist;
acquiring a telephone number corresponding to the terminal, and acquiring target area information corresponding to the telephone number;
and in response to the short message record corresponding to the short message service identifier and the target area information existing in the corresponding relationship, taking the short message record corresponding to the short message service identifier and the target area information as the short message record.
2. The method of claim 1, wherein the obtaining the corresponding short message document according to the short message service identifier and the area information where the terminal is located comprises:
acquiring the language corresponding to the regional information;
acquiring a short message file set corresponding to the short message service identifier;
and acquiring the short message record corresponding to the language from the short message record set.
3. The method according to claim 2, wherein the obtaining the language corresponding to the region information includes:
and inquiring the corresponding relation between the pre-stored region information and languages according to the region information to obtain the language corresponding to the region information.
4. The method of claim 1, wherein the obtaining the corresponding short message document according to the short message service identifier and the area information where the terminal is located comprises:
acquiring a language set corresponding to the short message service identifier;
acquiring a target language corresponding to the regional information from the language set;
and acquiring a corresponding short message file according to the short message service identifier and the target language.
5. The method of claim 1, wherein the obtaining the corresponding short message document according to the short message service identifier and the area information where the terminal is located comprises:
acquiring a short message file set corresponding to the region information;
and acquiring the short message document corresponding to the short message service identification from the short message document set.
6. The method of claim 1, further comprising:
and in response to the corresponding relation that the short message pattern corresponding to the short message service identifier and the target area information does not exist, taking the short message pattern only comprising verification code numbers as the short message pattern.
7. An acquisition device of a verification code short message is characterized by comprising:
the terminal comprises a first generation module, a second generation module and a third generation module, wherein the first generation module 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 short message service identifier and area information of the terminal;
the acquisition module is configured to acquire a corresponding short message file according to the short message service identifier and the region information of the terminal;
the second generation module is configured to generate a verification code short message according to the short message file and the verification code;
the sending module is configured to send the verification code short message to the terminal;
the acquisition module is specifically configured to:
responding to the corresponding relation among the short message service identification, the area information and the short message document, wherein the short message document corresponding to the short message service identification and the area information of the terminal does not exist;
acquiring a telephone number corresponding to the terminal, and acquiring target area information corresponding to the telephone number;
and in response to the short message record corresponding to the short message service identifier and the target area information existing in the corresponding relationship, taking the short message record corresponding to the short message service identifier and the target area information as the short message record.
8. The apparatus of claim 7, wherein the obtaining module comprises:
a first obtaining unit configured to obtain a language corresponding to the region information;
the second acquisition unit is configured to acquire a short message document set corresponding to the short message service identifier;
and the third acquisition unit is configured to acquire the short message record corresponding to the language from the short message record set.
9. The apparatus according to claim 8, wherein the first obtaining unit is specifically configured to:
and inquiring the corresponding relation between the pre-stored region information and languages according to the region information to obtain the language corresponding to the region information.
10. The apparatus of claim 7, wherein the obtaining module is specifically configured to:
acquiring a language set corresponding to the short message service identifier;
acquiring a target language corresponding to the regional information from the language set;
and acquiring a corresponding short message file according to the short message service identifier and the target language.
11. The apparatus of claim 7, wherein the acquisition module is specifically configured to:
acquiring a short message file set corresponding to the region information;
and acquiring the short message document corresponding to the short message service identification from the short message document set.
12. The apparatus of claim 7, further comprising:
and the response module is configured to respond to the short message case which does not correspond to the short message service identifier and the target area information in the corresponding relation, and take the short message case only comprising verification code numbers as the short message case.
13. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
the processor is configured to execute the instructions to realize the acquisition method of the short message of the verification code according to any one of claims 1 to 6.
14. A computer-readable storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform the method for obtaining a short message of a verification code according to any one of claims 1 to 6.
CN202110553544.0A 2021-05-20 2021-05-20 Method and device for acquiring verification code short message, electronic equipment and storage medium Active CN113423076B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110553544.0A CN113423076B (en) 2021-05-20 2021-05-20 Method and device for acquiring verification code short message, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110553544.0A CN113423076B (en) 2021-05-20 2021-05-20 Method and device for acquiring verification code short message, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113423076A CN113423076A (en) 2021-09-21
CN113423076B true CN113423076B (en) 2022-10-04

Family

ID=77712625

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110553544.0A Active CN113423076B (en) 2021-05-20 2021-05-20 Method and device for acquiring verification code short message, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113423076B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108900479A (en) * 2018-06-12 2018-11-27 泰康保险集团股份有限公司 Short message verification code acquisition methods and device

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050075621A (en) * 2004-01-17 2005-07-21 백성수 Global sms(short message system)/mms(multimedia message system) internet transportation system supporting english, korean, japanese, chinese
US8756051B2 (en) * 2005-09-30 2014-06-17 Telefonaktiebolaget L M Ericsson (Publ) Method and communication network for providing announcements in preferred language while roaming
US20120165048A1 (en) * 2010-12-23 2012-06-28 Telefonaktiebolaget L M Ericsson (Publ) Messaging Center, User Equipment, and Methods for Message Translation
CN102740255B (en) * 2011-04-15 2015-08-12 中兴通讯股份有限公司 A kind of construction method of note and device
WO2013004287A1 (en) * 2011-07-04 2013-01-10 Naxos Finance Sa Information distribution system, and method thereof
CN103002415B (en) * 2011-09-15 2015-08-26 阿里巴巴集团控股有限公司 A kind of method and apparatus by short message sending identifying code
WO2018023394A1 (en) * 2016-08-02 2018-02-08 张阳 Method for automatically extracting verification code from short message, and mobile phone
CN106954194A (en) * 2017-05-25 2017-07-14 广东工业大学 A kind of sending short messages in groups method and device
CN107333249B (en) * 2017-07-04 2019-11-26 中国联合网络通信集团有限公司 Activating method, device, system and the user's background service system of prepayment service
EP3804234A1 (en) * 2018-04-23 2021-04-14 Augnet Ltd. Data communication system and method
CN110177378A (en) * 2019-05-21 2019-08-27 深圳壹账通智能科技有限公司 A kind of automated testing method and relevant device
CN112153582B (en) * 2020-09-27 2022-05-24 北京达佳互联信息技术有限公司 Verification code short message display method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108900479A (en) * 2018-06-12 2018-11-27 泰康保险集团股份有限公司 Short message verification code acquisition methods and device

Also Published As

Publication number Publication date
CN113423076A (en) 2021-09-21

Similar Documents

Publication Publication Date Title
CN110300133B (en) Cross-domain data transmission method, device, equipment and storage medium
CN110633177A (en) Method and device for acquiring equipment information, server and storage medium
CN109246078B (en) Data interaction method and server
CN113220290A (en) Method, device, equipment and storage medium for realizing business function of application
EP2770768A2 (en) Method and system for replacing an se key of a mobile terminal
CN110290161A (en) A kind of topology hiding method, node, functional entity and computer storage medium
CN109447825A (en) Method, apparatus, computer equipment and the storage medium of online declaration form processing
CN114268462A (en) Asset information changing method, server, client and storage medium
CN113507475A (en) Cross-domain access method and device
CN112015651A (en) Data processing method and device
CN113301203B (en) Method and device for updating historical information data based on address book
CN113064919B (en) Data processing method, data storage system, computer device and storage medium
CN113423076B (en) Method and device for acquiring verification code short message, electronic equipment and storage medium
CN108600255B (en) Mock service management method, device, computer equipment and storage medium
CN110830492B (en) Method and system for mutually scheduling edge applications based on CoreDNS registration service
CN116305059A (en) Information processing method and device
CN114422236B (en) Intelligent device access method and device and electronic device
CN111092765B (en) Intelligent driving method, system, electronic device and readable storage medium
CN105760119A (en) Terminal Apparatus, Information Processing System, And Output Method
US20160373592A1 (en) Information processing system, information processing device, and information processing method
US8949325B1 (en) Dynamic discovery and utilization of current context information
US10805176B2 (en) SW framework support method for open IPMI and DCMI development
CN112291281B (en) Voice broadcasting and voice broadcasting content setting method and device
CN113722589A (en) Information generation method, device, server and storage medium
CN115390858A (en) Method, device, processor and storage medium for managing mirror image file

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