CN110471717B - Data processing method and device - Google Patents
Data processing method and device Download PDFInfo
- Publication number
- CN110471717B CN110471717B CN201910776066.2A CN201910776066A CN110471717B CN 110471717 B CN110471717 B CN 110471717B CN 201910776066 A CN201910776066 A CN 201910776066A CN 110471717 B CN110471717 B CN 110471717B
- Authority
- CN
- China
- Prior art keywords
- program
- resource processing
- applet
- resource
- page
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
- G06F9/4482—Procedural
- G06F9/4484—Executing subprograms
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a data processing method and a data processing device, wherein the method comprises the following steps: the resource processing program acquires a resource processing request, and the resource processing request comprises: a domain name of an applet that issues a resource processing request; determining a program identifier of the applet according to the domain name of the applet; and executing the software development kit SDK of the resource processing program, and calling a resource processing interface of the instant messaging software based on the program identifier of the applet to complete the resource processing operation of the applet. By the data processing method and the data processing device, the instant messaging software is not required to configure a corresponding interface for each applet, so that the interfaces configured in the instant messaging software have reusability.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a data processing method and device.
Background
At present, various small programs (Mini programs) are provided in instant messaging software for users to use, and the instant messaging software can feed the small programs searched by the users back to the users for use only by searching the small programs which the users want to use in the instant messaging software. In some cases, the applet needs to call an interface of the instant messaging software setup to implement some desired functionality.
The applet can only realize the desired function by calling the interface corresponding to the applet configured in the instant messaging software.
The interfaces of the applets configured in the instant messaging software can only be used by the corresponding applets individually, but cannot be used by other applets, so that the compatibility of the interfaces configured in the instant messaging software is poor.
Disclosure of Invention
In order to solve the above problem, embodiments of the present invention provide a data processing method and apparatus.
In a first aspect, an embodiment of the present invention provides a data processing method, configured to perform resource processing through instant messaging software, including:
the resource processing program acquires a resource processing request, wherein the resource processing request comprises: a domain name of an applet that issued the resource processing request;
determining a program identifier of the applet according to the domain name of the applet;
executing a Software Development Kit (SDK) of the resource processing program, calling a resource processing interface of the instant messaging Software based on the program identification of the applet, and completing the resource processing operation of the applet.
In a second aspect, an embodiment of the present invention further provides a data processing method, including:
a server acquires and runs a program downloading tool, wherein the program downloading tool carries a resource processing program identifier to be downloaded;
generating a resource processing program acquisition request according to the resource processing program identifier, and sending the resource processing program acquisition request to a software repository, wherein the software repository stores the SDK of the resource processing program corresponding to the resource processing program identifier;
and receiving and installing the SDK of the resource processing program sent by the software storage library.
In a third aspect, an embodiment of the present invention further provides a data processing apparatus, configured to perform resource processing through instant messaging software, where the apparatus includes:
an obtaining module, configured to obtain a resource processing request, where the resource processing request includes: a domain name of an applet that issued the resource processing request;
the determining module is used for determining the program identifier of the small program according to the domain name of the small program;
and the processing module is used for executing the software development kit SDK of the resource processing program, calling a resource processing interface of the instant messaging software based on the program identifier of the applet and finishing the resource processing operation of the applet.
In a fourth aspect, an embodiment of the present invention further provides a data processing apparatus, including:
the program downloading module is used for acquiring and operating a program downloading tool, and the program downloading tool carries a resource processing program identifier to be downloaded;
the request module is used for generating a resource processing program acquisition request according to the resource processing program identifier and sending the resource processing program acquisition request to a software repository, wherein the software repository stores the SDK of the resource processing program corresponding to the resource processing program identifier;
and the installation module is used for receiving and installing the SDK of the resource processing program sent by the software repository.
In a fifth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of the method according to the first aspect.
In a sixth aspect, embodiments of the present invention also provide a data processing apparatus, which includes a memory, a processor, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor to perform the steps of the method according to the first aspect.
In the solutions provided in the first, third, fifth, and sixth aspects of the embodiments of the present invention, when a resource processing request is obtained, a program identifier of an applet is determined according to a domain name of the applet in the resource processing request, then an SDK of the resource processing program itself is executed, and a resource processing interface of instant messaging software is called based on the program identifier of the applet, so as to complete resource processing operation of the applet.
In the solutions provided in the second and fourth aspects of the embodiments of the present invention, it is not necessary to update the program downloading tool, and it is ensured that the resource processing program of the latest version is installed by the program downloading tool, so that reusability of the program downloading tool is achieved.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 shows a block diagram of a mobile terminal applicable to an embodiment of the present invention.
Fig. 2 shows a block diagram of a server applicable to an embodiment of the present invention.
Fig. 3 is a flowchart illustrating a data processing method according to embodiment 1 of the present invention;
fig. 4 is a flowchart illustrating a data processing method according to embodiment 2 of the present invention;
fig. 5 is a schematic structural diagram illustrating a data processing apparatus according to embodiment 3 of the present invention;
fig. 6 is a schematic structural diagram illustrating a data processing apparatus according to embodiment 4 of the present invention;
fig. 7 is a schematic structural diagram of another data processing apparatus provided in embodiment 5 of the present invention.
Detailed Description
At present, various applets (Mini Program) are provided in instant messaging software for users to use, the user only needs to search the applets to be used in the instant messaging software, the instant messaging software can feed the applets searched by the user back to the user for use, the user can use the same functions of the related applications through the applets without downloading the Applets (APP) in a mobile terminal or a server, and great convenience is brought to the user.
In some cases, for example, when a user performs recharging, transferring, and exchanging gifts using a virtual resource (such as a game coin, a gold coin, and/or a gold bean that can be used in some games or online shopping malls) through a applet, the applet needs to call an interface configured to the applet by instant messaging software to implement a processing function of the virtual resource. For instant messaging software, the implementation mode and the calling method of each applet are different, so that the applet can realize the processing process of virtual resources only by configuring a separate calling interface for different applets in advance by the instant messaging software. However, the interfaces pre-configured for different applets by the instant messaging software can only be used for the corresponding applets, but cannot be used for other applets, so that the compatibility of the interfaces configured in the instant messaging software is poor.
Based on this, the present embodiment provides a data processing method and apparatus, when a resource processing request is obtained, a program identifier of an applet is determined according to a domain name of the applet in the resource processing request, then an SDK of the resource processing program itself is executed, and a resource processing interface of instant messaging software is called based on the program identifier of the applet, so as to complete resource processing operation of the applet, where the resource processing interface of the instant messaging software can be called by any applet, and the instant messaging software does not need to configure a corresponding interface for each applet, so that the interface configured in the instant messaging software has reusability, and compatibility of the interface configured in the instant messaging software is improved.
Fig. 1 shows a block diagram of a mobile terminal applicable to an embodiment of the present invention. As shown in fig. 1, the mobile terminal 100 includes a memory 102, a memory controller 104, one or more processors 106 (only one shown), a peripheral interface 108, a radio frequency module 110, an audio module 112, a touch screen 114, and the like. These components communicate with each other via one or more communication buses/signal lines 116.
The memory 102 may be used to store software programs and modules, such as program instructions/modules corresponding to the data processing method and apparatus in the embodiment of the present invention, and the processor 106 executes various functional applications and data processing, such as the data processing method provided in the embodiment of the present invention, by executing the software programs and modules stored in the memory 102.
The peripherals interface 108 couples various input/output devices to the processor 106 and to the memory 102. In some embodiments, the peripheral interface 108, the processor 106, and the memory controller 104 may be implemented in a single chip. In other examples, they may be implemented separately from the individual chips.
The rf module 110 is used for receiving and transmitting electromagnetic waves, so as to achieve mutual conversion between the electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices.
The touch screen 114 provides both an output and an input interface between the mobile terminal 100 and a user. In particular, the touch screen 114 displays video output to the user, the content of which may include text, graphics, video, and any combination thereof.
It is to be understood that the configuration shown in fig. 1 is merely exemplary, and that the mobile terminal 100 may include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
Fig. 2 shows a block diagram of a server applicable to an embodiment of the present invention. As shown in fig. 2, the server 200 includes: memory 201, processor 202, and network module 203.
The memory 201 may be used to store software programs and modules, such as program instructions/modules corresponding to the data processing method and apparatus in the embodiment of the present invention, and the processor 202 executes various functional applications and data processing by running the software programs and modules stored in the memory 201, so as to implement the data processing method in the embodiment of the present invention. Memory 201 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. Further, the software programs and modules may further include: an operating system 221 and a service module 222. The operating system 221, which may be LINUX, UNIX, WINDOWS, for example, may include various software components and/or drivers for managing system tasks (e.g., memory management, storage device control, power management, etc.), and may communicate with various hardware or software components to provide an operating environment for other software components. The service module 222 runs on the basis of the operating system 221, and monitors a request from the network through the network service of the operating system 221, completes corresponding data processing according to the request, and returns a processing result to the client. That is, the service module 222 is used to provide network services to clients.
The network module 203 is used for receiving and transmitting network signals. The network signal may include a wireless signal or a wired signal.
It will be appreciated that the configuration shown in fig. 2 is merely illustrative and that server 200 may include more or fewer components than shown in fig. 2 or have a different configuration than shown in fig. 2. The components shown in fig. 2 may be implemented in hardware, software, or a combination thereof. In addition, the server in the embodiment of the present invention may further include a plurality of servers with different specific functions.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
Example 1
Before the resource processing of the applet is performed, it is necessary to install a resource processing program in the mobile terminal and the server. Referring to the flowchart of a data processing method proposed in this embodiment shown in fig. 3, in order to install a resource handler, the data processing method proposed in this embodiment may perform the following steps:
In step 300, when the user opens the applet having the resource processing function through the instant messaging software, the instant messaging software sends an applet obtaining request to the software repository storing the applet according to the name of the applet opened by the user to obtain a corresponding relationship between the name of the applet and the domain name of the applet, and obtains and runs the program downloading tool by default from the software repository for obtaining the applet.
And after the mobile terminal or the server used by the user acquires the corresponding relation between the name of the applet and the domain name of the applet, accessing the domain name of the applet, so that the applet is displayed for the user to use.
The software repository, which may be located in a remote server, interacts wirelessly with a mobile terminal or server used by a user.
The software repository is used for storing the corresponding relation between the names of different applets and the domain names of the applets, the SDKs of the programs corresponding to the processing functions which can be used by the different applets, and program downloading tools of the different programs, and the identifiers of the programs which can be downloaded by the program downloading tools are configured in the program downloading tools.
The processing functions that the applet can use correspond to programs including, but not limited to: resource handlers, reading-class handlers, and interaction-class handlers.
The program downloading tool of the resource processing program is configured with the identifier of the resource processing program.
In step 302, after the instant messaging software acquires the program downloading tool, it will automatically generate a resource processing program acquisition request according to the resource processing program identifier in the program downloading tool, and send the resource processing program acquisition request to the software repository.
After the software repository acquires the resource processing program acquisition request, the software repository queries the resource processing program corresponding to the resource processing program identification according to the resource processing program identification carried in the resource processing program acquisition request, and sends the queried resource processing program to the server used by the user.
And step 304, receiving and installing the SDK of the resource processing program sent by the software repository.
After the SDK of the resource handler is installed, a program downloading tool in the server or the mobile terminal may periodically send a software update request carrying the resource handler identifier to a software repository, so as to obtain the latest version of the resource handler from the software repository, thereby ensuring that the version of the resource handler in the server or the mobile terminal is latest.
In summary, according to the data processing method provided in this embodiment, it is ensured that the latest version of the resource processing program is installed by the program downloading tool without updating the program downloading tool, so that reusability of the program downloading tool is achieved.
After the server or the mobile terminal used by the user installs the SDK of the resource processing program, the following steps 400 to 404 of embodiment 2 may be continuously performed to process the resource processing request triggered by the user in the applet.
Example 2
Referring to a flowchart of a data processing method shown in fig. 4, in the data processing method provided in this embodiment, an execution subject is a server or a mobile terminal, and the resource processing program is installed in the server or the mobile terminal, and is used for performing resource processing through instant messaging software, and the method includes:
step 400, a resource processing program obtains a resource processing request, where the resource processing request includes: a domain name of an applet that issued the resource handling request.
The domain name of the small program is used when the instant messaging software accesses the website of the small program, and the instant messaging software acquires the small program in a mode of accessing the domain name of the small program and displays the small program for a user to use.
When a user selects an applet in the instant messaging software, the instant messaging software queries a domain name of the applet which the user wants to use from a corresponding relation between the stored applet name and the domain name of the applet through the applet name selected by the user, and then the instant messaging software accesses the domain name of the applet to acquire the applet and display the applet for the user to use.
When a user needs to perform resource processing such as recharging, transferring, gift exchanging and the like of virtual resources (such as game coins, gold coins and/or gold beans which can be used in some games or online malls) through a small program, the user inputs resource information in a resource processing page of the small program and triggers a resource processing instruction to the small program, and after the small program obtains the resource processing instruction, the small program generates a resource processing request according to a domain name of the small program, a page jump parameter and/or a jump page domain name, and sends the resource processing request to the resource processing program.
And the page jump parameter is used for indicating whether the small program has a jump page or not.
In one embodiment, the page jump parameter may be 0 or 1, and when the page jump parameter is 0, it indicates that the applet does not set a jump page; and when the page jump parameter is 1, it indicates that the applet is provided with a jump page, and then the domain name of the jump page of the applet has been downloaded to a server or a mobile terminal used by a user along with the correspondence between the name of the applet and the domain name of the applet.
In one embodiment, the jumped page domain name of the applet is cached in the server or the mobile terminal used by the user in a corresponding relationship between the applet name and the jumped page domain name of the applet.
In particular, in order to determine the program identity of the applet, step 402, the following steps may be performed:
and inquiring the program identifier of the small program from the corresponding relation between the domain name of the small program and the program identifier according to the domain name of the small program.
The corresponding relation between the domain name of the small program and the program identifier is stored in the resource processing program and can be updated along with the updating of the resource processing program.
The specific process of step 404 is prior art, and is not described in detail in this embodiment.
After completing the resource processing operation of the applet, the data processing method proposed in this embodiment may further perform the following steps (1) to (2):
(1) When the page jump parameter indicates that the applet does not have a jump page, displaying a resource processing operation completion page;
(2) And when the page jump parameter indicates that the small program has a jump page, displaying the page with the resource processing operation completed, and jumping to the page of the small program indicated by the jump page domain name after the time for displaying the page with the resource processing operation completed reaches a preset time length.
In the step (1), the resource processing program presents the resource processing operation completion page to the user in a manner of accessing the domain name of the resource processing operation completion page stored in the resource processing program itself.
In the step (2), the resource processing program queries, according to the domain name of the applet, the name of the applet to be skipped from the correspondence between the name of the applet and the domain name of the applet stored in the instant messaging software, and queries, according to the name of the applet, the domain name of the applet corresponding to the name of the applet from the correspondence between the name of the applet stored in the server or the mobile terminal used by the user and the domain name of the page to be skipped of the applet, and then accesses, according to the domain name of the page to be skipped, the page of the applet indicated by the domain name of the page to be skipped, and displays the page to be skipped of the applet indicated by the domain name of the page to the user after the time for displaying the page of the resource processing operation reaches the preset time.
In summary, in the data processing method provided in this embodiment, when a resource processing request is obtained, a program identifier of an applet is determined according to a domain name of the applet in the resource processing request, then the SDK of the resource processing program is executed, and a resource processing interface of the instant messaging software is called based on the program identifier of the applet to complete resource processing operations of the applet.
Based on the same inventive concept, embodiments of the present application further provide a data processing method and a corresponding data processing apparatus, and as the principle of solving the problem of the apparatus in the embodiments of the present application is similar to the data processing method described in embodiment 1 of the present application, the implementation of the apparatus may refer to the implementation of the foregoing data processing method, and repeated details are omitted.
Example 3
The present embodiment proposes a data processing apparatus for executing the data processing method of embodiment 1 described above.
Referring to a schematic structural diagram of a data processing apparatus shown in fig. 5, the data processing apparatus includes:
a program downloading module 500, configured to acquire and run a program downloading tool, where the program downloading tool carries a resource processing program identifier to be downloaded;
a request module 502, configured to generate a resource handler acquisition request according to the resource handler identifier, and send the resource handler acquisition request to a software repository, where an SDK of a resource handler corresponding to the resource handler identifier is stored in the software repository;
an installation module 504, configured to receive and install the SDK of the resource handler sent by the software repository.
In summary, the data processing apparatus provided in this embodiment can ensure that the latest version of the resource handler is installed by the program downloading tool without updating the program downloading tool, thereby realizing reusability of the program downloading tool.
Based on the same inventive concept, embodiments of the present application further provide a data processing method and a corresponding data processing apparatus, and as the principle of solving the problem of the apparatus in the embodiments of the present application is similar to the data processing method described in embodiment 2 of the present application, the implementation of the apparatus may refer to the implementation of the foregoing data processing method, and repeated details are omitted.
Example 4
The present embodiment proposes a data processing apparatus for executing the data processing method of embodiment 2 described above.
Referring to a schematic structural diagram of a data processing apparatus shown in fig. 6, the data processing apparatus provided in this embodiment is configured to perform resource processing through instant messaging software, and includes:
an obtaining module 600, configured to obtain a resource processing request, where the resource processing request includes: a domain name of an applet that issued the resource processing request;
a determining module 602, configured to determine a program identifier of the applet according to the domain name of the applet;
the processing module 604 is configured to execute the software development kit SDK of the resource processing program itself, and call a resource processing interface of the instant messaging software based on the program identifier of the applet, so as to complete resource processing operation of the applet.
Specifically, the determining module 602 is specifically configured to: and inquiring the program identifier of the small program from the corresponding relation between the domain name of the small program and the program identifier according to the domain name of the small program.
The resource processing request further comprises: a page jump parameter and/or a jump page domain name.
The data processing apparatus further includes:
and the skip module is used for displaying the page with the resource processing operation completed when the page skip parameter indicates that the small program has the skip page, and skipping to the page of the small program indicated by the skip page domain name after the time for displaying the page with the resource processing operation completed reaches a preset time length.
In summary, in the data processing apparatus provided in this embodiment, when the resource processing request is obtained, the program identifier of the applet is determined according to the domain name of the applet in the resource processing request, then the SDK of the resource processing program itself is executed, and the resource processing interface of the instant messaging software is called based on the program identifier of the applet, so as to complete the resource processing operation of the applet.
Based on the same inventive concept, embodiments of the present application further provide a data processing method and a corresponding computer storage medium and a corresponding data processing apparatus, and as the principles of solving the problems of the computer storage medium and the apparatus in the embodiments of the present application are similar to those of the data processing method described in embodiment 2 of the present application, the apparatus may be implemented by referring to the implementation of the data processing method, and repeated details are omitted.
Example 5
The present embodiment proposes a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the data processing method described in embodiment 2 above. For specific implementation, refer to method embodiment 2, which is not described herein again.
In addition, referring to another schematic structural diagram of the data processing apparatus shown in fig. 7, the present embodiment further provides a data processing apparatus, which includes a bus 51, a processor 52, a transceiver 53, a bus interface 54, a memory 55, and a user interface 56. The data processing means comprise a memory 55.
In this embodiment, the data processing apparatus further includes: one or more programs stored on the memory 55 and executable on the processor 52, configured to be executed by the processor for performing the following steps (1) to (3):
(1) The resource processing program acquires a resource processing request, wherein the resource processing request comprises: a domain name of an applet that issued the resource processing request;
(2) Determining a program identifier of the small program according to the domain name of the small program;
(3) And executing the software development kit SDK of the resource processing program, and calling a resource processing interface of the instant messaging software based on the program identifier of the applet to complete the resource processing operation of the applet.
A transceiver 53 for receiving and transmitting data under the control of the processor 52.
In fig. 7, a bus architecture (represented by bus 51), bus 51 may include any number of interconnected buses and bridges, with bus 51 linking together various circuits including one or more processors, represented by general purpose processor 52, and memory, represented by memory 55. The bus 51 may also link various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further in this embodiment. A bus interface 54 provides an interface between the bus 51 and the transceiver 53. The transceiver 53 may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. For example: the transceiver 53 receives external data from other devices. The transceiver 53 is used for transmitting data processed by the processor 52 to other devices. Depending on the nature of the computing system, a user interface 56, such as a keypad, display, speaker, microphone, joystick, may also be provided.
The processor 52 is responsible for managing the bus 51 and the usual processing, running a general-purpose operating system as described above. While memory 55 may be used to store data used by processor 52 in performing operations.
Alternatively, processor 52 may be, but is not limited to: a central processing unit, a singlechip, a microprocessor or a programmable logic device.
It will be appreciated that the memory 55 in embodiments of the invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), dynamic Random Access Memory (DRAM), synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), double Data Rate Synchronous Dynamic random access memory (ddr Data Rate SDRAM, ddr SDRAM), enhanced Synchronous SDRAM (ESDRAM), synchlink DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 55 of the systems and methods described in this embodiment is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 55 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof: an operating system 551 and application programs 552.
The operating system 551 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks. The application 552 includes various applications, such as a Media Player (Media Player), a Browser (Browser), and the like, for implementing various application services. A program implementing methods according to embodiments of the present invention may be included in application 552.
In summary, in the computer storage medium and the data processing apparatus provided in this embodiment, when a resource processing request is obtained, a program identifier of an applet is determined according to a domain name of the applet in the resource processing request, then the SDK of the resource processing program is executed, and a resource processing interface of the instant messaging software is called based on the program identifier of the applet, so as to complete a resource processing operation of the applet.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. A data processing method for processing resources through instant messaging software, comprising:
the resource processing program acquires a resource processing request, wherein the resource processing request comprises: a domain name of an applet that issued the resource processing request;
determining a program identifier of the small program according to the domain name of the small program;
and executing the software development kit SDK of the resource processing program, and calling a resource processing interface of the instant messaging software based on the program identifier of the applet to complete the resource processing operation of the applet.
2. The method of claim 1, wherein determining the applet identity from the applet domain name comprises:
and inquiring the program identifier of the small program from the corresponding relation between the domain name of the small program and the program identifier according to the domain name of the small program.
3. The method of claim 1, wherein the resource handles requests, further comprising: a page jump parameter and/or a jump page domain name;
after the step of calling the resource processing interface of the instant messaging software based on the program identifier of the applet and completing the resource processing operation of the applet, the method further comprises the following steps:
and when the page jump parameter indicates that the small program has a jump page, displaying the page with the resource processing operation completed, and jumping to the page of the small program indicated by the jump page domain name after the time for displaying the page with the resource processing operation completed reaches a preset time length.
4. A data processing method for a server interacting with a resource handler performing the data processing method of any one of claims 1 to 3, the method comprising:
the server acquires and runs a program downloading tool, wherein the program downloading tool carries a resource processing program identifier to be downloaded;
generating a resource processing program acquisition request according to the resource processing program identifier, and sending the resource processing program acquisition request to a software repository, wherein the software repository stores the SDK of the resource processing program corresponding to the resource processing program identifier;
and receiving and installing the SDK of the resource processing program sent by the software storage library.
5. A data processing apparatus for performing resource processing by instant messaging software, comprising:
an obtaining module, configured to obtain, by a resource processing program, a resource processing request, where the resource processing request includes: a domain name of an applet that issued the resource processing request;
the determining module is used for determining the program identifier of the small program according to the domain name of the small program;
and the processing module is used for executing the software development kit SDK of the resource processing program, calling a resource processing interface of the instant messaging software based on the program identifier of the applet and finishing the resource processing operation of the applet.
6. The apparatus of claim 5, wherein the determining module is specifically configured to:
and inquiring the program identifier of the small program from the corresponding relation between the domain name of the small program and the program identifier according to the domain name of the small program.
7. The apparatus of claim 5, wherein the resource handles requests, further comprising: a page jump parameter and/or a jump page domain name;
the data processing apparatus further includes:
and the skipping module is used for displaying the page with the resource processing operation completed when the page skipping parameter indicates that the small program has the skipping page, and skipping to the page of the small program indicated by the skipping page domain name after the time for displaying the page with the resource processing operation completed reaches a preset time length.
8. A data processing apparatus for interacting with a data processing apparatus as claimed in any one of claims 5 to 7, the apparatus comprising:
the program downloading module is used for acquiring and operating a program downloading tool, and the program downloading tool carries a resource processing program identifier to be downloaded;
the request module is used for generating a resource processing program acquisition request according to the resource processing program identifier and sending the resource processing program acquisition request to a software repository, wherein the software repository stores the SDK of the resource processing program corresponding to the resource processing program identifier;
and the installation module is used for receiving and installing the SDK of the resource processing program sent by the software repository.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of the claims 1-3.
10. A data processing apparatus comprising a memory, a processor and one or more programs, wherein the one or more programs are stored in the memory and configured to cause the processor to perform the steps of the method of any of claims 1-3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910776066.2A CN110471717B (en) | 2019-08-21 | 2019-08-21 | Data processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910776066.2A CN110471717B (en) | 2019-08-21 | 2019-08-21 | Data processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110471717A CN110471717A (en) | 2019-11-19 |
CN110471717B true CN110471717B (en) | 2022-11-11 |
Family
ID=68512782
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910776066.2A Active CN110471717B (en) | 2019-08-21 | 2019-08-21 | Data processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110471717B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111736824A (en) * | 2020-02-13 | 2020-10-02 | 北京京东尚科信息技术有限公司 | Data processing method and device for application program, electronic equipment and storage medium |
Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6011916A (en) * | 1998-05-12 | 2000-01-04 | International Business Machines Corp. | Java I/O toolkit for applications and applets |
WO2005008494A1 (en) * | 2003-07-11 | 2005-01-27 | Computer Associates Think, Inc. | System and method for using common communication channel by web page applets |
CA2495052A1 (en) * | 2004-01-30 | 2005-07-30 | Research In Motion Limited | System and method for publishing and accessing application apis on a generic terminal |
US7257819B1 (en) * | 2001-04-30 | 2007-08-14 | General Electric Capital Corporation | Method and system for dispatching service requests to sub-applications |
CN105490917A (en) * | 2015-11-18 | 2016-04-13 | 腾讯科技(深圳)有限公司 | Sharing method and device in application |
CN106471481A (en) * | 2014-07-07 | 2017-03-01 | 三星电子株式会社 | Method for sharing application program and electronic device thereof |
CN106569900A (en) * | 2016-10-28 | 2017-04-19 | 腾讯科技(深圳)有限公司 | Application processing method and device |
CN106843978A (en) * | 2017-01-23 | 2017-06-13 | 北京乐盟互动科技有限公司 | A kind of SDK cut-in methods and system |
CN107102880A (en) * | 2017-05-11 | 2017-08-29 | 腾讯科技(深圳)有限公司 | Message treatment method, device, storage medium and computer equipment |
EP3239858A1 (en) * | 2016-04-27 | 2017-11-01 | Beijing Xiaomi Mobile Software Co., Ltd. | Method and apparatus for searching resource |
WO2018072634A1 (en) * | 2016-10-18 | 2018-04-26 | 腾讯科技(深圳)有限公司 | Application processing method and device |
WO2018095306A1 (en) * | 2016-11-25 | 2018-05-31 | 腾讯科技(深圳)有限公司 | Method and device for processing application program page, and storage medium |
CN108319483A (en) * | 2018-01-30 | 2018-07-24 | 腾讯科技(深圳)有限公司 | Web page processing method, device, terminal and storage medium |
WO2018158784A1 (en) * | 2017-02-28 | 2018-09-07 | Forward Unity S.R.L. | System, apparatus and method for providing an application development and execution platform |
CN109600408A (en) * | 2017-09-30 | 2019-04-09 | 腾讯科技(深圳)有限公司 | Resource sharing method, device, storage medium and computer equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10057740B2 (en) * | 2013-10-31 | 2018-08-21 | Xiaomi Inc. | Methods and devices for processing mobile terminal resource |
-
2019
- 2019-08-21 CN CN201910776066.2A patent/CN110471717B/en active Active
Patent Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6011916A (en) * | 1998-05-12 | 2000-01-04 | International Business Machines Corp. | Java I/O toolkit for applications and applets |
US7257819B1 (en) * | 2001-04-30 | 2007-08-14 | General Electric Capital Corporation | Method and system for dispatching service requests to sub-applications |
WO2005008494A1 (en) * | 2003-07-11 | 2005-01-27 | Computer Associates Think, Inc. | System and method for using common communication channel by web page applets |
CA2495052A1 (en) * | 2004-01-30 | 2005-07-30 | Research In Motion Limited | System and method for publishing and accessing application apis on a generic terminal |
CN106471481A (en) * | 2014-07-07 | 2017-03-01 | 三星电子株式会社 | Method for sharing application program and electronic device thereof |
CN105490917A (en) * | 2015-11-18 | 2016-04-13 | 腾讯科技(深圳)有限公司 | Sharing method and device in application |
EP3239858A1 (en) * | 2016-04-27 | 2017-11-01 | Beijing Xiaomi Mobile Software Co., Ltd. | Method and apparatus for searching resource |
WO2018072634A1 (en) * | 2016-10-18 | 2018-04-26 | 腾讯科技(深圳)有限公司 | Application processing method and device |
CN106569900A (en) * | 2016-10-28 | 2017-04-19 | 腾讯科技(深圳)有限公司 | Application processing method and device |
WO2018077085A1 (en) * | 2016-10-28 | 2018-05-03 | 腾讯科技(深圳)有限公司 | Application processing method, device and storage medium |
WO2018095306A1 (en) * | 2016-11-25 | 2018-05-31 | 腾讯科技(深圳)有限公司 | Method and device for processing application program page, and storage medium |
CN106843978A (en) * | 2017-01-23 | 2017-06-13 | 北京乐盟互动科技有限公司 | A kind of SDK cut-in methods and system |
WO2018158784A1 (en) * | 2017-02-28 | 2018-09-07 | Forward Unity S.R.L. | System, apparatus and method for providing an application development and execution platform |
CN107102880A (en) * | 2017-05-11 | 2017-08-29 | 腾讯科技(深圳)有限公司 | Message treatment method, device, storage medium and computer equipment |
CN109600408A (en) * | 2017-09-30 | 2019-04-09 | 腾讯科技(深圳)有限公司 | Resource sharing method, device, storage medium and computer equipment |
CN108319483A (en) * | 2018-01-30 | 2018-07-24 | 腾讯科技(深圳)有限公司 | Web page processing method, device, terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110471717A (en) | 2019-11-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108376079B (en) | Automatic application updates | |
US9307400B1 (en) | System and method of efficient mobile device network brand customization | |
CN104965848B (en) | A kind of front end resource loading method and device | |
US20230308504A9 (en) | Method and system of application development for multiple device client platforms | |
EP3125110A1 (en) | Software upgrade method and terminal | |
CN110007936B (en) | Data processing method and device | |
CN110968331A (en) | Method and apparatus for running an application | |
CN110618768B (en) | Information presentation method and device | |
JP2012159924A (en) | Installation system | |
CN110427260B (en) | Host job scheduling method, device and system | |
CN110471717B (en) | Data processing method and device | |
CN109343970B (en) | Application program-based operation method and device, electronic equipment and computer medium | |
CN112688807B (en) | A method, device and electronic equipment for one-stop linkage response to blue-green deployment | |
CN110618811A (en) | Information presentation method and device | |
CN109800378A (en) | Content processing method, device and electronic equipment based on custom browser | |
CN113765983A (en) | Site service deployment method and device | |
WO2015003570A1 (en) | Data downloading method,device and system thereof | |
US10839037B2 (en) | Connected application experience | |
US10209978B1 (en) | Mobile application installation service on a mobile phone | |
US20130332568A1 (en) | Method of data processing by a navigation module | |
US11190523B1 (en) | Post-activation installation of custom applications with system privileges | |
US10917766B1 (en) | System and methods for bring your own device eligibility platform | |
CN111078209B (en) | Development processing method, device and equipment for business page | |
CN111935159A (en) | Method, device and system for authenticating mutual trust between multiple systems | |
CN112860273A (en) | Page display method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |