Information processing method and device, electronic equipment and computer storage medium
By generating a target version identifier on the application development device and replacing the configuration file, the problem of the backend server having difficulty distinguishing between new and old version notification information is solved, and efficient and accurate processing of notification information is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- GUANGZHOU SHIYUAN ELECTRONICS CO LTD
- Filing Date
- 2024-10-15
- Publication Date
- 2026-04-17
AI Technical Summary
In existing technologies, backend servers have difficulty accurately distinguishing between notifications from new and historical versions of applications, affecting the reliability and accuracy of information processing.
By generating a target version identifier on the application's development device, replacing the preset identifier in the initial configuration file, a target configuration file is generated, and the installation package file is distributed to the target device. The target device processes notification information based on the target version identifier.
It improves the reliability and accuracy of notification information processing, ensures that terminals filter and process information according to the latest version identifier, and reduces unnecessary resource waste.
Smart Images

Figure CN121879822A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of application development technology, and in particular to an information processing method, apparatus, electronic device, and computer storage medium. Background Technology
[0002] In related technologies, when an application encounters an exception, relevant personnel can fix the exception, obtain a new version of the application, and release it. However, if the user-side device triggers specific logic (such as exception handling logic) to send a notification while running the application, the backend server may have difficulty distinguishing whether the exception notification was sent by a new version of the application or a previous version, which could affect the reliability and accuracy of the notification processing. Summary of the Invention
[0003] This application provides an information processing method, apparatus, electronic device, and computer storage medium, which can improve the reliability and accuracy of information processing. The above technical solutions are as follows:
[0004] In a first aspect, embodiments of this application provide an information processing method, which is applied to an application development device, including:
[0005] When a target code segment corresponding to an application submitted by a user is detected, a target version identifier is generated based on the target code segment. The target version identifier is used to uniquely indicate the target code segment.
[0006] If the initial configuration file corresponding to the above application is found to contain a preset identifier, the preset identifier is replaced with the target version identifier, and the target configuration file corresponding to the above application is generated. The initial configuration file contains the historical running code of the above application.
[0007] The installation package file corresponding to the above application is determined based on the above target configuration file, and the above installation package file includes the above target version identifier;
[0008] The aforementioned installation package file is distributed to the target device so that the target device runs the aforementioned application based on the aforementioned installation package file, and processes the notification information of the aforementioned application based on the aforementioned target version identifier included in the aforementioned installation package file.
[0009] In one possible implementation, the above method also includes:
[0010] Use a pre-defined version control tool to obtain the target code segment that the user has specified for the aforementioned application;
[0011] When a preset submission command is detected to be triggered, it is determined that the target code segment corresponding to the above application has been submitted by the aforementioned user.
[0012] In one possible implementation, distributing the aforementioned installation package file to the target device includes:
[0013] The aforementioned installation package file is sent to the backend server of the aforementioned application, so that the aforementioned backend server device can be used to distribute the aforementioned installation package file to the aforementioned target device.
[0014] Secondly, embodiments of this application provide an information processing method, which is applied to a target device and includes:
[0015] Receive the installation package file distributed by the development device, and run the application corresponding to the installation package file based on the installation package file, wherein the installation package file includes a target version identifier;
[0016] The notification information of the above application is processed based on the target version identifier mentioned above;
[0017] The aforementioned installation package file is determined by the aforementioned development device based on the target configuration file. The aforementioned target configuration file is a configuration file generated by the aforementioned development device when it detects that the initial configuration file corresponding to the aforementioned application includes a preset identifier, and then replaces the preset identifier with a target version identifier. The aforementioned initial configuration file includes the historical running code of the aforementioned application. The aforementioned target version identifier is a version identifier generated based on the aforementioned target code segment when it detects that the user has submitted the target code segment corresponding to the application.
[0018] In one possible implementation, the target device is a terminal running the application, or the target device is a backend server for the application.
[0019] In one possible implementation, when the target device is the terminal, the method further includes:
[0020] If the execution of the target logic corresponding to the above application is detected, a notification message corresponding to the target logic is generated.
[0021] In one possible implementation, when the target device is the backend server, the method further includes:
[0022] The terminal receives notification information sent by the terminal running the application, wherein the terminal is configured to generate the notification information corresponding to the target logic when it detects that the target logic corresponding to the application is being executed.
[0023] In one possible implementation, the processing of the application's notification information based on the target version identifier includes:
[0024] Obtain the filtering configuration information corresponding to the above application, and the current version identifier of the above application, wherein the current version identifier is the target version identifier included in the installation package file last received by the terminal running the above application from the above development device;
[0025] Based on the above filtering configuration information and the above current version identifier, determine the notification type corresponding to the above notification information;
[0026] The notification information shall be processed according to the notification type mentioned above.
[0027] In one possible implementation, the filtering configuration information includes a latest version identifier for the application, wherein the latest version identifier is the latest target version identifier submitted for the application. The notification type corresponding to the notification information is determined based on the filtering configuration information and the current version identifier, including:
[0028] Determine whether the current version identifier above matches the latest version identifier in the above filtering configuration information;
[0029] If so, the information version type corresponding to the above notification information will be determined as the latest version notification type;
[0030] If not, the notification type corresponding to the above notification information is determined based on the content of the above notification information and the above filtering configuration information.
[0031] In one possible implementation, the filtering configuration information includes the repair content corresponding to the application, and determining the notification type corresponding to the notification information based on the content of the notification information and the filtering configuration information includes:
[0032] Determine whether the content of the above notification information matches the repair content in the above filtering configuration information;
[0033] If so, the notification type corresponding to the above notification information will be determined as the historical version notification type;
[0034] If not, then the notification type corresponding to the above notification information will be determined as the latest version notification type.
[0035] In one possible implementation, the notification type is either a latest version type or a historical version type, and the processing of the notification information according to the notification type includes:
[0036] When the notification type is a historical version notification type, the notification information will be discarded.
[0037] In one possible implementation, the target device is a terminal running the application, and the processing of the notification information according to the notification type includes:
[0038] When the notification type is the latest version type, the notification information is sent to the background server of the application so that the background server can parse the notification information, obtain the parsing result corresponding to the notification information, and process it according to the parsing result.
[0039] Thirdly, embodiments of this application provide an information processing apparatus, the apparatus comprising:
[0040] The first generation module is used to generate a target version identifier based on the target code segment when a target code segment corresponding to a user-submitted application is detected. The target version identifier is used to uniquely indicate the target code segment.
[0041] The second generation module is used to replace the preset identifier with the target version identifier when it is detected that the initial configuration file corresponding to the application includes a preset identifier, and generate the target configuration file corresponding to the application. The initial configuration file includes the historical running code of the application.
[0042] The first determining module is used to determine the installation package file corresponding to the above application based on the above target configuration file, wherein the above installation package file includes the above target version identifier;
[0043] The distribution module is used to distribute the installation package file to the target device so that the target device can run the application based on the installation package file, and to process the notification information of the application based on the target version identifier included in the installation package file.
[0044] In one possible implementation, the information processing apparatus further includes:
[0045] The acquisition module is used to acquire the target code segment determined by the user for the above application using a preset version control tool;
[0046] The second determining module is used to determine, when a preset submission instruction is detected, the target code segment corresponding to the application submitted by the user.
[0047] In one possible implementation, the above distribution module includes:
[0048] The sending unit is configured to send the installation package file to the backend server of the application, so as to distribute the installation package file to the target device using the backend server device.
[0049] Fourthly, embodiments of this application provide an information processing apparatus, including:
[0050] The first receiving module is used to receive the installation package file distributed by the development device and run the application corresponding to the installation package file based on the installation package file, wherein the installation package file includes a target version identifier;
[0051] The processing module is used to process the notification information of the application based on the target version identifier.
[0052] The aforementioned installation package file is determined by the aforementioned development device based on the target configuration file. The aforementioned target configuration file is a configuration file generated by the aforementioned development device when it detects that the initial configuration file corresponding to the aforementioned application includes a preset identifier, and then replaces the preset identifier with a target version identifier. The aforementioned initial configuration file includes the historical running code of the aforementioned application. The aforementioned target version identifier is a version identifier generated based on the aforementioned target code segment when it detects that the user has submitted the target code segment corresponding to the application.
[0053] In one possible implementation, the target device is a terminal running the application, or the target device is a backend server for the application.
[0054] In one possible implementation, when the target device is the terminal, the information processing apparatus further includes:
[0055] The third generation module is used to generate notification information corresponding to the target logic when the execution of the above application is detected.
[0056] In one possible implementation, when the target device is the backend server, the information processing apparatus further includes:
[0057] The second receiving module is used to receive notification information sent by the terminal running the above application, wherein the terminal is used to generate the notification information corresponding to the target logic when it detects that the target logic corresponding to the above application is being executed.
[0058] In one possible implementation, the above processing module includes:
[0059] The acquisition unit is used to acquire the filtering configuration information corresponding to the above application and the current version identifier of the above application, wherein the current version identifier is the target version identifier included in the installation package file last received by the terminal running the above application from the development device.
[0060] The determining unit is used to determine the notification type corresponding to the notification information based on the above-mentioned filtering configuration information and the above-mentioned current version identifier;
[0061] The processing unit is used to process the notification information according to the notification type.
[0062] In one possible implementation, the filtering configuration information includes a latest version identifier for the application, wherein the latest version identifier is the latest target version identifier submitted for the application, and the determining unit includes:
[0063] The judgment subunit is used to determine whether the current version identifier of the above application is consistent with the latest version identifier in the above filtering configuration information;
[0064] The first determining subunit is used to determine the information version type corresponding to the notification information as the latest version notification type when the current version identifier of the above application is consistent with the latest version identifier in the above filtering configuration information.
[0065] The second determining subunit is used to determine the notification type corresponding to the notification information based on the content of the notification information and the filtering configuration information when the current version identifier of the application and the latest version identifier in the filtering configuration information are inconsistent.
[0066] In one possible implementation, the filtering configuration information includes the repair content corresponding to the application, and the second determining subunit is specifically used for:
[0067] Determine whether the content of the above notification information matches the repair content in the above filtering configuration information;
[0068] If so, the notification type corresponding to the above notification information will be determined as the historical version notification type;
[0069] If not, then the notification type corresponding to the above notification information will be determined as the latest version notification type.
[0070] In one possible implementation, the notification type is either a latest version type or a historical version type, and the processing unit includes:
[0071] The first processing subunit is used to discard the notification information when the notification type is a historical version notification type.
[0072] In one possible implementation, the target device is a terminal running the application, and the processing unit includes:
[0073] The second processing subunit is used to send the notification information to the background server of the application when the notification type is the latest version type, so that the background server can parse the notification information, obtain the parsing result corresponding to the notification information, and process it according to the parsing result.
[0074] Fifthly, embodiments of this application provide an electronic device, including: a processor and a memory;
[0075] The aforementioned memory stores a computer program adapted to be loaded by the aforementioned processor and execute the steps of the method provided by the first aspect of the embodiments of this application or any possible implementation thereof, or the aforementioned computer program adapted to be loaded by the aforementioned processor and execute the steps of the method provided by the second aspect of the embodiments of this application or any possible implementation thereof.
[0076] Sixthly, embodiments of this application provide a computer storage medium storing a plurality of instructions, which are adapted to be loaded by a processor and execute the steps of the method provided by the first aspect of the embodiments of this application or any possible implementation thereof, or the instructions are adapted to be loaded by a processor and execute the steps of the method provided by the second aspect of the embodiments of this application or any possible implementation thereof.
[0077] This application embodiment, upon detecting a target code segment submitted by a user for an application, generates a target version identifier based on the target code segment. This target version identifier uniquely identifies the target code segment. If a preset identifier is detected in the initial configuration file corresponding to the application, the preset identifier is replaced with the target version identifier, generating a target configuration file for the application. The initial configuration file includes the application's historical running code. An installation package file corresponding to the application is determined based on the target configuration file, and this installation package file includes the target version identifier. The installation package file is then distributed to a target device, enabling the target device to run the application based on the installation package file and process notification information from the application based on the target version identifier included in the installation package file. This application embodiment automatically injects the target version identifier corresponding to the target code segment into the application's running code when the user submits the target code segment, ensuring that the installation package file includes the latest version of the target version identifier. This improves the real-time performance and reliability of the target version identifier. Furthermore, when the terminal runs the application, it filters notification information based on the latest target version identifier, facilitating the identification and processing of notification information and effectively improving the reliability and accuracy of notification information processing. Attached Figure Description
[0078] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0079] Figure 1 A schematic diagram of the structure of an information processing system provided for an exemplary embodiment of this application;
[0080] Figure 2 A flowchart illustrating an information processing method provided for an exemplary embodiment of this application;
[0081] Figure 3 A flowchart illustrating another information processing method provided for an exemplary embodiment of this application;
[0082] Figure 4 A flowchart illustrating a notification type determination method provided for an exemplary embodiment of this application;
[0083] Figure 5 A schematic diagram of the structure of another information processing system provided as an exemplary embodiment of this application;
[0084] Figure 6 A detailed flowchart illustrating a notification type determination method provided for an exemplary embodiment of this application;
[0085] Figure 7 A schematic diagram of the structure of an information processing apparatus provided for an exemplary embodiment of this application;
[0086] Figure 8 A schematic diagram of the structure of another information processing apparatus provided in an exemplary embodiment of this application;
[0087] Figure 9 This is a schematic diagram of the structure of an electronic device provided as an exemplary embodiment of this application. Detailed Implementation
[0088] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.
[0089] The terms "first," "second," "third," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.
[0090] Please refer to the following. Figure 1 The example shown is a schematic diagram of the structure of an information processing system provided in an embodiment of this application. Figure 1 As shown, the system includes a target device 110 and a development device 120.
[0091] The target device 110 and the development device 120 can be connected directly or indirectly via wired or wireless communication, and this application does not impose any restrictions on this.
[0092] In some embodiments, the target device 110 and the development device 120 may be smartphones, tablets, laptops, desktop computers, smart speakers, smart home appliances, etc., but are not limited to these. The target device 110 may be a terminal running an application, or the target device 110 may be a backend server for the aforementioned application. The terminal and the backend server may be directly or indirectly connected via wired or wireless communication. The terminal may send requests to the backend server, and the backend server may process the requests and return responses.
[0093] In some embodiments, when the target device 110 is a terminal running an application, the target device 110 has the application installed and running, and the application can be a game, a voice interaction application, etc. Those skilled in the art will understand that the number of terminals can be more or less. For example, there may be only one terminal, or there may be dozens or hundreds of terminals, or even more. This application does not limit the number or type of terminals.
[0094] In other embodiments, when the target device 110 is the backend server of an application, the target device 110 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing 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), big data, and artificial intelligence platforms. The target device 110 is used to provide backend services for the application.
[0095] In some embodiments, the development device 120 may be equipped with version control software and a compiler. The version control software is used by developers to write source code, manage different versions of the application, and perform operations such as code merging and branch management; the compiler is used to convert code files into executable files or intermediate code. Further, the aforementioned executable files or intermediate code are packaged so that the target device 110 can obtain and install the latest version of the application through relevant update mechanisms.
[0096] In some embodiments, the development device 120 is configured to perform the following steps: when a user submits a target code segment corresponding to an application, a target version identifier is generated based on the target code segment, the target version identifier being used to uniquely indicate the target code segment; if a preset identifier is detected in the initial configuration file corresponding to the application, the preset identifier is replaced with the target version identifier to generate a target configuration file corresponding to the application, wherein the initial configuration file includes the historical running code of the application; an installation package file corresponding to the application is determined based on the target configuration file, the installation package file including the target version identifier; the installation package file is distributed to a target device so that the target device runs the application based on the installation package file, and the application's notification information is processed based on the target version identifier included in the installation package file.
[0097] In some embodiments, the target device 110 is configured to perform the following steps: receive an installation package file distributed by a development device, and run an application corresponding to the installation package file based on the installation package file, wherein the installation package file includes a target version identifier; and process notification information of the application based on the target version identifier.
[0098] Alternatively, the aforementioned application can be any application installed on the terminal.
[0099] Optionally, the user can be the application developer, and the target code segment corresponding to the application can be a code segment written by the developer for application updates, fixes, upgrades, and other related functions.
[0100] Optionally, a preset version control tool can be used to obtain the target code segment determined by the user for the aforementioned application; when a preset commit command is detected to be triggered, it is determined that the target code segment corresponding to the aforementioned application has been committed by the user.
[0101] Optionally, the historical execution code of the aforementioned application can be the execution code corresponding to a historical version of the application. The aforementioned target code segment is the code segment modified based on the historical execution code.
[0102] An exemplary embodiment of this application provides an information processing method. This information processing method can be applied to the aforementioned development equipment. Please refer to [reference needed] for details. Figure 2 The example illustrates a flowchart of an information processing method provided in an embodiment of this application. Figure 2 As shown, the information processing method includes the following S201-S204:
[0103] S201. When a target code segment corresponding to a user-submitted application is detected, a target version identifier is generated based on the target code segment. The target version identifier is used to uniquely indicate the target code segment.
[0104] In some embodiments, the user can be the application developer, and the target code segment corresponding to the application can be a code segment written by the developer for application updates, repairs, upgrades, and other related functions.
[0105] In some embodiments, the target version identifier can be a hash value.
[0106] In some embodiments, a preset version control tool can be used to obtain the target code segment determined by the user for the application; when a preset commit instruction is detected, it is determined that the user has committed the target code segment corresponding to the application.
[0107] In other words, developers use version control tools to commit target code segments to a pre-defined code repository. Version control tools record changes to configuration files and are primarily used for managing and tracking code changes. Git, in particular, is an open-source distributed version control system that can effectively and quickly handle version management for projects ranging from very small to very large.
[0108] S202. If the initial configuration file corresponding to the above application is found to contain a preset identifier, the preset identifier is replaced with the target version identifier, and a target configuration file corresponding to the above application is generated, wherein the initial configuration file contains the historical running code of the above application.
[0109] In some embodiments, the historical runtime code of the application described above can be the runtime code corresponding to a historical version of the application. The target code segment described above is the code segment modified based on the historical runtime code.
[0110] In some embodiments, the initial configuration file may be stored in a pre-defined codebase.
[0111] In some embodiments, a compiler such as Babel can be used to detect whether the initial configuration file corresponding to the application includes a preset identifier. If the preset identifier is included in the initial configuration file corresponding to the application, the preset identifier is replaced with the target version identifier to generate the target configuration file corresponding to the application. The preset identifier can be represented as git_last_commit_hash.
[0112] In some embodiments, the development device can locally detect the initial configuration file to detect whether the initial configuration file corresponding to the application includes a preset identifier. If the preset identifier is detected in the initial configuration file corresponding to the application, the preset identifier is replaced with the target version identifier to generate the target configuration file corresponding to the application.
[0113] In other embodiments, the development device may also send the target version identifier to the application building device, so that the application building device can query the corresponding target code segment in a preset code repository based on the target version identifier and check the initial configuration file to detect whether the initial configuration file corresponding to the application includes the preset identifier. The application building device also has version control software and a compiler installed.
[0114] This application embodiment utilizes custom logic injected into a relevant compiler (such as Babel) to detect the initial configuration file. If a preset identifier is detected in the initial configuration file, the latest version identifier corresponding to the application is obtained. Babel is a JavaScript compiler (a lightweight, interpreted or just-in-time compiled programming language with function priority), allowing developers to write code using cutting-edge JavaScript, which is then converted by Babel into older JavaScript, making it more readable by browsers.
[0115] S203. Determine the installation package file corresponding to the above application based on the above target configuration file. The above installation package file includes the above target version identifier.
[0116] The target configuration file can be packaged to generate the corresponding application installation package file. The installation package file is a compressed file used for distributing and installing the software, containing all necessary files and metadata. The installation package file includes a target version identifier, facilitating accurate tracking and management of code changes, ensuring that each configuration file reflects the latest code state, and enabling efficient processing of notification messages generated by different application versions.
[0117] S204. Distribute the aforementioned installation package file to the target device so that the target device runs the aforementioned application based on the aforementioned installation package file, and processes the notification information of the aforementioned application based on the aforementioned target version identifier included in the aforementioned installation package file.
[0118] In some embodiments, the installation package file can be sent to the backend server of the application to distribute the installation package file to the target device. Specifically, the backend server can upload the installation package file to a relevant website or app store for distribution to the target device.
[0119] In some embodiments, the target device may be a terminal running the aforementioned application, or the target device may be a backend server for the aforementioned application. The notification information may be automatically generated by the terminal during the execution of the application's target logic, under specific circumstances or at regular intervals.
[0120] This application embodiment, upon detecting a target code segment submitted by a user for an application, generates a target version identifier based on the target code segment. This target version identifier uniquely identifies the target code segment. If a preset identifier is detected in the initial configuration file corresponding to the application, the preset identifier is replaced with the target version identifier, generating a target configuration file for the application. The initial configuration file includes the application's historical running code. An installation package file corresponding to the application is determined based on the target configuration file, and this installation package file includes the target version identifier. The installation package file is then distributed to a target device, enabling the target device to run the application based on the installation package file and process notification information from the application based on the target version identifier included in the installation package file. This application embodiment automatically injects the target version identifier corresponding to the target code segment into the application's running code when the user submits the target code segment, ensuring that the installation package file includes the latest version of the target version identifier. This improves the real-time performance and reliability of the target version identifier. Furthermore, when the terminal runs the application, it filters notification information based on the latest target version identifier, facilitating the identification and processing of notification information and effectively improving the reliability and accuracy of notification information processing.
[0121] An exemplary embodiment of this application provides an information processing method. This information processing method can be applied to the aforementioned target device. Please refer to [reference needed]. Figure 3 The example illustrates a flowchart of an information processing method provided in an embodiment of this application. Figure 3 As shown, the information processing method includes the following S301-S302:
[0122] S301. Receive the installation package file distributed by the development device, and run the application corresponding to the installation package file based on the installation package file, wherein the installation package file includes a target version identifier.
[0123] The target device is either a terminal running the application or a backend server for the application.
[0124] In some embodiments, when the target device is a terminal running the aforementioned application, the target device can obtain the installation package file from the backend server (e.g., download it from the website or app store corresponding to the backend server), install the corresponding application locally, and then run the application when the running command for the application is detected. Specifically, if a previous version of the application is already installed on the target device, the new version of the application can be installed and overwrite the previous version; if the previous version of the application is not installed on the target device, the corresponding application is directly installed based on the installation package file.
[0125] In other embodiments, when the target device is a backend server, after receiving the installation package file distributed by the development device, the target device sends the installation package file to the terminal, and the terminal runs the application corresponding to the installation package file based on the installation package file.
[0126] S302. Process the notification information of the above application based on the target version identifier.
[0127] In some embodiments, the notification information can be automatically generated by the terminal during the execution of the application's target logic, under specific circumstances or at regular intervals. The target logic is configured by the developer during the corresponding application development process.
[0128] In some embodiments, the notification information of the above-mentioned application is processed to identify and process the notification information generated by different versions of the application, so as to make the processing more targeted and avoid unnecessary waste of computing resources.
[0129] The aforementioned installation package file includes the latest version target version identifier, which helps improve the real-time performance and reliability of the target version identifier. This enables the terminal to filter notification information based on the latest target version identifier when running applications, which is beneficial for the identification and processing of notification information and effectively improves the reliability and accuracy of notification information processing.
[0130] The target device provided in this application receives an installation package file distributed by a development device and runs the application corresponding to the installation package file. The installation package file includes a target version identifier. Furthermore, the device processes notification information from the application based on the target version identifier. The installation package file is determined by the development device according to a target configuration file. This target configuration file is generated by replacing the preset identifier with the target version identifier when the development device detects that the initial configuration file corresponding to the application includes a preset identifier. The initial configuration file includes the historical running code of the application. The target version identifier is a version identifier generated based on the target code segment when the user submits the target code segment corresponding to the application. By automatically injecting the target version identifier corresponding to the target code segment into the application's running code when the user submits the target code segment, the installation package file includes the latest version of the target version identifier, improving the real-time performance and reliability of the target version identifier. This allows the terminal to filter notification information based on the latest target version identifier when running the application, facilitating the identification and processing of notification information and effectively improving the reliability and accuracy of notification information processing.
[0131] In some embodiments, when the target device is a terminal running the application, notification information corresponding to the target logic is generated when the execution of the target logic corresponding to the application is detected.
[0132] In other embodiments, when the target device is the backend server, the method further includes: receiving notification information sent by a terminal running the application, wherein the terminal is configured to generate the notification information corresponding to the target logic when it detects that the target logic corresponding to the application is being executed.
[0133] In some embodiments, in S302, the processing of the notification information of the application based on the target version identifier includes S3021-S3023:
[0134] S3021. Obtain the filtering configuration information corresponding to the above application and the current version identifier of the above application, wherein the current version identifier is the target version identifier included in the installation package file last received by the terminal running the above application from the development device.
[0135] The filtering configuration information corresponding to the aforementioned application may be located in the background server of the application. The filtering configuration information includes the latest version identifier of the aforementioned application, which is the latest target version identifier submitted for the aforementioned application.
[0136] In some embodiments, regarding the step of obtaining the filtering configuration information corresponding to the application in S3021 above:
[0137] When the target device is a terminal running the application, the target device may send a relevant request to the backend server when the application starts or when the target logic corresponding to the application is first detected to be executed, in order to obtain the filtering configuration information fed back by the backend server based on the relevant request. The filtering configuration information may be generated by the development device and sent to the backend server, or it may be generated locally by the backend server.
[0138] In other embodiments, when the target device is the backend server of the application, the target device can receive filtering configuration information generated and sent by the development device, or it can obtain filtering configuration information determined by relevant personnel locally.
[0139] In other words, in further step S3022, the step of determining the notification type corresponding to the notification information based on the aforementioned filtering configuration information and the current version identifier can be performed by either the terminal or the backend server. Specifically, if the notification type is determined locally on the terminal, the amount of data that needs to be sent to the backend server can be reduced, thus lowering network bandwidth consumption. If the terminal sends the notification information to the backend server for notification type determination, the backend server's more powerful processing capabilities can be utilized to process large volumes of notification information more efficiently, effectively improving information processing efficiency.
[0140] S3022. Based on the above filtering configuration information and the above current version identifier, determine the notification type corresponding to the above notification information.
[0141] In some embodiments, the notification type is either a latest version type or a historical version type. The latest version type indicates that the corresponding notification was triggered by a latest version of the application, or that the corresponding notification was triggered by a historical version of the application, and the content of the notification does not involve any fixes for the application. The historical version type indicates that the corresponding notification was triggered by a historical version of the application, and the content of the notification involves any fixes for the application.
[0142] S3023. Process the above notification information according to the above notification type.
[0143] In some embodiments, the processing of the above-mentioned notification information may include discarding it or parsing it. The specific processing method may be determined according to the notification type of the notification information.
[0144] In this embodiment, the notification information is processed according to the notification type to achieve corresponding processing for different notification types, thereby improving the efficiency, accuracy, and reliability of information processing.
[0145] Figure 4 A flowchart illustrating a notification type determination method provided as an exemplary embodiment of this application is shown below. Figure 4 As shown, the method for determining the notification type corresponding to the above notification information specifically includes the following S401-S404:
[0146] S401. Obtain the filtering configuration information corresponding to the above application and the current version identifier of the above application, wherein the current version identifier is the target version identifier included in the installation package file last received by the terminal running the above application from the development device.
[0147] S401 is the same as the steps in S3021 above, so S401 will not be described in detail here.
[0148] S402. Determine whether the current version identifier and the latest version identifier in the above filtering configuration information are consistent; if yes, then execute S403; if no, then execute S404.
[0149] For example, suppose an application has two versions: a historical version V1.0 and a latest version V2.0. When executing target logic, this application may encounter exceptions and send notifications. These notifications may be similar in content but originate from different sources. For instance, the historical version of the application might have encountered a data format error while processing certain specific data, generating a notification indicating this error. The latest version, having fixed the data format error issue from the historical version, might encounter similar exceptions while processing other operations. These exceptions might then be caught during the execution of the target logic, again generating a notification indicating a data format error.
[0150] In other words, the content of notification messages sent by historical and latest versions of the application may be identical, both indicating a data format error. If the notification type is determined solely by the content of the notification message, the backend server may fail to receive important notifications from the latest version of the application. In this embodiment, by obtaining the filtering configuration information corresponding to the application sent by the application's development device and determining whether the current version identifier of the application matches the latest version identifier in the filtering configuration information, the distinction between historical and latest versions of the application is achieved. This effectively improves the accuracy and efficiency of notification processing and effectively avoids various problems caused by processing outdated notifications.
[0151] S403. Determine the information version type corresponding to the above notification information as the latest version notification type.
[0152] Optionally, if the current version identifier of the above application is consistent with the latest version identifier in the above filtering configuration information, it can indicate that the application running on the current terminal is the latest version of the application that has been released.
[0153] S404. Determine the notification type corresponding to the notification information based on the content of the notification information and the filtering configuration information.
[0154] Optionally, if the current version identifier of the application does not match the latest version identifier in the filtering configuration information, it indicates that the application running on the current terminal is not the latest released version, but rather a previously released historical version. In other words, the notification was triggered by a historical version of the application. In this case, the content indicated by the notification may have been upgraded or fixed during the development of the latest version of the application. Therefore, it is necessary to further determine the notification type corresponding to the notification based on the content of the notification and the filtering configuration information.
[0155] Figure 5 This is a schematic diagram of the structure of another information processing system provided in an exemplary embodiment of this application, so as to... Figure 5 For example, suppose an application runs on multiple terminals, such as Figure 5In this context, multiple terminals, including Terminal A and Terminal B, may be running different versions of the application. For example, Terminal A might be running application version 2.0, while Terminal B might be running application version 3.0. Version 3.0 is the latest version, while version 2.0 is a historical version. The execution of target logic and the generation of notification information may differ between versions. Historical versions of the application might trigger the generation of notification information when executing target logic, but this target logic may have been fixed or improved in the latest version (V3.0). The latest version of the application may no longer generate certain notification information generated in historical versions, or the processing method may be different. Therefore, the notification type corresponding to the notification information can be determined based on the content of the notification information and the filtering configuration information.
[0156] In this embodiment, when a notification is received from a historical version of the application, it can be determined whether the notification still needs to be paid attention to and processed based on the notification content and filtering configuration information. This effectively distinguishes between notification messages of the latest version and notification messages of the historical version, ensuring that the backend server focuses on new anomalies that may exist in the latest version of the application, rather than being interfered with by historical anomaly issues that have been fixed. This avoids wasting resources by processing duplicate or outdated notification messages and effectively improves the efficiency, reliability and accuracy of information processing.
[0157] Figure 6 A detailed flowchart illustrating a notification type determination method provided for an exemplary embodiment of this application is shown below. Figure 6 As shown, the above information processing method specifically includes the following S601-S607:
[0158] S601. Obtain the filtering configuration information corresponding to the above application and the current version identifier of the above application, wherein the current version identifier is the target version identifier included in the installation package file last received by the terminal running the above application from the development device.
[0159] S602. Determine whether the current version identifier and the latest version identifier in the filtering configuration information are consistent. If yes, execute S603; otherwise, execute S604.
[0160] S603. Determine the information version type corresponding to the above notification information as the latest version notification type.
[0161] S601 is the same as the steps in S3201 above, S602 is the same as the steps in S402 above, and S603 is the same as the steps in S403 above. S601-S603 will not be described in detail here.
[0162] S604. Determine whether the content of the above notification information matches the repair content in the above filtering configuration information; if yes, then execute S605; if no, then execute S606.
[0163] S605. Determine the notification type corresponding to the above notification information as the historical version notification type.
[0164] Optionally, if the content of the notification information matches the repair content in the filtering configuration information, it may indicate that the target logic may have been fixed or the processing method improved in the latest version of the application. The latest version of the application may no longer generate the notification information generated in some previous versions, or the processing method may be different, thus allowing the notification message to be discarded.
[0165] S606. Determine the notification type corresponding to the above notification information as the latest version notification type.
[0166] Optionally, if the content of the notification message does not match the repair content in the filtering configuration information, it may indicate that the target logic has not been repaired or improved in the latest version of the application. The latest version of the application will still generate the same notification message as some previous versions of the application, and the processing method is the same, thus allowing for subsequent processing of the notification message.
[0167] In this embodiment, the notification type can be accurately determined based on the matching of the notification information content and the repair content, which facilitates the subsequent processing of notification information of each notification type and effectively improves the pertinence and accuracy of information processing.
[0168] In some embodiments, in S3023, the above-mentioned processing of the notification information according to the notification type includes: when the notification type is a historical version notification type, the notification information is discarded.
[0169] Notifications of historical versions may be no longer relevant or have been overridden by notifications from the latest version of the application. They may also contain outdated or fixed bug information. Retaining such notifications may cause misunderstanding or confusion for the backend server. Discarding notifications of historical versions helps ensure that backend server notifications are up-to-date and accurate, thereby improving the reliability and accuracy of information processing.
[0170] In some embodiments, when the target device is a terminal running the application, if the notification type is the latest version type, the notification information can be sent to the background server of the application so that the background server can parse the notification information, obtain the parsing result corresponding to the notification information, and process it according to the parsing result.
[0171] In other embodiments, when the target device is the backend server of the application, if the notification type is the latest version type, the notification information can be directly parsed to obtain the parsing result corresponding to the notification information, and processed according to the parsing result; if the notification type is the historical version type, the notification information is discarded.
[0172] In this embodiment, different processing methods are applied to notification information of different notification types, effectively filtering out notification information that indicates that anomalies have been fixed in historical versions of the application. This reduces unnecessary data processing, lowers the waste of computing and storage resources, and thus effectively improves the efficiency and accuracy of information processing.
[0173] Furthermore, the following description, using a specific scenario, illustrates this application. In actual development, developers can configure the following code on the development device to enable the target device to obtain the latest version identifier from the filtering configuration information corresponding to the aforementioned application.
[0174] When the target device is a terminal running the application, the relevant code is as follows: Function notifyError(error:Error){
[0175] const gitLastCommitHash="git_last_commit_hash"
[0176] const filterConfig=getFilterConfig()
[0177] if(needSend(filterConfig,gitLastCommitHash)){
[0178] httpSend(error,gitLastCommitHash)
[0179] }
[0180] }
[0181] The `notifyError` function is used to catch exceptions, determine whether a notification is needed, and send the notification if necessary. `gitLastCommitHash` is a preset identifier used to mark the hash value of the last Git commit; in the above methods, this preset identifier will be replaced with the specific commit hash value, i.e., the target version identifier. The `getFilterConfig` function is used by the terminal to retrieve the application's filtering configuration information from the backend server. The `needSend` function determines whether a notification is needed. The `httpSend` function sends the filtered notification to the backend server.
[0182] When the target device is the backend server of the application, the relevant code is as follows: Function notifyError(error:Error){
[0183] const gitLastCommitHash="git_last_commit_hash"
[0184] httpSend(error,gitLastCommitHash)
[0185] }
[0186] The `notifyError` function is used to catch exceptions and determine whether to send a notification indicating the exception. `gitLastCommitHash` is a preset identifier used to mark the hash value of the last Git commit. In the above method, this preset identifier will be replaced with the specific commit hash value, i.e., the latest version identifier.
[0187] In this embodiment, by combining version control software and a compiler, the target version identifier is stored in the code repository, which allows the target version identifier to be obtained at any time and automatically injected into the target configuration file. This target version identifier uniquely indicates the current application version without the need for manual version updates, reducing the possibility of human error, improving the accuracy and consistency of version management, and avoiding the confusion that may be caused by multiple version identifiers, thus ensuring the consistency of application versions.
[0188] Please refer to the following. Figure 7 This is a schematic diagram of the structure of an information processing apparatus provided in an exemplary embodiment of this application. Figure 7 As shown, the information processing device 700 includes:
[0189] The first generation module 701 is used to generate a target version identifier based on the target code segment when a target code segment corresponding to a user-submitted application is detected. The target version identifier is used to uniquely indicate the target code segment.
[0190] The second generation module 702 is used to replace the preset identifier with the target version identifier when it is detected that the initial configuration file corresponding to the application includes a preset identifier, and generate the target configuration file corresponding to the application, wherein the initial configuration file includes the historical running code of the application.
[0191] The first determining module 703 is used to determine the installation package file corresponding to the application based on the target configuration file, wherein the installation package file includes the target version identifier.
[0192] The distribution module 704 is used to distribute the installation package file to the target device so that the target device runs the application based on the installation package file, and to process the notification information of the application based on the target version identifier included in the installation package file.
[0193] In one possible implementation, the information processing device 700 further includes:
[0194] The acquisition module is used to acquire the target code segment determined by the user for the above application using a preset version control tool;
[0195] The second determining module is used to determine, when a preset submission instruction is detected, the target code segment corresponding to the application submitted by the user.
[0196] In one possible implementation, the distribution module 704 includes:
[0197] The sending unit is configured to send the installation package file to the backend server of the application, so as to distribute the installation package file to the target device using the backend server device.
[0198] Please refer to the following. Figure 8 This is a schematic diagram of the structure of an information processing apparatus provided in an exemplary embodiment of this application. Figure 8 As shown, the information processing device 800 includes:
[0199] The first receiving module 801 is used to receive the installation package file distributed by the development device and run the application corresponding to the installation package file based on the installation package file, wherein the installation package file includes a target version identifier.
[0200] Processing module 802 is used to process the notification information of the application based on the target version identifier.
[0201] The aforementioned installation package file is determined by the aforementioned development device based on the target configuration file. The aforementioned target configuration file is a configuration file generated by the aforementioned development device when it detects that the initial configuration file corresponding to the aforementioned application includes a preset identifier, and then replaces the preset identifier with a target version identifier. The aforementioned initial configuration file includes the historical running code of the aforementioned application. The aforementioned target version identifier is a version identifier generated based on the aforementioned target code segment when it detects that the user has submitted the target code segment corresponding to the application.
[0202] In one possible implementation, the target device is a terminal running the application, or the target device is a backend server for the application.
[0203] In one possible implementation, when the target device is the terminal, the information processing apparatus further includes:
[0204] The third generation module is used to generate notification information corresponding to the target logic when the execution of the above application is detected.
[0205] In one possible implementation, when the target device is the backend server, the information processing apparatus further includes:
[0206] The second receiving module is used to receive notification information sent by the terminal running the above application, wherein the terminal is used to generate the notification information corresponding to the target logic when it detects that the target logic corresponding to the above application is being executed.
[0207] In one possible implementation, the processing module 802 includes:
[0208] The acquisition unit is used to acquire the filtering configuration information corresponding to the above application and the current version identifier of the above application, wherein the current version identifier is the target version identifier included in the installation package file last received by the terminal running the above application from the development device.
[0209] The determining unit is used to determine the notification type corresponding to the notification information based on the above-mentioned filtering configuration information and the above-mentioned current version identifier;
[0210] The processing unit is used to process the notification information according to the notification type.
[0211] In one possible implementation, the filtering configuration information includes a latest version identifier for the application, wherein the latest version identifier is the latest target version identifier submitted for the application, and the determining unit includes:
[0212] The judgment subunit is used to determine whether the current version identifier of the above application is consistent with the latest version identifier in the above filtering configuration information;
[0213] The first determining subunit is used to determine the information version type corresponding to the notification information as the latest version notification type when the current version identifier of the above application is consistent with the latest version identifier in the above filtering configuration information.
[0214] The second determining subunit is used to determine the notification type corresponding to the notification information based on the content of the notification information and the filtering configuration information when the current version identifier of the application and the latest version identifier in the filtering configuration information are inconsistent.
[0215] In one possible implementation, the filtering configuration information includes the repair content corresponding to the application, and the second determining subunit is specifically used for:
[0216] Determine whether the content of the above notification information matches the repair content in the above filtering configuration information;
[0217] If so, the notification type corresponding to the above notification information will be determined as the historical version notification type;
[0218] If not, then the notification type corresponding to the above notification information will be determined as the latest version notification type.
[0219] In one possible implementation, the notification type is either a latest version type or a historical version type, and the processing unit includes:
[0220] The first processing subunit is used to discard the notification information when the notification type is a historical version notification type.
[0221] In one possible implementation, the target device is a terminal running the application, and the processing unit includes:
[0222] The second processing subunit is used to send the notification information to the background server of the application when the notification type is the latest version type, so that the background server can parse the notification information, obtain the parsing result corresponding to the notification information, and process it according to the parsing result.
[0223] The division of modules in the information processing apparatus 700 and 800 described above is for illustrative purposes only. In other embodiments, the information processing apparatus can be divided into different modules as needed to complete all or part of the functions of the information processing apparatus. The implementation of each module in the information processing apparatus provided in the embodiments of this specification can be in the form of a computer program. This computer program can run on a terminal or server. The program modules constituted by this computer program can be stored in the memory of the terminal or server. When the computer program is executed by a processor, it implements all or part of the steps of the information processing method described in the embodiments of this specification.
[0224] Please refer to the following. Figure 9 This is a schematic diagram of the structure of an electronic device provided in an exemplary embodiment of this application. Figure 9 As shown, the electronic device 900 may include a processor 910 and a memory 920, and may also include a user interface 930, a network interface 940 and a communication bus 950.
[0225] The processor 910 may include one or more processing cores. The processor 910 connects to various parts within the electronic device 900 using various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 920, and by calling data stored in the memory 920. Optionally, the processor 910 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 910 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system and applications; the GPU is responsible for rendering and drawing the content required for display; and the modem handles wireless communication. It is understood that the modem may also be implemented as a separate chip without being integrated into the processor 910.
[0226] The memory 920 may include random access memory (RAM) or read-only memory. Optionally, the memory 920 may include a non-transitory computer-readable storage medium. The memory 920 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 920 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as receiving functions, control functions, etc.), instructions for implementing the various method embodiments described above, etc.; the data storage area may store data involved in the various method embodiments described above, etc. Optionally, the memory 920 may also be at least one storage device located remotely from the aforementioned processor 910. Figure 9 As shown, the memory 920, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and program instructions.
[0227] Optionally, the communication bus 950 is used to realize the connection and communication between these components. The user interface 930 may include a display screen, a camera, and may also include standard wired interfaces and wireless interfaces. The network interface 940 may optionally include standard wired interfaces and wireless interfaces (such as WIFI interfaces).
[0228] exist Figure 9 In the illustrated electronic device 900, the processor 910 can be used to call program instructions stored in the memory 920 and specifically perform the following operations:
[0229] When a target code segment corresponding to an application submitted by a user is detected, a target version identifier is generated based on the target code segment. The target version identifier is used to uniquely indicate the target code segment.
[0230] If the initial configuration file corresponding to the above application is found to contain a preset identifier, the preset identifier is replaced with the target version identifier, and the target configuration file corresponding to the above application is generated. The initial configuration file contains the historical running code of the above application.
[0231] The installation package file corresponding to the above application is determined based on the above target configuration file, and the above installation package file includes the above target version identifier;
[0232] The aforementioned installation package file is distributed to the target device so that the target device runs the aforementioned application based on the aforementioned installation package file, and processes the notification information of the aforementioned application based on the aforementioned target version identifier included in the aforementioned installation package file.
[0233] In one possible implementation, the above method also includes:
[0234] Use a pre-defined version control tool to obtain the target code segment that the user has specified for the aforementioned application;
[0235] When a preset submission command is detected to be triggered, it is determined that the target code segment corresponding to the above application has been submitted by the aforementioned user.
[0236] In one possible implementation, distributing the aforementioned installation package file to the target device includes:
[0237] The aforementioned installation package file is sent to the backend server of the aforementioned application, so that the aforementioned backend server device can be used to distribute the aforementioned installation package file to the aforementioned target device.
[0238] Alternatively, the processor 910 described above can be used to call program instructions stored in memory 920 and specifically perform the following operations:
[0239] Receive the installation package file distributed by the development device, and run the application corresponding to the installation package file based on the installation package file, wherein the installation package file includes a target version identifier;
[0240] The notification information of the above application is processed based on the target version identifier mentioned above;
[0241] The aforementioned installation package file is determined by the aforementioned development device based on the target configuration file. The aforementioned target configuration file is a configuration file generated by the aforementioned development device when it detects that the initial configuration file corresponding to the aforementioned application includes a preset identifier, and then replaces the preset identifier with a target version identifier. The aforementioned initial configuration file includes the historical running code of the aforementioned application. The aforementioned target version identifier is a version identifier generated based on the aforementioned target code segment when it detects that the user has submitted the target code segment corresponding to the application.
[0242] In one possible implementation, the target device is a terminal running the application, or the target device is a backend server for the application.
[0243] In one possible implementation, when the target device is the terminal, the method further includes:
[0244] If the execution of the target logic corresponding to the above application is detected, a notification message corresponding to the target logic is generated.
[0245] In one possible implementation, when the target device is the backend server, the method further includes:
[0246] The terminal receives notification information sent by the terminal running the application, wherein the terminal is configured to generate the notification information corresponding to the target logic when it detects that the target logic corresponding to the application is being executed.
[0247] In one possible implementation, the processing of the application's notification information based on the target version identifier includes:
[0248] Obtain the filtering configuration information corresponding to the above application, and the current version identifier of the above application, wherein the current version identifier is the target version identifier included in the installation package file last received by the terminal running the above application from the above development device;
[0249] Based on the above filtering configuration information and the above current version identifier, determine the notification type corresponding to the above notification information;
[0250] The notification information shall be processed according to the notification type mentioned above.
[0251] In one possible implementation, the filtering configuration information includes a latest version identifier for the application, wherein the latest version identifier is the latest target version identifier submitted for the application. The notification type corresponding to the notification information is determined based on the filtering configuration information and the current version identifier, including:
[0252] Determine whether the current version identifier above matches the latest version identifier in the above filtering configuration information;
[0253] If so, the information version type corresponding to the above notification information will be determined as the latest version notification type;
[0254] If not, the notification type corresponding to the above notification information is determined based on the content of the above notification information and the above filtering configuration information.
[0255] In one possible implementation, the filtering configuration information includes the repair content corresponding to the application, and determining the notification type corresponding to the notification information based on the content of the notification information and the filtering configuration information includes:
[0256] Determine whether the content of the above notification information matches the repair content in the above filtering configuration information;
[0257] If so, the notification type corresponding to the above notification information will be determined as the historical version notification type;
[0258] If not, then the notification type corresponding to the above notification information will be determined as the latest version notification type.
[0259] In one possible implementation, the notification type is either a latest version type or a historical version type, and the processing of the notification information according to the notification type includes:
[0260] When the notification type is a historical version notification type, the notification information will be discarded.
[0261] In one possible implementation, the target device is a terminal running the application, and the processing of the notification information according to the notification type includes:
[0262] When the notification type is the latest version type, the notification information is sent to the background server of the application so that the background server can parse the notification information, obtain the parsing result corresponding to the notification information, and process it according to the parsing result.
[0263] This application also provides a computer-readable storage medium storing instructions that, when executed on a computer or processor, cause the computer or processor to perform one or more steps in the above embodiments. If the constituent modules of the above-described information processing device are implemented as software functional units and sold or used as independent products, they can be stored in the aforementioned computer-readable storage medium.
[0264] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When these computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in or transmitted through a computer-readable storage medium. The computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The aforementioned available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., digital versatile discs (DVDs)), or semiconductor media (e.g., solid-state drives (SSDs)).
[0265] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the methods described above. The aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks. Unless otherwise specified, the technical features of this embodiment and its implementation can be combined arbitrarily.
[0266] The above-described embodiments are merely preferred embodiments of this application and are not intended to limit the scope of this application. Any modifications and improvements made by those skilled in the art to the technical solutions of this application without departing from the spirit of this application should fall within the protection scope defined by the claims of this application.
Claims
1. An information processing method applied to a development device of an application program, characterized by, include: When a target code segment corresponding to an application submitted by a user is detected, a target version identifier is generated based on the target code segment. The target version identifier is used to uniquely indicate the target code segment. If a preset identifier is detected in the initial configuration file corresponding to the application, the preset identifier is replaced with the target version identifier to generate the target configuration file corresponding to the application, wherein the initial configuration file includes the historical running code of the application; The installation package file corresponding to the application is determined based on the target configuration file, and the installation package file includes the target version identifier; The installation package file is distributed to the target device so that the target device runs the application based on the installation package file and processes the application's notification information based on the target version identifier included in the installation package file.
2. The method of claim 1, wherein, The method further includes: The target code segment determined by the user for the application is obtained using a preset version control tool; When a preset submission command is detected to be triggered, it is determined that the user has submitted the target code segment corresponding to the application.
3. The method of claim 1, wherein, The step of distributing the installation package file to the target device includes: The installation package file is sent to the application's backend server, so that the backend server device can distribute the installation package file to the target device.
4. An information processing method applied to a target device, characterized in that, include: Receive the installation package file distributed by the development device, and run the application corresponding to the installation package file based on the installation package file, wherein the installation package file includes a target version identifier; The application's notification information is processed based on the target version identifier; The installation package file is determined by the development device based on the target configuration file. The target configuration file is generated by the development device when it detects that the initial configuration file corresponding to the application includes a preset identifier, and replaces the preset identifier with a target version identifier. The initial configuration file includes the historical running code of the application. The target version identifier is a version identifier generated based on the target code segment when it detects that the user has submitted the target code segment corresponding to the application.
5. The method as described in claim 4, characterized in that, The target device is either a terminal running the application or a backend server for the application.
6. The method as described in claim 5, characterized in that, When the target device is the terminal, the method further includes: Upon detecting the execution of target logic corresponding to the application, a notification message corresponding to the target logic is generated.
7. The method as described in claim 5, characterized in that, When the target device is the backend server, the method further includes: The terminal receives notification information sent by the terminal running the application, wherein the terminal is configured to generate the notification information corresponding to the target logic when it detects that the target logic corresponding to the application is being executed.
8. The method as described in claim 4, characterized in that, The processing of notification information for the application based on the target version identifier includes: Obtain the filtering configuration information corresponding to the application, and the current version identifier of the application, wherein the current version identifier is the target version identifier included in the installation package file last received by the terminal running the application from the development device; Based on the filtering configuration information and the current version identifier, determine the notification type corresponding to the notification information; The notification information is processed according to the notification type.
9. The method as described in claim 8, characterized in that, The filtering configuration information includes a latest version identifier for the application, which is the latest target version identifier submitted for the application. Determining the notification type corresponding to the notification information based on the filtering configuration information and the current version identifier includes: Determine whether the current version identifier and the latest version identifier in the filter configuration information are consistent; If so, the information version type corresponding to the notification information will be determined as the latest version notification type; If not, the notification type corresponding to the notification information is determined based on the content of the notification information and the filtering configuration information.
10. The method as described in claim 9, characterized in that, The filtering configuration information includes the repair content corresponding to the application. Determining the notification type corresponding to the notification information based on the content of the notification information and the filtering configuration information includes: Determine whether the content of the notification information matches the repair content in the filter configuration information; If so, the notification type corresponding to the notification information will be determined as the historical version notification type; If not, the notification type corresponding to the notification information will be determined as the latest version notification type.
11. The method as described in claim 8, characterized in that, The notification type is either a latest version type or a historical version type. The processing of the notification information according to the notification type includes: When the notification type is a historical version notification type, the notification information is discarded.
12. The method as described in claim 11, characterized in that, The target device is a terminal running the application, and the processing of the notification information according to the notification type includes: When the notification type is the latest version type, the notification information is sent to the application's backend server so that the backend server can parse the notification information, obtain the parsing result corresponding to the notification information, and process it according to the parsing result.
13. An information processing device, characterized in that, Equipment used for application development includes: The first generation module is used to generate a target version identifier based on the target code segment when a target code segment corresponding to an application submitted by a user is detected. The target version identifier is used to uniquely indicate the target code segment. The second generation module is used to replace the preset identifier with the target version identifier when it is detected that the initial configuration file corresponding to the application includes a preset identifier, and generate the target configuration file corresponding to the application, wherein the initial configuration file includes the historical running code of the application; The first determining module is used to determine the installation package file corresponding to the application based on the target configuration file, wherein the installation package file includes the target version identifier; The distribution module is used to distribute the installation package file to the target device so that the target device runs the application based on the installation package file, and to process the notification information of the application based on the target version identifier included in the installation package file.
14. An information processing device, characterized in that, Applied to target devices, including: A receiving module is used to receive an installation package file distributed by the development device and run the application corresponding to the installation package file based on the installation package file, wherein the installation package file includes a target version identifier; A processing module is used to process the notification information of the application based on the target version identifier; The installation package file is determined by the development device based on the target configuration file. The target configuration file is generated by the development device when it detects that the initial configuration file corresponding to the application includes a preset identifier, and replaces the preset identifier with a target version identifier. The initial configuration file includes the historical running code of the application. The target version identifier is a version identifier generated based on the target code segment when it detects that the user has submitted the target code segment corresponding to the application.
15. An electronic device, characterized in that, include: Processor and memory; The memory stores a computer program adapted to be loaded by the processor and to execute the steps of the method as described in any one of claims 1 to 3 or any one of claims 4 to 12.
16. A computer storage medium storing a plurality of instructions adapted for loading by a processor and performing the steps of the method as claimed in any one of claims 1 to 3 or any one of claims 4 to 12.