CN107450998B - Method, device, medium and electronic equipment for synchronizing information among multiple applications in real time - Google Patents

Method, device, medium and electronic equipment for synchronizing information among multiple applications in real time Download PDF

Info

Publication number
CN107450998B
CN107450998B CN201710642408.2A CN201710642408A CN107450998B CN 107450998 B CN107450998 B CN 107450998B CN 201710642408 A CN201710642408 A CN 201710642408A CN 107450998 B CN107450998 B CN 107450998B
Authority
CN
China
Prior art keywords
application program
user
application
group
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710642408.2A
Other languages
Chinese (zh)
Other versions
CN107450998A (en
Inventor
江茂坤
姚志东
詹元敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN201710642408.2A priority Critical patent/CN107450998B/en
Publication of CN107450998A publication Critical patent/CN107450998A/en
Application granted granted Critical
Publication of CN107450998B publication Critical patent/CN107450998B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/566Grouping or aggregating service requests, e.g. for unified processing

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Finance (AREA)
  • Software Systems (AREA)
  • Accounting & Taxation (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • General Engineering & Computer Science (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to a method and a device for synchronizing information among multiple applications in real time, a storage medium and electronic equipment. The method comprises the following steps: responding to preset operation sent by a first user of a first application program in the first application program group, and determining that a second user of a second application program in the second application program group is communicated with the first user; the preset operation carries a mapping identifier; acquiring application identifiers of all first application programs in the first application program group and application identifiers of all second application programs in the second application program group related to the first application program group according to the mapping identifiers; and receiving second interaction information sent by a second user through a second application program, and sending the second interaction information to each first application program of the first user according to the application identifier of each first application program. The method and the device can realize the message synchronization of the cross-APP among the multiple application programs, have no limit to the number of the APPs, and can completely support the expansibility of the service.

Description

Method, device, medium and electronic equipment for synchronizing information among multiple applications in real time
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for synchronizing information among multiple applications in real time, and a computer-readable storage medium and an electronic device for implementing the method.
Background
With the rapid development of mobile internet technology, various Applications (APPs) on handheld intelligent terminals such as mobile phones and tablet computers are increasing.
Currently there are a number of different APPs with the same business functionality, such as takeaway APPs of the same service provider with takeaway functionality. In such an application scenario, generally, after an order is placed by a same user in one of multiple different APPs having, for example, a takeout function, it is desirable to simultaneously synchronize and see, for example, a reply message of a distributor in the other APPs, and according to the existing message sending mechanism, this is unsupported, that is, information cannot be synchronized among multiple different APPs having the same service function, and information cannot be transmitted to the user across the multiple APPs. Therefore, there is a need to provide a new technical solution to improve one or more of the problems in the above solutions.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
An object of the present disclosure is to provide a real-time synchronization method of information between multiple applications, a real-time synchronization apparatus of information between multiple applications, and a computer-readable storage medium and an electronic device implementing the real-time synchronization method of information between multiple applications, thereby overcoming one or more problems due to limitations and disadvantages of the related art, at least to a certain extent.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to one aspect of the present disclosure, there is provided a method for synchronizing information among multiple applications in real time, which is applied to a server, the method including:
responding to preset operation sent by a first user of a first application program in the first application program group, and determining that a second user of a second application program in the second application program group is communicated with the first user; the preset operation carries a mapping identifier;
acquiring application identifiers of all first application programs in the first application program group and application identifiers of all second application programs in a second application program group associated with the first application program group according to the mapping identifiers;
receiving first interaction information sent by the first user through the first application program, and sending the first interaction information to each second application program of the second user according to the application identification of each second application program; and/or
And receiving second interaction information sent by the second user through the second application program, and sending the second interaction information to each first application program of the first user according to the application identifier of each first application program.
In an exemplary embodiment of the disclosure, the step of determining that a second user of a second application program in a second application program group communicates with a first user of the first application program in response to a preset operation sent by the first user of the first application program in the first application program group includes:
and responding to a trigger operation sent by a first user of a first application program in the first application program group, and allocating a second user of a second application program in the second application program group to communicate with the first user.
In an exemplary embodiment of the disclosure, the step of sending the second interaction information to each of the first applications of the first user according to the application identifier of each of the first applications includes:
acquiring a first user identity of the first user;
and sending the second interaction information to each first application program of the first user by combining the first user identity identification and the application identification of each first application program.
In an exemplary embodiment of the present disclosure, the method further comprises:
before the step of obtaining the first user identification of the first user, allocating the first user identification to the first user.
In an exemplary embodiment of the disclosure, the step of sending the first interaction information to each of the second applications of the second user according to the application identifier of each of the second applications includes:
acquiring a second user identity of the second user;
and sending the first interaction information to each second application program of the second user by combining the second user identity identification and the application identification of each second application program.
In an exemplary embodiment of the present disclosure, the method further comprises:
and before the step of obtaining a second user identity of the second user, distributing the second user identity to the second user.
In an exemplary embodiment of the present disclosure, the triggering operation includes initiating a business order.
In an exemplary embodiment of the present disclosure, each of the first application programs includes a first service function module related to the service order, and each of the first service function modules belongs to the same account; each second application program comprises a second service function module related to the service order, and each second service function module belongs to the same account.
In an exemplary embodiment of the present disclosure, the method further comprises:
storing the application identification of each first application program to a first array;
storing the application identification of each second application program to a second array;
and setting the mapping identifications for the first array and the second array so as to establish the mapping relation between the first array and the second array.
According to an aspect of the present disclosure, there is provided an inter-multi-application information real-time synchronization apparatus, the apparatus including:
the communication allocation module is used for responding to preset operation sent by a first user of a first application program in the first application program group and determining that a second user of a second application program in the second application program group is communicated with the first user; the preset operation carries a mapping identifier;
the identification determining module is used for acquiring the application identification of each first application program in the first application program group and the application identification of each second application program in the second application program group associated with the first application program group according to the mapping identification;
the first information interaction module is used for receiving first interaction information sent by the first user through the first application program and sending the first interaction information to each second application program of the second user according to the application identification of each second application program; and/or
And the second information interaction module is used for receiving second interaction information sent by the second user through the second application program and sending the second interaction information to each first application program of the first user according to the application identifier of each first application program.
According to an aspect of the present disclosure, there is provided a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of any one of the above-mentioned methods for real-time synchronization of information between multiple applications.
According to an aspect of the present disclosure, there is provided an electronic device including:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to execute the steps of any one of the above-mentioned real-time synchronization methods of information among multiple applications via execution of the executable instructions.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in an embodiment of the present disclosure, by presetting a first application group including a plurality of first applications and a second application group including a plurality of second applications, and establishing a mapping relationship between the two groups, the server may simultaneously send interaction information from the first applications to the plurality of second applications according to the mapping identifier and simultaneously send interaction information from the second applications to the plurality of first applications according to the mapping identifier. Therefore, on one hand, the cross-APP message synchronization among multiple application programs of the same user can be realized through the mapping relation among the application identifications of the multiple application programs, and the information can be synchronously transmitted across the multiple APPs; on the other hand, the message synchronization mechanism in the disclosure has no limit to the number of the cross-APP, and can completely support the future service expansibility.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
Fig. 1 schematically illustrates a related art inter-APP message transfer flowchart shown in the present disclosure;
FIG. 2 is a flow chart illustrating a method for real-time synchronization of information between multiple applications in an exemplary embodiment of the disclosure;
FIG. 3 is a flow chart schematically illustrating another method for real-time synchronization of information between multiple applications in an exemplary embodiment of the present disclosure;
fig. 4 schematically illustrates an application scenario diagram of information synchronization between multiple APPs in an exemplary embodiment of the present disclosure;
FIG. 5 is a schematic diagram illustrating an apparatus for real-time synchronization of information between multiple applications in an exemplary embodiment of the disclosure;
FIG. 6 schematically illustrates a computer-readable storage medium in an exemplary embodiment of the disclosure;
fig. 7 schematically illustrates an electronic device in an exemplary embodiment of the disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
Refer to the flow chart of messaging between APPs in the related art shown in fig. 1. In the related art, when the sending and receiving of messages between APPs are implemented, a service party APP needs to transmit data parameters to a server in advance according to a certain service scenario, so that the server allocates a user identity uid (user identification) to a user initiating a service request through the APP. For example, when the takeaway APP generates a takeaway order initiated by the user, the server transmits interaction information and rider information of the delivery APP side, and the server allocates UIDs to the user and the rider respectively. Meanwhile, the server may obtain respective APP identities, i.e., application identities (also referred to as APP IDs), of a takeout APP at the user side and a delivery APP at the rider side. Then, the server can call a message receiving and sending interface, and the receiving and sending of the interactive message between the takeout APP and the distribution APP are realized according to the UID and the APP ID of the user side and the UID and the APP ID of the rider side. However, if the same user logs in a certain group purchase APP and a certain takeout APP at the same time, the same user orders the group purchase APP in the takeout channel, and generates an interactive message with the rider, according to the existing mode, the interactive message is only transmitted and received in the group purchase APP and the delivery APP, and cannot be synchronized to the takeout APP, that is, messages among a plurality of APPs with takeout services to which the same user belongs cannot be synchronized, which affects user experience. For example, when the group purchase APP and the takeaway APP are two different APPs belonging to the same service provider, the user or the rider may be confused and both may be the service provider, and why the same takeaway service may have a larger gap between the different APPs, thereby reducing the user experience.
In order to overcome the above-mentioned problems in the related art, the present exemplary embodiment first provides a real-time synchronization method of information between multiple applications, which can be applied to a server. Referring to fig. 2, the method may include the steps of:
step S201: responding to preset operation sent by a first user of a first application program in the first application program group, and determining that a second user of a second application program in the second application program group is communicated with the first user; and the preset operation carries a mapping identifier.
Step S202: and acquiring the application identifier of each first application program in the first application program group and the application identifier of each second application program in the second application program group associated with the first application program group according to the mapping identifier.
Step S203: and receiving first interaction information sent by the first user through the first application program, and sending the first interaction information to each second application program of the second user according to the application identification of each second application program.
Step S204: and receiving second interaction information sent by the second user through the second application program, and sending the second interaction information to each first application program of the first user according to the application identifier of each first application program.
Step 203 and step S204 may be provided simultaneously; however, if only one of step 203 and step S204 is provided, the related technical problems in the prior art can be greatly improved, and thus the present disclosure also falls within the protection scope of the present disclosure.
Through the real-time information synchronization method among multiple applications, on one hand, the cross-APP information synchronization among multiple applications of the same user can be realized through the mapping relation among the application identifications of the multiple applications, and the information can be synchronously transmitted across the multiple APPs; on the other hand, the message synchronization mechanism in the disclosure has no limit to the number of the cross-APP, and can completely support the future service expansibility.
Hereinafter, the respective steps of the above-described method in the present exemplary embodiment will be described in more detail with reference to fig. 2 to 4 in conjunction with the takeout service. It should be noted that the method in the present exemplary embodiment is obviously not limited to the takeaway service scenario, but is also applicable to other service scenarios such as online shopping, mobile banking transaction, and the like, and this is not particularly limited in the present exemplary embodiment.
In step S201, in response to a preset operation sent by a first user of a first application program in the first application program group, it is determined that a second user of a second application program in the second application program group communicates with the first user.
In an example embodiment, the preset operation may be a trigger operation, and the step S201 may specifically be: and responding to a trigger operation sent by a first user of a first application program in the first application program group, and allocating a second user of a second application program in the second application program group to communicate with the first user.
In this exemplary embodiment, the method may be implemented by a server, and the server may be a service server that processes the same service, for example, a server that a service provider processes a takeaway service, but is not limited thereto. In this embodiment, a server that handles takeout service is taken as an example for description. Illustratively, the first application program in the first application program group may be an outsourcing APP, a group purchasing APP, an online purchasing APP and other APPs with an outsourcing function at a user side, and these APPs may be run on a handheld smart terminal such as a mobile phone and a tablet computer. Second application program in the second application program group can be the delivery APP of the rider end such as the special delivery APP, the direct delivery APP, the crowd-sourced delivery APP, and these delivery APPs also can operate on handheld intelligent terminals such as cell-phones, tablet computers, and the like. The triggering operation may include an operation of initiating a service order; for example, the business order may be a business order that is not limited to a takeaway order. Of course, in other exemplary embodiments of the present disclosure, the triggering operation may also be other operations such as a transfer operation, a sharing operation, and the like, which is not particularly limited in this exemplary embodiment.
In an example embodiment, each first application in the first application group includes a same first service function module related to the service order, and a plurality of the first service function modules belong to a same first user account. Illustratively, the first service function module may be a takeaway service module, such as a takeaway channel in APP. Different APPs with takeaway channels can be logged in by the same user, for example, after the user logs in one of the group buying APPs through a user account, the user can order through a takeaway service module in the group buying APP, and a corresponding takeaway order is initiated. The server can distribute corresponding special delivery APP according to a meal ordering order initiated by the user account so that the rider can deliver the meal to the user, and the rider can communicate with the group purchase APP of the user side through the special delivery APP to interact information, such as order promotion information and the like.
In an exemplary embodiment of the present disclosure, each second application in the second application group includes a same second service function module related to the service order, and a plurality of the second service function modules belong to a same second user account. For example, the second service function module may be a delivery service module, and each different delivery APP with the delivery service module may be logged in by the same rider, for example, after the rider logs in one of the foregoing applications through a rider account, the rider may receive an order from the delivery service module to deliver a meal to the user, and the rider may communicate with the group-buying APP of the user side through the dedicated delivery APP.
In another exemplary embodiment of the present disclosure, a part of the second application may also be the same as the first application, but installed on a different smart terminal of the user side and the rider side. For example, a group purchase APP may be installed, and the user and the rider log in the group purchase APP through their respective accounts and operate in different business function modules, for example, the user initiates a meal order in a take-away channel, and the rider receives a meal in a delivery channel and delivers the meal, etc.
In step S202, the application identifier of each first application program in the first application program group and the application identifier of each second application program in the second application program group associated with the first application program group are obtained according to the mapping identifier.
In this exemplary embodiment, the application identifiers included in the first application group and the application identifiers included in the second application group may be configured in advance in a preset configuration table, and a mapping relationship between the first application group and the second application group is established, and the mapping relationship is a mapping identifier bound to the configuration of the mapped first application group and the mapped second application group. For example, the application identifiers of each first application program in the first application program group and each second application program in the second application program group may be unique identifier IDs, that is, APP IDs, respectively, for characterizing different APPs. In an exemplary embodiment of the present disclosure, the application identifier of each first application in the first application group, the application identifier of each second application in the second application group, and a mapping relationship between the application identifiers of the first application group and the application identifiers of the second application group may be included in a preset configuration table.
In some embodiments, the method may further include storing the application identifier of each of the first application programs in a first array, storing the application identifier of each of the second application programs in a second array, and setting the mapping identifier for the first array and the second array to establish a mapping relationship between the first array and the second array. For example, the application identifiers of the group purchase APP, the takeout APP, the online purchase APP, and the like having the takeout service function module may be stored in the first array < group purchase APP ID, takeout APP ID, online purchase APP ID, … >, and the application identifiers of the dedicated APP, the direct delivery APP, and the crowd-sourced delivery APP having the delivery service function module may be stored in the first array < dedicated APP ID, direct delivery APP ID, crowd-sourced delivery APP ID, … >. Then, the mapping identifiers are set for the first array and the second array, such as 1001, so as to establish a mapping relationship between the first array and the second array. For example, the mapping relationship may be: from < offer APP ID, direct offer APP ID, crowd-sourced offer APP ID, … > to < group purchase APP ID, takeaway APP ID, online purchase APP ID, … >. Any one of the exclusive APP ID, the direct-delivery APP PID and the crowd-sourced distribution APP ID is mapped to the group purchase APP ID, the takeout APP ID, the online purchase APP ID and the like, and one-to-many mapping relation is achieved.
In another exemplary embodiment of the present disclosure, the trigger operation may carry the mapping identifier, and the mapping identifier may be transmitted to the server along with the service order, so that the server determines, according to the mapping identifier and the preset configuration table, an application identifier of each first application program in the first application program group and an application identifier of each second application program in the second application program group. For example, when receiving the mapping identifier 1001 sent by a first application program, the server may find, in the preset configuration table, application identifiers of all first application programs in the first application program group, such as a group purchase APP ID, a takeaway APP ID, and an online purchase APP ID.
As can be seen from the above, in the present exemplary embodiment, the field of the Channel ID is added, and the mapping relationship between the APP IDs of multiple applications is realized in a mapping manner, so that the subsequent message synchronization across APPs between multiple applications of the same user can be realized. For example, the preset configuration table corresponding to the Channel ID 1001 at the bottom layer of the server may include two parts, that is, an APP ID group at the transmitting end and an APP ID group at the receiving end. For example, the Channel ID may be an array pairing mode of mapping, and if the Channel ID is 1001, the mapping relationship corresponding to the binding of 1001 is: from < group APP ID, takeaway APP ID, online shopping APP ID, … > to < Party APP ID, direct delivery APP ID, crowd-sourced delivery APP ID, … >. Thus, a transmitted or received APP group can be found through the mapping identifier 1001, one of the multiple APPs can transmit a message, and the other multiple received APPs can receive the message at the same time. For example, a user can see messages from the same delivery person only in any one of the takeaway APP's message lists. The extended service support interface of the embodiment of the present disclosure can support unlimited extension of the number of APPs at the sending end and the receiving end by adding the ChannelID field.
In step S203, first interaction information sent by the first user through the first application program is received, and the first interaction information is sent to each of the second application programs of the second user according to the application identifier of each of the second application programs.
Illustratively, the first interaction information may be solicitation information sent by a first user through the first application program; for example, in one application scenario, a user may send order promotion information through a group purchase APP, the server receives the order promotion information, and sends the order promotion information to each of the second applications corresponding to a dedicated APP ID, a direct-delivery APP ID, a crowd-sourced distribution APP ID, and the like of the second user according to application identifiers of the second applications, such as the dedicated APP ID, the direct-delivery APP ID, the crowd-sourced distribution APP ID, and the like.
Further, as shown in fig. 3, in this exemplary embodiment, sending the first interaction information to each of the second applications of the second user according to the application identifier of each of the second applications may further include obtaining a second user identifier of the second user, for example, obtaining a UID previously assigned to the second user (step S301), or obtaining an existing UID of the second user; thereby, the first interaction information is sent to each of the second applications of the second user by combining the second user identity and the application identity of each of the second applications (step S302). Furthermore, the server can call a message receiving and sending interface, and receive and send the interactive messages between the takeout APP and the plurality of delivery APPs according to the UID of the second user and the APP IDs of the second application programs of the second user, that is, the order information of the user can be synchronized to all the delivery APPs of the second user, so that the user experience can be improved.
In step S204, second interaction information sent by the second user through the second application program is received, and the second interaction information is sent to each of the first application programs of the first user according to the application identifier of each of the first application programs.
For example, the second interactive information may be information returned by the rider according to the order information. For example, in an application scenario, the rider replies to the order-asking message of the user on the special delivery APP, such as replying to a text message, "please wait a little, get right soon"; and the server receives the reply information and sends the reply information to the first application programs corresponding to the group purchase APP ID, the takeout APP PID, the online purchase APP ID and the like of the first user according to the application identifiers of the first application programs, such as the group purchase APP ID, the takeout APP ID, the online purchase APP ID and the like.
Similarly, in this example embodiment, sending the second interaction information to each of the first applications of the first user according to the application identifier of each of the first applications may further include obtaining a first user identifier (e.g., UID) of the first user, so as to send the second interaction information to each of the first applications of the first user by combining the first user identifier and the application identifier of each of the first applications. Furthermore, the server can call a message receiving and sending interface, and receive and send interactive messages between the distribution APP and the plurality of takeout APPs according to the UID of the first user and the APP IDs of the first application programs of the first user, namely reply information of the rider can be synchronized to all the takeout APPs of the first user, and user experience can be improved. In some embodiments, before the obtaining of the first user identity of the first user, the first user identity may be assigned to the first user.
The method in the exemplary embodiment of the present disclosure is further described in detail below with reference to an exemplary application scenario diagram of the present disclosure shown in fig. 4. The method comprises the following steps:
step S401: an order is generated, passing the Channel ID. For example, a user logs in a group-buying APP takeout channel to begin ordering to generate an order; the group purchase APP transmits order information and common Channel IDs preset by the group purchase APP ID, the takeout APP ID and the online purchase APP ID which belong to a group to the server as 1001.
Step S402: assign the order, return rider UID and APP ID. The server assigns the order to the rider based on factors such as delivery distance and delivery volume of the rider, and obtains the UID of the rider.
Step S403: the user gives a message to the rider. For example, the user sends the order promotion information to the assigned rider through the group purchase APP, namely, sends the information to the delivery APP used by the rider.
Step S404: the plurality of distribution APPs receive messages synchronously. For example, the server synchronously sends the order promotion information to a plurality of distribution APPs according to the mapping relation bound by the Channel ID such as 1001, and the order promotion information is synchronously sent to crowdsourcing distribution APPs, special distribution APPs, quick distribution APPs and the like. After logging in, the same rider can see the message sent by the user in any distribution APP.
Step S405: the same rider replies with a user message. For example, the same rider replies a message to the user in the delivery APP currently in use, based on, for example, the user's solicitation information.
Step S406: the plurality of meal ordering APPs receive the messages synchronously. Illustratively, the server synchronously sends the reply message to a plurality of applications, such as a group purchase APP, a takeaway APP and an online purchase APP, according to the mapping relationship bound by the Channel ID as 1001. The group purchase APP, the takeaway APP and the online purchase APP synchronously receive reply messages replied to the user by the rider, and the messages replied by the rider can be seen in any takeaway APP after the same user logs in.
In an exemplary application scenario of the embodiment of the present disclosure, it is possible that the same user wants to send and receive messages to the rider across multiple APPs among multiple APPs with takeaway services, such as american college, popular comment, and the like. The same user wants to synchronize messages in real time among a plurality of takeout services APP such as American groups and public comments. In addition, in an exemplary application scenario of the embodiment of the present disclosure, it is possible that the same rider wants to send and receive messages to and from the user across multiple applications in multiple distribution applications, such as delivery, express delivery, and the like. It is also possible that the same rider wants to synchronize messages in real time in multiple distributed APPs, such as delivery, express delivery, etc. Thus, the use difference felt by the user or the rider in different APPs of the same service provider is very small, and the user experience is greatly enhanced.
It should be noted that the application scenario of the embodiment of the present disclosure is not limited to the takeout APP, but may also be applied to, for example, a scenario in which a user purchases a commodity on the panning APP, and synchronizes information on the skatecat APP according to the present example method.
The embodiment of the disclosure is suitable for real-time synchronization of Instant Messaging (Instant Messaging) IM messages, performs message synchronization processing from the aspect of a message protocol layer rather than a service layer, and can completely support the requirement that the same user synchronously receives and transmits messages among multiple APPs in a multi-service APP multi-use scene. The embodiment of the disclosure specifically performs message synchronization based on a communication protocol, can realize message receiving and sending in multiple states such as online and offline, and supports unlimited number of APPs at both receiving/sending ends, and from a business scene, a message synchronization mechanism is unlimited in number of the APPs, and can completely support business expansibility in the future. In addition, under the condition of getting through at the enterprise user center in the future, the multi-service message center can be quickly integrated, and the user experience is enhanced.
It should be noted that although the various steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc. Additionally, it will also be readily appreciated that the steps may be performed synchronously or asynchronously, e.g., among multiple modules/processes/threads.
Further, in this example embodiment, an apparatus for synchronizing information among multiple applications in real time is also provided. Referring to fig. 5, the apparatus 500 may include a traffic distribution module 501, an identification determination module 502, a first information interaction module 503, and a second information interaction module 504. Wherein:
the communication allocation module 501 may be configured to determine that a second user of a second application program in a second application program group communicates with a first user of the first application program in response to a preset operation sent by the first user of the first application program in the first application program group; and the preset operation carries a mapping identifier.
The identifier determining module 502 may be configured to obtain, according to the mapping identifier, an application identifier of each first application program in the first application program group and an application identifier of each second application program in the second application program group associated with the first application program group.
The first information interaction module 503 may be configured to receive first interaction information sent by the first user through the first application program, and send the first interaction information to each of the second application programs of the second user according to an application identifier of each of the second application programs.
The second information interaction module 504 may be configured to receive second interaction information sent by the second user through the second application program, and send the second interaction information to each of the first application programs of the first user according to an application identifier of each of the first application programs.
The first information interaction module 503 and the second information interaction module 504 may be provided at the same time; however, when only one of the first information interaction module 503 and the second information interaction module 504 is provided, the related technical problems in the prior art can be greatly improved, and thus the present disclosure also falls within the protection scope of the present disclosure.
In an exemplary embodiment of the disclosure, the determining that the second user of the second application program in the second application program group communicates with the first user in response to a preset operation sent by the first user of the first application program in the first application program group may include: and responding to a trigger operation sent by a first user of a first application program in the first application program group, and allocating a second user of a second application program in the second application program group to communicate with the first user.
In an exemplary embodiment of the disclosure, the sending the second interaction information to each of the first applications of the first user according to the application identifier of each of the first applications includes:
acquiring a first user identity of the first user;
and sending the second interaction information to each first application program of the first user by combining the first user identity identification and the application identification of each first application program.
In an exemplary embodiment of the present disclosure, before the obtaining of the first user identity of the first user, the first user identity is assigned to the first user.
In an exemplary embodiment of the disclosure, the sending the first interaction information to each of the second application programs of the second user according to the application identifier of each of the second application programs includes:
acquiring a second user identity of the second user;
and sending the first interaction information to each second application program of the second user by combining the second user identity identification and the application identification of each second application program.
In an exemplary embodiment of the present disclosure, before the obtaining of a second user id of the second user, the second user id is assigned to the second user.
In an exemplary embodiment of the present disclosure, the triggering operation may include initiating a business order.
In an exemplary embodiment of the present disclosure, each of the first application programs includes a first service function module related to the service order, and each of the first service function modules belongs to the same account; each second application program comprises a second service function module related to the service order, and each second service function module belongs to the same account.
In an exemplary embodiment of the present disclosure, the application identifier of each of the first application programs may be stored in a first array; storing the application identification of each second application program to a second array; and setting the mapping identification for the first array and the second array so as to establish the mapping relation between the first array and the second array.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units. The components shown as modules or units may or may not be physical units, i.e. may be located in one place or may also be distributed over a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the wood-disclosed scheme. One of ordinary skill in the art can understand and implement it without inventive effort.
In an exemplary embodiment of the present disclosure, a computer-readable storage medium is further provided, on which a computer program is stored, which when executed by, for example, a processor, can implement the steps of the inter-multi-application information real-time synchronization method in any one of the above embodiments. In some possible embodiments, the various aspects of the present invention may also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps according to various exemplary embodiments of the present invention described in the section of the method for real-time synchronization of information between multiple applications mentioned above in this description, when said program product is run on said terminal device.
Referring to fig. 6, a program product 600 for implementing the above-described method for real-time synchronization of information between multiple applications according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program codes, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
In an exemplary embodiment of the present disclosure, there is also provided an electronic device, which may include a processor, and a memory for storing executable instructions of the processor. Wherein the processor is configured to execute the steps of the inter-multiple-application information real-time synchronization method in any one of the above embodiments via executing the executable instructions.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 700 according to this embodiment of the invention is described below with reference to fig. 7. The electronic device 700 shown in fig. 7 is only an example and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 7, electronic device 700 is embodied in the form of a general purpose computing device. The components of the electronic device 700 may include, but are not limited to: at least one processing unit 710, at least one memory unit 720, a bus 730 that connects the various system components (including the memory unit 720 and the processing unit 710), a display unit 740, and the like.
Wherein the storage unit stores program codes, which can be executed by the processing unit 710, so that the processing unit 710 executes the steps according to various exemplary embodiments of the present invention described in the above-mentioned inter-multiple application information real-time synchronization method section of the present specification. For example, the processing unit 710 may perform the steps as shown in fig. 1.
The memory unit 720 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)7201 and/or a cache memory unit 7202, and may further include a read only memory unit (ROM) 7203.
The memory unit 720 may also include a program/utility 7204 having a set (at least one) of program modules 7205, such program modules 7205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 730 may be any representation of one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 700 may also communicate with one or more external devices 800 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 700, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 700 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 750. Also, the electronic device 700 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) via the network adapter 760. The network adapter 760 may communicate with other modules of the electronic device 700 via the bus 730. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, or a network device, etc.) to execute the above-mentioned real-time synchronization method for information between multiple applications according to the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (9)

1. A real-time synchronization method of information among multiple applications is applied to a server, and is characterized in that the method comprises the following steps:
responding to preset operation sent by a first user of a first application program in the first application program group, and determining that a second user of a second application program in the second application program group is communicated with the first user; the preset operation carries a mapping identifier, and the mapping identifier is an application identifier included in the first application program group and an application identifier included in the second application program group which are configured in a preset configuration table in advance so as to establish a mapping relationship between the first application program group and the second application program group;
acquiring application identifiers of all first application programs in the first application program group and application identifiers of all second application programs in the second application program group according to the mapping identifiers;
receiving first interaction information sent by the first user through any one of the first application programs, and sending the first interaction information to each second application program of the second user according to the application identifier of each second application program; and/or
Receiving second interaction information sent by the second user through any second application program, and sending the second interaction information to each first application program of the first user according to the application identification of each first application program;
wherein the step of determining that a second user of a second application program in a second application program group communicates with a first user in response to a preset operation sent by the first user of the first application program in the first application program group comprises:
responding to a trigger operation sent by a first user of a first application program in the first application program group, and allocating a second user of a second application program in the second application program group to communicate with the first user;
the triggering operation comprises initiating a business order; each first application program comprises a first business function module related to the business order and each first business function module belongs to the same account; each second application program comprises a second service function module related to the service order, and each second service function module belongs to the same account.
2. The method of claim 1, wherein the step of sending the second interaction information to each of the first applications of the first user according to the application identifier of each of the first applications comprises:
acquiring a first user identity of the first user;
and sending the second interaction information to each first application program of the first user by combining the first user identity identification and the application identification of each first application program.
3. The method of claim 2, further comprising:
before the step of obtaining the first user identification of the first user, allocating the first user identification to the first user.
4. The method of claim 1, wherein the step of sending the first interaction information to each of the second applications of the second user according to the application identifier of each of the second applications comprises:
acquiring a second user identity of the second user;
and sending the first interaction information to each second application program of the second user by combining the second user identity identification and the application identification of each second application program.
5. The method of claim 4, further comprising:
and before the step of obtaining a second user identity of the second user, distributing the second user identity to the second user.
6. The method of claim 1, further comprising:
storing the application identification of each first application program to a first array;
storing the application identification of each second application program to a second array;
and setting the mapping identifications for the first array and the second array so as to establish the mapping relation between the first array and the second array.
7. An apparatus for real-time synchronization of information between multiple applications, the apparatus comprising:
the communication allocation module is used for responding to preset operation sent by a first user of a first application program in the first application program group and determining that a second user of a second application program in the second application program group is communicated with the first user; the preset operation carries a mapping identifier, and the mapping identifier is an application identifier included in the first application program group and an application identifier included in the second application program group which are configured in a preset configuration table in advance so as to establish a mapping relationship between the first application program group and the second application program group;
the identification determining module is used for acquiring the application identification of each first application program in the first application program group and the application identification of each second application program in the second application program group associated with the first application program group according to the mapping identification;
the first information interaction module is used for receiving first interaction information sent by the first user through the first application program and sending the first interaction information to each second application program of the second user according to the application identification of each second application program; and/or
The second information interaction module is used for receiving second interaction information sent by the second user through the second application program and sending the second interaction information to each first application program of the first user according to the application identifier of each first application program;
wherein, the determining that a second user of a second application program in a second application program group communicates with a first user in response to a preset operation sent by the first user of the first application program in the first application program group includes:
responding to a trigger operation sent by a first user of a first application program in the first application program group, and allocating a second user of a second application program in the second application program group to communicate with the first user;
the triggering operation comprises initiating a business order; each first application program comprises a first business function module related to the business order and each first business function module belongs to the same account; each second application program comprises a second service function module related to the service order, and each second service function module belongs to the same account.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for real-time synchronization of information between multiple applications according to any one of claims 1 to 6.
9. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the steps of the inter-multi-application information real-time synchronization method of any one of claims 1 to 6 via execution of the executable instructions.
CN201710642408.2A 2017-07-31 2017-07-31 Method, device, medium and electronic equipment for synchronizing information among multiple applications in real time Active CN107450998B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710642408.2A CN107450998B (en) 2017-07-31 2017-07-31 Method, device, medium and electronic equipment for synchronizing information among multiple applications in real time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710642408.2A CN107450998B (en) 2017-07-31 2017-07-31 Method, device, medium and electronic equipment for synchronizing information among multiple applications in real time

Publications (2)

Publication Number Publication Date
CN107450998A CN107450998A (en) 2017-12-08
CN107450998B true CN107450998B (en) 2020-06-02

Family

ID=60490568

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710642408.2A Active CN107450998B (en) 2017-07-31 2017-07-31 Method, device, medium and electronic equipment for synchronizing information among multiple applications in real time

Country Status (1)

Country Link
CN (1) CN107450998B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110690936B (en) * 2018-07-06 2021-09-24 腾讯科技(深圳)有限公司 Time control method, system and computer system in service operation
CN109213611B (en) * 2018-08-01 2021-07-02 天津字节跳动科技有限公司 Cross-process communication method, device, terminal and storage medium
CN110830360B (en) * 2019-10-12 2022-11-25 中国平安财产保险股份有限公司 Multi-application program intercommunication method, electronic device and computer readable storage medium
CN111143086B (en) * 2019-12-16 2023-04-07 维沃移动通信有限公司 Service request method and electronic equipment
CN112905295B (en) * 2021-03-31 2021-10-15 掌阅科技股份有限公司 Data intercommunication method, computing device and computer storage medium
CN113992617B (en) * 2021-09-28 2023-07-21 青岛海尔科技有限公司 Information interaction method and device, electronic equipment and storage medium
CN116155846A (en) * 2021-11-19 2023-05-23 广东美的制冷设备有限公司 Data migration method, device and storage medium
CN116028209B (en) * 2022-05-16 2023-10-20 荣耀终端有限公司 Resource scheduling method, electronic equipment and storage medium
CN115002060A (en) * 2022-05-25 2022-09-02 拉扎斯网络科技(上海)有限公司 Message processing method and device
CN115473865A (en) * 2022-08-03 2022-12-13 北京达佳互联信息技术有限公司 Information interaction method, server, client and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103078788A (en) * 2011-06-27 2013-05-01 北京奇虎科技有限公司 Information interaction method and information interaction system based on application
CN106572523A (en) * 2016-10-31 2017-04-19 宇龙计算机通信科技(深圳)有限公司 Operation control method and device of application and terminal
CN106686025A (en) * 2015-11-05 2017-05-17 腾讯科技(深圳)有限公司 Data collection method and apparatus thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103078788A (en) * 2011-06-27 2013-05-01 北京奇虎科技有限公司 Information interaction method and information interaction system based on application
CN106686025A (en) * 2015-11-05 2017-05-17 腾讯科技(深圳)有限公司 Data collection method and apparatus thereof
CN106572523A (en) * 2016-10-31 2017-04-19 宇龙计算机通信科技(深圳)有限公司 Operation control method and device of application and terminal

Also Published As

Publication number Publication date
CN107450998A (en) 2017-12-08

Similar Documents

Publication Publication Date Title
CN107450998B (en) Method, device, medium and electronic equipment for synchronizing information among multiple applications in real time
US10699301B2 (en) Data-processing method and apparatus, and computer storage medium for electronic resource transfer
US10896456B2 (en) Method and apparatus for proximity service discovery
KR101488268B1 (en) Push message service system and method thereof
US10397147B2 (en) Method, apparatus and device for exchanging name card
KR101999780B1 (en) Server, device and method for providing instant messeging service by using virtual chatbot
CN109842667B (en) Method for managing intelligent equipment by cloud platform and cloud platform system
CN110719221B (en) Instant messaging method, device, equipment and storage medium
WO2019072197A1 (en) Red packet distribution method, device, and medium
WO2020020203A1 (en) Service data sharing implementation method, device and apparatus, and storage medium
US10863312B2 (en) Moving track sharing method and apparatus, and storage medium
US20130091502A1 (en) System and method of providing virtual machine using device cloud
CN109831501B (en) Information distribution method and system based on block chain
CN111767091A (en) Method and device for acquiring user information by applet, electronic equipment and storage medium
EP2974159B1 (en) Method, device and system for voice communication
CN110837407A (en) Server-free cloud service system, resource management method thereof and electronic equipment
CN107181802B (en) Intelligent hardware control method and device, server and storage medium
CN106921557B (en) Mail sending method and equipment
CN106302093B (en) Communication method, system and server
US9760412B2 (en) Client server communication system
CN111555894B (en) Data processing method, device, equipment and storage medium
WO2023155685A1 (en) Communication method, system, and apparatus, storage medium, and processor
US20180336548A1 (en) Nfc-initiated brokered communication
KR101196657B1 (en) Messaging Systems Having Function of Compatible and Parameters between the Social-Network Service
CN114584615A (en) Cloud service collaborative interaction method, device and equipment

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