CN110830360A - Multi-application program intercommunication method, electronic device and computer readable storage medium - Google Patents

Multi-application program intercommunication method, electronic device and computer readable storage medium Download PDF

Info

Publication number
CN110830360A
CN110830360A CN201910972275.4A CN201910972275A CN110830360A CN 110830360 A CN110830360 A CN 110830360A CN 201910972275 A CN201910972275 A CN 201910972275A CN 110830360 A CN110830360 A CN 110830360A
Authority
CN
China
Prior art keywords
user
application program
application
identification code
friend
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
CN201910972275.4A
Other languages
Chinese (zh)
Other versions
CN110830360B (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 CN201910972275.4A priority Critical patent/CN110830360B/en
Publication of CN110830360A publication Critical patent/CN110830360A/en
Application granted granted Critical
Publication of CN110830360B publication Critical patent/CN110830360B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to the technical field of data processing, and discloses a multi-application program intercommunication method, which comprises the following steps: the method comprises the steps of establishing a mapping relation table of users and application program identification codes, responding to a friend adding request sent by a first user based on an application program, sending the mapping relation table to the first user, displaying an operation interface of a corresponding application program to a preset area of the first user interface according to the application program identification code of a second user selected by the first user and added as a friend, and adding the second user to a friend list of the application program displayed in the preset area according to a user login name in the application program identification code of the selected second user so as to enable the first user and the second user to communicate. The invention also provides an electronic device and a computer readable storage medium. The invention solves the problem that different application programs can not communicate with each other.

Description

Multi-application program intercommunication method, electronic device and computer readable storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method for interworking multiple applications, an electronic device, and a computer-readable storage medium.
Background
Existing communication APPs (e.g., WeChat, QQ, AIM, MSN) enable everywhere-anytime interactions over a network. However, the existing APPs are operated as a closed ecology, generally, the same APP must be installed between users to achieve the function of mutual communication, and different APPs cannot perform data communication with each other, which brings great inconvenience to the users. At present, a method for realizing mutual communication between different APPs is lacked.
Disclosure of Invention
In view of the above, there is a need to provide a method for interworking multiple applications, which aims to solve the problem that different applications cannot communicate with each other.
The method for intercommunication among multiple application programs provided by the invention comprises the following steps:
an acquisition step: acquiring registration information of each user of a preset user group in each application program in a plurality of application programs, and generating a corresponding application program identification code for each user, wherein the application program identification code comprises an application program type identifier and a user login name;
a mapping step: sequencing all application program identification codes of the same user according to the sequence of the popularity of the user to each application program from high to low, and establishing a mapping relation table between each user of the user group and the application program identification codes thereof according to the sequencing result;
a response step: responding to a request of adding friends, sent by a first user based on a certain application program, in the user group, pushing the mapping relation table to the first user, so that the first user can select an application program identification code of a second user needing to be added as a friend;
communication steps are as follows: receiving an application program identification code of a second user selected by the first user, displaying an operation interface of an application program corresponding to the application program type identification in the application program identification code of the selected second user in a preset area of a first user interface, and adding the second user to a friend list of the application program displayed in the preset area according to a user login name in the application program identification code of the selected second user so that the first user can communicate with the second user.
Optionally, the obtaining step further includes:
and generating and storing a signature verification token based on the user and the application program according to the registration information of the user in the application program and an HMAC-SHA1 algorithm, and sending the signature verification token to the user.
Optionally, the responding to the request for adding a friend, sent by the first user in the user group based on a certain application program, includes:
receiving a friend adding request which is sent by a first user in the user group based on an application program and carries a signature verification token, and judging whether the signature verification token is matched with a prestored signature verification token based on the first user and the application program;
if the friend information is matched with the friend information, responding to the request of the first user for adding friends;
and if not, pushing the information of the authentication failure to the first user.
Optionally, the formula for calculating the preference is Di=a×Ii+b×PiIn the formula, DiPreference of the user for the ith application program, IiIs an installation index value, P, for the ith applicationiAnd a is the weight of a predetermined installation index value and b is the weight of a predetermined use frequency index value for the ith application program in a preset time period.
Optionally, the method further includes, after the step of communicating:
an updating step: and acquiring the registration information of the new users in the user group in each application program within a preset time period at preset time intervals, generating corresponding application program identification codes, and updating the mapping relation table according to the application program identification codes.
In addition, to achieve the above object, the present invention also provides an electronic device including: the storage stores a multi-application program interworking program which can run on the processor, and the multi-application program interworking program realizes the following steps when being executed by the processor:
an acquisition step: acquiring registration information of each user of a preset user group in each application program in a plurality of application programs, and generating a corresponding application program identification code for each user, wherein the application program identification code comprises an application program type identifier and a user login name;
a mapping step: sequencing all application program identification codes of the same user according to the sequence of the popularity of the user to each application program from high to low, and establishing a mapping relation table between each user of the user group and the application program identification codes thereof according to the sequencing result;
a response step: responding to a request of adding friends, sent by a first user based on a certain application program, in the user group, pushing the mapping relation table to the first user, so that the first user can select an application program identification code of a second user needing to be added as a friend;
communication steps are as follows: receiving an application program identification code of a second user selected by the first user, displaying an operation interface of an application program corresponding to the application program type identification in the application program identification code of the selected second user in a preset area of a first user interface, and adding the second user to a friend list of the application program displayed in the preset area according to a user login name in the application program identification code of the selected second user so that the first user can communicate with the second user.
Optionally, the obtaining step further includes:
and generating and storing a signature verification token based on the user and the application program according to the registration information of the user in the application program and an HMAC-SHA1 algorithm, and sending the signature verification token to the user.
Optionally, the responding to the request for adding a friend, sent by the first user in the user group based on a certain application program, includes:
receiving a friend adding request which is sent by a first user in the user group based on an application program and carries a signature verification token, and judging whether the signature verification token is matched with a prestored signature verification token based on the first user and the application program;
if the friend information is matched with the friend information, responding to the request of the first user for adding friends;
and if not, pushing the information of the authentication failure to the first user.
Optionally, the formula for calculating the preference is Di=a×Ii+b×PiIn the formula, DiPreference of the user for the ith application program, IiIs an installation index value, P, for the ith applicationiAnd a is the weight of a predetermined installation index value and b is the weight of a predetermined use frequency index value for the ith application program in a preset time period.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium having a multi-application interworking program stored thereon, the multi-application interworking program being executable by one or more processors to implement the steps of the multi-application interworking method.
Compared with the prior art, the method and the device have the advantages that the application program identification codes are generated according to the registration information of the users in the application programs, the mapping relation table of the users and the application program identification codes is established, the request of the first user for adding the friends is responded, the mapping relation table is sent to the first user, the operation interface of the corresponding application program is displayed in the preset area of the first user interface according to the application program identification code of the second user which is selected by the first user and added as the friends, the second user is added to the list of the application programs displayed in the preset area according to the user login name in the selected application program identification code of the second user, the first user and the second user can communicate, and therefore the problem that the different application programs cannot communicate with each other is solved.
Drawings
FIG. 1 is a diagram of an electronic device according to an embodiment of the invention;
FIG. 2 is a process block diagram of one embodiment of the multi-application interworking procedure of FIG. 1;
fig. 3 is a flowchart of an embodiment of a multi-application interworking method according to the present invention.
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 electronic device 1 according to an embodiment of the invention. The electronic apparatus 1 is a device capable of automatically performing numerical calculation and/or information processing in accordance with a command set or stored in advance. The electronic device 1 may be a computer, or may be a single network server, a server group composed of a plurality of network servers, or a cloud composed of a large number of hosts or network servers based on cloud computing, where cloud computing is one of distributed computing and is a super virtual computer composed of a group of loosely coupled computers.
In the embodiment, the electronic device 1 includes, but is not limited to, a memory 11, a processor 12, and a network interface 13, which are communicatively connected to each other through a system bus, wherein the memory 11 stores a multi-application interworking program 10, and the multi-application interworking program 10 is executable by the processor 12. While fig. 1 only shows the electronic device 1 with components 11-13 and the multi-application interworking program 10, those skilled in the art will appreciate that the configuration shown in fig. 1 is not limiting of the electronic device 1 and may include fewer or more components than shown, or combine certain components, or a different arrangement of components.
The storage 11 includes a memory and at least one type of readable storage medium. The memory provides cache for the operation of the electronic device 1; the readable storage medium may be a non-volatile storage medium such as 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 readable storage medium may be an internal storage unit of the electronic apparatus 1, such as a hard disk of the electronic apparatus 1; in other embodiments, the non-volatile storage medium may also be an external storage device of the electronic apparatus 1, such as a plug-in hard disk provided on the electronic apparatus 1, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. In this embodiment, the readable storage medium of the memory 11 is generally used for storing an operating system and various types of application software installed in the electronic device 1, for example, codes of the multi-application interworking program 10 in an embodiment of the present invention. 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 used for controlling the overall operation of the electronic apparatus 1, such as performing control and processing related to data interaction or communication with other devices. In this embodiment, the processor 12 is configured to run the program code stored in the memory 11 or process data, for example, run the multi-application interworking program 10.
The network interface 13 may comprise a wireless network interface or a wired network interface, and the network interface 13 is used for establishing a communication connection between the electronic device 1 and a client (not shown).
Optionally, the electronic device 1 may further include a user interface, the user interface may include a Display (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface may further include a standard wired interface and a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the electronic apparatus 1 and for displaying a visualized user interface.
In an embodiment of the present invention, the multi-application interworking program 10 implements the following acquiring step, mapping step, responding step and communicating step when executed by the processor 12.
An acquisition step: the method comprises the steps of obtaining registration information of each user in a preset user group in each application program in a plurality of application programs, and generating a corresponding application program identification code for each user, wherein the application program identification code comprises an application program type identifier and a user login name.
The application programs include functions of registering users, sending and receiving information, adding friends and the like, such as instant messaging application programs of WeChat, QQ, Fei, MSN and the like.
The electronic apparatus 1 assigns a type identifier, which is a character string code with a preset number of bits (for example, 2 bits), to each application in advance, for example, the type identifier of WeChat may be denoted as "WX", the type identifier of QQ may be denoted as "QQ", and the type identifier of Feixin may be denoted as "FX".
The user group is typically composed of a group of users having common needs, such as a group of working users, a group of class users, a group of users (painting, soccer, musical instruments, etc.). The electronic device 1 acquires registration information of each application program of each user in a preset user group, and generates a corresponding application program identification code.
In this embodiment, the application id in the application id is connected to the user login name through a connector (for example, the connector is "&"), for example, the user 1 has a login name abc1 (different users cannot be registered as the same login name in the same application) in the wechat, and has a login name ab1 in the QQ, the wechat id of the user 1 is WX & abc1, and the QQ id is QQ & ab 1.
In this embodiment, the application program needs to support an XMPP protocol (extensible messaging and presence protocol).
XMPP is a protocol based on a subset XML of a standard universal markup language, has super-strong expandability and is a data transmission protocol similar to an http protocol. The XMPP protocol embeds the site and context sensitive information labels into XML structured data, realizes the intercommunication of the instant messaging service and is mainly used for instant messaging and online site detection.
In an embodiment of the present invention, the acquiring step further includes:
and generating and storing a signature verification token based on the user and the application program according to the registration information of the user in the application program and an HMAC-SHA1 algorithm, and sending the signature verification token to the user.
HMACSHA1 is a keyed hash algorithm constructed from the SHA1 hash function and is used as an HMAC (hash-based message authentication code). The HMAC process mixes the key with the user registration information, performs hash calculation on the mixed result using a hash function, mixes the obtained hash value with the key, and then applies the hash function again, with the output hash value having a length of 160 bits. A mapping step: and sequencing all the application program identification codes of the same user according to the sequence of the popularity of the user to each application program from high to low, and establishing a mapping relation table between each user of the user group and the application program identification codes thereof according to the sequencing result.
The preference degree is calculated by the formula Di=a×Ii+b×PiIn the formula, DiPreference of the user for the ith application program, IiIs an installation index value, P, for the ith applicationiIs the ithThe use frequency index value of the application program in the preset time period is a weight of a predetermined installation index value and b is a weight of a predetermined use frequency index value.
For example, the installation index value may be determined by:
Figure BDA0002231453650000071
in the formula IiRepresenting the installation index value of the ith application program, wherein if the user 1 installs the application program, the installation index value of the application program of the user 1 is 1; if the user 1 does not install the application, the installation index value of the application of the user 1 is 0.
The use frequency index value can be determined by the following method:
Figure BDA0002231453650000072
in the formula, PiAnd representing the index value of the use frequency of the ith application program in a preset time period by the user, wherein m and n are positive integers, and m is smaller than n.
The actual installation value of the application program and the actual usage frequency value of the application program within the preset time period by the user may be obtained by the electronic device 1 from monitoring data of clients of the users, or may be actively reported by the clients.
For example, the user 1 often uses the instant messaging application program as WeChat, the less frequently used application programs are QQ and Fei, the client of the user 1 has the application programs installed with WeChat and QQ, and does not have the application programs installed with Fei, and the preference of the user 1 to the above three application programs can be determined to be WeChat- > QQ- > Fei in sequence from high to low according to the calculation formula of the preference.
The mapping relationship between each user of the user group and the application id can be represented by the following table 1:
Figure BDA0002231453650000081
TABLE 1
In table 1, the user information may be information with an identification function, such as a name, a job number, or an identification number of the user.
A response step: responding to a request of adding friends, sent by a first user based on a certain application program, in the user group, pushing the mapping relation table to the first user, so that the first user can select an application program identification code of a second user needing to be added as a friend;
in an embodiment of the present invention, the responding to the request for adding a friend, sent by the first user in the user group based on a certain application program, includes:
receiving a friend adding request which is sent by a first user in the user group based on an application program and carries a signature verification token, and judging whether the signature verification token is matched with a prestored signature verification token based on the first user and the application program;
if the friend information is matched with the friend information, responding to the request of the first user for adding friends;
and if not, pushing the information of the authentication failure to the first user.
Communication steps are as follows: receiving an application program identification code of a second user selected by the first user, displaying an operation interface of an application program corresponding to the application program type identification in the application program identification code of the selected second user in a preset area of a first user interface, and adding the second user to a friend list of the application program displayed in the preset area according to a user login name in the application program identification code of the selected second user so that the first user can communicate with the second user.
For example, after the user 1 logs in a commonly used application program (e.g., WeChat) of the user 1, clicking a button for adding a friend, the electronic apparatus 1 will push a mapping relationship table between users of the user group and application program identification codes to the user 1, for example, the friend that the user 1 needs to add is the user 3, three application program identification codes of the user 3 with the top preference are FX & ddd3, WX & efd1 and QQ & efd1, respectively, if the application program identification code of the user 3 selected by the user 1 is FX & ddd3, the electronic apparatus 1 takes the connector "&" as a breakpoint, the former part "FX" of the application program identification codes is a type identification code corresponding to the Fei-Fei application program, the electronic apparatus 1 displays an operation interface of the Fei-Xin in a preset area (e.g., center area) of the user 1 interface, adds the user 3 to a Fei-Xin application program list displayed in the preset area according to the latter part "ddd 3" of the application program identification codes, the user 1 can communicate with the user 3 through the operation interface of the fly message APP, so that the communication between the user 1 and the fly message application program of the user 3 through the WeChat application program is realized, and the user experience is improved.
In another embodiment of the present invention, the multi-application interworking program 10 when executed by the processor 12 further performs the following steps before the responding step:
identification: and identifying a preset number (for example, 2) of application program identification codes which are ranked at the top in the mapping relation table.
And the application program identification codes with the preference degrees ranked at the top in the mapping relation table are subjected to identification processing such as highlighting, thickening, frame selection and display by using a colored frame line, and the like, so that the first user can confirm the application program identification codes with the high preference degrees of the second user more quickly.
In another embodiment of the present invention, the multi-application interworking program 10 when executed by the processor 12 further performs the following steps after the communicating step:
an updating step: and acquiring the registration information of the new users in the user group in each application program within a preset time period at preset time intervals, generating corresponding application program identification codes, and updating the mapping relation table according to the application program identification codes.
As can be seen from the foregoing embodiment, in the electronic device 1 provided in the present invention, first, an application identification code is generated according to registration information of each user in a preset user group in each application, and a mapping relationship table between each user and the application identification code is established; and then, responding to a request of adding a friend sent by a first user based on an application program, sending the mapping relation table to the first user, displaying an operation interface of a corresponding application program to a preset area of the first user interface according to an application program identification code of a second user which is selected by the first user and added as the friend, and finally, adding the second user to a friend list of the application program displayed in the preset area according to a user login name in the selected application program identification code of the second user for the first user and the second user to communicate, thereby solving the problem that different application programs cannot communicate with each other.
In other embodiments, the multi-application interworking program 10 can be further 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 implement the present invention, and the modules referred to in the present invention refer to a series of computer program instruction segments capable of performing specific functions for describing the execution process of the multi-application interworking program 10 in the electronic device 1.
Fig. 2 is a block diagram of an embodiment of the multi-application interworking program 10 of fig. 1.
In an embodiment of the present invention, the multi-application interworking program 10 includes an obtaining module 110, a mapping module 120, a responding module 130, and a communication module 140, which exemplarily:
the obtaining module 110 is configured to obtain registration information of each user in a preset user group in each application in a plurality of applications, and generate a corresponding application identification code for each user, where the application identification code includes an application type identifier and a user login name.
The mapping module 120 is configured to sort all the application program identifiers of the same user according to the sequence from high to low of the user's preference for each application program, and establish a mapping relationship table between each user of the user group and its application program identifier according to the sorting result.
The response module 130 is configured to respond to a request for adding a friend, which is sent by a first user in the user group based on a certain application program, and push the mapping relationship table to the first user, so that the first user can select an application program identifier of a second user who needs to add a friend.
The communication module 140 is configured to receive an application program identifier of a second user selected by the first user, display an operation interface of an application program corresponding to an application program type identifier in the application program identifier of the selected second user in a preset area of a first user interface, and add the second user to a buddy list of the application program displayed in the preset area according to a user login name in the application program identifier of the selected second user, so that the first user communicates with the second user.
The functions or operation steps of the acquiring module 110, the mapping module 120, the responding module 130, the communication module 140 and other program modules implemented when executed are substantially the same as those of the above embodiments, and are not repeated herein.
As shown in fig. 3, which is a flowchart of an embodiment of a multi-application interworking method according to the present invention, the multi-application interworking method includes steps S1-S4.
S1, obtaining registration information of each user in a preset user group in each application program in a plurality of application programs, and generating a corresponding application program identification code for each user, wherein the application program identification code comprises an application program type identifier and a user login name.
The application programs include functions of registering users, sending and receiving information, adding friends and the like, such as instant messaging application programs of WeChat, QQ, Fei, MSN and the like.
The electronic apparatus 1 assigns a type identifier, which is a character string code with a preset number of bits (for example, 2 bits), to each application in advance, for example, the type identifier of WeChat may be denoted as "WX", the type identifier of QQ may be denoted as "QQ", and the type identifier of Feixin may be denoted as "FX".
The user group is typically composed of a group of users having common needs, such as a group of working users, a group of class users, a group of users (painting, soccer, musical instruments, etc.). The electronic device 1 acquires registration information of each application program of each user in a preset user group, and generates a corresponding application program identification code.
In this embodiment, the application id in the application id is connected to the user login name through a connector (for example, the connector is "&"), for example, the user 1 has a login name abc1 (different users cannot be registered as the same login name in the same application) in the wechat, and has a login name ab1 in the QQ, the wechat id of the user 1 is WX & abc1, and the QQ id is QQ & ab 1.
In this embodiment, the application program needs to support an XMPP protocol (extensible messaging and presence protocol).
XMPP is a protocol based on a subset XML of a standard universal markup language, has super-strong expandability and is a data transmission protocol similar to an http protocol. The XMPP protocol embeds the site and context sensitive information labels into XML structured data, realizes the intercommunication of the instant messaging service and is mainly used for instant messaging and online site detection.
In an embodiment of the present invention, the step S1 further includes:
and generating and storing a signature verification token based on the user and the application program according to the registration information of the user in the application program and an HMAC-SHA1 algorithm, and sending the signature verification token to the user.
HMACSHA1 is a keyed hash algorithm constructed from the SHA1 hash function and is used as an HMAC (hash-based message authentication code). The HMAC process mixes the key with the user registration information, performs hash calculation on the mixed result using a hash function, mixes the obtained hash value with the key, and then applies the hash function again, with the output hash value having a length of 160 bits.
S2, sorting all the application program identification codes of the same user according to the sequence of the popularity of the user to each application program from high to low, and establishing a mapping relation table between each user of the user group and the application program identification codes thereof according to the sorting result.
The degree of preferenceIs calculated by the formula Di=a×Ii+b×PiIn the formula, DiPreference of the user for the ith application program, IiIs an installation index value, P, for the ith applicationiAnd a is the weight of a predetermined installation index value and b is the weight of a predetermined use frequency index value for the ith application program in a preset time period.
For example, the installation index value may be determined by:
Figure BDA0002231453650000121
in the formula IiRepresenting the installation index value of the ith application program, wherein if the user 1 installs the application program, the installation index value of the application program of the user 1 is 1; if the user 1 does not install the application, the installation index value of the application of the user 1 is 0.
The use frequency index value can be determined by the following method:
Figure BDA0002231453650000122
in the formula, PiAnd representing the index value of the use frequency of the ith application program in a preset time period by the user, wherein m and n are positive integers, and m is smaller than n.
The actual installation value of the application program and the actual usage frequency value of the application program within the preset time period by the user may be obtained by the electronic device 1 from monitoring data of clients of the users, or may be actively reported by the clients.
For example, the user 1 often uses the instant messaging application program as WeChat, the less frequently used application programs are QQ and Fei, the client of the user 1 has the application programs installed with WeChat and QQ, and does not have the application programs installed with Fei, and the preference of the user 1 to the above three application programs can be determined to be WeChat- > QQ- > Fei in sequence from high to low according to the calculation formula of the preference.
The mapping relationship table between each user of the user group and the application id can be represented by table 1 above.
In table 1, the user information may be information with an identification function, such as a name, a job number, or an identification number of the user.
S3, responding to a request of adding friends sent by a first user based on a certain application program in the user group, pushing the mapping relation table to the first user, and allowing the first user to select an application program identification code of a second user needing to be added as a friend;
in an embodiment of the present invention, the responding to the request for adding a friend, sent by the first user in the user group based on a certain application program, includes:
receiving a friend adding request which is sent by a first user in the user group based on an application program and carries a signature verification token, and judging whether the signature verification token is matched with a prestored signature verification token based on the first user and the application program;
if the friend information is matched with the friend information, responding to the request of the first user for adding friends;
and if not, pushing the information of the authentication failure to the first user.
S4, receiving an application program identification code of a second user selected by the first user, displaying an operation interface of an application program corresponding to the application program type identification in the application program identification code of the selected second user in a preset area of a first user interface, and adding the second user to a friend list of the application program displayed in the preset area according to a user login name in the application program identification code of the selected second user so that the first user can communicate with the second user.
For example, after the user 1 logs in a commonly used application program (e.g., WeChat) of the user 1, clicking a button for adding a friend, the electronic apparatus 1 will push a mapping relationship table between users of the user group and application program identification codes to the user 1, for example, the friend that the user 1 needs to add is the user 3, three application program identification codes of the user 3 with the top preference are FX & ddd3, WX & efd1 and QQ & efd1, respectively, if the application program identification code of the user 3 selected by the user 1 is FX & ddd3, the electronic apparatus 1 takes the connector "&" as a breakpoint, the former part "FX" of the application program identification codes is a type identification code corresponding to the Fei-Fei application program, the electronic apparatus 1 displays an operation interface of the Fei-Xin in a preset area (e.g., center area) of the user 1 interface, adds the user 3 to a Fei-Xin application program list displayed in the preset area according to the latter part "ddd 3" of the application program identification codes, the user 1 can communicate with the user 3 through the operation interface of the fly message APP, so that the communication between the user 1 and the fly message application program of the user 3 through the WeChat application program is realized, and the user experience is improved.
In another embodiment of the present invention, before step S3, the method for multiple application interworking further includes:
and identifying a preset number (for example, 2) of application program identification codes which are ranked at the top in the mapping relation table.
And the application program identification codes with the preference degrees ranked at the top in the mapping relation table are subjected to identification processing such as highlighting, thickening, frame selection and display by using a colored frame line, and the like, so that the first user can confirm the application program identification codes with the high preference degrees of the second user more quickly.
In another embodiment of the present invention, after step S4, the method for multiple application interworking further includes:
and acquiring the registration information of the new users in the user group in each application program within a preset time period at preset time intervals, generating corresponding application program identification codes, and updating the mapping relation table according to the application program identification codes.
As can be seen from the foregoing embodiments, the method for interworking among multiple applications provided by the present invention includes first generating an application identification code according to registration information of each user in a preset user group in each application, and establishing a mapping relationship table between each user and the application identification code; and then, responding to a request of adding a friend sent by a first user based on an application program, sending the mapping relation table to the first user, displaying an operation interface of a corresponding application program to a preset area of the first user interface according to an application program identification code of a second user which is selected by the first user and added as the friend, and finally, adding the second user to a friend list of the application program displayed in the preset area according to a user login name in the selected application program identification code of the second user for the first user and the second user to communicate, thereby solving the problem that different application programs cannot communicate with each other.
In addition, the embodiment of the present invention further provides a computer-readable storage medium, which may be any one of or any combination of a hard disk, a multimedia card, an SD card, a flash memory card, an SMC, a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM), a portable compact disc read only memory (CD-ROM), a USB memory, and the like. A multi-application interworking program 10 is included in a computer readable storage medium, and when executed by a processor, the multi-application interworking program 10 performs the following:
a1, acquiring registration information of each user in a preset user group in each application program in a plurality of application programs, and generating a corresponding application program identification code for each user, wherein the application program identification code comprises an application program type identifier and a user login name;
a2, sequencing all application program identification codes of the same user according to the sequence of the popularity of the user to each application program from high to low, and establishing a mapping relation table between each user of the user group and the application program identification codes thereof according to the sequencing result;
a3, responding to a request of adding friends sent by a first user based on a certain application program in the user group, pushing the mapping relation table to the first user, and allowing the first user to select an application program identification code of a second user needing to be added as a friend;
a4, receiving an application program identification code of a second user selected by the first user, displaying an operation interface of an application program corresponding to the application program type identification in the application program identification code of the selected second user in a preset area of a first user interface, and adding the second user to a friend list of the application program displayed in the preset area according to a user login name in the application program identification code of the selected second user so that the first user can communicate with the second user.
The specific implementation of the computer-readable storage medium of the present invention is substantially the same as the above-mentioned multi-application interworking method and the specific implementation of the electronic device, and will not be described herein again.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A multi-application program intercommunication method is applied to an electronic device, and is characterized in that the method comprises the following steps:
an acquisition step: acquiring registration information of each user of a preset user group in each application program in a plurality of application programs, and generating a corresponding application program identification code for each user, wherein the application program identification code comprises an application program type identifier and a user login name;
a mapping step: sequencing all application program identification codes of the same user according to the sequence of the popularity of the user to each application program from high to low, and establishing a mapping relation table between each user of the user group and the application program identification codes thereof according to the sequencing result;
a response step: responding to a request of adding friends, sent by a first user based on a certain application program, in the user group, pushing the mapping relation table to the first user, so that the first user can select an application program identification code of a second user needing to be added as a friend;
communication steps are as follows: receiving an application program identification code of a second user selected by the first user, displaying an operation interface of an application program corresponding to the application program type identification in the application program identification code of the selected second user in a preset area of a first user interface, and adding the second user to a friend list of the application program displayed in the preset area according to a user login name in the application program identification code of the selected second user so that the first user can communicate with the second user.
2. The multi-application interworking method of claim 1, wherein the obtaining step further comprises:
and generating and storing a signature verification token based on the user and the application program according to the registration information of the user in the application program and an HMAC-SHA1 algorithm, and sending the signature verification token to the user.
3. The multi-application interworking method of claim 2, wherein the responding to the request to add a buddy sent by the first user in the user group based on an application comprises:
receiving a friend adding request which is sent by a first user in the user group based on an application program and carries a signature verification token, and judging whether the signature verification token is matched with a prestored signature verification token based on the first user and the application program;
if the friend information is matched with the friend information, responding to the request of the first user for adding friends;
and if not, pushing the information of the authentication failure to the first user.
4. The method as claimed in claim 1, wherein the preference is calculated by the formula Di=a×Ii+b×PiIn the formula, DiPreference of the user for the ith application program, IiIs an installation index value, P, for the ith applicationiAnd a is the weight of a predetermined installation index value and b is the weight of a predetermined use frequency index value for the ith application program in a preset time period.
5. The multi-application interworking method of any one of claims 1 through 4, wherein the method further comprises, after the communicating step:
an updating step: and acquiring the registration information of the new users in the user group in each application program within a preset time period at preset time intervals, generating corresponding application program identification codes, and updating the mapping relation table according to the application program identification codes.
6. An electronic device, comprising: a memory, a processor, the memory having stored thereon a multi-application interworking program operable on the processor, the multi-application interworking program when executed by the processor implementing the steps of:
an acquisition step: acquiring registration information of each user of a preset user group in each application program in a plurality of application programs, and generating a corresponding application program identification code for each user, wherein the application program identification code comprises an application program type identifier and a user login name;
a mapping step: sequencing all application program identification codes of the same user according to the sequence of the popularity of the user to each application program from high to low, and establishing a mapping relation table between each user of the user group and the application program identification codes thereof according to the sequencing result;
a response step: responding to a request of adding friends, sent by a first user based on a certain application program, in the user group, pushing the mapping relation table to the first user, so that the first user can select an application program identification code of a second user needing to be added as a friend;
communication steps are as follows: receiving an application program identification code of a second user selected by the first user, displaying an operation interface of an application program corresponding to the application program type identification in the application program identification code of the selected second user in a preset area of a first user interface, and adding the second user to a friend list of the application program displayed in the preset area according to a user login name in the application program identification code of the selected second user so that the first user can communicate with the second user.
7. The electronic device of claim 6, wherein the obtaining step further comprises:
and generating and storing a signature verification token based on the user and the application program according to the registration information of the user in the application program and an HMAC-SHA1 algorithm, and sending the signature verification token to the user.
8. The electronic device of claim 7, wherein the responding to the request to add a buddy sent by the first user in the user group based on an application comprises:
receiving a friend adding request which is sent by a first user in the user group based on an application program and carries a signature verification token, and judging whether the signature verification token is matched with a prestored signature verification token based on the first user and the application program;
if the friend information is matched with the friend information, responding to the request of the first user for adding friends;
and if not, pushing the information of the authentication failure to the first user.
9. The electronic device of claim 6, wherein the preference is calculated by the formula Di=a×Ii+b×PiIn the formula, DiPreference of the user for the ith application program, IiIs an installation index value, P, for the ith applicationiAnd a is the weight of a predetermined installation index value and b is the weight of a predetermined use frequency index value for the ith application program in a preset time period.
10. A computer-readable storage medium having stored thereon a multi-application interworking program executable by one or more processors to perform the steps of the multi-application interworking method of any one of claims 1 through 5.
CN201910972275.4A 2019-10-12 2019-10-12 Multi-application program intercommunication method, electronic device and computer readable storage medium Active CN110830360B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910972275.4A CN110830360B (en) 2019-10-12 2019-10-12 Multi-application program intercommunication method, electronic device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910972275.4A CN110830360B (en) 2019-10-12 2019-10-12 Multi-application program intercommunication method, electronic device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110830360A true CN110830360A (en) 2020-02-21
CN110830360B CN110830360B (en) 2022-11-25

Family

ID=69549186

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910972275.4A Active CN110830360B (en) 2019-10-12 2019-10-12 Multi-application program intercommunication method, electronic device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110830360B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111461824A (en) * 2020-03-30 2020-07-28 招商局金融科技有限公司 Interface display method, electronic device and computer readable storage medium
CN111641550A (en) * 2020-05-09 2020-09-08 维沃移动通信有限公司 Communication object adding method and device and electronic equipment
CN112156469A (en) * 2020-09-25 2021-01-01 努比亚技术有限公司 Object name replacement method and device and computer readable storage medium
CN113300944A (en) * 2021-05-25 2021-08-24 维沃移动通信有限公司 Friend adding method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090319611A1 (en) * 2008-06-20 2009-12-24 Bhavin Turakhia Method and System for Facilitating Exchange of A Data Between Applications Using a Communication Platform
US20100306547A1 (en) * 2009-05-28 2010-12-02 Fallows John R System and methods for providing stateless security management for web applications using non-http communications protocols
CN107450998A (en) * 2017-07-31 2017-12-08 北京三快在线科技有限公司 Information real-time synchronization method, device, medium and electronic equipment between more applications
CN109450771A (en) * 2018-09-26 2019-03-08 深圳壹账通智能科技有限公司 Add method, apparatus, computer equipment and the storage medium of good friend

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090319611A1 (en) * 2008-06-20 2009-12-24 Bhavin Turakhia Method and System for Facilitating Exchange of A Data Between Applications Using a Communication Platform
US20100306547A1 (en) * 2009-05-28 2010-12-02 Fallows John R System and methods for providing stateless security management for web applications using non-http communications protocols
CN107450998A (en) * 2017-07-31 2017-12-08 北京三快在线科技有限公司 Information real-time synchronization method, device, medium and electronic equipment between more applications
CN109450771A (en) * 2018-09-26 2019-03-08 深圳壹账通智能科技有限公司 Add method, apparatus, computer equipment and the storage medium of good friend

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111461824A (en) * 2020-03-30 2020-07-28 招商局金融科技有限公司 Interface display method, electronic device and computer readable storage medium
CN111461824B (en) * 2020-03-30 2023-04-07 招商局金融科技有限公司 Interface display method, electronic device and computer readable storage medium
CN111641550A (en) * 2020-05-09 2020-09-08 维沃移动通信有限公司 Communication object adding method and device and electronic equipment
CN112156469A (en) * 2020-09-25 2021-01-01 努比亚技术有限公司 Object name replacement method and device and computer readable storage medium
CN112156469B (en) * 2020-09-25 2023-11-14 努比亚技术有限公司 Object name replacement method, device and computer readable storage medium
CN113300944A (en) * 2021-05-25 2021-08-24 维沃移动通信有限公司 Friend adding method and device and electronic equipment

Also Published As

Publication number Publication date
CN110830360B (en) 2022-11-25

Similar Documents

Publication Publication Date Title
CN110830360B (en) Multi-application program intercommunication method, electronic device and computer readable storage medium
CN107920112B (en) Configuration file pushing method supporting gray mode, central server and storage medium
CN108810831B (en) Short message verification code pushing method, electronic device and readable storage medium
CN111343048B (en) Pressure testing method and device, computer device and storage medium
CN110764913B (en) Data calculation method based on rule calling, client and readable storage medium
CN111241565A (en) File control method and device, electronic equipment and storage medium
US20130232481A1 (en) Information processing apparatus and client management method
CN110708366A (en) Plug-in process management method, related method and related device
CN113434254B (en) Client deployment method, client deployment apparatus, computer device, and storage medium
CN111224826B (en) Configuration updating method, device, system and medium based on distributed system
CN110879701B (en) Workflow visual configuration method, server, system and medium
JP2017182396A (en) Information processing device, control method, and program
EP3855325A1 (en) User authentication system, user authentication server, and user authentication method
CN111447080B (en) Private network decentralization control method, device and computer readable storage medium
CN110557507B (en) File transmission method and device, electronic equipment and computer readable storage medium
CN114422586A (en) Event notification method and device, computer equipment and storage medium
CN113379415B (en) Block chain system, information processing method, system, device and computer medium
CN110458566B (en) Block chain account address generation method, system and device and computer readable storage medium
CN109450781B (en) Mail communication method based on distributed network and related device
CN112698796A (en) Printing control method and device based on printer, electronic equipment and storage medium
CN111339528A (en) Method, device and equipment for starting decentralized application and storage medium
CN114362960B (en) Resource account data supervision method and device, computer equipment and medium
CN109981781B (en) Data processing method and system, electronic device and storage medium
CN116739612B (en) Method for displaying rights and interests information and electronic equipment
JP5722281B2 (en) Network system and determination method

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