Activity data acquisition method and apparatus, electronic device, and storage medium
By configuring APIs in the activity micro-application, task data can be directly obtained and stored, solving the problem of poor timeliness in activity data acquisition in existing technologies. This enables real-time data storage and retrieval, improving the efficiency of data acquisition.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA CONSTRUCTION BANK
- Filing Date
- 2021-12-21
- Publication Date
- 2026-04-10
AI Technical Summary
Existing technologies lack timeliness in acquiring activity data, leading to data acquisition delays and affecting the timeliness of precision marketing.
By configuring APIs with different functions in the activity micro-application, the terminal can directly obtain the task table and jump to the task function page, injecting user identifiers and task information into the application framework's cache to achieve real-time data storage and retrieval.
It improves the efficiency of activity data acquisition. User task completion status is stored in real time on the terminal, and the event organizer can query it directly, avoiding the problem of data acquisition delay and improving data timeliness.
Smart Images

Figure CN114238412B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of mobile Internet, and in particular to an activity data acquisition method and device, an electronic device, a storage medium and a program product. BACKGROUND
[0002] With the rapid development of mobile Internet, the digital marketing capabilities of various industries are rapidly improving relying on Internet technology. Through the development of online digital marketing activities, more customer groups can be attracted, the user scale of the activities can be expanded, user stickiness can be improved, and industry recognition can be enhanced.
[0003] In the process of carrying out marketing activities, timely obtaining the user participation in the activities plays a very important role in gradually realizing precision marketing. In the prior art, the transaction records of the user participation in the activities are usually saved in the backend, and then the user participation in the activities is obtained by querying the transaction records. However, the generation and acquisition of the transaction records often have a certain delay, and therefore the timeliness is not strong. SUMMARY
[0004] The present application provides an activity data acquisition method and device, an electronic device, a storage medium and a program product to solve the problem of poor timeliness of obtaining activity data in the prior art.
[0005] In a first aspect, the present application provides an activity data acquisition method, which comprises:
[0006] starting an activity micro application in response to a triggering operation of a user on an activity portal;
[0007] acquiring a task table of the activity through a data API of the micro application, wherein the task table at least includes task information of at least one task included in the activity;
[0008] jumping to a function page of a target task through a jump API of the micro application according to the task information of the target task in response to a triggering operation of the user on the target task;
[0009] injecting the task information of the target task and a user identifier of the user into an application framework for executing the target task through an injection data API of the micro application;
[0010] acquiring the completion condition of the target task by querying a cache area through a completion state acquisition API of the micro application according to the task information of the target task carried in the request in response to an activity data acquisition request of the micro application, wherein the cache area stores a completion identifier of each user on the target task acquired by the application framework.
[0011] In a second aspect, the present application provides an activity data acquisition apparatus, comprising:
[0012] a micro-application starting module configured to start an activity micro-application in response to a triggering operation of a user on an activity entry;
[0013] a task table acquisition module configured to acquire a task table of the activity through a data API of the micro-application, wherein the task table comprises at least task information of at least one task included in the activity;
[0014] a jump module configured to jump to a function page of a target task according to task information of the target task through a jump API of the micro-application in response to a triggering operation of a user on the target task;
[0015] an injection module configured to inject the task information of the target task and a user identifier of the user into an application framework for executing the target task through an injection data API of the micro-application;
[0016] a data acquisition module configured to acquire a completion status of the target task through a completion status acquisition API of the micro-application in a cache area according to the task information of the target task carried in an activity data acquisition request of the micro-application in response to the request, wherein the cache area stores a completion identifier of the target task of each user acquired by the application framework.
[0017] In a third aspect, the present application provides an electronic device, comprising:
[0018] one or more processors;
[0019] a storage device configured to store one or more programs,
[0020] when the one or more programs are executed by the one or more processors, the one or more processors implement the activity data acquisition method as described above.
[0021] In a fourth aspect, the present application provides a computer readable storage medium having a computer program stored thereon, the program being executed by a processor to implement the activity data acquisition method as described above.
[0022] In a fifth aspect, the present application provides a computer program product comprising a computer program, the computer program being executed by a processor to implement the activity data acquisition method as described above.
[0023] In the technical solution of the present application, the activity micro-application developed by the activity party is configured with different function APIs (Application Programming Interface) in advance. When the user triggers the activity entry, the terminal will start the activity micro-application, first acquire the task table of the activity developed by the activity party through the data API, and then jump to the function page of the task through the jump API when the user triggers any task, and inject the task information of the task and the user identifier of the user into the application framework for executing the task through the data API injection, so that the application framework can save the information of the user completing the task in the cache area of the terminal after learning the completion of the task. When the activity party wants to acquire the completion of the task by the user, the activity micro-application will send a request, and the terminal will respond to the request and query the completion of the task from the cache area through the completion state acquisition API. Thus, the completion of the user completing the activity and the task can be stored in the terminal, and the activity party can directly query and acquire the data from the terminal, without the need to wait for the generation of the transaction record of the activity and the task as in the prior art, so as to avoid the problem of low timeliness of data acquisition and improve the efficiency of data acquisition of the user participating in the activity and the task. BRIEF DESCRIPTION OF DRAWINGS
[0024] Figure 1 is a flow chart of the activity data acquisition method in the first embodiment of the present application;
[0025] Figure 2 is a flow chart of the activity data acquisition method in the second embodiment of the present application;
[0026] Figure 3 is a structural schematic diagram of the activity data acquisition device in the third embodiment of the present application;
[0027] Figure 4 is a structural schematic diagram of the electronic device in the fourth embodiment of the present application. DETAILED DESCRIPTION
[0028] The present application will be further described in detail below in combination with the drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application. In addition, it should be noted that, for the convenience of description, only the parts related to the present application are shown in the drawings, but not all the structures.
[0029] Embodiment One
[0030] Figure 1A flowchart of an activity data acquisition method provided by Embodiment One of the present application, the embodiment can be applied to the case of acquiring activity data of user participation in activities, and relates to the technical field of mobile Internet. The method can be executed by an activity data acquisition device, which can be realized in the form of software and / or hardware, and is preferably configured in an electronic device such as a smart terminal or a computer device. As shown in FIG. 1, the method specifically includes the following steps. Figure 1
[0031] S101, in response to a triggering operation of a user on an activity portal, starting an activity micro application.
[0032] The method of the embodiment of the present application can be applied to a terminal installed with a mobile bank application, and each branch bank as an activity party displays its own activities and tasks to the user in the form of an activity page in the mobile bank application (client). During the use of the mobile bank, the user triggers the activity portal of the activity page, and the terminal starts the micro application corresponding to the activity, and the user can participate in the activity and the task through the micro application.
[0033] S102, acquiring a task table of the activity through a data delivery API of the micro application, wherein the task table at least includes task information of at least one task contained in the activity.
[0034] Different activities provided by different activity parties are usually realized based on different components, and the transaction of user participation in the activity is naturally completed through different transaction components. Therefore, in the prior art, the activity data is acquired through the transaction record, which has a certain delay. In the embodiment of the present application, the data acquisition at the terminal level is directly realized through different function APIs after the activity micro application is started, and the transaction record generation is not needed, thereby improving the efficiency.
[0035] Specifically, the data delivery API is pre-configured in the micro application of the activity, and the task table of the activity is acquired through the data delivery API of the micro application, wherein the task table at least includes task information of at least one task contained in the activity, such as a task code and a task deadline, and the task code has the function of uniquely identifying the task.
[0036] S103, in response to a triggering operation of a user on any target task, jumping to a function page of the target task through a jump API of the micro application according to task information of the target task.
[0037] The micro application of the activity can include multiple tasks, and when the user triggers any target task, the terminal jumps to the function page of the target task through the jump API of the micro application according to the task information of the target task. The task information can also include information required for displaying the task function page.
[0038] S104, inject the task information of the target task and the user identifier of the user into the application framework executing the target task through the injection data API of the micro application.
[0039] The micro application is also pre-configured with an injection data API for injecting the task information of the target task and the user identifier of the user into the application framework executing the target task. The application framework is a mobile banking framework. The purpose of injecting data into the application framework is to enable the application framework to obtain the transaction completion status of each task and save the information in the terminal locally. Meanwhile, the transaction status of each task completed by each user can also be saved in the terminal according to the user identifier.
[0040] S105, in response to an activity data acquisition request of the micro application, query the cache area through the completion status acquisition API of the micro application according to the task information of the target task carried in the request, and obtain the completion status of the target task. The cache area stores the completion identifier of the target task of each user acquired by the application framework.
[0041] The activity party can acquire activity data through the micro application. Specifically, the activity party can initiate an activity data acquisition request through the micro application through its own server. The terminal queries the cache area of the terminal locally through the completion status acquisition API of the micro application according to the task information of the target task carried in the request, such as the task code, thereby obtaining the completion status of the target task. The application framework stores the completion identifier of the target task, such as the completion time of the target task completed by each user, in the cache area when obtaining the completion of each user.
[0042] The technical scheme of the embodiment of the present application micro-applies the activity carried out by the activity party, and pre-configures APIs (Application Programming Interface) of different functions in the activity micro-application. When the user triggers the activity entrance, the terminal starts the activity micro-application, acquires the task table of the activity carried out by the activity party through the data API, and then jumps to the function page of the task through the jump API when the user triggers any task, and injects the task information of the task and the user identifier of the user into the application framework for executing the task through the data injection API, so that the application framework saves the information of the user completing the task in the cache area of the terminal after learning that the task is completed. When the activity party wants to acquire the completion of the task by the user, the activity micro-application sends a request, and the terminal responds to the request and acquires the completion of the task from the cache area through the completion state acquisition API. Thus, the completion of the user completing the activity and the task can be stored in the terminal, and the activity party can directly query and acquire the data from the terminal, without needing to wait for the transaction record of the activity and the task to be generated before recording and querying, thereby avoiding the problem of low timeliness of data acquisition, and improving the efficiency of acquiring the data of the user participating in the activity and the task.
[0043] Embodiment Two
[0044] Figure 2 The flowchart of the activity data acquisition method provided by the embodiment Two of the present application is further optimized on the basis of the above-mentioned embodiment. As shown in the figure, Figure 2 the method comprises:
[0045] S201, in response to the triggering operation of the user on the activity entrance, starting the activity micro-application.
[0046] S202, acquiring the task table of the activity through the data API of the micro-application, wherein the task table at least includes the task information of at least one task included in the activity.
[0047] The task information includes the task code and the task deadline.
[0048] S203, in response to the triggering operation of the user on any target task, jumping to the function page of the target task through the jump API of the micro-application according to the task information of the target task.
[0049] S204, injecting the task information of the target task and the user identifier of the user into the application framework for executing the target task through the data injection API of the micro-application.
[0050] In an implementation, for a complex task, the activity data can not only include the completion time of the task, but also other more detailed data related to the completion of the task according to requirements, for example, other detailed information such as the region to which the activity or task belongs or the amount involved. Therefore, according to different requirements in different scenarios, the dimensions of data to be acquired can be injected into the application framework together with the task information of the target task and the user identifier, so that the application framework acquires the activity data from the dimensions of the injected data.
[0051] S205, in response to the activity data acquisition request of the micro application, according to the task information of the target task carried in the request, the completion state of the micro application is queried in the cache area through the API to obtain the completion of the target task, wherein the cache area stores the completion identifier of each user for the target task acquired by the application framework.
[0052] S206, the authenticity of the completion of the target task is verified according to the task table.
[0053] The completion identifier of the target task can include the completion time of each user completing the target task. The task information of the task table includes the task code and the task deadline of each task. By comparing the task deadline with the completion time of the target task, it can be determined whether the target task is a current valid task. At the same time, the target task code can be queried in the task table. If the target task code exists in the task table, the authenticity of the target task can be verified.
[0054] S207, the completion of the target task is returned to the micro application.
[0055] After the completion of the target task is returned to the micro application, the micro application can feed back the completion to the back-end server of the activity party, and the back-end server can further process the data statistics and processing.
[0056] The technical scheme of the embodiment of the application micro-applies the activity carried out by the activity party, and pre-configures APIs of different functions in the activity micro-application. When a user triggers an activity entrance, the terminal starts the activity micro-application, acquires a task table of the activity carried out by the activity party through a data API, and then jumps to a function page of the target task through a jump API when the user triggers any target task, and injects the task information of the target task and the user identifier of the user into an application framework for executing the target task through an injection data API, so that the application framework saves the information that the user completes the target task in a cache area of the terminal after learning that the target task is completed, and checks the authenticity of the target task to ensure the accuracy of the data. When the activity party wants to acquire the completion of the target task by the user, the activity micro-application sends a request, and the terminal responds to the request, acquires the completion of the target task from the cache area through a completion state acquisition API, and returns to the micro-application. In this way, when the user completes the activity and the target task, the completion of the user can be stored in the terminal, and the activity party can directly query and acquire the data from the terminal, without needing to wait for the generation of the transaction record of the activity and the target task as in the prior art, so that the problem of low timeliness of data acquisition is avoided, and the efficiency of acquiring the data of the user participating in the activity and the target task is improved.
[0057] Embodiment three
[0058] Figure 3 is a structural schematic diagram of an activity data acquisition device in the embodiment. The embodiment can be applied to the case. The device can implement the activity data acquisition method described in any embodiment of the application. As shown in the figure, the device specifically includes: Figure 3
[0059] The micro-application starting module 301 is configured to start the activity micro-application in response to the triggering operation of the user on the activity entrance.
[0060] The task table acquisition module 302 is configured to acquire the task table of the activity through a data API of the micro-application, wherein the task table at least includes the task information of at least one target task included in the activity.
[0061] The jump module 303 is configured to jump to the function page of the target task through a jump API of the micro-application according to the task information of the target task in response to the triggering operation of the user on the target task.
[0062] The injection module 304 is configured to inject the task information of the target task and the user identifier of the user into the application framework for executing the target task through an injection data API of the micro-application.
[0063] The data acquisition module 305 is used to respond to the activity data acquisition request of the micro-application, and according to the task information of the target task carried in the request, query the cache through the completion status acquisition API of the micro-application to obtain the completion status of the target task. The cache stores the completion identifier of each user for the target task obtained by the application framework.
[0064] Optionally, the task information includes a task code and a task deadline.
[0065] Optionally, the device further includes:
[0066] The verification module is used to verify the authenticity of the completion status of the target task based on the task table.
[0067] Optionally, the device further includes:
[0068] The data return module is used to return the completion status of the target task to the micro-application.
[0069] Optionally, the completion identifier of the target task includes the completion time of each user in completing the target task.
[0070] Optionally, the device is configured on a terminal with a mobile banking application installed.
[0071] The activity data acquisition device provided in this application embodiment can execute the activity data acquisition method provided in any embodiment of this application, and has the corresponding functional modules and beneficial effects of the execution method.
[0072] Example 4
[0073] Figure 4 This is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of this application. Figure 4 A block diagram is shown of an exemplary electronic device 12 suitable for implementing embodiments of the present application. Figure 4 The electronic device 12 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0074] like Figure 4 As shown, the electronic device 12 is represented in the form of a general-purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, system memory 28, and bus 18 connecting different system components (including system memory 28 and processing unit 16).
[0075] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration bus, a processor or local bus using any of a variety of bus architectures. By way of example, these architectures include Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
[0076] Electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that is accessible by electronic device 12 and includes both volatile and non-volatile media, removable and non-removable media.
[0077] System memory 28 can include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. Electronic device 12 can further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 can be provided for reading from and writing to a non-removable, non-volatile magnetic media (e.g., a "hard drive"). Figure 4 not shown, is typically provided as residual storage across electronic device 12, and can be used for storing data that is both received as well as data that is generated by the processor 20. A Figure 4 not shown, is typically provided as residual storage across electronic device 12, and can be used for storing data that is both received as well as data that is generated by the processor 20. A
[0078] Program / utility 40 having a set (at least one) of program modules 42 can be stored in, for example, system memory 28 by way of example, such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination thereof, which can include implementation of the network environment. Program modules 42 generally carry out the functions and / or methodologies of embodiments of the application as described herein.
[0079] The electronic device 12 can also be in communication with one or more external devices 14, such as a keyboard, a pointing device, a display 24, etc.; can also be in communication with one or more devices that enable a user to interact with the electronic device 12; and / or can be in communication with any devices (such as a network card, a modem, etc.) that enable the electronic device 12 to communicate with one or more other computing devices. Such communication can be facilitated by an Input / Output (I / O) interface 22. Further, the electronic device 12 can communicate with one or more networks, such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet, by way of a network adapter 20. As illustrated, the network adapter 20 communicates with the other components of the electronic device 12 by way of the bus 18. It should be appreciated that, although not shown, other hardware and / or software modules could be used in connection with the electronic device 12. These include, but are not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archival storage systems, etc.
[0080] The processing unit 16 performs various overall functions of the electronic device 12 by running programs stored in the system memory 28, such as implementing the activity data acquisition method provided by the embodiments of the present application.
[0081] Embodiment Five
[0082] The embodiment of the present application further provides a computer readable storage medium, which has stored thereon a computer program, and the computer program is executed by a processor to implement the activity data acquisition method provided by the embodiments of the present application.
[0083] The computer storage medium of the embodiments of the present application can adopt any combination of one or more computer readable mediums. The computer readable medium can be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium, for example, can be, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or apparatus, or any combination of the above. More specific examples (a non-exhaustive list) of the computer readable storage medium include an electrical connection having one or more wires, a portable computer diskette, 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 above. In this document, the computer readable storage medium can be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus or device.
[0084] A computer readable signal medium can include a propagated data signal with computer executable code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated signal can take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium can be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate or transport programming code.
[0085] Program code embodied on a computer readable medium can be transmitted using any appropriate medium, including but not limited to wireless, wire line, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0086] Computer program code for carrying out operations for aspects of the present application can be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).
[0087] The embodiments of the present application further provide a computer program product, comprising a computer program, wherein the computer program is used to perform the activity data acquisition method when executed by a processor.
[0088] In the technical solution of the embodiments of the present application, the collection, storage, use, processing, transmission, provision and disclosure of the user personal information comply with the relevant laws and regulations and do not violate public order and good customs.
[0089] It should be noted that the above only describes the preferred embodiments of the present application and the technical principles applied. It can be understood by those skilled in the art that the present application is not limited to the specific embodiments described herein, and those skilled in the art can make various obvious changes, readjustments and replacements without departing from the protection scope of the present application. Therefore, although the present application has been described in detail through the above embodiments, the present application is not limited to the above embodiments, and can include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.
Claims
1. An activity data acquisition method applied to a terminal on which a mobile banking application is installed, characterized by, The method comprises the following steps: starting an activity micro application in response to a triggering operation of a user on an activity entry of an activity page during use of the mobile banking application; acquiring a task table of the activity through a data API of the micro application, wherein the task table at least includes task information of at least one task included in the activity; jumping to a function page of a target task according to the task information of the target task through a jump API of the micro application in response to a triggering operation of the user on the target task; injecting the task information of the target task and a user identifier of the user into an application framework for executing the target task through an injection data API of the micro application, wherein the application framework is a framework of the mobile banking application; acquiring completion of the target task through a completion state acquisition API of the micro application in a cache area of the terminal locally in response to an activity data acquisition request of the micro application, according to the task information of the target task carried in the request, wherein the cache area stores a completion identifier of each user on the target task acquired by the application framework.
2. The method of claim 1, wherein, The task information includes a task code and a task deadline.
3. The method of claim 2, wherein, The method further comprises the following steps: verifying authenticity of the completion of the target task according to the task table.
4. The method of claim 1, wherein, The method further comprises the following steps: returning the completion of the target task to the micro application.
5. The method of claim 1, wherein, The completion identifier of the target task includes a completion time of each user on the target task.
6. An activity data acquisition apparatus configured to a terminal in which a mobile banking application is installed, characterized by The method comprises the following steps: a micro application starting module, configured to start an activity micro application in response to a triggering operation of a user on an activity entry of an activity page during use of the mobile banking application; a task table acquiring module, configured to acquire a task table of the activity through a data API of the micro application, wherein the task table at least includes task information of at least one task included in the activity; a jumping module, configured to jump to a function page of a target task according to the task information of the target task through a jump API of the micro application in response to a triggering operation of the user on the target task; an injection module, configured to inject the task information of the target task and a user identifier of the user into an application framework for executing the target task through an injection data API of the micro application, wherein the application framework is a framework of the mobile banking application; a data acquiring module, configured to acquire completion of the target task through a completion state acquisition API of the micro application in a cache area of the terminal locally in response to an activity data acquisition request of the micro application, according to the task information of the target task carried in the request, wherein the cache area stores a completion identifier of each user on the target task acquired by the application framework.
7. An electronic device, comprising: The method comprises the following steps: one or more processors; a storage device configured to store one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the activity data acquisition method according to any one of claims 1-5.
8. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program, when executed by the processor, implements the activity data acquisition method according to any one of claims 1-5.
9. A computer program product comprising a computer program, characterized in that, The computer program, when executed by the processor, implements the activity data acquisition method according to any one of claims 1-5.
Citation Information
Patent Citations
Service activity data processing method and device
CN112766998A