CN113613182A - Short message sending method, computer equipment and readable storage medium - Google Patents

Short message sending method, computer equipment and readable storage medium Download PDF

Info

Publication number
CN113613182A
CN113613182A CN202110916444.XA CN202110916444A CN113613182A CN 113613182 A CN113613182 A CN 113613182A CN 202110916444 A CN202110916444 A CN 202110916444A CN 113613182 A CN113613182 A CN 113613182A
Authority
CN
China
Prior art keywords
short message
mobile terminal
sent
user number
virtual
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.)
Granted
Application number
CN202110916444.XA
Other languages
Chinese (zh)
Other versions
CN113613182B (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.)
Ping An Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China 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 Ping An Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN202110916444.XA priority Critical patent/CN113613182B/en
Publication of CN113613182A publication Critical patent/CN113613182A/en
Application granted granted Critical
Publication of CN113613182B publication Critical patent/CN113613182B/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/12Detection or prevention of fraud
    • H04W12/128Anti-malware arrangements, e.g. protection against SMS fraud or mobile malware
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/06Testing, supervising or monitoring using simulated traffic

Landscapes

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

Abstract

The invention relates to a short message sending method, which comprises the following steps: acquiring a short message to be sent and a user number of a user to be sent; according to the user number of a user to be sent, inquiring the operating environment information of the mobile terminal corresponding to the user number; selecting a virtual machine according to the running environment information of the mobile terminal corresponding to the user number; creating a virtual mobile terminal corresponding to the user number based on the selected virtual machine; sending the short message to be sent to the virtual mobile terminal, and acquiring a result of whether the short message to be sent is intercepted; and sending the short message to be sent to a mobile terminal of a user number corresponding to the virtual mobile terminal which does not intercept the short message to be sent. The invention simulates the operation environment of the mobile terminal, sends the short message to the simulated mobile terminal to obtain the result of whether the interception is carried out or not, and stops sending the short message under the condition of the interception of the simulated mobile terminal, thereby saving the cost of enterprises.

Description

Short message sending method, computer equipment and readable storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a short message sending method, a computer device, and a readable storage medium.
Background
With the development of the mobile internet, short messages have become a popular method for enterprises to deliver messages, for example, an application (App) at a mobile end of an enterprise is generally bound with a user number at a mobile end of a user, so that a notification of a preferential promotion activity or a transmission of a verification code is performed by means of the short messages. However, with the increase of information explosion, some manufacturers of mobile terminals have also introduced a short message interception mechanism, and such an interception mechanism may take some short messages sent by enterprises as spam messages and directly put the spam messages into a trash box, so that the enterprises cannot predict whether the sent short messages can be really transmitted to mobile end users. If the enterprise directly sends the short message without processing, unnecessary short message sending cost can be wasted, but the effect of information notification is not achieved.
Disclosure of Invention
In view of the above, there is a need for a short message sending method, which aims to simulate the operation environment of a mobile terminal of a specific client by means of virtual machine technology before sending a short message to a target client, send the short message to the simulated mobile terminal to obtain the result of whether the short message is intercepted, and stop sending the short message in case of intercepting the simulated mobile terminal, so as to save the cost of enterprises.
The embodiment of the invention provides a short message sending method, which comprises the following steps:
acquiring a short message to be sent and a user number of a user to be sent;
according to the user number of a user to be sent, inquiring the operating environment information of the mobile terminal corresponding to the user number;
selecting a virtual machine according to the running environment information of the mobile terminal corresponding to the user number;
creating a virtual mobile terminal corresponding to the user number based on the selected virtual machine;
sending the short message to be sent to the virtual mobile terminal, and acquiring a result of whether the short message to be sent is intercepted;
and sending the short message to be sent to a mobile terminal of the user number corresponding to the virtual mobile terminal which does not intercept the short message to be sent, and stopping sending the short message to be sent to the mobile terminal of the user number corresponding to the virtual mobile terminal which intercepts the short message to be sent.
Optionally, the step of selecting a virtual machine according to the operating environment information of the mobile terminal corresponding to the user number includes:
and classifying the operating environment information of the mobile terminal corresponding to the user number, and selecting the idle virtual machines with equal number according to the classified number of classes.
Optionally, the method further includes: pre-storing the operating environment information of the mobile terminal corresponding to the user number on a big data platform;
the operation environment information of the mobile terminal comprises a physical model and an operating system of the mobile terminal.
Optionally, the step of creating a virtual mobile terminal corresponding to the user number based on the selected virtual machine includes:
and loading the operating system into the selected virtual machine, and setting the short message intercepting module to be in an automatic intercepting state if the operating system is provided with the short message intercepting module.
Optionally, the method further includes: pre-storing the operating environment information of the mobile terminal corresponding to the user number on a big data platform;
the running environment information of the mobile terminal comprises a physical model of the mobile terminal, an operating system, information of a third-party short message interception tool installed on the mobile terminal and personalized setting information aiming at the third-party short message interception tool.
Optionally, the step of creating a virtual mobile terminal corresponding to the user number based on the selected virtual machine includes:
loading the operating system into the selected virtual machine, and setting the short message interception module to be in an automatic interception state if the operating system is provided with the short message interception module;
loading a third-party short message interception tool into the selected virtual machine according to the information of the third-party short message interception tool installed on the mobile terminal; and
and setting the interception function of the third-party short message interception tool according to the personalized setting information aiming at the third-party short message interception tool.
Optionally, the sending the short message to be sent to the virtual mobile terminal, and obtaining a result of whether the short message to be sent is intercepted, includes:
detecting a processing result of the virtual mobile terminal for receiving the short message to be sent, if the virtual mobile terminal stores the short message to be sent in a short message dustbin, acquiring a result that the short message to be sent is intercepted, and if the virtual mobile terminal does not store the short message to be sent in the short message dustbin, acquiring a result that the short message to be sent is not intercepted.
The embodiment of the present invention further provides a computer device, where the computer device includes a memory and a processor connected to the memory, a short message sending program operable on the processor is stored in the memory, and when executed by the processor, the short message sending program implements the following steps:
acquiring a short message to be sent and a user number of a user to be sent;
according to the user number of a user to be sent, inquiring the operating environment information of the mobile terminal corresponding to the user number;
selecting a virtual machine according to the running environment information of the mobile terminal corresponding to the user number;
creating a virtual mobile terminal corresponding to the user number based on the selected virtual machine;
sending the short message to be sent to the virtual mobile terminal, and acquiring a result of whether the short message to be sent is intercepted;
and sending the short message to be sent to a mobile terminal of the user number corresponding to the virtual mobile terminal which does not intercept the short message to be sent, and stopping sending the short message to be sent to the mobile terminal of the user number corresponding to the virtual mobile terminal which intercepts the short message to be sent.
Optionally, the operation environment information of the mobile terminal includes: the running environment information of the mobile terminal comprises a physical model of the mobile terminal, an operating system, information of a third-party short message interception tool installed on the mobile terminal and personalized setting information aiming at the third-party short message interception tool;
the memory comprises a first storage unit for storing the operating system and a second storage unit for storing the third-party short message interception tool; the memory is further configured to update the stored data according to a preset update mechanism.
An embodiment of the present invention further provides a computer-readable storage medium, where a short message sending program is stored on the computer-readable storage medium, and the short message sending program can be executed by one or more processors to implement the short message sending method as described above.
Compared with the prior art, the short message sending method provided by the invention has the advantages that before the short message to be sent is directly sent, the short message to be sent and the user number of the user to be sent are obtained, the operating environment information of the mobile terminal corresponding to the user number is obtained by inquiring according to the user number of the user to be sent, the virtual machine is selected according to the operating environment information, the virtual mobile terminal corresponding to the user number is created, the short message to be sent is sent to the created virtual mobile terminal to obtain the result of whether the short message to be sent is intercepted, and finally the short message to be sent is stopped being sent to the mobile terminal corresponding to the user number of the virtual mobile terminal intercepting the short message to be sent according to the result, so that the result of sending the short message to a specific user can be predicted, and the short message sending cost of an enterprise can be saved.
Drawings
FIG. 1 is a schematic diagram of an application environment according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a hardware architecture of a computer device according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a method for sending a short message according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the description relating to "first", "second", etc. in the present invention is for descriptive purposes only and is 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 addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
Fig. 1 is a schematic diagram of an alternative application environment according to an embodiment of the present invention.
In the present embodiment, the present invention can be applied to an application environment including, but not limited to, a computer device 1, a user terminal 2, and a network 3.
The computer device 1 may be a computer, a server or other electronic equipment with data processing capability. In the embodiment of the present invention, the electronic device preferably exemplifies the application server 1. In this embodiment, the server 1 may be a general server in an enterprise, or may be a server in a certain department managed by the enterprise. It may be a rack server, a blade server, a tower server, or a rack server. The server 1 may be an independent server or a server cluster composed of a plurality of servers. The application server 1 in the embodiment of the present invention is preferably a short message sending platform, and can send a short message to the user terminal 2.
The user terminal 2 in this embodiment may be a smart phone, a tablet computer, a personal computer, a portable computer, or other electronic devices with an arithmetic function, and in this application scenario, the mobile terminal 2 is preferred. The mobile terminal 2 may be any physical model produced by existing mobile terminal manufacturers. In general, the mobile terminal 2 is also internally installed with a communication card (e.g., a SIM card) assigned by a mobile terminal carrier in order to implement mobile communication. The mobile operator assigns a unique corresponding subscriber number to the communication card. The mobile terminal 2 can realize communication modes such as voice call, short message and the like based on the communication card. The short message may include, but is not limited to, a text message, a picture message, and may also include contents such as a voice signal, a web page link, and the like.
The network 3 may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, Bluetooth (Bluetooth), Wi-Fi, or the like.
The application server 1 is communicatively connected to the mobile terminal 2 via a network 3. The mobile terminal 2 receives the short message sent by the application server 1.
In the application scenario of the present application, the mobile terminal 2 receives the short message sent by the application server 1 under at least two scenarios. One scenario is that the application server 1 sends a short message related to the enterprise preferential promotion activity to the mobile terminal 2, and the application server 1 can receive the edited short message and send the short message to the mobile terminal 2 of the user through the network 3. The users can be all users or target users meeting certain conditions, and the sending of the short message is generally mass sending. The second scenario is a scenario in which the mobile terminal 2 asks for the verification code from the application server 1, a mobile application (App) issued by an enterprise is installed on the mobile terminal 2, when a user realizes a specific function (for example, but not limited to login) based on the mobile application of the mobile terminal 2, the user sends a request for asking for the verification code to the application server 1, and the application server 1 calculates the verification code valid in a specific time period of the mobile terminal 2 based on a certain operation rule and sends the verification code to the mobile terminal 2 in the form of a short message.
In the application scenario of the present application, the application server 1 is in communication connection with the mobile terminal 2 through the network 3, and controls and processes the process of sending the short message, specifically including:
acquiring a short message to be sent and a user number of a user to be sent; specifically, the application server 1 obtains a short message to be sent and a user number of a user to be sent from a database connected to the application server 1, the application server 1 may be used as a short message sending platform of an enterprise, the database is installed and deployed in the application server 1, or the database may be installed and deployed in another server connected to the application server 1, and is not limited in the application;
inquiring the operating environment information of the mobile terminal corresponding to the user number according to the user number of the user to be sent; selecting a virtual machine according to the running environment information of the mobile terminal corresponding to the user number; specifically, the virtual machine may refer to a real physical machine, or may refer to a computer system having a hardware system function simulated by software. Typically, virtual machines are typically emulated in software. The virtual machines may be deployed in the application server 1, and the application server allocates corresponding hard disks and memory capacities to the virtual machines, and each virtual machine has an independent hard disk and system, and can operate as an entity machine. The virtual machine may also be deployed in a computer device such as another server connected to the application server 1, and the application server 1 may communicate with the other server, so that the virtual machine may be selected and its operating state may be monitored. The specific deployment form of the virtual machine is not limited in the present application.
Creating a virtual mobile terminal corresponding to the user number based on the selected virtual machine;
sending the short message to be sent to the virtual mobile terminal, and acquiring a result of whether the short message to be sent is intercepted;
and sending the short message to be sent to a mobile terminal of the user number corresponding to the virtual mobile terminal which does not intercept the short message to be sent, and stopping sending the short message to be sent to the mobile terminal of the user number corresponding to the virtual mobile terminal which intercepts the short message to be sent.
Fig. 2 is a schematic diagram of an alternative hardware architecture of the computer device 1 shown in fig. 1. In this embodiment, the computer device 1 may include, but is not limited to, a memory 11, a processor 12, and a network interface 13, which may be communicatively connected to each other through a system bus. It is noted that fig. 2 only shows the electronic device 1 with components 11-13, but it is to be understood that not all shown components are required to be implemented, and that more or less components may be implemented instead.
The memory 11 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the storage 11 may be an internal storage unit of the application server 1, such as a hard disk or a memory of the computer device 1. In other embodiments, the memory 11 may also be an external storage device of the computer device 1, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like provided on the computer device 1. Of course, the memory 11 may also comprise both an internal memory unit of the computer device 1 and an external memory device thereof. In this embodiment, the application server 11 is generally used to store an operating system installed in the computer device 1 and various application software, such as a program code of the short message sending processing system 100. Further, the memory 11 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 12 is generally operative to control overall operation of the computer device 1, such as to perform control and processing related to data interaction or communication with the mobile terminal 2. In this embodiment, the processor 12 is configured to execute the program codes stored in the memory 11 or process data, such as the executed short message sending processing system 100.
The network interface 13 may comprise a wireless network interface or a wired network interface, and the network interface 13 is generally used for establishing communication connection between the computer device 1 and other electronic devices. In this embodiment, the network interface 13 is mainly used to connect the computer device 1 and the mobile terminal 2 through the network 3, and establish a data transmission channel and a communication connection between the computer device 1 and the mobile terminal 2.
In this embodiment, the short message sending program 100 may be divided into one or more modules, and the one or more modules are stored in the memory 11 and executed by one or more processors (in this embodiment, the processor 12) to complete the present invention. The functional modules that can be divided by the short message sending program 100 refer to a series of computer program instruction segments that can perform specific functions.
The processor 12 in this embodiment executes the short message sending processing system 100 in the memory 11, and can implement:
step 1, obtaining a short message to be sent and a user number of a user to be sent.
There are two scenarios for acquiring the short message to be sent and the user number of the user to be sent in this step: one is to send activity notifications to the client in bulk. One is that the user requests a short message verification code to realize a specific function (e.g., login function) in the scenario of operating the enterprise application App.
In the application scenario of the group sending activity notification, the content of the short message to be sent acquired in the step can be edited in advance, or can be edited on a short message sending platform in real time. The content of the short message to be sent can include text, pictures, active links and other content. And under the application scene of obtaining the short message identifying code, the short message platform generates a plurality of effective digit identifying codes in a specific time period through operation processing according to the received identifying code request of the user so as to send the short message to the terminal corresponding to the user number.
The user number refers to a unique corresponding ID which is distributed to an account opening user by a short message operator (generally, a mobile communication operator at the same time).
And 2, inquiring the operating environment information of the mobile terminal corresponding to the user number according to the user number of the user to be sent.
In this embodiment, the operating environment information at least includes a physical model of the mobile terminal and an operating system of the mobile terminal. The physical model information refers to a specific new number of the mobile terminal produced by different mobile terminal manufacturers, and the mobile terminal operating system comprises an operating system running on the mobile terminal and version information thereof. Different versions of operating systems may not be identical in the short message interception mechanism. For example, some versions of operating systems may not intercept any short message, while some versions of operating systems intercept short messages that meet certain characteristics as spam messages by designing program codes.
In the step, the operation environment information of the mobile terminal corresponding to the user number can be inquired from the big data platform according to the user number. The corresponding relation of the user number, the mobile terminal model and the mobile terminal operating system is stored in the big data platform in advance.
In this embodiment, the big data platform may store the operating environment information of the user mobile terminal by using a Redis memory database, which may accelerate reading and processing of data. And the Redis memory database stores data by KEY-VALUE pairs of KEY-VALUE. In this embodiment, the user number is used as KEY, so as to facilitate reading the corresponding VALUE. While VALUE adopts a data structure of Hash type, i.e. the VALUE is a map key VALUE pair consisting of field and VALUE associated with it, and both field and VALUE are of string type, where the filed1 can be used to store the physical model of the user's mobile terminal, and the filed2 stores the corresponding operating system model. In this embodiment, a Hash type data structure is adopted, so that more precious KEY in a Redis memory database can be saved, the number of the KEY is reduced, and meanwhile, the query efficiency of user data is improved, so that the physical memory space created for the KEY is reduced. To illustrate by a specific example, the mobile terminal (mobile phone) number of a certain user is 12345678901, the mobile phone model is K20Pro, the operating system is MIU10.4, the mobile phone number 12345678901 is stored as a KEY VALUE, the "K20 Pro" and the "MIU 10.4" form a map KEY VALUE pair to be stored as a VALUE, and the operating environment information of the mobile phone can be queried through the mobile phone number. The operating system MIU10.4 has its own short message interception tool, which has previously defined short messages meeting certain characteristics as spam messages, and upon receiving such short messages, the mobile terminal will automatically intercept them. For example, the short message interception tool can scan the content of the short message, and if the content of the short message contains keywords such as 'unsubscribe' and the like, the short message can be classified into spam short messages so as to be intercepted.
The operating environment information in this embodiment may be obtained when a user installs an application (App) of a mobile terminal of an enterprise, and may be updated periodically.
In another optional embodiment, the operating environment information includes a physical model of the mobile terminal, an operating system of the mobile terminal, whether the mobile terminal is provided with a third-party short message interception tool, and personalized setting information of the user on the third-party short message interception tool.
And 3, selecting the virtual machine according to the running environment information of the mobile terminal corresponding to the user number.
In this embodiment, the information is classified according to the operating environment information of the mobile terminal corresponding to the user number, for example, in an embodiment, the operating environment information includes a physical model of the mobile terminal and an operating system of the mobile terminal, and information having the same physical model and the same operating system of the mobile terminal is classified into the same type of information.
And according to the number of the divided information categories, selecting the same number of virtual machines from the idle virtual machines to create the virtual mobile phone. Therefore, the information classification is carried out on the running environment information of the mobile terminal, the virtual terminal is created, the user numbers with the same physical machine type and the same operating system correspond to one virtual machine, and the user numbers and the selected virtual machines are in a many-to-one corresponding relation.
And 4, creating a virtual mobile terminal corresponding to the user number based on the selected virtual machine.
In this embodiment, the process of creating the virtual mobile terminal is a process of loading the operating system of the mobile terminal corresponding to the user number into the virtual machine. If the operating system of the loaded mobile terminal is provided with a short message interception module (namely, a program code related to short message interception, which is implanted by a manufacturer in advance), the interception module is loaded into the virtual machine environment together. And the short message interception function of the short message interception module is set to be started by default.
In this embodiment, specifically, the virtual terminal is created by a technology of loading an operating system simulator, and the specific process includes: selecting any 1 virtual machine from the idle virtual machines, loading the mobile phone operating system simulator into the selected virtual machine, and reading an operating system file through the mobile phone operating system simulator to complete the creation of a virtual terminal (mobile phone). For example, in the Redis memory database in the foregoing embodiment, if the model of the mobile phone is K20Pro and the operating system is MIU10.4 is queried based on the user number "12345678901", an Android simulator (Android Emulator) is installed in the selected virtual machine, and then a Rom file corresponding to the operating system MIU10.4 is read through the Android simulator, so as to create a virtual mobile phone, where the virtual mobile phone has the same operating environment as an actual physical mobile phone of the user.
In an optional embodiment of the present invention, when the operating environment information includes not only information of a physical machine type and an operating system of the mobile terminal, but also information of a third-party short message interception tool and setting information of the third-party short message interception tool by the user, during loading, the operating system and the third-party short message interception tool are loaded into the virtual machine, and an interception function of the third-party short message interception tool is initialized according to personalized settings of the user.
And 5, sending the short message to be sent to the virtual mobile terminal, and acquiring a result of whether the short message to be sent is intercepted.
In this embodiment, the created virtual mobile terminal is obtained by loading the mobile terminal operating system into the virtual machine, and if the loaded mobile terminal operating system is not provided with a short message interception module, a short message sent to the virtual mobile terminal operating system will not be intercepted. If the loaded operating system of the mobile terminal is provided with a short message interception module, generally, a short message interception mechanism of the module divides short messages into normal short messages, promotion short messages and spam short messages, and if the sent short messages to be sent accord with the characteristics of the spam short messages, the short messages will be intercepted, and if the sent short messages to be sent do not accord with the characteristics of the spam short messages, the short messages will not be intercepted.
In the process of creating the virtual terminal, the reporting program may be loaded into the virtual machine together in advance, so that the result data can be obtained when the virtual terminal intercepts the short message or does not intercept the short message.
In this embodiment, a processing result of the virtual mobile terminal receiving the short message to be sent is detected, if the virtual mobile terminal stores the short message to be sent in a short message trash box, a result that the short message to be sent is intercepted is obtained, and if the virtual mobile terminal does not store the short message to be sent in the short message trash box, a result that the short message to be sent is not intercepted is obtained.
In this embodiment, the reporting program may be installed in the created virtual terminal in the form of an APP application. In the installation process, the APP application program obtains the short message reading authorization of the virtual terminal. For example, in the virtual terminal, the received short message is stored in the directory content: and/sms, searching in the directory through a reporting program, if the short message is read, the short message is not intercepted, and if the short message is not read, the short message is intercepted. The APP application program of the reporting program can report the interception result through the http interface, and the background server stores the result into the Redis database, so that the result in the Redis can be directly read next time for the same short message content of the same machine type without verification in the analog machine, the number of times of verifying the short message content can be reduced, and the efficiency is improved.
And 6, sending the short message to be sent to a mobile terminal of the user number corresponding to the virtual mobile terminal which does not intercept the short message to be sent, and stopping sending the short message to be sent to the mobile terminal of the user number corresponding to the virtual mobile terminal which intercepts the short message to be sent.
Fig. 3 is a schematic flow chart of an embodiment of a short message sending method according to the present invention. In this embodiment, the execution order of the steps in the flowchart shown in fig. 3 may be changed and some steps may be omitted according to different requirements.
S1, acquiring a short message to be sent and a user number of a user to be sent;
in this embodiment, the method may be applied to an application server, and the application server may specifically be a short message sending platform.
There are two scenarios for acquiring the short message to be sent and the user number of the user to be sent in this step: one is to send activity notifications to the client in bulk. One is that the user requests a short message verification code to realize a specific function (e.g., login function) in the scenario of operating the enterprise application App.
In the application scenario of the group sending activity notification, the content of the short message to be sent acquired in the step can be edited in advance, or can be edited on a short message sending platform in real time. The content of the short message to be sent can include text, pictures, active links and other content. And under the application scene of obtaining the short message identifying code, the short message platform generates a plurality of effective digit identifying codes in a specific time period through operation processing according to the received identifying code request of the user so as to send the short message to the terminal corresponding to the user number.
The user number refers to a unique corresponding ID which is distributed to an account opening user by a short message operator (generally, a mobile communication operator at the same time).
S2, inquiring the operating environment information of the mobile terminal corresponding to the user number according to the user number of the user to be sent;
in this embodiment, the operating environment information at least includes a physical model of the mobile terminal and an operating system of the mobile terminal. The physical model information refers to a specific new number of the mobile terminal produced by different mobile terminal manufacturers, and the mobile terminal operating system comprises an operating system running on the mobile terminal and version information thereof. Different versions of operating systems may not be identical in the short message interception mechanism. For example, some versions of operating systems may not intercept any short message, while some versions of operating systems intercept short messages that meet certain characteristics as spam messages by designing program codes.
In the step, the operation environment information of the mobile terminal corresponding to the user number can be inquired from the big data platform according to the user number. The corresponding relation of the user number, the mobile terminal model and the mobile terminal operating system is stored in the big data platform in advance.
In this embodiment, the big data platform may store the operating environment information of the user mobile terminal by using a Redis memory database, which may accelerate reading and processing of data. And the Redis memory database stores data by KEY-VALUE pairs of KEY-VALUE. In this embodiment, the user number is used as KEY, so as to facilitate reading the corresponding VALUE. While VALUE adopts a data structure of Hash type, i.e. the VALUE is a map key VALUE pair consisting of field and VALUE associated with it, and both field and VALUE are of string type, where the filed1 can be used to store the physical model of the user's mobile terminal, and the filed2 stores the corresponding operating system model. In this embodiment, a Hash type data structure is adopted, so that more precious KEY in a Redis memory database can be saved, the number of the KEY is reduced, and meanwhile, the query efficiency of user data is improved, so that the physical memory space created for the KEY is reduced. To illustrate by a specific example, the mobile terminal (mobile phone) number of a certain user is 12345678901, the mobile phone model is K20Pro, the operating system is MIU10.4, the mobile phone number 12345678901 is stored as a KEY VALUE, the "K20 Pro" and the "MIU 10.4" form a map KEY VALUE pair to be stored as a VALUE, and the operating environment information of the mobile phone can be queried through the mobile phone number. The operating system MIU10.4 has its own short message interception tool, which has previously defined short messages meeting certain characteristics as spam messages, and upon receiving such short messages, the mobile terminal will automatically intercept them. For example, the short message interception tool can scan the content of the short message, and if the content of the short message contains keywords such as 'unsubscribe' and the like, the short message can be classified into spam short messages so as to be intercepted.
The operating environment information in this embodiment may be obtained when a user installs an application (App) of a mobile terminal of an enterprise, and may be updated periodically.
In another optional embodiment, the operating environment information includes a physical model of the mobile terminal, an operating system of the mobile terminal, whether the mobile terminal is provided with a third-party short message interception tool, and personalized setting information of the user on the third-party short message interception tool.
S3, selecting a virtual machine according to the running environment information of the mobile terminal corresponding to the user number;
in this embodiment, the information is classified according to the operating environment information of the mobile terminal corresponding to the user number, for example, in an embodiment, the operating environment information includes a physical model of the mobile terminal and an operating system of the mobile terminal, and information having the same physical model and the same operating system of the mobile terminal is classified into the same type of information.
And according to the number of the divided information categories, selecting the same number of virtual machines from the idle virtual machines to create the virtual mobile phone. Therefore, the information classification is carried out on the running environment information of the mobile terminal, the virtual terminal is created, the user numbers with the same physical machine type and the same operating system correspond to one virtual machine, and the user numbers and the selected virtual machines are in a many-to-one corresponding relation.
And S4, creating a virtual mobile terminal corresponding to the user number based on the selected virtual machine.
In this embodiment, the process of creating the virtual mobile terminal is a process of loading the operating system of the mobile terminal corresponding to the user number into the virtual machine. If the operating system of the loaded mobile terminal is provided with a short message interception module (namely, a program code related to short message interception, which is implanted by a manufacturer in advance), the interception module is loaded into the virtual machine environment together. And the short message interception function of the short message interception module is set to be started by default.
In this embodiment, specifically, the virtual terminal is created by using a technology of an operating system simulator, and the specific process includes: selecting any 1 virtual machine from the idle virtual machines, loading the mobile phone operating system simulator into the selected virtual machine, and reading an operating system file through the mobile phone operating system simulator to complete the creation of a virtual terminal (mobile phone). For example, in the Redis memory database in the foregoing embodiment, if the model of the mobile phone is K20Pro and the operating system is MIU10.4 is queried based on the user number "12345678901", an Android simulator (Android Emulator) is installed in the selected virtual machine, and then a Rom file corresponding to the operating system MIU10.4 is read through the Android simulator, so as to create a virtual mobile phone, where the virtual mobile phone has the same operating environment as an actual physical mobile phone of the user.
In an optional embodiment of the present invention, when the operating environment information includes not only information of a physical machine type and an operating system of the mobile terminal, but also information of a third-party short message interception tool and setting information of the third-party short message interception tool by the user, during loading, the operating system and the third-party short message interception tool are loaded into the virtual machine, and an interception function of the third-party short message interception tool is initialized according to personalized settings of the user.
S5, sending the short message to be sent to a virtual mobile terminal, and acquiring result data of whether the short message to be sent is intercepted.
In this embodiment, the created virtual mobile terminal is obtained by loading the mobile terminal operating system into the virtual machine, and if the loaded mobile terminal operating system is not provided with a short message interception module, a short message sent to the virtual mobile terminal operating system will not be intercepted. If the loaded operating system of the mobile terminal is provided with a short message interception module, generally, a short message interception mechanism of the module divides short messages into normal short messages, promotion short messages and spam short messages, and if the sent short messages to be sent accord with the characteristics of the spam short messages, the short messages will be intercepted, and if the sent short messages to be sent do not accord with the characteristics of the spam short messages, the short messages will not be intercepted.
In the process of creating the virtual terminal, the reporting program may be loaded into the virtual machine together in advance, so that the result data can be obtained when the virtual terminal intercepts the short message or does not intercept the short message.
In this embodiment, a processing result of the virtual mobile terminal receiving the short message to be sent is detected, if the virtual mobile terminal stores the short message to be sent in a short message trash box, a result that the short message to be sent is intercepted is obtained, and if the virtual mobile terminal does not store the short message to be sent in the short message trash box, a result that the short message to be sent is not intercepted is obtained.
In this embodiment, the reporting program may be installed in the created virtual terminal in the form of an APP application. In the installation process, the APP application program obtains the short message reading authorization of the virtual terminal. For example, in the virtual terminal, the received short message is stored in the directory content: and/sms, searching in the directory through a reporting program, if the short message is read, the short message is not intercepted, and if the short message is not read, the short message is intercepted. The APP application program of the reporting program can report the interception result through the http interface, and the background server stores the result into the Redis database, so that the result in the Redis can be directly read next time for the same short message content of the same machine type without verification in the analog machine, the number of times of verifying the short message content can be reduced, and the efficiency is improved.
S6, sending the short message to be sent to the user number corresponding to the virtual terminal which does not intercept the short message to be sent in the result data.
The embodiment sends the short message to the user to which the virtual terminal is not intercepted, and the user intercepting the result does not send the short message any more, so as to save the cost.
For the users who do not send the short message, other mechanisms can be adopted for activity notification. For example, mail, in App notifications, etc.
In an embodiment of the present invention, the short message sending program stored in the memory 11 of the computer device 1 is a combination of a plurality of computer programs, and when running in the processor 10, the following can be implemented:
acquiring a short message to be sent and a user number of a user to be sent;
inquiring the operating environment information of the mobile terminal corresponding to the user number according to the user number of the user to be sent;
selecting a virtual machine according to the running environment information of the mobile terminal corresponding to the user number;
creating a virtual mobile terminal corresponding to the user number based on the selected virtual machine;
sending the short message to be sent to the virtual mobile terminal, and acquiring a result of whether the short message to be sent is intercepted;
and sending the short message to be sent to a mobile terminal of the user number corresponding to the virtual mobile terminal which does not intercept the short message to be sent, and stopping sending the short message to be sent to the mobile terminal of the user number corresponding to the virtual mobile terminal which intercepts the short message to be sent.
Further, the modules/units integrated by the application server 1, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer readable storage medium, which may be volatile or non-volatile. The computer-readable storage medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM).
Compared with the prior art, the short message sending method, the application server and the computer readable storage medium provided by the embodiment of the invention obtain the short message to be sent and the user number of the user to be sent before directly sending the short message to be sent, query according to the user number of the user to be sent to obtain the operating environment information of the mobile terminal corresponding to the user number, select the virtual machine according to the operating environment information, create the virtual mobile terminal corresponding to the user number, send the short message to be sent to the created virtual mobile terminal to obtain the result of whether the short message is intercepted, and finally stop sending the short message to be sent to the mobile terminal of the user number corresponding to the virtual mobile terminal intercepting the short message to be sent according to the result, so that the result of sending the short message to a specific user can be predicted, and the short message sending cost of an enterprise can be saved.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. A short message sending method is characterized by comprising the following steps:
acquiring a short message to be sent and a user number of a user to be sent;
inquiring the operating environment information of the mobile terminal corresponding to the user number according to the user number of the user to be sent;
selecting a virtual machine according to the running environment information of the mobile terminal corresponding to the user number;
creating a virtual mobile terminal corresponding to the user number based on the selected virtual machine;
sending the short message to be sent to the virtual mobile terminal, and acquiring a result of whether the short message to be sent is intercepted;
and sending the short message to be sent to a mobile terminal of a user number corresponding to the virtual mobile terminal which does not intercept the short message to be sent.
2. The short message sending method according to claim 1, wherein the step of selecting the virtual machine according to the operating environment information of the mobile terminal corresponding to the subscriber number comprises:
and classifying the operating environment information of the mobile terminal corresponding to the user number, and selecting the idle virtual machines with equal number according to the classified number of classes.
3. The short message sending method as claimed in claim 1 or 2, wherein the method further comprises: storing the running environment information of the mobile terminal corresponding to the user number in advance;
the operation environment information of the mobile terminal comprises a physical model and an operating system of the mobile terminal.
4. The short message sending method as claimed in claim 3, wherein the step of creating the virtual mobile terminal corresponding to the subscriber number based on the selected virtual machine includes:
and loading the operating system into the selected virtual machine, and setting the short message intercepting module in the operating system to be in an automatic intercepting state if the operating system is provided with the short message intercepting module.
5. The short message sending method as claimed in claim 1 or 2, wherein the method further comprises: storing the running environment information of the mobile terminal corresponding to the user number in advance;
the running environment information of the mobile terminal comprises a physical model of the mobile terminal, an operating system, information of a third-party short message interception tool installed on the mobile terminal and personalized setting information aiming at the third-party short message interception tool.
6. The short message sending method as claimed in claim 5, wherein the step of creating the virtual mobile terminal corresponding to the subscriber number based on the selected virtual machine includes:
loading the operating system into the selected virtual machine, and setting the short message interception module in the operating system to be in an automatic interception state if the operating system is provided with the short message interception module;
loading a third-party short message interception tool into the selected virtual machine according to the information of the third-party short message interception tool installed on the mobile terminal; and
and setting the interception function of the third-party short message interception tool according to the personalized setting information aiming at the third-party short message interception tool.
7. The method for sending short messages according to claim 1, wherein sending the short message to be sent to the virtual mobile terminal and obtaining a result of whether the short message to be sent is intercepted comprises:
detecting a processing result of the virtual mobile terminal for receiving the short message to be sent, if the virtual mobile terminal stores the short message to be sent in a short message dustbin, acquiring a result that the short message to be sent is intercepted, and if the virtual mobile terminal does not store the short message to be sent in the short message dustbin, acquiring a result that the short message to be sent is not intercepted.
8. A computer device, comprising a memory and a processor connected to the memory, wherein the memory stores a short message sending program operable on the processor, and the short message sending program, when executed by the processor, implements the following steps:
acquiring a short message to be sent and a user number of a user to be sent;
according to the user number of a user to be sent, inquiring the operating environment information of the mobile terminal corresponding to the user number;
selecting a virtual machine according to the running environment information of the mobile terminal corresponding to the user number;
creating a virtual mobile terminal corresponding to the user number based on the selected virtual machine;
sending the short message to be sent to the virtual mobile terminal, and acquiring a result of whether the short message to be sent is intercepted;
and sending the short message to be sent to a mobile terminal of a user number corresponding to the virtual mobile terminal which does not intercept the short message to be sent.
9. The computer device of claim 8, wherein the operating environment information of the mobile terminal comprises: the running environment information of the mobile terminal comprises a physical model of the mobile terminal, an operating system, information of a third-party short message interception tool installed on the mobile terminal and personalized setting information aiming at the third-party short message interception tool;
the memory comprises a first storage unit for storing the operating system and a second storage unit for storing the third-party short message interception tool; the memory is further configured to update the stored data according to a preset update mechanism.
10. A computer-readable storage medium having a short message sending program stored thereon, wherein the short message sending program is executable by one or more processors to implement the short message sending method according to any one of claims 1 to 7.
CN202110916444.XA 2021-08-10 2021-08-10 Short message sending method, computer equipment and readable storage medium Active CN113613182B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110916444.XA CN113613182B (en) 2021-08-10 2021-08-10 Short message sending method, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110916444.XA CN113613182B (en) 2021-08-10 2021-08-10 Short message sending method, computer equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN113613182A true CN113613182A (en) 2021-11-05
CN113613182B CN113613182B (en) 2023-03-21

Family

ID=78308059

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110916444.XA Active CN113613182B (en) 2021-08-10 2021-08-10 Short message sending method, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113613182B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060206658A1 (en) * 2005-03-08 2006-09-14 Microsoft Corporation Method and system for a guest physical address virtualization in a virtual machine environment
US20060212529A1 (en) * 2005-03-16 2006-09-21 Ho-Sung Choi Short message management system using a VM application and a mobile communication terminal
CN101682353A (en) * 2007-05-30 2010-03-24 T-Plex有限公司 Method of receiving confirmation of a short message service message and terminal apparatus for performing the same
CN104376263A (en) * 2014-12-09 2015-02-25 北京奇虎科技有限公司 Application behavior intercepting method and application behavior intercepting device
CN104503915A (en) * 2014-12-31 2015-04-08 北京奇虎科技有限公司 System and method for evaluating spam short message blocking tool
CN105389241A (en) * 2015-12-24 2016-03-09 北京奇虎科技有限公司 Method and system for testing performance of anti-harassment tool of mobile terminal
WO2017036336A1 (en) * 2015-09-01 2017-03-09 阿里巴巴集团控股有限公司 Cloud platform-based service data processing method and device
CN106845882A (en) * 2015-12-07 2017-06-13 中国电信股份有限公司 Method, server and system for bulk SMS
CN107302449A (en) * 2017-06-13 2017-10-27 中国工商银行股份有限公司 Intelligent monitoring statistics and alarm processing system and method
CN107644161A (en) * 2016-07-22 2018-01-30 阿里巴巴集团控股有限公司 Safety detecting method, device and the equipment of sample
CN109167782A (en) * 2018-08-31 2019-01-08 国鼎网络空间安全技术有限公司 Private data guard method and system based on intelligent mobile terminal
CN110149599A (en) * 2019-03-28 2019-08-20 华为技术有限公司 A kind of short message means of defence and terminal device
CN110955897A (en) * 2019-11-25 2020-04-03 中国人寿保险股份有限公司 Software research and development safety control visualization method and system based on big data
CN112954622A (en) * 2021-02-05 2021-06-11 青岛海信移动通信技术股份有限公司 Mobile terminal and short message sending method thereof

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060206658A1 (en) * 2005-03-08 2006-09-14 Microsoft Corporation Method and system for a guest physical address virtualization in a virtual machine environment
US20060212529A1 (en) * 2005-03-16 2006-09-21 Ho-Sung Choi Short message management system using a VM application and a mobile communication terminal
CN101682353A (en) * 2007-05-30 2010-03-24 T-Plex有限公司 Method of receiving confirmation of a short message service message and terminal apparatus for performing the same
CN104376263A (en) * 2014-12-09 2015-02-25 北京奇虎科技有限公司 Application behavior intercepting method and application behavior intercepting device
CN104503915A (en) * 2014-12-31 2015-04-08 北京奇虎科技有限公司 System and method for evaluating spam short message blocking tool
WO2017036336A1 (en) * 2015-09-01 2017-03-09 阿里巴巴集团控股有限公司 Cloud platform-based service data processing method and device
CN106845882A (en) * 2015-12-07 2017-06-13 中国电信股份有限公司 Method, server and system for bulk SMS
CN105389241A (en) * 2015-12-24 2016-03-09 北京奇虎科技有限公司 Method and system for testing performance of anti-harassment tool of mobile terminal
CN107644161A (en) * 2016-07-22 2018-01-30 阿里巴巴集团控股有限公司 Safety detecting method, device and the equipment of sample
CN107302449A (en) * 2017-06-13 2017-10-27 中国工商银行股份有限公司 Intelligent monitoring statistics and alarm processing system and method
CN109167782A (en) * 2018-08-31 2019-01-08 国鼎网络空间安全技术有限公司 Private data guard method and system based on intelligent mobile terminal
CN110149599A (en) * 2019-03-28 2019-08-20 华为技术有限公司 A kind of short message means of defence and terminal device
CN110955897A (en) * 2019-11-25 2020-04-03 中国人寿保险股份有限公司 Software research and development safety control visualization method and system based on big data
CN112954622A (en) * 2021-02-05 2021-06-11 青岛海信移动通信技术股份有限公司 Mobile terminal and short message sending method thereof

Also Published As

Publication number Publication date
CN113613182B (en) 2023-03-21

Similar Documents

Publication Publication Date Title
US11061812B2 (en) Using containers for update deployment
CN101571809A (en) Implementation method of plug-in registration and device thereof
CN109542468B (en) Application program release method and device and electronic equipment
CN102970342A (en) Automatic update method of embedded terminal based on over the air (OTA) technology
CN105389263A (en) Method, system and equipment for monitoring application software permissions
CN106339273A (en) Application program restoration method, terminal and server
WO2021115177A1 (en) Application installation method and apparatus, terminal device, server and storage medium
CN112131224A (en) Application installation package processing and installation source determining method, device and traceability system
CN104036194A (en) Vulnerability detection method and device for revealing private data in application program
CN113434230A (en) Jump control method and device for H5 page, storage medium and electronic device
CN113448862A (en) Software version testing method and device and computer equipment
CN113626882A (en) Method, device and medium for generating equipment identifier
CN103365672B (en) A kind of method and system processing the descriptor of application program
CN113656107A (en) Mobile application loading method and device and electronic equipment
CN113613182B (en) Short message sending method, computer equipment and readable storage medium
CN111052072B (en) Installation-free application program downloading method and device
CN116450165A (en) Method, system, terminal and storage medium for quickly building environment and deploying program
CN104079540A (en) Method, device and system of updating application as well as user equipment
CN109598531B (en) Monitoring code generation method and verification method
CN115617555A (en) Information processing system and method
CN114860203A (en) Project creation method, project creation device, server and storage medium
CN114090083B (en) Visual component configuration method, device, equipment and storage medium
CN112416750A (en) Application program boundary testing method and system
CN114338652B (en) Distribution method and downloading method of installation package and related products
CN113852919B (en) Method and device for generating early warning message, storage medium and electronic device

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