Information processing method and apparatus, storage medium, program product

By using components constructed with a class-based object-oriented language, cross-operating system compatibility was achieved, solving the problem of repetitive development under different operating systems, reducing costs and improving efficiency.

CN115809104BActive Publication Date: 2026-07-07TENCENT TECHNOLOGY (SHENZHEN) CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
TENCENT TECHNOLOGY (SHENZHEN) CO LTD
Filing Date
2021-09-13
Publication Date
2026-07-07

AI Technical Summary

Technical Problem

Because different operating systems have different requirements for application software architecture, the same application needs to be developed in different versions of the software architecture, which increases the amount of repetitive development work, high R&D investment costs, high maintenance costs, and low R&D efficiency.

Method used

The main framework components, logic components, network components, and database components are constructed using a class-based object-oriented language, making them compatible with different operating systems and reducing redundant development work.

Benefits of technology

It reduced the R&D investment and maintenance costs of applications and improved R&D efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115809104B_ABST
    Figure CN115809104B_ABST
Patent Text Reader

Abstract

This application discloses an information processing method, apparatus, storage medium, and program product. In response to a trigger operation, the main frame component calls the logic component to transmit an information retrieval task to the network component. Then, the network component, based on the information retrieval task, calls the logic component to retrieve a synchronization key value from the database component. Based on the information retrieval task and the synchronization key value, the network component calls the logic component to initiate an information retrieval request to the server, retrieving target data information from the server. Finally, the network component calls the logic component to send the target data information to the user interface component for display through the main frame component. The main frame component, logic component, network component, and database component are all components constructed using a class-based object-oriented language. This application can reduce the development and maintenance costs of application programs and improve application development efficiency. This application can be widely applied to terminal devices such as in-vehicle terminals, computers, and smartphones.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to an information processing method and apparatus, storage medium, and program product. Background Technology

[0002] With the development of terminal technology, various terminal devices with different operating systems and hardware architectures have emerged on the market. Because different operating systems have different requirements for application software architecture, even the same application needs to be developed independently in different versions depending on the operating system. This results in repeated development work and may produce different code defects, leading to high application development and maintenance costs, but low application development efficiency. Summary of the Invention

[0003] The following is an overview of the subject matter described in detail herein. This overview is not intended to limit the scope of the claims.

[0004] This application provides an information processing method, apparatus, storage medium, and program product that can reduce the development and maintenance costs of application programs and improve the development efficiency of application programs.

[0005] On the one hand, embodiments of this application provide an information processing method, including the following steps:

[0006] In response to the triggering operation of the information acquisition task, the main framework component calls the logic component to transmit the information acquisition task to the network component;

[0007] The network component obtains the task based on the information and calls the logic component to obtain the synchronization key value from the database component;

[0008] The network component, based on the information acquisition task and the synchronization key value, calls the logic component to initiate an information acquisition request to the server, so that the server acquires the target data information according to the information acquisition request.

[0009] The network component receives the target data information sent by the server;

[0010] The network component calls the logic component to return the target data information to the main framework component;

[0011] The main framework component calls the logic component to send the target data information to the user interface component for display;

[0012] The main framework component, the logic component, the network component, and the database component are all components constructed using a class-based object-oriented language.

[0013] On the other hand, embodiments of this application also provide an information processing method, including the following steps:

[0014] The main frame component receives the information to be sent from the user interface component;

[0015] The main framework component calls the logic component to process the information to be sent to obtain the target information;

[0016] The main framework component calls the logic component to send the target information to the server through the network component;

[0017] The network component receives the target remote identifier returned by the server based on the target information;

[0018] The network component invokes the logic component to send the identification information corresponding to the target information to the information receiver, so that the information receiver can obtain the target information from the server based on the identification information;

[0019] When the network component completes the transmission of the identification information, the network component calls the logic component, which returns the target remote identifier to the user interface component through the main framework component, so that the user interface component updates the user interface according to the target remote identifier.

[0020] The main framework component, the logic component, and the network component are all components constructed using a class-based object-oriented language.

[0021] On the other hand, embodiments of this application also provide an information processing apparatus, including a main frame component, a logic component, a network component, and a database component, wherein:

[0022] The main framework component is used to respond to the trigger operation of executing the information acquisition task by calling the logic component to transmit the information acquisition task to the network component;

[0023] The network component is used to obtain a task based on the information and call the logic component to obtain a synchronization key value from the database component;

[0024] The network component is further configured to, based on the information to obtain the task and the synchronization key value, call the logic component to initiate an information acquisition request to the server, so that the server acquires the target data information based on the information acquisition request;

[0025] The network component is also used to receive the target data information sent by the server;

[0026] The network component is also used to call the logic component to return the target data information to the main framework component;

[0027] The main framework component is also used to call the logic component to send the target data information to the user interface component for display;

[0028] The main framework component, the logic component, the network component, and the database component are all components constructed using a class-based object-oriented language.

[0029] Optionally, the main frame component is further configured to:

[0030] According to the information acquisition task, the logic component is invoked to generate first request information, and the logic component is invoked to add the first request information to a serial queue, wherein the first request information is used to characterize the information acquisition task;

[0031] When the first request information is at the head of the serial queue, the logic component is invoked to send the first request information to the network component.

[0032] Optionally, the network component is further configured to, based on the received first request information, invoke the logic component to generate second request information, and invoke the logic component to send the second request information to the database component;

[0033] The database component is configured to, based on the received second request information, invoke the logic component to obtain the synchronization key value, and invoke the logic component to send the synchronization key value to the network component;

[0034] The network component is also used to receive the synchronization key value sent by the database component.

[0035] Optionally, the network component is further configured to:

[0036] The logic component is invoked to parse and process the target data information;

[0037] The logic component is invoked to return the parsed target data information to the main framework component.

[0038] Optionally, the main framework component is further configured to call the logic component to send the target data information to the database component;

[0039] The database component is used to call the logic component to save the target data information.

[0040] On the other hand, embodiments of this application also provide an information processing apparatus, including a main frame component, a logic component, and a network component, wherein:

[0041] The main frame component is used to receive information to be sent from the user interface component;

[0042] The main framework component is also used to call the logic component to process the information to be sent to obtain the target information;

[0043] The main framework component is also used to call the logic component and send the target information to the server through the network component;

[0044] The network component is used to receive the target remote identifier returned by the server based on the target information;

[0045] The network component is further configured to invoke the logic component to send the identification information corresponding to the target information to the information receiver, so that the information receiver can obtain the target information from the server based on the identification information;

[0046] The network component is further configured to, when the network component completes the transmission of the identification information, invoke the logic component to return the target remote identifier to the user interface component through the main frame component, so that the user interface component updates the user interface according to the target remote identifier;

[0047] The main framework component, the logic component, and the network component are all components constructed using a class-based object-oriented language.

[0048] Optionally, the main frame component is further configured to:

[0049] The logic component is invoked to perform a format check on the data format of the information to be sent.

[0050] When the data format of the information to be sent meets the preset format requirements, the logic component is invoked to add the target parameter to the information to be sent, thereby obtaining the target information.

[0051] Optionally, the main framework component is further configured to invoke the logic component to send the target information to the network component;

[0052] The network component is also used for:

[0053] The logic component is invoked to perform an integrity check on the information content of the received target information;

[0054] When the content of the target information meets the preset integrity requirements, the logic component is invoked to send the target information to the server.

[0055] Optionally, the information processing device further includes a database component;

[0056] The network component is also used to invoke the logic component to send the target information to the database component;

[0057] The database component is used to call the logic component to save the received target information;

[0058] The database component is a component constructed using a class-based object-oriented language.

[0059] Optionally, the target information includes video content information and video cover information;

[0060] The network component is also used for:

[0061] By invoking the concurrent task tool through the aforementioned logic component, the first task of sending the video content information and the second task of sending the video cover information are merged into a target task;

[0062] The logic component invokes the concurrent task tool to execute the target task, thereby sending the video content information and the video cover information to the server.

[0063] Optionally, the network component is further configured to invoke the logic component to return the target remote identifier to the main framework component;

[0064] The main framework component is also used to call the logic component to return the target remote identifier to the user interface component, so that the user interface component updates the user interface according to the target remote identifier.

[0065] On the other hand, embodiments of this application also provide an information processing apparatus, including:

[0066] At least one processor;

[0067] At least one memory for storing at least one program;

[0068] When at least one of the programs is executed by at least one of the processors, the information processing method as described above is implemented.

[0069] On the other hand, embodiments of this application also provide a computer-readable storage medium storing a processor-executable program, which, when executed by a processor, is used to implement the information processing method as described above.

[0070] On the other hand, embodiments of this application also provide a computer program product, including a computer program or computer instructions, wherein the computer program or computer instructions are stored in a computer-readable storage medium, a processor of a computer device reads the computer program or computer instructions from the computer-readable storage medium, and the processor executes the computer program or computer instructions, causing the computer device to perform the information processing method as described above.

[0071] The embodiments of the present invention include at least the following beneficial effects: In response to the triggering operation of executing an information acquisition task, the main frame component calls the logic component to transmit the information acquisition task to the network component; then, the network component, according to the information acquisition task, calls the logic component to obtain a synchronization key value from the database component; next, the network component, according to the information acquisition task and the synchronization key value, calls the logic component to initiate an information acquisition request to the server, so that the server obtains the target data information according to the information acquisition request; after the network component receives the target data information sent by the server, the network component calls the logic component to return the target data information to the main frame component; then, the main frame component calls the logic component to send the target data information to the user interface component for display; wherein, the main frame component, the logic component, the network component, and the database component are all components constructed using a class-based object-oriented language. Because class-based object-oriented languages ​​have good compatibility with different operating systems, the main framework components, logic components, network components, and database components constructed based on class-based object-oriented languages ​​are compatible with different operating systems. In other words, it is not necessary to develop different main framework components, logic components, network components, and database components for different operating systems, thereby reducing redundant development work, lowering application development and maintenance costs, and improving application development efficiency.

[0072] Other features and advantages of this application will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the application. The objectives and other advantages of this application may be realized and obtained by means of the structures particularly pointed out in the description, claims and drawings. Attached Figure Description

[0073] The accompanying drawings are used to provide a further understanding of the technical solutions of this application and constitute a part of the specification. They are used together with the embodiments of this application to explain the technical solutions of this application and do not constitute a limitation on the technical solutions of this application.

[0074] Figure 1 This is a schematic diagram of an implementation environment provided in an embodiment of this application;

[0075] Figure 2This is a software architecture diagram of an interactive application provided in one embodiment of this application;

[0076] Figure 3 This is a flowchart of an information processing method provided in one embodiment of this application;

[0077] Figure 4 yes Figure 3 A flowchart of a specific method for step 110;

[0078] Figure 5 yes Figure 3 A flowchart of a specific method for step 120;

[0079] Figure 6 yes Figure 3 A flowchart of a specific method for step 150;

[0080] Figure 7 This is a flowchart of an information processing method provided in another embodiment of this application;

[0081] Figure 8 yes Figure 7 A flowchart of a specific method for step 220;

[0082] Figure 9 yes Figure 7 A flowchart of a specific method for step 230;

[0083] Figure 10 This is a flowchart illustrating an information processing method provided in a specific example of this application;

[0084] Figure 11 This is a schematic diagram of a specific example of the UI provided in this application;

[0085] Figure 12 This is a schematic diagram of the UI provided in another specific example of this application;

[0086] Figure 13 This is a flowchart of an information processing method provided in another specific example of this application;

[0087] Figure 14 This is a schematic diagram of the UI provided in another specific example of this application;

[0088] Figure 15 This is a schematic diagram of an information processing device provided in one embodiment of this application;

[0089] Figure 16 This is a schematic diagram of an information processing apparatus provided in another embodiment of this application;

[0090] Figure 17This is a schematic diagram of an information processing device provided in another embodiment of this application. Detailed Implementation

[0091] The present application will be further described below with reference to the accompanying drawings and specific embodiments. The described embodiments should not be considered as limitations on the present application, and all other embodiments obtained by those skilled in the art without inventive effort are within the scope of protection of the present application.

[0092] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0093] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0094] Before providing a further detailed description of the embodiments of this application, the nouns and terms involved in the embodiments of this application will be explained, and the nouns and terms involved in the embodiments of this application shall be interpreted as follows.

[0095] 1) Interactive applications are those that provide users with a user interface (UI) for interactive operations, such as instant messaging applications and information browsing applications.

[0096] 2) The main framework component refers to the component that runs the main thread in the application. It is used to support the overall operation of the application and can call other components to execute corresponding sub-threads.

[0097] 3) Network components refer to components in an application that run network threads to implement network-related functions, such as sending data to the network and receiving data from the network.

[0098] 4) Database components refer to components in an application that run database threads and are used to implement database-related functions, such as storing data information and allowing other components to read data information.

[0099] 5) Logic components are components used in an application to implement communication connections between different components. They can perform logical functions between different components, such as parsing data received by the network component, storing data in the database component, and converting data types into the data types required by the UI. In addition, the main framework component can call logic components to manage the threads of the entire application and the lifecycle of each component.

[0100] 6) Blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. Essentially, a blockchain is a decentralized database, a chain of data blocks linked using cryptographic methods. Each data block contains information about a batch of network transactions, used to verify the validity of the information (anti-counterfeiting) and generate the next block. A blockchain can include a blockchain underlying platform, a platform product service layer, and an application service layer. The blockchain underlying platform can include processing modules such as user management, basic services, smart contracts, and operation monitoring. The user management module is responsible for managing the identity information of all blockchain participants, including maintaining public and private key generation (account management), key management, and maintaining the correspondence between user real identities and blockchain addresses (access management). Under authorization, it also monitors and audits transactions of certain real identities and provides risk control rule configuration (risk control audit). The basic service module is deployed on all blockchain node devices to verify the validity of business requests. After consensus is reached on valid requests, they are recorded in storage. For a new business request, the basic service first performs interface adaptation parsing and authentication (interface adaptation), and then encrypts the business information through a consensus algorithm (consensus management). The blockchain process involves several layers of data transmission and processing. The first layer, the blockchain service layer, provides basic capabilities and implementation frameworks for typical applications. Developers can define contract logic using a programming language and publish it to the blockchain (contract registration). The second layer provides blockchain-based application services for business stakeholders. The third layer provides application services based on blockchain solutions for use by business participants.

[0101] With the development of terminal technology, various terminal devices with different operating systems and hardware architectures have emerged on the market. Because different operating systems have different requirements for application software architecture, even the same application requires separate development of different software architectures depending on the operating system. For example, separate software architectures are needed for Android, iOS, Windows, and macOS devices, leading to repeated development work and potential code defects. This results in high application development and maintenance costs, but low development efficiency. To address these technical problems, cross-platform solutions for applications have been proposed, allowing the same code to run on different system platforms. This not only reduces development costs but also ensures application quality across all platforms. However, the cross-platform solutions in related technologies only target UI components and application infrastructure components. The application infrastructure components mainly include network components and database components. However, logic components are still needed to connect the UI components and application infrastructure components. Therefore, in the cross-platform solutions of related technologies, there is still a lot of repetitive development work for logic components, and different code defects may occur. As a result, the cross-platform solutions of related technologies still have the problem of high application development and maintenance costs, but low development efficiency.

[0102] To reduce application development and maintenance costs and improve application development efficiency, this application provides an information processing method, an information processing apparatus, a computer-readable storage medium, and a computer program product. In response to a triggering operation to execute an information acquisition task, the main frame component calls a logic component to transmit the information acquisition task to a network component. Then, the network component, based on the information acquisition task, calls the logic component to retrieve a synchronization key value from a database component. Next, the network component, based on the information acquisition task and the synchronization key value, calls the logic component to initiate an information acquisition request to a server, causing the server to acquire target data information according to the request. After receiving the target data information sent by the server, the network component calls the logic component to return the target data information to the main frame component. Then, the main frame component calls the logic component to send the target data information to a user interface component for display. The main frame component, logic component, network component, and database component are all components constructed using a class-based object-oriented language. Because class-based object-oriented languages ​​have good compatibility with different operating systems, the main framework components, logic components, network components, and database components constructed using class-based object-oriented languages ​​are compatible with different operating systems. In other words, it is not necessary to develop different main framework components, logic components, network components, and database components for different operating systems. The same set of program code can run on different system platforms, thereby reducing redundant development work, lowering the R&D and maintenance costs of applications, and improving the efficiency of application development.

[0103] Figure 1 This is a schematic diagram of an implementation environment provided in an embodiment of this application. (Refer to...) Figure 1 The implementation environment includes a terminal 101 and a server 102, with a communication connection between them. The terminal 101 and server 102 can be nodes in a blockchain, but this embodiment does not specifically limit this.

[0104] Terminal 101 can be a tablet computer, laptop computer, desktop computer, smartphone, in-vehicle terminal, smartwatch, smart bracelet, or other terminal device, but is not limited to these. Optionally, terminal 101 may run an interactive application, through which terminal 101 can exchange information with other terminal devices.

[0105] Server 102 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.

[0106] like Figure 2 As shown, Figure 2 This is the software architecture diagram of the interactive application in terminal 101. (Refer to...) Figure 2 The software architecture of this interactive application includes user interface components, basic framework components, logic components, account management components, toolset components, and third-party library components. The user interface components and basic framework components use Objective-C and Java Native Interface (JNI) interfaces to communicate. Depending on the system supported by Terminal 101, data can be transferred between the user interface components and basic framework components through these corresponding interfaces, achieving cross-platform compatibility. It should be noted that Objective-C is the programming language used for iOS and macOS systems; JNI refers to Java Native Methods, which allows Java code to interact with code written in other languages. Using JNI in program development enables the program code to be ported across different platforms, facilitating flexible code writing.

[0107] User interface components are used to render UI pages and display the content within those pages.

[0108] The basic framework components support the overall operation of this interactive application. These components enable functions such as cyclically checking for new message retrieval, cyclically checking for message sending, running various threads, sending and receiving data via relevant network protocols, and storing data. Specifically, the basic framework components can include a main framework component, a network component, and a database component. The main framework component supports cyclically checking for new message retrieval, cyclically checking for message sending, and running various threads. The network component enables sending and receiving data via relevant network protocols, such as Internet Protocol (IP) or Intermediate System-to-Intermediate System (IS-IS) protocols. The database component supports data storage and also allows the network component to read data. It's important to note that the main framework component, logic components, network component, and database component are all built using class-based object-oriented languages, such as C++.

[0109] Logical components are responsible for maintaining the software architecture of the entire interactive application and enabling information transmission between various components through session messages.

[0110] Account management components are used to manage user data or user configuration information.

[0111] The toolset component integrates global notification tools, serial queue tools, concurrent task tools, and function debouncing tools. Among them, the global notification tool is mainly responsible for adding and maintaining notification messages and providing corresponding interfaces so that user interface components can obtain these notification messages; the serial queue tool is used to execute tasks in the queue sequentially; the concurrent task tool (such as the Promise tool) can queue asynchronous operations to execute them in the expected order and return the expected results; the function debouncing tool (such as the Debounce function) can refrain from executing operations when triggers are continuously generated, and only execute operations when no triggers are generated for a period of time.

[0112] Third-party library components integrate various open-source function libraries, including Chromium Base, Nghttp2, SQLite, and Libcurl. These open-source function libraries provide various open-source functions, and by calling these open-source functions, the desired functionality or expected results can be achieved.

[0113] Terminal 101 has at least the function of obtaining target data information from server 102 through the cooperation of main frame component, logic component, network component and database component. For example, in response to the trigger operation of executing information acquisition task, main frame component can call logic component to send information acquisition task to network component. After receiving information acquisition task, network component can call logic component to obtain synchronization key value from database component according to information acquisition task, and then call logic component to obtain target data information from server according to information acquisition task and synchronization key value. Then, network component calls logic component to return target data information to main frame component. After receiving target data information, main frame component calls logic component to send target data information to user interface component for display. In addition, terminal 101 may also have the function of transmitting information to be sent to the information receiver through the cooperation of the main frame component, the logic component and the network component. For example, the main frame component can receive the information to be sent sent by the user interface component, and then call the logic component to process the information to be sent to obtain the target information. Then, the logic component calls the network component to send the target information to the server. When the network component receives the target remote identifier returned by the server based on the target information, the network component can call the logic component to send the identifier information corresponding to the target information to the information receiver, so that the information receiver can obtain the target information from the server based on the identifier information. In addition, after the network component completes the sending of the identifier information, the network component can also call the logic component to return the target remote identifier to the user interface component through the main frame component, so that the user interface component can update the user interface based on the target remote identifier.

[0114] Server 102 has at least the functions of obtaining target data information according to information acquisition requests from terminal 101 and sending the target data information to terminal 101. In addition, server 102 may also have the functions of receiving target information from terminal 101 and providing the target information to the information recipient for download.

[0115] In one alternative implementation, terminal 101 is a mobile terminal running an interactive application, and server 102 is a data server used to store data information. In response to a user's trigger action to perform an information retrieval task in the user interface of an interactive application, the user interface component sends the information retrieval task to the main framework component. Upon receiving the information retrieval task, the main framework component calls a logic component to transmit the task to the network component. After receiving the information retrieval task, the network component, based on the task, calls a logic component to request a synchronization key value from the database component. In response to the request from the network component, the database component looks up the synchronization key value and sends it to the network component. Upon receiving the synchronization key value, the network component, based on the information retrieval task and the synchronization key value, calls a logic component to initiate an information retrieval request to the server. In response to the request, the server retrieves the corresponding target data information and sends it to the network component. Upon receiving the target data information, the network component calls a logic component to return the target data information to the main framework component. Upon receiving the target data information, the main framework component calls a logic component to send the target data information to the user interface component. Upon receiving the target data information, the user interface component updates the user interface and displays the target data information.

[0116] In one optional implementation, terminal 101 is a mobile terminal running an interactive application, and server 102 is a data server for storing data information. In response to a user's operation to send information in the user interface of the interactive application, the user interface component sends the information to be sent to the main frame component. Upon receiving the information, the main frame component first calls a logic component to process the information to obtain target information, and then calls the logic component to send the target information to the server via the network component. Upon receiving the target information, the server saves the target information and returns the corresponding target remote identifier to the network component. Upon receiving the target remote identifier, the network component calls the logic component to send the identifier information corresponding to the target information to the information recipient. Upon receiving the identifier information, the information recipient downloads the target information from the server based on the identifier information. After the network component completes the transmission of the identifier information, the network component calls the logic component to return the target remote identifier to the main frame component. Upon receiving the target remote identifier, the main frame component calls the logic component to return the target remote identifier to the user interface component. Upon receiving the target remote identifier, the user interface component updates the user interface based on the target remote identifier.

[0117] Figure 3 This is a flowchart illustrating an information processing method provided in an embodiment of this application. In this embodiment, the information processing method can be applied to, for example... Figure 1Terminal 101 runs an instant messaging application. This application includes a main frame component, a logic component, a network component, a database component, and a user interface component. The main frame component, logic component, network component, and database component are all constructed using a class-based object-oriented language. (See reference...) Figure 3 The information processing method includes, but is not limited to, steps 110 to 160.

[0118] Step 110: In response to the triggering operation of the information retrieval task, the main framework component calls the logic component to send the information retrieval task to the network component.

[0119] In this step, when the main framework component detects a trigger operation for performing an information acquisition task, the main framework component can respond to the trigger operation by calling the logic component to send the information acquisition task to the network component, so that the corresponding target data information can be obtained according to the information acquisition task in subsequent steps.

[0120] It should be noted that the triggering operation for performing the information retrieval task can be different operation processes, and this embodiment does not specifically limit it. For example, opening an interactive application can be considered as triggering an operation for performing an information retrieval task; refreshing the user interface of an interactive application can also be considered as triggering an operation for performing an information retrieval task; and switching an interactive application from background to foreground can also be considered as triggering an operation for performing an information retrieval task.

[0121] It should be noted that the information acquisition task may include request information for acquiring data information, or it may include operation instructions for acquiring data information. The appropriate choice can be made according to the actual application situation, and this embodiment does not make specific limitations on this.

[0122] It should be noted that during the operation of an instant messaging application, when the main framework component detects a trigger operation for performing an information retrieval task, the main thread of the main framework component can call the logic component, which then transmits the information retrieval task to the network component, enabling the network thread of the network component to execute the information retrieval task.

[0123] Step 120: The network component obtains the task based on the information and calls the logic component to retrieve the synchronization key value from the database component.

[0124] Since the main framework component called the logic component to send an information acquisition task to the network component in step 110, in this step, the network component can first call the logic component to obtain the corresponding synchronization key value from the database component based on the information acquisition task, so that subsequent steps can obtain the corresponding target data information from the server based on the synchronization key value and the information acquisition task.

[0125] It should be noted that an information retrieval task may simply be a trigger instruction to request target data information, without carrying any identification or indication information related to that target data information. Alternatively, an information retrieval task may be a request message to request target data information, carrying identification or indication information related to that target data information, but the server does not use that identification or indication information to save the target data information. Therefore, in these cases, the network component cannot directly retrieve the target data information from the server based on the information retrieval task. To solve these problems, the database component can store a synchronization key value corresponding to the target data information. This synchronization key value is the index value used by the server to retrieve the target data information. Therefore, after the network component receives an information retrieval task from the main framework component, the network component can first call the logic component to retrieve the synchronization key value from the database component, and then perform the subsequent operation of retrieving the target data information from the server based on the synchronization key value, so as to effectively complete the information retrieval task.

[0126] It should be noted that during the operation of the instant messaging application, after the network component receives an information retrieval task from the main framework component, the network thread of the network component can call the logic component, which then sends a request to the database component to retrieve the synchronization key value. When the database component receives this request, its database thread can perform the synchronization key value retrieval process. Once the database thread retrieves the corresponding synchronization key value, it can return the synchronization key value to the network component, thereby enabling the network component to retrieve and process the synchronization key value.

[0127] Step 130: The network component obtains the task and synchronization key value based on the information, and calls the logic component to send an information retrieval request to the server, so that the server can obtain the target data information according to the information retrieval request.

[0128] Since the network component obtained the synchronization key value from the database component by calling the logic component in step 120, it can obtain the task and the synchronization key value based on this information, and then call the logic component to send an information retrieval request to the server. This allows the server to obtain the corresponding target data information based on the information retrieval request, so as to effectively complete the information retrieval task.

[0129] It should be noted that the information retrieval request carries the synchronization key value, and this synchronization key value is the index value used by the server to retrieve the target data information. Therefore, after receiving the information retrieval request, the server can retrieve the corresponding target data information based on the synchronization key value.

[0130] In a specific example, suppose the server stores a list of data information, which includes multiple data items and multiple index values, with each data item and index value corresponding one-to-one. When the server receives a data retrieval request, it can search for the corresponding index value in the data list based on the synchronization key value in the request. Once the index value corresponding to the synchronization key value is found, the server can determine that the data information corresponding to that index value is the target data information, and therefore the server can retrieve the target data information according to the data retrieval request.

[0131] In another specific example, suppose the server stores multiple data information lists and multiple list index values, with a one-to-one correspondence between these data information lists and their index values. Each data information list includes multiple data items and multiple information index values, with each data item and its index value corresponding to the other. Additionally, the information retrieval request includes an information retrieval task and a synchronization key value. The information retrieval task includes instruction information corresponding to the data information list. When the server receives an information retrieval request including this information retrieval task and the synchronization key value, the server can first look up the corresponding list index value based on the instruction information in the information retrieval task. Once a list index value corresponding to the instruction information is found, the server determines the corresponding data information list based on that list index value. Then, based on the synchronization key value, the server looks up the corresponding information index value within that data information list. Once an information index value corresponding to the synchronization key value is found, the server can determine that the data information corresponding to that information index value is the target data information. Therefore, the server can retrieve the corresponding target data information according to the information retrieval request.

[0132] It should be noted that after the network component receives the information retrieval task from the main framework component and the synchronization key-value from the database component, the network thread of the network component can call the logic component, which in turn sends an information retrieval request to the server, enabling the server to retrieve the corresponding target data information based on the request.

[0133] Step 140: The network component receives the target data information sent by the server.

[0134] Since the network component invoked the logic component to initiate an information acquisition request to the server in step 130, and the server acquired the target data information according to the information acquisition request, the network component can receive the target data information sent by the server in this step, so that the target data information can be returned to the user interface component for display in subsequent steps, thereby completing the information acquisition task.

[0135] Step 150: The network component calls the logic component to return the target data information to the main framework component.

[0136] Since the network component received the target data information sent by the server in step 140, in this step, the network component can call the logic component to return the target data information to the main frame component, so that the target data information can be returned to the user interface component for display in subsequent steps, thereby completing the information acquisition task.

[0137] It should be noted that after the network component receives the target data information sent by the server, the network thread of the network component can call the logic component, and the logic component returns the target data information to the main framework component.

[0138] Step 160: The main frame component calls the logic component to send the target data information to the user interface component for display.

[0139] Since the network component called the logic component to return the target data information to the main frame component in step 150, the main frame component can call the logic component in this step to send the target data information to the user interface component for display, thereby completing the information acquisition task.

[0140] It should be noted that when the user interface component receives the target data information sent by the main frame component, the user interface component will refresh the user interface and re-render and display the user interface based on the target data information.

[0141] It should be noted that after the main frame component receives the target data information returned by the network component, the main thread of the main frame component can call the logic component, which then sends the target data information to the user interface component. When the user interface component receives the target data information, it will refresh the user interface and re-render and display the user interface based on the target data information.

[0142] In this embodiment, by employing the information processing method including steps 110 to 160 above, in response to the triggering operation of executing the information acquisition task, the main frame component calls the logic component to transmit the information acquisition task to the network component; then, the network component, according to the information acquisition task, calls the logic component to obtain the synchronization key value from the database component; next, the network component, according to the information acquisition task and the synchronization key value, calls the logic component to initiate an information acquisition request to the server, so that the server obtains the target data information according to the information acquisition request; after the network component receives the target data information sent by the server, the network component calls the logic component to return the target data information to the main frame component; then, the main frame component calls the logic component to send the target data information to the user interface component for display. Since the main framework component, logic component, network component, and database component are all constructed using a class-based object-oriented language, and class-based object-oriented languages ​​have good compatibility with different operating systems, these components can be compatible with different operating systems. In other words, for different operating systems, it is not necessary to develop separate main framework components, logic components, network components, and database components; the same set of code can run on different system platforms. This reduces redundant development work, lowers application development and maintenance costs, and improves application development efficiency.

[0143] Reference Figure 4 As shown in the embodiment of this application, step 110 is further described. Step 110 may include, but is not limited to, steps 111 and 112.

[0144] Step 111: The main framework component obtains the task based on the information, calls the logic component to generate the first request information, and calls the logic component to add the first request information to the serial queue.

[0145] In this step, the first request information represents the information acquisition task. Therefore, when the main framework component calls the logic component to send the information acquisition task to the network component, the main framework component can first convert the information acquisition task into a data format that the network component can process before sending the information acquisition task to the network component. For example, the main framework component can first call the logic component to generate the first request information based on the information acquisition task, and then call the logic component to add the first request information to the serial queue, so that subsequent steps can execute the process of sending the first request information to the network component according to the task status in the serial queue.

[0146] Step 112: When the first request information is at the head of the serial queue, the main frame component calls the logic component to send the first request information to the network component.

[0147] In this step, since the first request information was added to the serial queue in step 111, when the first request information is at the head of the serial queue, it means that the task to be performed is to forward the first request information. Therefore, the main frame component can call the logic component to send the first request information to the network component so that the network component can obtain the corresponding synchronization key value from the database component based on the first request information in subsequent steps.

[0148] It should be noted that after the main framework component calls the logic component to generate the first request information, the main framework component adds the first request information to the tail of the serial queue and checks whether a task is currently being executed. If a task is currently being executed, it waits for the currently executing task to finish, then retrieves the task from the head of the serial queue and executes it, and removes the current head task from the serial queue, making the next task in the serial queue the new head task. If no task is currently being executed, it retrieves the task from the head of the serial queue and executes it, and removes the current head task from the serial queue, making the next task in the serial queue the new head task. When the first request information is at the head of the serial queue, the main framework component calls the logic component to send the first request information to the network component, thereby realizing the processing of sending information to the network component to retrieve the task.

[0149] It should be noted that for user interface components, any operation involving receiving or updating messages will trigger network requests for message synchronization, and these network requests are often concurrent. However, the main framework component cannot send multiple network requests for message synchronization simultaneously. Therefore, during message synchronization, the main framework component needs to call a logic component to serialize these network requests. If each system platform implements its own serial queue program code, the implementation logic will be identical across platforms, leading to repetitive development work and potential code defects. This results in high application development and maintenance costs, but low application development efficiency. To address this issue, in this embodiment, the main framework component calls a logic component, also constructed using a class-based object-oriented language, to generate a first request message and add it to the serial queue. When the first request message is at the head of the serial queue, the main framework component then calls the logic component to send the first request message to the network component. Because class-based object-oriented languages ​​have good compatibility with different operating systems, the main framework components, logic components, and network components constructed based on class-based object-oriented languages ​​can be compatible with different operating systems. In other words, for different operating systems, it is not necessary to develop different serial queue program code. The same program code can run on different system platforms, thereby reducing the repetitive development work for serial queues, reducing the R&D and maintenance costs of applications, and improving the R&D efficiency of applications.

[0150] Reference Figure 5 As shown in one embodiment of this application, step 120 will be further described. Step 120 may include, but is not limited to, the following steps:

[0151] Step 121: Based on the received first request information, the network component calls the logic component to generate second request information, and calls the logic component to send the second request information to the database component;

[0152] Step 122: Based on the received second request information, the database component calls the logic component to obtain the synchronization key value and calls the logic component to send the synchronization key value to the network component;

[0153] Step 123: The network component receives the synchronization key value sent by the database component.

[0154] In this embodiment, when the network component executes step 120 to obtain the synchronization key value from the database component, the network component can first call the logic component to generate second request information based on the received first request information. The second request information is a request for the synchronization key value from the database component. After generating the second request information, the network component calls the logic component to send the second request information to the database component. When the database component receives the second request information, it can call the logic component to obtain the synchronization key value based on the second request information, and call the logic component to return the synchronization key value to the network component, so that the network component can obtain the corresponding target data information from the server based on the synchronization key value in subsequent steps. Since the network components, logic components, and database components are all constructed using class-based object-oriented languages, and class-based object-oriented languages ​​have good compatibility with different operating systems, these components can be compatible with different operating systems. In other words, it is not necessary to develop different network components, logic components, and database components for different operating systems; the same set of program code can run on different system platforms. This reduces redundant development work, lowers application development and maintenance costs, and improves application development efficiency.

[0155] Reference Figure 6 As shown in the embodiment of this application, step 150 will be further described. Step 150 may include, but is not limited to, the following steps:

[0156] Step 151: The network component calls the logic component to parse and process the target data information;

[0157] Step 152: The network component calls the logic component to return the parsed target data information to the main framework component.

[0158] In this embodiment, since the network component receives the target data information sent by the server in step 140, the network component can first call the logic component to parse the target data information. After the parsing of the target data information is completed, the network component can call the logic component again to return the parsed target data information to the main frame component.

[0159] It should be noted that, to meet network transmission requirements, the target data information sent by the server conforms to the network transmission protocol. However, the data format of the target data information may not meet the transmission requirements between the network component and the main framework component. Therefore, after receiving the target data information from the server, the network component needs to parse and process the target data information to extract key information before returning this key information to the main framework component. Furthermore, to ensure that the key information in the target data information is more compatible with the transmission requirements between the network component and the main framework component, after the network component calls the logic component to parse and process the target data information to obtain the key information, it can also re-encapsulate this key information to ensure that its data format conforms to the transmission requirements between the network component and the main framework component.

[0160] It should be noted that, in order to check the integrity of the target data and whether the target data has been tampered with, the network component can first perform data integrity and data security checks on the target data during the process of calling the logic component to parse and process the target data. Once it is determined that the target data meets the requirements of data integrity and data security, the target data is then parsed and the key information is extracted.

[0161] Furthermore, in one embodiment of this application, the information processing method is further described, and the information processing method may also include, but is not limited to, the following steps:

[0162] The main framework component calls the logic component to send the target data information to the database component;

[0163] The database component calls the logic component to save the target data information.

[0164] In this embodiment, after the main frame component calls the logic component to send the target data information to the user interface component for display, the main frame component can also call the logic component to send the target data information to the database component. After the database component receives the target data information, it can call the logic component to save the target data information, thereby providing functions such as data backup and historical information retrieval, which can improve the user experience.

[0165] Reference Figure 7 As shown, Figure 7 This is a flowchart illustrating an information processing method according to another embodiment of this application. In this embodiment, the information processing method can be applied to, for example... Figure 1Terminal 101 runs an instant messaging application. This application includes a main frame component, a logic component, a network component, and a user interface component. The main frame component, logic component, and network component are all constructed using a class-based object-oriented language. (See reference...) Figure 10 The information processing method includes, but is not limited to, steps 210 to 260.

[0166] Step 210: The main frame component receives the information to be sent from the user interface component.

[0167] In this step, when a user sends a message through the user interface of an instant messaging application, the user interface component sends the corresponding message to be sent to the main frame component. At this time, the main frame component can receive the message to be sent so that it can be sent to the message recipient in subsequent steps.

[0168] It should be noted that the information to be sent may include video file information, text file information, image information, etc., and this embodiment does not make specific limitations on this.

[0169] It should be noted that sending information through the user interface of an instant messaging application can include different procedures, and this embodiment does not impose any specific limitations on them. For example, one can first drag and drop the information to be sent (such as video file information, text file information, etc.) into the message editing window of the user interface, and then click the send button in the user interface to complete the information sending operation; or, one can first select the information to be sent (such as video file information, text file information, etc.) through the file selection button in the user interface, and then click the send button in the user interface to complete the information sending operation.

[0170] Step 220: The main framework component calls the logic component to process the data of the information to be sent and obtain the target information.

[0171] Since the main frame component received the message to be sent from the user interface component in step 210, in this step, the main frame component can call the logic component to process the message to be sent to obtain the target information, so that the target information can be sent to the information recipient in subsequent steps to realize the user's information sending operation.

[0172] It should be noted that the data processing performed on the information to be sent can be appropriately selected according to the actual application situation, and this embodiment does not impose specific limitations on it. For example, the data format of the information to be sent can be converted to obtain target information that meets the transmission format requirements; or, transmission parameters related to data transmission (such as file storage path) can be added to the information to be sent to obtain target information that meets the data transmission requirements.

[0173] It should be noted that during the operation of an instant messaging application, after the main framework component receives the message to be sent from the user interface component, the main thread of the main framework component can call the logic component to process the message to be sent and obtain the target information.

[0174] Step 230: The main framework component calls the logic component and sends the target information to the server through the network component.

[0175] Since the main frame component obtained the target information in step 220, it can call the logic component in this step to send the target information to the server through the network component, so that the information recipient can obtain the target information from the server in subsequent steps and realize the user's information sending operation.

[0176] It should be noted that during the operation of an instant messaging application, after the main framework component processes the data of the message to be sent and obtains the target information, the main thread of the main framework component can call the logic component, which then sends the target information to the network component, enabling the network component to send the target information to the server.

[0177] Step 240: The network component receives the target remote identifier returned by the server based on the target information.

[0178] It should be noted that since the main frame component sends the target information to the server through the network component in step 230, when the server receives the target information, the server will return the target remote identifier (Remote ID) corresponding to the target information to the network component. Therefore, in this step, the network component can receive the target remote identifier returned by the server based on the target information, so that subsequent steps can update the UI display based on the target remote identifier.

[0179] Step 250: The network component calls the logic component to send the identification information corresponding to the target information to the information receiver, so that the information receiver can obtain the target information from the server based on the identification information.

[0180] It should be noted that when the network component receives the target remote identifier returned by the server based on the target information, it means that the terminal has successfully sent the target information to the server. Therefore, after the network component receives the target remote identifier returned by the server in step 240, the network component can call the logic component to send the identifier information corresponding to the target information to the information receiver, so that the information receiver can obtain the target information from the server based on the identifier information, thereby realizing the user-initiated information transmission process.

[0181] It should be noted that the identification information corresponding to the target information can be implemented in different ways, and this embodiment does not impose any specific limitations on it. For example, the identification information can be an ID that uniquely represents the target information, or it can be a summary that uniquely represents the target information, and the appropriate choice can be made according to the actual application.

[0182] It should be noted that the recipient of the information can be a terminal device such as a tablet computer, laptop computer, desktop computer, smartphone, in-vehicle terminal, smartwatch, or smart bracelet, but is not limited to these.

[0183] It should be noted that because the network component sends the target information, which has a larger data volume, to the server and the identification information, which has a smaller data volume, to the information receiver, the information receiver can obtain the corresponding target information from the server through the identification information. Therefore, it can not only realize the transmission of target information between the terminal and the information receiver, but also reduce the transmission bandwidth between the terminal and the information receiver, reduce the probability of network congestion, and improve the effectiveness of information transmission between the terminal and the information receiver.

[0184] It should be noted that during the operation of an instant messaging application, after the network component receives the target remote identifier returned by the server, the network thread of the network component can call the logic component, which then sends the identifier information corresponding to the target information to the information recipient, enabling the information recipient to obtain the target information from the server based on the identifier information.

[0185] Step 260: When the network component completes the transmission of the identification information, the network component calls the logic component, which returns the target remote identifier to the user interface component through the main frame component, so that the user interface component updates the user interface according to the target remote identifier.

[0186] It should be noted that when the network component completes the transmission of the identification information, it means that the terminal has completed the information transmission operation initiated by the user. Therefore, in this step, the network component can call the logic component to return the target remote identifier to the user interface component through the main frame component, so that the user interface component can update the user interface according to the target remote identifier, so as to inform the user that the information transmission process has been completed.

[0187] It should be noted that the target remote identifier can be used by the user interface component to update the message sending status, and can also be used by the user interface component for further operations on the message (such as recalling or deleting the message). Therefore, by returning the target remote identifier to the user interface component, the user interface component can update the message status in a timely manner, so as to inform the user that the message sending process has been completed. In addition, based on the updated message status in the user interface, it is also convenient for the user to perform subsequent further operations on the message (such as recalling or deleting the message), thereby improving the user experience.

[0188] It should be noted that after the network component completes the transmission of the identification information, the network thread of the network component can call the logic component, which then sends the target remote identifier to the main frame component. Once the main frame component receives the target remote identifier, its main thread can call the logic component, which then returns the target remote identifier to the user interface component, enabling the user interface component to update the user interface based on the target remote identifier.

[0189] In this embodiment, by employing the information processing method including steps 210 to 260 above, when the main frame component receives the information to be sent from the user interface component, the main frame component calls the logic component to process the information to be sent to obtain the target information. Then, the main frame component calls the logic component to send the target information to the server through the network component. Next, the network component receives the target remote identifier returned by the server based on the target information, and calls the logic component to send the identifier information corresponding to the target information to the information receiver, so that the information receiver can obtain the target information from the server based on the identifier information. After the network component completes the sending of the identifier information, the network component calls the logic component to return the target remote identifier to the user interface component through the main frame component, so that the user interface component updates the user interface based on the target remote identifier. Since the main framework component, logic component, and network component are all constructed using a class-based object-oriented language, and class-based object-oriented languages ​​have good compatibility with different operating systems, these components can be compatible with different operating systems. In other words, for different operating systems, it is not necessary to develop separate main framework components, logic components, and network components; the same set of code can run on different system platforms. This reduces redundant development work, lowers application development and maintenance costs, and improves application development efficiency.

[0190] Reference Figure 8 As shown in one embodiment of this application, step 220 will be further described. Step 220 may include, but is not limited to, the following steps:

[0191] Step 221: The main frame component calls the logic component to check the data format of the information to be sent;

[0192] Step 222: When the data format of the message to be sent meets the preset format requirements, the main frame component calls the logic component to add the target parameter to the message to be sent and obtain the target information.

[0193] It should be noted that, in order to meet the data transmission format requirements and ensure effective data transmission, the main framework component, when calling the logic component to process the information to be sent, can first call the logic component to check the data format of the information to be sent. If the data format of the information to be sent conforms to the preset format requirements, the main framework component can further call the logic component to add the target parameter to the information to be sent to obtain the target information. If the data format of the information to be sent does not conform to the preset format requirements, it means that the information to be sent does not meet the data transmission requirements. At this time, the main framework component can discard the information to be sent and return an information transmission error alarm to the user interface component, so that the user interface component can inform the user of the information transmission error. Alternatively, the main framework component can also convert the data format of the information to be sent so that the data format of the information to be sent conforms to the preset format requirements. Then, the main framework component can further call the logic component to add the target parameter to the information to be sent after the data format conversion to obtain the target information.

[0194] It should be noted that the target parameter can be a transmission parameter related to data transmission. For example, the target parameter can be a file storage path, file size, parameter information indicating whether the file is encrypted, etc. It can be appropriately selected according to the actual application situation. This embodiment does not make specific limitations on this.

[0195] Reference Figure 9 As shown in one embodiment of this application, step 230 is further described. Step 230 may include, but is not limited to, the following steps:

[0196] Step 231: The main framework component calls the logic component to send the target information to the network component;

[0197] Step 232: The network component calls the logic component to perform an integrity check on the information content of the received target information;

[0198] Step 233: When the content of the target information meets the preset integrity requirements, the network component calls the logic component to send the target information to the server.

[0199] In this embodiment, after the main frame component processes the information to be sent to obtain the target information, it can then call the logic component to send the target information to the network component. Upon receiving the target information, the network component, to determine whether it meets network transmission requirements, can call the logic component to perform an integrity check on the information content. If the information content meets preset integrity requirements, it indicates that the target information meets network transmission requirements. Therefore, the network component can further call the logic component to send the target information to the server, thereby realizing the user-initiated information sending process. Conversely, if the network component detects that the information content of the target information does not meet preset integrity requirements, it indicates that the target information does not meet network transmission requirements. In this case, the network component can discard the target information and return an information transmission error alarm to the user interface component through the main frame component, allowing the user interface component to inform the user of the information transmission error.

[0200] It should be noted that since the target information carries target parameters, when performing an integrity check on the content of the target information, the validity of the target parameters can be checked first. If the target parameters meet the validity requirements, then the integrity of the target information can be checked. If the target parameters do not meet the validity requirements, the target information can be discarded, and an alarm indicating a transmission error can be issued. For example, assuming the target information is video file information, and the target parameter is the local path of the video file information, then the validity of the local path of the video file information can be checked first. If the local path of the video file information meets the validity requirements, then the integrity of the video file information can be further checked. If the local path of the video file information does not meet the validity requirements, then the target information can be discarded, and an alarm indicating a transmission error can be issued.

[0201] It should be noted that the integrity check of the target information content can be performed as follows: First, the target information content is processed using the MD5 message digest algorithm to obtain a hash value. Then, the integrity of the target information content is checked based on this hash value. The MD5 message digest algorithm is a cryptographic hash function that produces a 128-bit hash value, which can be used to check the integrity of transmitted information.

[0202] Furthermore, in one embodiment of this application, the information processing method is further described as follows: before performing step 232, the information processing method may include, but is not limited to, the following steps:

[0203] The network component calls the logic component to send target information to the database component;

[0204] The database component calls the logic component to save the received target information.

[0205] It should be noted that the database component, along with the main framework component, logic component, and network component, are all components built using a class-based object-oriented language. This means that for different operating systems, it is not necessary to develop separate database components, main framework components, logic components, and network components. The same set of program code can be used to run the database component, main framework component, logic component, and network component on different system platforms, thereby reducing redundant development work, lowering application development and maintenance costs, and improving application development efficiency.

[0206] In this embodiment, before the network component calls the logic component to perform an integrity check on the target information, the network component can call the logic component to send the target information to the database component. Once the database component receives the target information, it can call the logic component to save it, thereby providing functions such as data backup and historical information retrieval, thus improving the user experience. Furthermore, since the database component saves the target information, it provides a data processing basis for the subsequent execution of step 232, effectively enabling the integrity check of the target information.

[0207] Furthermore, in one embodiment of this application, step 233 is further described. When the target information includes video content information and video cover information, step 233 may include, but is not limited to, the following steps:

[0208] The network component calls the concurrent task tool through the logic component to merge the first task of sending video content information and the second task of sending video cover information into the target task;

[0209] The network component, through the logic component, calls the concurrent task tool to execute the target task, in order to send video content information and video cover information to the server.

[0210] It should be noted that when the user-initiated message to be sent is a video file, the video content and cover information of that video file need to be sent separately. In other words, the network component needs to send target information, including the video content and cover information, to the server. In related technologies, the network component sends the video content and cover information separately, but this reduces the performance of information transmission. To improve performance, in this embodiment, the network component can use a logic component to call a concurrent task tool to merge the first task of sending the video content and the second task of sending the cover information into a single target task. Then, the network component, through the logic component, calls the concurrent task tool to execute the target task, thereby sending the video content and cover information to the server in parallel.

[0211] It should be noted that concurrent task tools can use the Promise tool. The Promise tool can merge multiple concurrent tasks into one task. Once all concurrent tasks are completed, the Promise tool will notify the task initiator that the task has been completed.

[0212] It should be noted that when the target information includes video content information and video cover information, in step 250, the network component calls the logic component to send the identification information corresponding to the target information to the information receiver. Specifically, the network component calls the logic component to send the identification information corresponding to the video content information and the identification information corresponding to the video cover information to the information receiver respectively. Therefore, after the information receiver receives these two identification information, it can retrieve the corresponding video content information and video cover information from the server based on these two identification information.

[0213] Furthermore, in one embodiment of this application, step 260 is further described, and step 260 may include, but is not limited to, the following steps:

[0214] The network component calls the logic component and returns the target remote identifier to the main framework component;

[0215] The main frame component calls the logic component, which returns the target remote identifier to the user interface component, causing the user interface component to update the user interface based on the target remote identifier.

[0216] In this embodiment, after the network component completes the transmission of the identification information, the network component can call the logic component to return the target remote identifier obtained from the server to the main frame component. After the main frame component receives the target remote identifier, it can call the logic component to return the target remote identifier to the user interface component, so that the user interface component can update the user interface according to the target remote identifier, so as to inform the user that the information transmission process has been completed.

[0217] It should be noted that when the user interface component receives the target remote identifier returned by the main frame component, the user interface component can refresh the user interface and update the message sending status based on the target remote identifier, so as to inform the user that the message sending process has been completed.

[0218] To more clearly illustrate the processing flow of the information processing method provided in the preceding embodiments, specific examples are given below.

[0219] Example 1:

[0220] like Figure 10 As shown, Figure 10 This is a flowchart illustrating an information processing method provided in a specific example of this application. Figure 10 In this context, the information processing method is an information processing method executed by a certain instant messaging application, wherein the instant messaging application includes a main frame component, a logic component, a network component, and a database component, and the main frame component, logic component, network component, and database component are all components constructed using a class-based object-oriented language.

[0221] In this example, assuming the user triggers a message retrieval operation through the UI (e.g., switching the instant messaging application from background to foreground), the user interface component will initiate a message retrieval task to the main framework component. When the main framework component receives this task, its main thread will call the logic component to add the task to the tail of the serial queue and check if any tasks are currently being executed. If no tasks are currently being executed, the main framework component's main thread will retrieve the task from the head of the serial queue and execute it. When the main framework component's main thread retrieves the task from the head of the serial queue, it will call the logic component to send the task to the network component for processing. After the network component receives the information retrieval task, its network thread calls the logic component to retrieve the synchronization key value required to execute the task from the database component. Once the network component obtains the synchronization key value, its network thread calls the logic component to send an information retrieval request carrying that key value to the server. When the server receives the request, it returns the corresponding target data. Upon receiving this data, the network component's network thread first calls the logic component to parse it. After parsing, the network thread calls the logic component to return the data to the main frame component. When the main frame component receives the data, its main thread notifies the user interface component to refresh the UI, displaying the data. Additionally, the main thread calls the logic component to send the data to the database component for storage. Furthermore, after completing these operations, the main thread checks the serial queue for tasks. If tasks exist, they are executed.

[0222] In this example, since the main framework component, logic component, network component, and database component are all constructed using a class-based object-oriented language, and class-based object-oriented languages ​​have good compatibility with different operating systems, these components are therefore compatible with different operating systems. For example... Figure 11 and Figure 12 As shown, Figure 11 It refers to the UI of instant messaging applications running on mobile devices (such as iOS devices). Figure 12It refers to the UI interface of an instant messaging application running on a computer terminal (such as a terminal device running macOS). The two instant messaging applications use the same set of program code to implement the main framework components, logic components, network components, and database components. This ensures that the product performance and characteristics of the two instant messaging applications, such as message session search speed, message sending and receiving speed, and session switching speed, are consistent. This achieves a cross-platform solution for the instant messaging application, which not only reduces the repetitive development work of the instant messaging application on different operating systems, but also reduces the R&D investment and maintenance costs of the instant messaging application, and improves the R&D efficiency of the instant messaging application.

[0223] Example 2:

[0224] like Figure 13 As shown, Figure 13 This is a flowchart illustrating another specific example of an information processing method provided in this application. Figure 13 In this context, the information processing method is an information processing method executed by a certain instant messaging application, wherein the instant messaging application includes a main frame component, a logic component, a network component, and a database component, and the main frame component, logic component, network component, and database component are all components constructed using a class-based object-oriented language.

[0225] In this example, assuming a user sends a video message to a recipient via the UI, the user interface component sends the video message to the main frame component. Upon receiving the video message, the main frame component's main thread calls a logic component to check the data format of the video message. If the data format conforms to preset requirements, the main frame component's main thread then calls the logic component to populate the local path of the video message, obtaining target information with a unified data format. This target information includes the video content and cover art. Then, the main frame component's main thread calls the logic component to notify the user interface component that the video message is being sent. At this point, the user interface component can use a progress bar or a repeating animation to inform the user that the video message is being sent. Figure 14As shown, the UI uses a progress bar 103 to inform the user of the current video message sending progress. After the main frame component processes the video message data to obtain the target information, the main thread of the main frame component calls the logic component to send the target information to the network component. When the network component receives the target information, its network thread first calls the logic component to save the target information to the database component, and then calls the logic component to perform a validity check on the local path in the target information. If the local path meets the validity requirements, the network thread of the network component calls the logic component to process the target information using the MD5 message digest algorithm to obtain the hash value of the target information. Then, through a background check, the integrity check of the target information is performed based on the hash value. If the target information meets the preset integrity requirements, the network thread of the network component calls the Promise tool through the logic component to merge the first task of sending the video content information and the second task of sending the video cover information into a single target task. This target task is then executed, sending the video content information and the video cover information to the server in parallel. When the server receives the video content information and the video cover information, the server returns the target remote identifier corresponding to the video message to the network component. After the network component completes the transmission of video content and cover information, its network thread then calls the logic component to send the corresponding identifiers for the video content and cover information to the recipient. Once the network component successfully sends these identifiers, its network thread calls the logic component to update the target remote identifier returned by the server in the terminal's memory and database components. Next, the network thread calls the logic component again to return the target remote identifier to the user interface component via the main frame component, notifying the user interface component that the video message has been successfully sent. At this point, the user interface component updates its user interface based on the target remote identifier, informing the user that the information transmission process is complete.

[0226] Reference Figure 15 This application also discloses an information processing device, which 300 can function as such Figure 1 The terminal 101 in the illustrated embodiment implements the information processing method as described in the previous embodiments. The information processing device 300 includes a main frame component 301, a logic component 302, a network component 303, and a database component 304, wherein:

[0227] The main frame component 301 is used to respond to the trigger operation of executing the information acquisition task and call the logic component 302 to send the information acquisition task to the network component 303.

[0228] Network component 303 is used to obtain tasks based on information and call logic component 302 to obtain synchronization key values ​​from database component 304;

[0229] Network component 303 is also used to call logic component 302 to send an information retrieval request to the server based on the information retrieval task and synchronization key value, so that the server can retrieve the target data information according to the information retrieval request;

[0230] Network component 303 is also used to receive target data information sent by the server;

[0231] Network component 303 is also used to call logic component 302 to return target data information to main frame component 301;

[0232] The main frame component 301 is also used to call the logic component 302 to send the target data information to the user interface component for display;

[0233] Among them, the main framework component 301, logic component 302, network component 303 and database component 304 are all components constructed using a class-based object-oriented language.

[0234] In one embodiment, the main frame component 301 is further configured to:

[0235] According to the information acquisition task, the logic component 302 is invoked to generate the first request information, and the logic component 302 is invoked to add the first request information to the serial queue, wherein the first request information is used to characterize the information acquisition task;

[0236] When the first request information is at the head of the serial queue, logic component 302 is invoked to send the first request information to network component 303.

[0237] In one embodiment, network component 303 is further configured to, based on the received first request information, invoke logic component 302 to generate second request information, and invoke logic component 302 to send the second request information to database component 304;

[0238] Database component 304 is used to call logic component 302 to obtain synchronization key value based on the received second request information, and to call logic component 302 to send synchronization key value to network component 303;

[0239] Network component 303 is also used to receive synchronization key values ​​sent by database component 304.

[0240] In one embodiment, network component 303 is further configured to:

[0241] Call logic component 302 to parse and process the target data information;

[0242] The logic component 302 is invoked to return the parsed target data information to the main frame component 301.

[0243] In one embodiment, the main frame component 301 is further configured to call the logic component 302 to send target data information to the database component 304;

[0244] Database component 304 is used to call logic component 302 to save target data information.

[0245] It should be noted that, since the information processing device 300 in this embodiment can function as such Figure 1 The terminal 101 in the illustrated embodiment implements the information processing method as described in the previous embodiment. Therefore, the information processing device 300 in this embodiment has the same technical principle and the same beneficial effect as the information processing method in the previous embodiment. To avoid repetition, it will not be described again here.

[0246] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0247] Reference Figure 16 This application also discloses an information processing device, which 400 is capable of functioning as such Figure 1 The terminal 101 in the illustrated embodiment implements the information processing method as described in the previous embodiments. The information processing device 400 includes a main frame component 401, a logic component 402, and a network component 403, wherein:

[0248] The main frame component 401 is used to receive the information to be sent from the user interface components;

[0249] The main frame component 401 is also used to call the logic component 402 to process the information to be sent and obtain the target information.

[0250] The main frame component 401 is also used to call the logic component 402 and send target information to the server through the network component 403;

[0251] Network component 403 is used to receive the target remote identifier returned by the server based on the target information;

[0252] Network component 403 is also used to call logic component 402 to send identification information corresponding to the target information to the information receiver, so that the information receiver can obtain the target information from the server based on the identification information;

[0253] The network component 403 is also used to call the logic component 402 when the network component 403 completes the sending of the identification information, and return the target remote identifier to the user interface component through the main frame component 401, so that the user interface component updates the user interface according to the target remote identifier.

[0254] Among them, the main framework component 401, the logic component 402, and the network component 403 are all components constructed using a class-based object-oriented language.

[0255] In one embodiment, the main frame component 401 is further configured to:

[0256] Call logic component 402 to perform a format check on the data format of the information to be sent;

[0257] When the data format of the message to be sent meets the preset format requirements, the logic component 402 is called to add the target parameter to the message to be sent and obtain the target information.

[0258] In one embodiment, the main frame component 401 is further configured to invoke the logic component 402 to send target information to the network component 403;

[0259] Network component 403 is also used for:

[0260] Invoke logic component 402 to perform an integrity check on the information content of the received target information;

[0261] When the content of the target information meets the preset integrity requirements, logic component 402 is invoked to send the target information to the server.

[0262] In one embodiment, the information processing apparatus further includes a database component;

[0263] Network component 403 is also used to call logic component 402 to send target information to database component;

[0264] The database component is used to call logic component 402 to save the received target information;

[0265] The database component is a component constructed using a class-based object-oriented language.

[0266] In one embodiment, the target information includes video content information and video cover information;

[0267] Network component 403 is also used for:

[0268] By calling the concurrent task tool through logic component 402, the first task of sending video content information and the second task of sending video cover information are merged into the target task;

[0269] Through logic component 402, the concurrent task tool is invoked to execute the target task in order to send video content information and video cover information to the server.

[0270] In one embodiment, network component 403 is further configured to invoke logic component 402 to return a target remote identifier to main frame component 401;

[0271] The main frame component 401 is also used to call the logic component 402 to return the target remote identifier to the user interface component, so that the user interface component updates the user interface according to the target remote identifier.

[0272] It should be noted that, since the information processing device 400 in this embodiment can function as such Figure 1 The terminal 101 in the illustrated embodiment implements the information processing method as described in the previous embodiment. Therefore, the information processing device 400 in this embodiment has the same technical principle and the same beneficial effect as the information processing method in the previous embodiment. To avoid repetition, it will not be described again here.

[0273] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0274] Reference Figure 17 This application also discloses an information processing apparatus 500, which includes:

[0275] At least one processor 501;

[0276] At least one memory 502 is used to store at least one program;

[0277] When at least one program is executed by at least one processor 501, the information processing method as described in any of the preceding embodiments is implemented.

[0278] This application also discloses a computer-readable storage medium storing a processor-executable program, which, when executed by a processor, is used to implement the information processing method as described in any of the preceding embodiments.

[0279] This application also discloses a computer program product, including a computer program or computer instructions, which are stored in a computer-readable storage medium. The processor of a computer device reads the computer program or computer instructions from the computer-readable storage medium and executes the computer program or computer instructions, causing the computer device to perform the information processing method as described in any of the preceding embodiments.

[0280] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented, for example, in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatuses.

[0281] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0282] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, apparatuses, or units, and may be electrical, mechanical, or other forms.

[0283] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0284] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0285] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0286] The step numbers in the above method embodiments are set only for ease of explanation and do not limit the order of the steps. The execution order of each step in the embodiments can be adaptively adjusted according to the understanding of those skilled in the art.

Claims

1. An information processing method, characterized in that, Includes the following steps: In response to the triggering operation of the information acquisition task, the main framework component calls the logic component to transmit the information acquisition task to the network component; The network component obtains the task based on the information and calls the logic component to retrieve the synchronization key value from the database component; The network component, based on the information acquisition task and the synchronization key value, calls the logic component to initiate an information acquisition request to the server, so that the server acquires the target data information according to the information acquisition request. The network component receives the target data information sent by the server; The network component calls the logic component to parse the target data information to obtain key information in the target data information, and encapsulates the key information. The data format of the encapsulated key information conforms to the transmission requirements between the network component and the main frame component. The network component calls the logic component to return the encapsulated key information to the main framework component; The main framework component calls the logic component to send the encapsulated key information to the user interface component for display; The main framework component, the logic component, the network component, and the database component are all components constructed using a class-based object-oriented language.

2. The information processing method according to claim 1, characterized in that, The main framework component calls the logic component to transmit the information acquisition task to the network component, including: The main framework component obtains the task based on the information, calls the logic component to generate the first request information, and calls the logic component to add the first request information to the serial queue, wherein the first request information is used to characterize the information acquisition task; When the first request information is at the head of the serial queue, the main framework component calls the logic component to send the first request information to the network component.

3. The information processing method according to claim 2, characterized in that, The network component obtains the task based on the information, and calls the logic component to retrieve the synchronization key value from the database component, including: The network component, based on the received first request information, calls the logic component to generate second request information, and calls the logic component to send the second request information to the database component; The database component, based on the received second request information, calls the logic component to obtain the synchronization key value, and calls the logic component to send the synchronization key value to the network component; The network component receives the synchronization key value sent by the database component.

4. The information processing method according to claim 1, characterized in that, The information processing method further includes: The main framework component calls the logic component to send the target data information to the database component; The database component calls the logic component to save the target data information.

5. An information processing method, characterized in that, Includes the following steps: The main frame component receives the information to be sent from the user interface component; The main framework component calls the logic component to process the information to be sent to obtain the target information; The main framework component calls the logic component to send the target information to the server through the network component; The network component receives the target remote identifier returned by the server based on the target information; The network component invokes the logic component to send the identification information corresponding to the target information to the information receiver, so that the information receiver can obtain the target information from the server based on the identification information; When the network component completes the transmission of the identification information, the network component calls the logic component, which returns the target remote identifier to the user interface component through the main framework component, so that the user interface component updates the user interface according to the target remote identifier. The main framework component, the logic component, and the network component are all components constructed using a class-based object-oriented language.

6. The information processing method according to claim 5, characterized in that, The main framework component calls the logic component to process the information to be sent to obtain the target information, including: The main framework component calls the logic component to perform a format check on the data format of the information to be sent. When the data format of the information to be sent meets the preset format requirements, the main framework component calls the logic component to add target parameters to the information to be sent and obtain target information.

7. The information processing method according to claim 5, characterized in that, The main framework component calls the logic component to send the target information to the server via the network component, including: The main framework component calls the logic component to send the target information to the network component; The network component calls the logic component to perform an integrity check on the information content of the received target information; When the content of the target information meets the preset integrity requirements, the network component calls the logic component to send the target information to the server.

8. The information processing method according to claim 7, characterized in that, Before the network component invokes the logic component to perform an integrity check on the received target information, the information processing method further includes: The network component invokes the logic component to send the target information to the database component; The database component calls the logic component to save the received target information; The database component is a component constructed using a class-based object-oriented language.

9. The information processing method according to claim 7, characterized in that, The target information includes video content information and video cover information; The network component invokes the logic component to send the target information to the server, including: The network component calls the concurrent task tool through the logic component to merge the first task of sending the video content information and the second task of sending the video cover information into a target task; The network component, through the logic component, invokes the concurrent task tool to execute the target task, in order to send the video content information and the video cover information to the server.

10. The information processing method according to claim 5, characterized in that, The network component invokes the logic component, and returns the target remote identifier to the user interface component through the main framework component, so that the user interface component updates the user interface according to the target remote identifier, including: The network component calls the logic component to return the target remote identifier to the main framework component; The main framework component calls the logic component to return the target remote identifier to the user interface component, so that the user interface component updates the user interface according to the target remote identifier.

11. An information processing device, characterized in that, It includes the main framework component, logic component, network component, and database component, among which: The main framework component is used to respond to the trigger operation of executing the information acquisition task by calling the logic component to transmit the information acquisition task to the network component; The network component is used to obtain a task based on the information and call the logic component to obtain a synchronization key value from the database component; The network component is further configured to, based on the information to obtain the task and the synchronization key value, call the logic component to initiate an information acquisition request to the server, so that the server acquires the target data information based on the information acquisition request; The network component is also used to receive the target data information sent by the server; The network component is also used to call the logic component to parse and process the target data information to obtain key information in the target data information, and to encapsulate the key information. The data format of the encapsulated key information conforms to the transmission requirements between the network component and the main frame component. The network component is also used to call the logic component to return the encapsulated key information to the main framework component; The main framework component is also used to call the logic component to send the encapsulated key information to the user interface component for display; The main framework component, the logic component, the network component, and the database component are all components constructed using a class-based object-oriented language.

12. An information processing device, characterized in that, It includes the main framework component, logic component, and network component, among which: The main frame component is used to receive information to be sent from the user interface component; The main framework component is also used to call the logic component to process the information to be sent to obtain the target information; The main framework component is also used to call the logic component and send the target information to the server through the network component; The network component is used to receive the target remote identifier returned by the server based on the target information; The network component is further configured to invoke the logic component to send the identification information corresponding to the target information to the information receiver, so that the information receiver can obtain the target information from the server based on the identification information; The network component is further configured to, when the network component completes the transmission of the identification information, invoke the logic component to return the target remote identifier to the user interface component through the main frame component, so that the user interface component updates the user interface according to the target remote identifier; The main framework component, the logic component, and the network component are all components constructed using a class-based object-oriented language.

13. An information processing device, characterized in that, include: At least one processor; At least one memory for storing at least one program; The information processing method as described in any one of claims 1 to 10 is implemented when at least one of the programs is executed by at least one of the processors.

14. A computer-readable storage medium, characterized in that, It stores a processor-executable program, which, when executed by a processor, is used to implement the information processing method as described in any one of claims 1 to 10.

15. A computer program product, comprising a computer program or computer instructions, characterized in that, The computer program or the computer instructions are stored in a computer-readable storage medium, the processor of the computer device reads the computer program or the computer instructions from the computer-readable storage medium, and the processor executes the computer program or the computer instructions, causing the computer device to perform the information processing method as described in any one of claims 1 to 10.