Data processing method, device, electronic device and computer readable storage medium
By dynamically setting the technical stack parameters and page parameters, dynamically changing the startup technology stack for message push, the problem of single startup scenarios in the existing technology is solved and a richer user experience is achieved.
Patent Information
- Application Number
- CN202111332763.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-11
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2041-11-11
Smart Images

Figure CN114116049B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer and Internet technology, and in particular to a data processing method and device, an electronic device, and a computer-readable storage medium. Background Art
[0002] In the era of mobile internet, push notifications play a crucial role in apps (applications). For toC (toCustomer) users, push notifications can awaken dormant users, boosting engagement, retention, and stickiness in product features and marketing campaigns. For toB (toBusiness) users, push notifications deliver important platform rules, to-do lists, and tasks in real time, improving user productivity.
[0003] At present, various APPs have basically realized the function of customized message push. Users can see push message notifications on the screen or in the notification bar after the mobile phone is locked. Clicking it can wake up the APP and quickly locate the relevant page.
[0004] In related technologies, applications are usually opened and push messages are displayed through a default and fixed technology stack (such as a native page or a fixed URL (resource locator) address), resulting in a push message startup scenario that is too single and cannot meet the needs of different users. Summary of the Invention
[0005] The purpose of the present disclosure is to provide a data processing method, device, electronic device and computer-readable storage medium, which can dynamically change the startup technology stack of the first push message according to the dynamic setting of the first technology stack parameters and the first page parameters to enrich the startup scenario of the first push message.
[0006] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by practice of the present disclosure.
[0007] An embodiment of the present disclosure provides a data processing method, including: a target device receives a trigger instruction for a first push message, where the first push message is a push message of a target application; the target device determines that the first push message carries a first technology stack parameter and a first page parameter; the target device determines a first startup address based on the first technology stack parameter and the first page parameter; the target device starts the first technology stack based on the first startup address to open the first page of the target application through the first technology stack, so as to display the first push message through the first page.
[0008] In some embodiments, the target device determines the first startup address based on the first technology stack parameters and the first page parameters, including: the target device sends the first technology stack parameters and the first page parameters to the first server; the first server determines the startup address of the first technology stack based on the first technology stack parameters; the first server determines the first startup address based on the startup address of the first technology stack and the first page parameters.
[0009] In some embodiments, the target device starts the first technology stack according to the first startup address to open the first page of the target application through the first technology stack, including: the target device starts the first technology stack according to the startup address of the first technology stack; the first technology stack opens the first page of the target application through the first page parameter.
[0010] In some embodiments, the target device determines a first startup address based on the first technology stack parameters and the first page parameters, including: the target device sends the first technology stack parameters and the first page parameters to a first server; the first server determines the startup address of the first technology stack based on the first technology stack parameters; the first server determines the target protection address of the target application, and the target protection address is used to open the protection page of the target application through the protection technology stack; the first server determines the first startup address based on the startup address of the first technology stack and the target protection address.
[0011] In some embodiments, the target device starts the first technology stack according to the first startup address to open the first page of the target application through the first technology stack, including: if the startup address of the first technology stack in the first startup address is valid, the target device starts the first technology stack according to the startup address of the first technology stack, so that the first technology stack opens the first page of the target application through the first page parameter; if the startup address of the first technology stack in the first startup address is invalid, the target device starts the protection technology stack according to the target protection address, so that the protection technology stack opens the protection page of the target application.
[0012] In some embodiments, the first push message is a first subtype message in a target type message in the target application; wherein the method includes: the target device receives a trigger instruction for a second push message, the second push message is a second subtype message in the target type message in the target application, and the first subtype and the second subtype are different types; the target device determines that the second push message carries a second technology stack parameter and a second page parameter; the target device determines a second startup address based on the second technology stack parameter and the second page parameter; the target device starts the second technology stack based on the second startup address to open the second page of the target application through the second technology stack, so as to display the second push message through the second page.
[0013] In some embodiments, before the target device receives the trigger instruction for the first push message, the method also includes: the second server receives target information sent by the target business party, the target information carries the first technology stack parameter and the first page parameter, and the target information is used to generate a push message for the target application; the second server determines the message template corresponding to the target information; the second server fills in the message template according to the target information to generate the first push message; the second server sends the first push message to the target device so that the target device pushes the first push message.
[0014] An embodiment of the present disclosure provides a data processing apparatus, which includes a target device. The target device includes: a trigger instruction acquisition module, a first technology stack parameter determination module, a first startup address determination module, and a startup module.
[0015] Among them, the trigger instruction acquisition module is used to receive a trigger instruction for a first push message, which is a push message of a target application; the first technology stack parameter determination module is used to determine that the first push message carries the first technology stack parameters and the first page parameters; the first startup address determination module is used to determine the first startup address based on the first technology stack parameters and the first page parameters; the startup module is used to start the first technology stack according to the first startup address, so as to open the first page of the target application through the first technology stack, so as to display the first push message through the first page.
[0016] An embodiment of the present disclosure proposes an electronic device, which includes: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement any of the data processing methods described above.
[0017] An embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the data processing method as described above is implemented.
[0018] The present disclosure provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the above-described data processing method.
[0019] The data processing method, device, electronic device and computer-readable storage medium provided by the embodiments of the present disclosure can dynamically change the startup technology stack of the first push message by setting the first technology stack parameters and the first page parameters in the first push message to enrich the startup scenario of the first push message.
[0020] The technical solution provided by the embodiment of the present disclosure can dynamically determine the startup technology stack for the first push message by dynamically setting the first technology stack parameters and the first page parameters, thereby improving the flexibility of determining the startup technology stack for the first push message.
[0021] It should be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The accompanying drawings are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification, are used to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and those skilled in the art can derive other drawings based on these drawings without inventive effort.
[0023] Figure 1 A schematic diagram showing an exemplary system architecture that can be applied to a data processing method or a data processing device according to an embodiment of the present disclosure.
[0024] Figure 2 The figure is a flow chart showing a data processing method according to an exemplary embodiment.
[0025] Figure 3 The present invention provides a startup address determination method and a routing method according to an exemplary embodiment.
[0026] Figure 4 The present invention provides a startup address determination method and a routing method according to an exemplary embodiment.
[0027] Figure 5is a system structure diagram corresponding to the above data processing method according to an exemplary embodiment.
[0028] Figure 6 is a flowchart of the data processing method according to an exemplary embodiment.
[0029] Figure 7 The present invention is a message push interface shown according to an exemplary embodiment.
[0030] Figure 8 It is a block diagram of a data processing device according to an exemplary embodiment.
[0031] Figure 9 A schematic structural diagram of an electronic device suitable for implementing the embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0032] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be embodied in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete and will fully convey the concepts of the example embodiments to those skilled in the art. Like reference numerals in the drawings represent like or similar parts, and thus repetitive description thereof will be omitted.
[0033] The features, structures or characteristics described in the present disclosure may be combined in any suitable manner in one or more embodiments. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known methods, devices, implementations or operations are not shown or described in detail to avoid obscuring various aspects of the present disclosure.
[0034] The accompanying drawings are merely schematic illustrations of the present disclosure. Identical reference numerals in the drawings denote identical or similar components, and thus their repeated descriptions will be omitted. Some of the block diagrams shown in the accompanying drawings do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0035] The flowcharts shown in the accompanying drawings are for illustrative purposes only and do not necessarily include all content and steps, nor must they be executed in the order described. For example, some steps may be decomposed, while others may be combined or partially combined. Therefore, the actual execution order may vary depending on the actual situation.
[0036] In this specification, the terms "a", "an", "the", "" and "at least one" are used to indicate the presence of one or more elements / components / etc.; the terms "comprising", "including" and "having" are used to express open-ended inclusion and mean that additional elements / components / etc. may exist in addition to the listed elements / components / etc.; the terms "first", "second" and "third" etc. are used only as labels and are not intended to limit the quantity of their objects.
[0037] In order to more clearly understand the above-mentioned objects, features and advantages of the present invention, the present invention is further described in detail below with reference to the accompanying drawings and specific implementation methods. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other unless there is a conflict.
[0038] Before explaining this disclosure, the names involved in this disclosure are explained first:
[0039] Push notifications: Push notifications are proactively pushed to users' mobile devices by operators using their own products or third-party tools. Users can see push notifications on their mobile devices' lock screens and notification bars. Clicking the notification bar launches the app and takes them to the corresponding page.
[0040] Mini Programs: Mini Programs are apps that can be used without downloading or installing. They realize the dream of apps being "at your fingertips," allowing users to open apps with a simple scan or search. They also embody the "use it and go" philosophy, freeing users from the worry of installing too many apps. Apps will be ubiquitous and available at any time, without the need for installation or uninstallation.
[0041] H5: HTML5 is a language for describing web content. HTML5 is the next-generation standard for the internet, a language for building and presenting internet content. It is considered one of the core technologies of the internet.
[0042] React Native: React Native (RN for short) is a cross-platform mobile application development framework.
[0043] Flutter: An open source UI toolkit that helps developers efficiently build beautiful multi-platform applications through a set of code bases, supporting mobile, web, desktop and embedded platforms
[0044] Table structure: defines a table's fields, types, primary keys, foreign keys, and indexes. These basic properties constitute the table structure of the database.
[0045] A distributed system is a software system built on a network. Because of the nature of software, distributed systems are highly cohesive and transparent. In a distributed system, a group of independent computers appear to the user as a unified whole, as if they were a single system.
[0046] Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
[0047] Figure 1 A schematic diagram showing an exemplary system architecture that can be applied to a data processing method or a data processing device according to an embodiment of the present disclosure.
[0048] like Figure 1 As shown, system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. Network 104 is a medium for providing communication links between terminal devices 101, 102, 103 and server 105. Network 104 may include various connection types, such as wired or wireless communication links or fiber optic cables.
[0049] Users can use terminal devices 101, 102, and 103 to interact with server 105 via network 104 to receive or send messages, etc. Terminal devices 101, 102, and 103 can be various electronic devices with display screens and support web browsing, including but not limited to smartphones, tablet computers, laptop computers, desktop computers, wearable devices, virtual reality devices, smart homes, etc.
[0050] Terminal device 101, 102 or 103 can implement the following method: the target device receives a trigger instruction for a first push message, and the first push message is a push message of a target application; the target device determines that the first push message carries a first technology stack parameter and a first page parameter; the target device determines a first startup address based on the first technology stack parameter and the first page parameter; the target device starts the first technology stack according to the first startup address to open the first page of the target application through the first technology stack, so as to display the first push message through the first page.
[0051] The server 105 may be a server that provides various services, such as a background management server that provides support for devices operated by users using the terminal devices 101, 102, and 103. The background management server may analyze and process received requests and other data, and feed back the processing results to the terminal device.
[0052] The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), as well as basic cloud computing services such as big data and artificial intelligence platforms, etc. This disclosure does not impose any restrictions on this.
[0053] The server 105 may receive the first technology stack parameter and the first page parameter from the target device, and then determine the startup address of the first technology stack according to the first technology stack parameter; and determine the first startup address according to the startup address of the first technology stack and the first page parameter.
[0054] In addition, the server 105 can also receive target information sent by the target business party, the target information carries the first technology stack parameter and the first page parameter, and the target information is used to generate a push message for the target application; determine the message template corresponding to the target information; fill in the message template according to the target information to generate a first push message; send the first push message to the target device so that the target device pushes the first push message.
[0055] It should be understood that Figure 1 The number of terminal devices, networks and servers is merely illustrative. The server 105 may be a single physical server or may be composed of multiple servers. It may have any number of terminal devices, networks and servers according to actual needs.
[0056] Figure 2 The method provided by the embodiment of the present disclosure can be executed by any electronic device with computing and processing capabilities. For example, the method can be executed by the above-mentioned Figure 1 The terminal device in the embodiment (that is, the target device in this embodiment) is used to execute.
[0057] Reference Figure 2 The data processing method provided by the embodiment of the present disclosure may include the following steps.
[0058] Step S202: The target device receives a trigger instruction for a first push message, where the first push message is a push message of a target application.
[0059] Among them, the target device can be a mobile phone, computer, computer and other electronic devices that can display information.
[0060] The target application can be any application that can receive push messages, such as a chat application (such as WeChat), a product purchasing application (such as Taobao, JD.com), a news browsing application, etc. This disclosure does not impose any restrictions on this.
[0061] Step S204: The target device determines that the first push message carries the first technology stack parameter and the first page parameter.
[0062] A technology stack generally refers to a combination of N technologies (N>1) that work together as an organic whole to achieve a certain purpose or function. Technology stacks can include, for example, the technology stack for native pages, the technology stack for mini-programs, the technology stack for H5, the technology stack for React Native, the technology stack for Flutter, and so on. This disclosure does not limit technology stacks.
[0063] The above-mentioned first technology stack may refer to the technology stack corresponding to the native page, the technology stack corresponding to the mini program, the technology stack corresponding to H5, the technology stack corresponding to ReactNative, the technology stack corresponding to Flutter, etc. This disclosure does not limit this.
[0064] In some embodiments, the target application may include multiple pages, and the first page parameter may be used to locate a first page displaying the first push message among the multiple pages in the target application.
[0065] Step S206 : The target device determines a first startup address according to the first technology stack parameter and the first page parameter.
[0066] In some embodiments, if the target device determines that the first push message carries the first technology stack, the target device can determine a first startup address based on the first technology stack parameters and the first page parameters, and the technology stack can be started through the first startup address to display the page corresponding to the first page parameters.
[0067] For example, if the first technical parameter corresponds to the first technology stack and the first page parameter corresponds to the first page of the target application, then the first technology stack can be started through the first startup address to display the first page of the target application, and then the specific information of the first push message can be displayed through the first page.
[0068] In some embodiments, the target device itself can determine the first startup address based on the first technology stack parameter and the first page parameter, or it can send the first technology stack parameter and the first page parameter to the first server to request the first server to determine the first startup address. This disclosure does not limit this.
[0069] It is understandable that different technology stack parameters may correspond to different technology stacks, and different page parameters may correspond to different pages. Those skilled in the art can dynamically modify the startup technology stack of the first push message (e.g., the first technology stack in the present disclosure) by modifying the first technology stack parameters carried in the first push message; and dynamically modify the display page of the first push message (e.g., the first page in the present disclosure) by modifying the first page parameters carried in the first push message.
[0070] In step S208 , the target device starts the first technology stack according to the first startup address to open the first page of the target application through the first technology stack, so as to display the first push message through the first page.
[0071] The technical solution provided in this embodiment can determine the first startup address corresponding to the first push message by dynamically setting the first technology stack parameter and the first page parameter, thereby determining the startup technology stack (for example, the first technology stack) of the first push message through the first startup address, and opening the target page of the target application through the startup technology stack to push the first push message through the target page. The technical solution provided in this embodiment can change the startup technology stack of the first push message by dynamically changing the first technology stack parameter corresponding to the first push message.
[0072] Figure 3 The present invention provides a startup address determination method and a routing method according to an exemplary embodiment.
[0073] In some embodiments, the first server may pre-store the startup addresses of multiple technology stacks (for example, the addresses of different technology stacks may be stored through different startup technology stack protocols), and then number the startup addresses of each technology stack (for example, the protocol number of the startup technology stack may be used as the number of the startup address of the technology stack), and finally synchronize the numbers of the startup addresses of each technology stack to the business party, so that when the business party sends a push message, the number of the startup address of the technology stack is carried in the push message as a technology stack parameter.
[0074] refer to Figure 3 The above boot address determination method may include the following steps S302 to S306.
[0075] Step S302: The target device sends the first technology stack parameter and the first page parameter to the first server.
[0076] Therefore, the first technology stack parameter in the first push message may be an identifier of a startup address of a certain technology stack (eg, the first technology stack) (eg, the number of the startup address), and the startup address of the first technology stack may be obtained through the first technology stack parameter.
[0077] For example, the first technology stack parameter carried in the first push message may be the number of the technology stack protocol where the first technology stack is located (eg, messageA), and the first page parameter may be test.
[0078] In some embodiments, the first server may generate an interface parameter (eg, api=message¶ml=test) using the first technology stack parameter and the first page parameter, and then send the interface parameter to the first server.
[0079] Step S304: The first server determines a startup address of the first technology stack according to the first technology stack parameters.
[0080] In some embodiments, the technology stack protocol content corresponding to the first technology stack parameter can be located according to the number of the technology stack protocol (eg, messageA) to obtain the startup address of the first technology stack (eg, opentaskflowdetal).
[0081] Step S306: The first server determines a first startup address according to the startup address of the first technology stack and the first page parameter.
[0082] In some embodiments, after obtaining the startup address of the first technology stack, the first server may splice the startup address of the first technology stack with the first page parameter to generate the first startup address (for example, splicing the startup address of the first technology stack opentaskflowdetal with the first page parameter test to generate the first startup address api=opentaskflowdetal¶ml=test. The present disclosure does not impose any restrictions on the splicing method and presentation form of the startup address of the first technology stack and the first page parameter).
[0083] refer to Figure 3 The above-mentioned startup address routing method may include the following steps S308 to S310.
[0084] Step S308: The target device starts the first technology stack according to the startup address of the first technology stack.
[0085] Step S310: The first technology stack opens the first page of the target application using the first page parameter.
[0086] It should be noted that this embodiment is described by taking the server determining the first startup according to the first technology stack parameter and the first page parameter as an example. Those skilled in the art may conceive of determining the first startup address through the target device, and this disclosure does not limit this.
[0087] Figure 4 The present invention provides a startup address determination method and a routing method according to an exemplary embodiment.
[0088] In some embodiments, the first server may pre-store the startup addresses of multiple technology stacks, then number the startup addresses of each technology stack, and finally synchronize the numbers of the startup addresses of each technology stack to the business party, so that when the business party sends a push message, the changes in the startup address of the technology stack are carried as technology stack parameters in the push message.
[0089] Therefore, the first technology stack parameter in the first push message may be the number of the startup address of a certain technology stack (eg, the first technology stack), and the startup address of the first technology stack may be obtained through the first technology stack parameter.
[0090] In some embodiments, after obtaining the startup address of the first technology stack, the first server may concatenate the startup address of the first technology stack with the first page parameter to generate the first startup address.
[0091] refer to Figure 4 The above boot address determination method may include the following steps S402 to S408.
[0092] Step S402: The target device sends the first technology stack parameter and the first page parameter to the first server.
[0093] Step S404: The first server determines a startup address of the first technology stack according to the first technology stack parameters.
[0094] Step S406: The first server determines a target protection address of the target application, where the target protection address is used to open a protection page of the target application through a protection technology stack.
[0095] Among them, the target protection address (the target protection address can be the URL of the startup message of the first push message: https: / / messageB.com) can be a fixed, default protection address, which can be started by default when the first startup address does not exist or is invalid, so as to open the protection page of the target application through the protection technology stack.
[0096] The protection technology stack can be the technology stack corresponding to the client of the target application or the technology stack corresponding to the native page of the application, and this disclosure does not limit this. The protection page can refer to the homepage or key page of the target application, and this disclosure does not limit this. Those skilled in the art can set a protection technology stack and a protection page for the target application according to their own needs.
[0097] Step S408: The first server determines a first startup address according to the startup address of the first technology stack, the first page parameter, and the target protection address.
[0098] In some embodiments, the first server may concatenate or connect the target protection address (eg, https: / / messageB.com) with the startup address of the first technology stack (eg, opentaskflowdetal) and the first page parameter (eg, test) to generate the first startup address.
[0099] In some embodiments, the first target startup address api=opentaskflowdetal¶ml=test can be generated based on the startup address of the first technology stack (for example, opentaskflowdetal) and the first page parameter (for example, test), and then the target protection address and the first target startup address are spliced to generate the first startup address (for example, https: / / messageB.com?api=opentaskflowdetal¶ml=test).
[0100] refer to Figure 4 The above-mentioned method for starting address routing may include the following steps S410 to S412.
[0101] Step S410: If the startup address of the first technology stack in the first startup address is valid, the target device starts the first technology stack according to the startup address of the first technology stack, so that the first technology stack opens the first page of the target application through the first page parameter.
[0102] In some embodiments, if the target device determines that the first startup address includes both the startup address of the first technology stack and the target protection address, the startup address of the first technology stack will be routed first to start the first technology stack first, so that the first technology stack opens the first page of the target application through the first page parameter.
[0103] Step S412: If the startup address of the first technology stack in the first startup address is invalid, the target device starts the protection technology stack according to the target protection address, so that the protection technology stack opens the protection page of the target application.
[0104] In some embodiments, if the target device determines that the first startup address does not include the startup address of the first technology stack, or the startup address of the first technology stack is invalid or cannot be routed, the protection technology stack will be started through the target protection address so as to open the protection page of the target application through the protection technology stack.
[0105] It should be noted that this embodiment is described by taking the first server determining the first startup according to the first technology stack parameter and the first page parameter as an example. Those skilled in the art may conceive of determining the first startup address through the target device, and this disclosure does not limit this.
[0106] The technical solution provided in this embodiment, through the setting of the protection technology stack and the protection page, can open the protection page of the target application through the protection technology stack when the startup address of the first technology stack is invalid or cannot be opened, so as to display the first push message as much as possible.
[0107] In some embodiments, before the target device receives the trigger instruction for the first push message, the first push message may be pushed by the following method:
[0108] The target business party sends target information to the second server, and the target information is used to generate a push message for the target application; the second server receives the target information sent by the target business party, and the target information carries the first technology stack parameter and the first page parameter; the second server determines the message template corresponding to the target information; the second server fills in the message template according to the target information to generate a first push message; the second server sends the first push message to the target device so that the target device pushes the first push message.
[0109] The second server and the first server may be the same server or different servers, and this disclosure does not impose any limitation on this.
[0110] The message template is a pre-set template used to assemble and generate messages. The first push message can be generated by filling the target information in the message template.
[0111] It is understood that the technical solution provided by the embodiments of the present disclosure can dynamically configure different technology stack parameters for different sub-type messages under the same general message category, so as to open the target application page through different technology stacks and further display the messages of different sub-types. The above process will be explained below with reference to specific embodiments.
[0112] In some real-time scenarios, the first push message may be a first subtype message in a target type message in a target application; then the target device may also receive a trigger instruction for a second push message, the second push message being a second subtype message in a target type message in the target application, the first subtype and the second subtype being different types; the target device determines that the second push message carries second technology stack parameters and second page parameters; the target device determines a second startup address based on the second technology stack parameters and the second page parameters; the target device starts the second technology stack based on the second startup address to open the second page of the target application through the second technology stack to display the second push message through the second page.
[0113] Figure 5 is a system structure diagram corresponding to the above data processing method according to an exemplary embodiment.
[0114] refer to Figure 5The system structure may include a client on a target device, a first server, and a second server. The first server may include an access service module and a routing service module. The first server may include a message-based multi-technology stack startup protocol. The message-based multi-technology stack startup protocol may include multiple technology stack startup protocols. Each technology stack startup protocol includes a startup address for a technology stack, and each technology stack startup protocol has a uniquely identifiable number.
[0115] After the first server completes the deployment of the message multi-technology stack startup protocol on the first server, the number of the technology stack startup protocol corresponding to each technology stack will be synchronized with the business party so that the business party can push the number of the technology stack startup protocol as a technology stack parameter along with the push information.
[0116] Figure 6 is a flowchart of the data processing method according to an exemplary embodiment.
[0117] Combine Figure 5 As shown in the system structure diagram, Figure 6 The illustrated embodiment will explain the above data processing method.
[0118] In execution Figure 6 Prior to the illustrated embodiment, technicians could synchronize the protocol numbers and protocol contents corresponding to each technology stack startup protocol with the target business party. The target business party would then determine the target information to be pushed, the startup technology stack corresponding to the target information, and the display page for the target information in the target application based on actual needs. The target business party would then determine the technology stack startup protocol corresponding to the startup technology stack based on the determined startup technology stack, obtain the number corresponding to the technology stack startup protocol as the first technology stack parameter for the target information, and finally send the target information carrying the first technology parameter and the target page parameters to the second server.
[0119] refer to Figure 6 , the above data processing method may include the following steps.
[0120] Step 601: The message access service receives target information sent from upstream.
[0121] In some embodiments, the message access service in the second server receives target information sent by the upstream target business party (the target message may be a system message, an operation message, or an activity message, etc.).
[0122] Step S602: determine whether the target information carries a first technology stack parameter and a first page parameter, and determine, based on the first technology stack parameter, that the target information needs to start a technology stack through a message multi-technology stack startup protocol.
[0123] In some embodiments, the message access service in the second server determines whether the target message carries the first technology stack parameters. If the target message carries the first technology stack parameters, it determines that the target message needs to start the technology stack through the message technology stack startup protocol.
[0124] Step S603: Determine a message template corresponding to the target information, and replace the value in the message template with the content of the target information to generate a first push message.
[0125] In some embodiments, the access service in the second server performs message template matching to determine a message template corresponding to the target information, and then fills in the message template according to the target information to generate the first push message.
[0126] Step S604: The message routing service pushes the first push message to the client.
[0127] In some embodiments, the routing service in the second server sends the first push message to the client, so that the client pushes the first push message.
[0128] Step S605: The client clicks on the push message.
[0129] When the user clicks on the push message through the client, the client will receive a trigger instruction for the first push message, which is a push message of the target application.
[0130] Step S606: Determine whether there is a startup address corresponding to the first technology stack parameter and the first page parameter in the client local cache.
[0131] In some embodiments, the client determines whether there is a first startup address generated by the first technology stack parameters and the first page parameters in the local cache. If there is a first startup address generated by the first technology stack and the first page parameters in the local cache, step S609 is executed, and routing is performed directly according to the first startup address in the cache to start the target page of the target application through the target technology stack, and display the target information through the target page; if there is no startup address generated by the first technology stack and the first page parameters in the local cache, step S607 is executed.
[0132] Step S607: mapping a corresponding technology stack startup protocol according to the first technology stack parameter, and obtaining a startup address of the first technology stack in the technology stack startup protocol.
[0133] In some embodiments, the client can send the first technology stack parameters and the first page parameters to the first server. The first server matches the corresponding technology stack startup protocol based on the first technology stack parameters, and then obtains the content of the matched technology stack startup protocol. The content of the matched technology stack startup protocol can be the startup address of the first technology stack.
[0134] Step S608 : Concatenate the startup address of the first technology stack obtained above with the first page parameter carried in the push message to generate a startup address.
[0135] In some embodiments, the first server may concatenate the acquired startup address of the first technology stack with the first page parameter to generate a first startup address.
[0136] In step S609 , the client performs routing according to the first startup address generated above, so as to start the target page of the target application through the target technology stack, and display the target information through the target page.
[0137] The client starts the first technology stack according to the first startup address to open the first page of the target application through the first technology stack, so as to display the first push message through the first page.
[0138] The technical solution provided by this embodiment, on the one hand, quickly and conveniently generates a first push message based on the target message through a message template; on the other hand, when generating the startup address, it first determines whether there is a startup address corresponding to the first technology stack and the first page parameters in the client buffer. If not, the startup address is generated by splicing, which saves computing resources and improves push efficiency; finally, the first startup address corresponding to the first push message can be determined by the dynamically set first technology stack parameters and the first page parameters, so as to determine the startup technology stack (for example, the first technology stack) of the first push message through the first startup address, and open the target page of the target application through the startup technology stack, so as to push the first push message through the target page. The technical solution provided by this embodiment can change the startup technology stack of the first push message by dynamically changing the first technology stack parameters corresponding to the first push message.
[0139] In some embodiments, the data processing method provided by the present disclosure is used to dynamically configure the technology stack parameters and page parameters for push messages, and the startup technology stack can be dynamically determined for push messages. Through this method, multiple sub-type messages (for example, MaiX point, JingX broadcast, X Mai video, live reminder, subscription notification, merchant Q&A, etc. in a certain application) can be integrated into a large category of messages (for example, X Mai message), and then when each push message is sent, the technology stack parameters are set for each push message separately, so as to start different technology stacks to display push messages of different sub-types. In some embodiments, after integrating messages of different sub-types using the data processing method provided by the present disclosure, the messages can be pushed to users according to the large category (for example, X Mai message). Figure 7 Click any push message under this category to start the technology stack according to the technology stack parameters and page parameters carried in the push message.
[0140] For example, users can Figure 7 The interface shown is used to view each message under the general message category (for example, X-microphone message) (different messages may correspond to different subtypes, for example, some are live video messages, some are text messages, etc.). When the user clicks on a push message under the general message category, the corresponding first technology stack (for example, a native technology stack, a technology stack corresponding to a mini program, a technology stack corresponding to H5, or a technology stack corresponding to React Native) can be started according to the first technology stack parameter and the first page parameter carried by the push message to display the push message through the corresponding first page.
[0141] In the technical solution provided in this embodiment, different technology stack parameters can start different technology stacks. Therefore, those skilled in the art can set different technology stack parameters for messages of different subtypes under this general category, so as to display messages of different subtypes through different technology stacks.
[0142] Figure 8 FIG. 1 is a block diagram of a data processing device according to an exemplary embodiment. Figure 8 The data processing device 800 provided by the embodiment of the present disclosure can be a target device, and the target device may include: a trigger instruction acquisition module 801, a first technology stack parameter determination module 802, a first startup address determination module 803 and a startup module 804.
[0143] Among them, the trigger instruction acquisition module 801 can be used by the target device to receive a trigger instruction for a first push message, and the first push message is a push message of the target application; the first technology stack parameter determination module 802 can be used by the target device to determine that the first push message carries the first technology stack parameter and the first page parameter; the first startup address determination module 803 can be used by the target device to determine the first startup address according to the first technology stack parameter and the first page parameter; the startup module 804 can be used by the target device to start the first technology stack according to the first startup address, so as to open the first page of the target application through the first technology stack, so as to display the first push message through the first page.
[0144] In some embodiments, the first startup address determination module 803 may include: a first parameter sending submodule, the data processing device 800 may also be a first server, and the first service includes: a technology stack startup address first determination module and a first startup address first generation module.
[0145] Among them, the first parameter sending submodule can be used by the target device to send the first technology stack parameter and the first page parameter to the first server; the technology stack startup address first determination module can be used to determine the startup address of the first technology stack according to the first technology stack parameter; the first startup address first generation module can be used by the first server to determine the first startup address according to the startup address of the first technology stack and the first page parameter.
[0146] In some embodiments, the startup module 804 may include: a first technology stack first startup submodule and a first page first opening submodule.
[0147] Among them, the first startup submodule of the first technology stack can be used by the target device to start the first technology stack according to the startup address of the first technology stack; the first page first opening submodule can be used by the first technology stack to open the first page of the target application through the first page parameter.
[0148] In some embodiments, the first startup address determination module 803 may include: a second parameter sending submodule; the data processing device 800 may also include a first server, and the first server may also include: a technology stack startup address second determination module, a target protection address determination module, and a first startup address second generation module.
[0149] Among them, the second parameter sending submodule can be used by the target device to send the first technology stack parameters and the first page parameters to the first server; the second technology stack startup address determination module can be used by the first server to determine the startup address of the first technology stack according to the first technology stack parameters; the target protection address determination module can be used by the first server to determine the target protection address of the target application, and the target protection address is used to open the protection page of the target application through the protection technology stack; the first startup address second generation module can be used by the first server to determine the first startup address according to the startup address of the first technology stack and the target protection address.
[0150] In some embodiments, the startup module 804 may include: a valid self-draw judgment submodule and an invalid self-draw judgment submodule.
[0151] Among them, the valid judgment submodule can be used to, if the startup address of the first technology stack in the first startup address is valid, then the target device starts the first technology stack according to the startup address of the first technology stack, so that the first technology stack opens the first page of the target application through the first page parameter; the invalid judgment submodule can be used to, if the startup address of the first technology stack in the first startup address is invalid, then the target device starts the protection technology stack according to the target protection address, so that the protection technology stack opens the protection page of the target application.
[0152] In some embodiments, the first push message is a first subtype message in the target type message in the target application; wherein, the data processing device 800 includes: a second push message acquisition module, a second parameter acquisition module, a second startup address determination module and a second startup module.
[0153] Among them, the second push message acquisition module can be used by the target device to receive a trigger instruction for a second push message, and the second push message is a second subtype message in the target type message in the target application, and the first subtype and the second subtype are different types; the second parameter acquisition module can be used by the target device to determine that the second push message carries second technology stack parameters and second page parameters; the second startup address determination module can be used by the target device to determine the second startup address according to the second technology stack parameters and the second page parameters; the second startup module can be used by the target device to start the second technology stack according to the second startup address, so as to open the second page of the target application through the second technology stack, so as to display the second push message through the second page.
[0154] In some embodiments, the data processing device 800 may also be a second server, and the second service may include: a target information acquisition module, a message template acquisition module, a filling module and a sending module.
[0155] Among them, the target information acquisition module can be used to receive the target information sent by the target business party before the target device receives the trigger instruction for the first push message, the target information carries the first technology stack parameter and the first page parameter, and the target information is used to generate a push message for the target application; the message template acquisition module can be used to determine the message template corresponding to the target information; the filling module can be used to fill in the message template according to the target information to generate the first push message; the sending module can be used to send the first push message to the target device so that the target device pushes the first push message.
[0156] Since the functions of the apparatus 800 have been described in detail in the corresponding method embodiments, they will not be described in detail herein.
[0157] The modules and / or submodules described in the embodiments of the present application may be implemented in software or hardware. The modules and / or submodules described may also be provided in a processor. The names of these modules and / or submodules do not, in certain circumstances, limit the modules and / or submodules themselves.
[0158] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the above-mentioned module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of the boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0159] Furthermore, the figures above are merely illustrative of the processes included in the methods according to exemplary embodiments of the present disclosure and are not intended to be limiting. It is readily understood that the processes illustrated in the figures above do not indicate or limit the temporal order of these processes. Furthermore, it is readily understood that these processes may be executed synchronously or asynchronously, for example, in multiple modules.
[0160] Figure 9 Schematic diagram of the structure of an electronic device suitable for implementing the embodiment of the present disclosure is shown. Figure 9 The electronic device 900 shown is only an example and should not limit the functions and scope of use of the embodiments of the present disclosure.
[0161] like Figure 9 As shown, the electronic device 900 includes a central processing unit (CPU) 901, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 902 or the program loaded from the storage part 908 into the random access memory (RAM) 903. Various programs and data required for the operation of the electronic device 900 are also stored in the RAM 903. The CPU 901, ROM 902 and RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0162] The following components are connected to the I / O interface 905: an input section 906 including a keyboard, a mouse, and the like; an output section 907 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage section 908 including a hard disk and the like; and a communication section 909 including a network interface card such as a LAN card or a modem. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, is installed in the drive 910 as needed, so that a computer program read therefrom can be installed in the storage section 908 as needed.
[0163] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 909, and / or installed from a removable medium 99. When the computer program is executed by the central processing unit (CPU) 901, the above-mentioned functions defined in the system of the present application are executed.
[0164] It should be noted that the computer-readable storage medium shown in the present disclosure can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this application, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. This propagated data signal can take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable storage medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. Program code contained on a computer-readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical cable, RF, or any suitable combination thereof.
[0165] As another aspect, the present application also provides a computer-readable storage medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed by a device, the device can implement functions including receiving a trigger instruction for a first push message, which is a push message of a target application; determining that the first push message carries a first technology stack parameter and a first page parameter; determining a first startup address based on the first technology stack parameter and the first page parameter; and starting the first technology stack based on the first startup address to open the first page of the target application through the first technology stack, so as to display the first push message through the first page.
[0166] According to one aspect of the present application, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in various optional implementations of the above-described embodiments.
[0167] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including a number of instructions for enabling a computing device (which can be a personal computer, a server, a mobile terminal, or a smart device, etc.) to execute the method according to the embodiment of the present disclosure, for example Figure 2 、 Figure 3 、 Figure 4 or Figure 6 One or more of the steps shown.
[0168] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the disclosure herein. This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not claimed herein. The specification and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the claims.
[0169] It should be understood that the present disclosure is not limited to the detailed structures, drawings or implementations shown herein, but rather is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.
Claims
1. A data processing method, characterized in that: include: The target device receives a trigger instruction for a first push message, where the first push message is a push message of a target application; The target device determines that the first push message carries a first technology stack parameter and a first page parameter; The target device determines a first startup address according to the first technology stack parameter and the first page parameter; The target device starts a first technology stack according to the first startup address to open a first page of the target application through the first technology stack, so as to display the first push message through the first page; The target device determines the first startup address according to the first technology stack parameter and the first page parameter, including: The target device sends the first technology stack parameter and the first page parameter to the first server; The first server determines a startup address of the first technology stack according to the first technology stack parameters; The first server concatenates the startup address of the first technology stack and the first page parameter to generate the first startup address.
2. The method according to claim 1, characterized in that: The target device starts a first technology stack according to the first startup address to open a first page of the target application through the first technology stack, including: The target device starts the first technology stack according to the startup address of the first technology stack; The first technology stack opens the first page of the target application through the first page parameter.
3. The method according to claim 1, characterized in that: The target device determines a first startup address according to the first technology stack parameter and the first page parameter, including: The target device sends the first technology stack parameter and the first page parameter to the first server; The first server determines a startup address of the first technology stack according to the first technology stack parameters; The first server determines a target protection address of the target application, where the target protection address is used to open a protection page of the target application through a protection technology stack; The first server determines the first startup address according to the startup address of the first technology stack, the first page parameter, and the target protection address.
4. The method according to claim 3, characterized in that: The target device starts a first technology stack according to the first startup address to open a first page of the target application through the first technology stack, including: If the startup address of the first technology stack in the first startup address is valid, the target device starts the first technology stack according to the startup address of the first technology stack, so that the first technology stack opens the first page of the target application through the first page parameter; If the startup address of the first technology stack in the first startup address is invalid, the target device starts the protection technology stack according to the target protection address so that the protection technology stack opens the protection page of the target application.
5. The method according to claim 1, characterized in that: The first push message is a first subtype message in a target type message in the target application; wherein the method comprises: The target device receives a trigger instruction for a second push message, where the second push message is a second subtype message of the target type message in the target application, and the first subtype and the second subtype are different types; The target device determines that the second push message carries a second technology stack parameter and a second page parameter; The target device determines a second startup address according to the second technology stack parameter and the second page parameter; The target device starts the second technology stack according to the second startup address to open the second page of the target application through the second technology stack, so as to display the second push message through the second page.
6. The method according to claim 1, characterized in that: Before the target device receives the trigger instruction for the first push message, the method further includes: The second server receives target information sent by the target business party, where the target information carries the first technology stack parameter and the first page parameter, and the target information is used to generate a push message for the target application; The second server determines a message template corresponding to the target information; The second server fills in the message template according to the target information to generate the first push message; The second server sends the first push message to the target device, so that the target device pushes the first push message.
7. A data processing device, characterized in that: The data processing apparatus comprises a target device, wherein the target device comprises: A trigger instruction acquisition module, used to receive a trigger instruction for a first push message, where the first push message is a push message of a target application; A first technology stack parameter determination module, used to determine that the first push message carries a first technology stack parameter and a first page parameter; A first startup address determining module, configured to determine a first startup address according to the first technology stack parameter and the first page parameter; a startup module, configured to start a first technology stack according to the first startup address, so as to open a first page of the target application through the first technology stack, so as to display the first push message through the first page; Wherein, determining the first startup address according to the first technology stack parameter and the first page parameter includes: The target device sends the first technology stack parameter and the first page parameter to the first server, so that the first server determines the startup address of the first technology stack according to the first technology stack parameter and concatenates the startup address of the first technology stack and the first page parameter to generate the first startup address.
8. An electronic device, characterized in that: include: Memory; as well as A processor coupled to the memory, the processor being configured to execute the data processing method according to any one of claims 1 to 6 based on instructions stored in the memory.
9. A computer-readable storage medium having a program stored thereon, wherein when the program is executed by a processor, the data processing method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Page jumping method and device and storage medium
CN113127130A
Technologies for shadow stack manipulation for binary translation systems
US9477453B1