Data processing method and device, computer readable medium and electronic equipment
By extracting links from applications that acquire, decrypt, and verify legality information, the problem of incomplete information leading to difficulty in locating issues in existing technologies is solved, enabling rapid and accurate information acquisition and problem localization.
Patent Information
- Application Number
- CN202111224700.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-20
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2041-10-20
AI Technical Summary
In existing technologies, application problem localization relies on developers adding logging code to the program, which makes it difficult or impossible to locate problems when information is incomplete.
The information extraction link is obtained through the session entry in the application. The information extraction instruction is generated and decrypted using an asymmetric encryption algorithm. After the legality is verified, the information extraction is executed, and the result is reported through the session entry.
It improves the accuracy, flexibility, and efficiency of information acquisition, and quickly locates application problems.
Smart Images

Figure CN115994043B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of software development technology, and more specifically, to a data processing method, apparatus, computer-readable medium, and electronic device. Background Technology
[0002] Currently, applications on various terminal devices inevitably encounter problems or vulnerabilities, which can not only affect the user experience but also threaten information security. Therefore, it is necessary to promptly investigate problems encountered by users when using applications. The common approach to troubleshooting application problems currently involves the application directly reporting logs, allowing the extraction of user logs, which developers then analyze to pinpoint the issue. However, the success of locating the user problem depends on whether the developer has proactively included logging code to print relevant information within the application. In some scenarios, incomplete log information can make it difficult or even impossible to locate the user problem. Summary of the Invention
[0003] Embodiments of this application provide a data processing method, apparatus, computer-readable medium, and electronic device, which can at least to some extent improve the accuracy, flexibility, and efficiency of acquiring information in applications.
[0004] Other features and advantages of this application will become apparent from the following detailed description, or may be learned in part from practice of this application.
[0005] According to one aspect of the embodiments of this application, a data processing method is provided, the method comprising: obtaining an information extraction link through a session entry in an application, the information extraction link originating from a counterpart that has established a session connection with the terminal where the application is located; in response to a received parsing operation instruction, parsing the information extraction link in the application to extract an information extraction instruction from the information extraction link; executing the information extraction instruction in the application to generate an information extraction result; and reporting the information extraction result through the session entry in the application.
[0006] According to one aspect of the embodiments of this application, a data processing apparatus is provided, the apparatus comprising: an acquisition unit, configured to acquire an information extraction link through a session entry in an application, the information extraction link originating from a counterpart terminal that has established a session connection with the terminal where the application is located; a parsing unit, configured to parse the information extraction link in the application in response to a received parsing operation instruction, so as to extract an information extraction instruction from the information extraction link; a result generation unit, configured to execute the information extraction instruction in the application to generate an information extraction result; and a reporting unit, configured to report the information extraction result through the session entry in the application.
[0007] In some embodiments of this application, based on the foregoing scheme, the information extraction link is generated by encryption using an asymmetric encryption algorithm, and the parsing unit is configured to: decrypt the information extraction link through the application to obtain a decryption result; and extract the information extraction instruction from the information extraction link from the decryption result.
[0008] In some embodiments of this application, based on the foregoing scheme, before decrypting the information extraction link through the application to obtain the decryption result, the parsing unit is further configured to: perform a legality check on the information extraction link, wherein, if the information extraction link passes the legality check, the step of decrypting the information extraction link through the application is executed.
[0009] In some embodiments of this application, based on the foregoing scheme, the parsing unit is configured to: determine whether the information extraction link contains preset marker information; and determine that the information extraction link is valid based on the fact that the information extraction link contains preset marker information.
[0010] In some embodiments of this application, based on the foregoing scheme, the parsing unit is further configured to: determine whether the reception time of the parsing operation instruction is within the legal period corresponding to the information extraction link; and determine that the information extraction link is legal based on the fact that the reception time of the parsing operation instruction is within the legal period corresponding to the information extraction link.
[0011] In some embodiments of this application, based on the foregoing scheme, before extracting the information extraction instruction from the information extraction link from the decryption result, the parsing unit is further configured to: extract identity information from the information extraction link from the decryption result, wherein the identity information includes at least one of the following: an object identifier of the application, a version number of the application; perform identity verification based on the identity information, wherein, if the identity information passes the identity verification, the step of extracting the information extraction instruction from the information extraction link from the decryption result is executed.
[0012] In some embodiments of this application, based on the foregoing scheme, the parsing unit is configured to: in response to a received parsing operation instruction, display a pop-up window in the application to ask the object whether it is allowed to extract information; and parse the information extraction link in the application according to the received instruction to allow information extraction.
[0013] In some embodiments of this application, based on the foregoing scheme, the information extraction link is generated by a script.
[0014] According to one aspect of the embodiments of this application, a computer-readable medium is provided having a computer program stored thereon, which, when executed by a processor, implements the data processing method as described in the above embodiments.
[0015] According to one aspect of the embodiments of this application, an electronic device is provided, including: one or more processors; and a storage device for storing one or more programs, which, when executed by the one or more processors, cause the one or more processors to implement the data processing method as described in the above embodiments.
[0016] According to one aspect of the embodiments of this application, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, causing the computer device to perform the data processing method as described in the above embodiments.
[0017] In some embodiments of the technical solutions provided in this application, once the type of information to be extracted is determined, only the corresponding information extraction link needs to be provided to the application. The application can respond according to the parsing operation, automatically extract the information collection instruction from the information extraction link, and complete the information extraction by executing the information extraction instruction. Finally, the information extraction result can be reported through the application. Therefore, the information required by the application can be quickly obtained based on the problems reported by the user, improving the accuracy, flexibility, and efficiency of information acquisition, thereby improving the efficiency and accuracy of locating problems in the application.
[0018] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0019] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort. In the drawings: Figure 1 A schematic diagram of an exemplary system architecture to which the technical solutions of the embodiments of this application can be applied is shown; Figure 2 A flowchart of a data processing method according to an embodiment of this application is shown; Figure 3A flowchart illustrating the parsing of information to extract links in an application according to an embodiment of this application is shown; Figure 4 A flowchart illustrating the legality verification of an information extraction link according to an embodiment of this application is shown; Figure 5 A flowchart illustrating the legality verification of an information extraction link according to another embodiment of this application is shown; Figure 6 A flowchart illustrating the process of parsing information and extracting links in an application in response to a parsing operation instruction, according to an embodiment of this application, is shown. Figure 7 A schematic diagram illustrating an embodiment of this application shows how to obtain an information extraction link through a session entry in an application; Figure 8 A schematic diagram illustrating the display of a pop-up window in an application according to an embodiment of this application is shown; Figure 9 A schematic diagram illustrating the extraction results of information reported through a session entry in an application according to an embodiment of this application is shown; Figure 10 A schematic diagram of the overall flow of a data processing method according to an embodiment of this application is shown; Figure 11 A block diagram of a data processing apparatus according to an embodiment of this application is shown; Figure 12 A schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present application is shown. Detailed Implementation
[0020] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided to make this application more comprehensive and complete, and to fully convey the concept of the exemplary embodiments to those skilled in the art.
[0021] Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a thorough understanding of embodiments of this application. However, those skilled in the art will recognize that the technical solutions of this application can be practiced without one or more of the specific details, or other methods, components, apparatuses, steps, etc., can be employed. In other instances, well-known methods, apparatuses, implementations, or operations are not shown or described in detail to avoid obscuring various aspects of this application.
[0022] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0023] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily have to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.
[0024] Currently, even after an application is launched and delivered to users, it is inevitable that there will be certain problems or bugs.
[0025] In related technologies, information generated by the application during use is primarily obtained through logging, and this information is reported to the developers to analyze application problems. Therefore, this requires pre-setting logging code within the application to print relevant information. If the logging code in the application is irrelevant to the location of the problem—that is, if the information obtained from the existing logging code cannot pinpoint the problem—it will lead to difficulties in problem localization or even make problem localization impossible.
[0026] Therefore, this application first provides a data processing method that can at least to some extent overcome the defects of the above-mentioned solutions and can accurately and efficiently obtain various information about the application.
[0027] Figure 1 A schematic diagram of an exemplary system architecture to which the technical solutions of the embodiments of this application can be applied is shown. For example... Figure 1 As shown, the system architecture may include a first terminal 101, a network 102, a server 103, and a second terminal 104. Both the first terminal 101 and the second terminal 104 can communicate with the server 103 via the network 102. Applications are deployed on both the first terminal 101 and the second terminal 104 as clients, while the server 103 hosts the application's server-side component. This allows the first terminal 101 and the second terminal 104 to establish a communication connection via the network 102 and the server 103. The applications on the first terminal 101 and the second terminal 104 can be the same version or different versions. Figure 1The system architecture shown illustrates the data processing process as follows: First, developers generate an information extraction link using a script on the first terminal 101, the script being written according to the type of information to be extracted. Next, the developers input the information extraction link into the application on the first terminal 101, which is then transmitted to the application on the second terminal 104 via the application, network 102, and server 103. Then, when the user on the second terminal 104 clicks the information extraction link in the application, the application parses the link and extracts the information extraction instructions contained within. Finally, the application on the second terminal 104 executes the information extraction instructions, extracts the corresponding information, and reports this information as the extraction result back to the application on the first terminal 101 via network 102 and server 103. In this way, developers can obtain the information obtained by the application on the second terminal 104.
[0028] In some embodiments of this application, the information extraction link obtained by the application of the second terminal 104 is obtained through encryption, and the application of the second terminal 104 also needs to perform decryption processing when parsing the information extraction link.
[0029] In some embodiments of this application, after obtaining the information extraction link, the application of the second terminal 104 will also perform a legality verification on the information extraction link. Only if the legality verification is passed will the information extraction operation be performed.
[0030] In some embodiments of this application, when the user of the second terminal 104 clicks the information extraction link in the application, the application of the second terminal 104 will also display a pop-up window, which is used to receive an instruction on whether to allow information extraction; only after the application of the second terminal 104 receives the instruction to allow information extraction through the pop-up window will the application of the second terminal 104 extract information based on the information extraction link.
[0031] It should be understood that Figure 1 The number of terminals, networks, and servers shown is merely illustrative. Depending on implementation needs, there can be any number of terminals, networks, and servers. For example, server 103 could be a server cluster composed of multiple servers.
[0032] It should be noted that, Figure 1 The illustration shown is merely one embodiment of this application. Although in Figure 1 In the embodiment, the terminal that generates the information extraction link and the terminal that sends the information extraction link are the same terminal. However, in other embodiments of this application, the two can be different terminals. For example, the information extraction link can be generated by one terminal first and then sent to the first terminal 101. Figure 1 In the embodiment, the first terminal 101 that sends the information extraction link and the second terminal 104 that receives the information extraction link are the same type of terminal, that is, both are smartphones. However, in other embodiments of this application, they can be different types of terminals, such as the first terminal 101, which can also be a desktop computer. Figure 1 In the embodiment, the information extraction link is ultimately sent to only one terminal's application. However, in other embodiments of this application, the information extraction link can be sent to multiple terminal applications simultaneously, enabling information extraction from multiple applications. This application does not limit the scope of protection in any way.
[0033] It is easy to understand that the data processing method provided in the embodiments of this application is generally executed by a terminal device, and correspondingly, the data processing device is generally located in the terminal device. However, in other embodiments of this application, the server may also have similar functions to the terminal device, thereby executing the data processing scheme provided in the embodiments of this application.
[0034] Therefore, the embodiments of this application can be applied to terminals or servers. The server 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, and big data and artificial intelligence platforms. The terminal can be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, etc., but is not limited to these. The terminal and server can be directly or indirectly connected via wired or wireless communication, and this application does not impose any restrictions.
[0035] In some embodiments of this application, the information extracted by the application is stored and managed in a blockchain.
[0036] Blockchain is a novel application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and cryptographic algorithms. Essentially, a blockchain is a decentralized database, a chain of data blocks linked together using cryptographic methods. Each data block contains information about a batch of network transactions, used to verify the validity of the information (anti-counterfeiting) and generate the next block. A blockchain can include an underlying platform, a platform product and service layer, and an application service layer.
[0037] The underlying blockchain platform can include processing modules such as user management, basic services, smart contracts, and operational monitoring. The user management module is responsible for managing the identity information of all blockchain participants, including maintaining public and private key generation (account management), key management, and maintaining the correspondence between user real identities and blockchain addresses (access management). Furthermore, under authorization, it monitors and audits transactions of certain real identities and provides risk control rule configuration (risk control audit). The basic services module is deployed on all blockchain node devices to verify the validity of business requests. After consensus is reached on valid requests, they are recorded in storage. For a new business request, the basic services first perform interface adaptation parsing and authentication (interface adaptation), and then encrypt the business information using a consensus algorithm (consensus management). After encryption, the data is transmitted completely and consistently to the shared ledger (network communication) and recorded and stored. The smart contract module is responsible for contract registration, issuance, triggering, and execution. Developers can define contract logic using a programming language and publish it to the blockchain (contract registration). According to the contract terms, the key or other events are invoked to trigger execution and complete the contract logic. It also provides functions for contract upgrades and cancellations. The operation monitoring module is mainly responsible for deployment, configuration modification, contract settings, cloud adaptation, and real-time status visualization during product launch, such as alarms, monitoring network conditions, and monitoring the health status of node devices.
[0038] The platform's product service layer provides the basic capabilities and implementation frameworks for typical applications. Developers can leverage these basic capabilities, along with the specific characteristics of their business needs, to implement blockchain-based business logic. The application service layer provides blockchain-based application services to business stakeholders.
[0039] The implementation details of the technical solutions in the embodiments of this application are described in detail below: Figure 2 A flowchart of a data processing method according to an embodiment of this application is shown. This data processing method can be executed by any terminal or device capable of deploying an application. Logically, the data processing method can be executed by the application itself; that is, corresponding functional modules can be embedded within the application to execute the data processing method. (Refer to...) Figure 2 As shown, this data processing method includes at least the following steps: In step 210, the information extraction link is obtained through the session entry in the application.
[0040] The information extraction link comes from the other end of the terminal that has established a session connection with the terminal where the application is located.
[0041] The application here can be any program that requires information extraction. It can have a user interface and can be various types of software. For example, it could be instant messaging software like WeChat, WeChat Work, or QQ, or it could be shopping apps, video apps, etc. The corresponding application is also deployed on the other end of the terminal that has established a session connection with the application. For example, if the application is the WeChat Work app, and the other end also has the WeChat Work app installed, and the accounts logged into the WeChat Work apps on both terminals have established a friend relationship or group chat relationship, then the information extraction link can be obtained through a conversation. In other words, the information extraction link can be obtained through a chat.
[0042] Specifically, developers can send a message retrieval link from the chat window of their smartphone's WeChat app to the user's smartphone's WeChat app, allowing the user's WeChat app, as the application needing to retrieve the information, to obtain the retrieval link. Of course, since applications like WeChat are multi-platform integrated—for example, WeChat has a PC version—it's also possible to send a message retrieval link from an application on a personal computer to the application needing to retrieve the information.
[0043] In one embodiment of this application, the information extraction link is generated by a script.
[0044] For example, a developer can first run a script on a personal computer to generate an information extraction link. Then, the developer can send the link to their own smartphone via email or other means. Finally, the developer can send the link to the user's application (such as WeChat) through their smartphone's application. Alternatively, as mentioned earlier, since applications like WeChat have a PC version, developers can directly copy the generated link to the application on their personal computer and send it directly to the user's application from that same computer.
[0045] In one embodiment of this application, the information extraction link is generated by another application capable of communicating with the application.
[0046] For example, a function module that can generate information extraction links can be embedded in the developer's WeChat app. When it is necessary to extract information from the WeChat apps used by other users, the developer's WeChat app can generate the information extraction link and send it to the WeChat apps used by those users.
[0047] In step 220, in response to the received parsing operation instruction, the information extraction link is parsed in the application to extract the information extraction instruction in the information extraction link.
[0048] For example, if an application obtains the information extraction link through a session entry, then when a user clicks the information extraction link in the session entry interface, the application can receive parsing instructions.
[0049] Figure 3 A flowchart illustrating the parsing of information to extract links in an application according to one embodiment of this application is shown. Figure 3 In this embodiment, the information extraction link is generated using an asymmetric encryption algorithm. Please refer to [link / reference]. Figure 3 The process of parsing information and extracting links in an application may include the following steps: In step 310, the information extraction link is decrypted by the application to obtain the decryption result.
[0050] Because the information extraction link is generated in an encrypted manner, it needs to be decrypted before the valid information in the information extraction link can be obtained.
[0051] Asymmetric encryption algorithms, such as the RSA encryption algorithm, are based on the RSA public-key cryptosystem. The RSA public-key cryptosystem is a cryptosystem that uses different encryption and decryption keys, and "it is computationally infeasible to derive the decryption key from the known encryption key."
[0052] When the information extraction link is generated using an asymmetric encryption algorithm, the generation process requires encryption using an RSA public key, and the application needs to decrypt the information extraction link using an RSA private key.
[0053] Although the information extraction link in this embodiment is generated using an asymmetric encryption algorithm, in other embodiments, the information extraction link may also be generated using other encryption algorithms.
[0054] In step 320, the information extraction instructions in the information extraction link are extracted from the decryption result.
[0055] The decryption result contains valid information from the information extraction link; therefore, the information extraction instructions can be obtained from the decryption result.
[0056] In this embodiment, a highly secure asymmetric encryption algorithm is used to generate the information extraction link, ensuring the transmission security of the information extraction link and reducing the risk of tool leakage and malicious cracking.
[0057] As mentioned earlier, the information extraction link can be generated by other applications capable of communicating with the application, or it can be generated by a script. Therefore, the encryption process using an asymmetric encryption algorithm when generating the information extraction link can be implemented either by other applications or by a script.
[0058] In one embodiment of this application, before decrypting the information extraction link through the application to obtain the decryption result, the method further includes: performing a legality check on the information extraction link, wherein if the information extraction link passes the legality check, the step of decrypting the information extraction link through the application is performed.
[0059] Information extraction links can include not only information extraction instructions but also other information; the legitimacy of information extraction links can be verified in various ways, which will be introduced in detail below.
[0060] In this embodiment of the application, the information extraction link is validated before information is extracted. Information extraction is only performed if the information extraction link passes the validation, thereby ensuring the security of information extraction.
[0061] In one embodiment of this application, the method further includes: providing an error message in the application if the information extraction link fails the validity check.
[0062] Figure 4 A flowchart illustrating the validity verification of an information extraction link according to an embodiment of this application is shown. Figure 4 As shown, it includes the following steps: In step 410, it is determined whether the information extraction link contains preset tag information.
[0063] The preset tagging information can be set arbitrarily according to project needs. The information extraction link can contain encrypted and unencrypted parts. The unencrypted part can be the preset tagging information, while the encrypted part can be obtained by encrypting it using an asymmetric encryption algorithm.
[0064] For example, in the application scenario of WeChat for Work, the preset tag information can be wxdiag, which is set through the URL scheme mechanism. The preset tag information can be used to access specific functions of the application.
[0065] In step 420, the information extraction link is determined to be legitimate based on the fact that it contains preset marker information.
[0066] A legitimate information extraction link contains preset marker information. In this embodiment, by verifying the preset marker information before information extraction, the possibility of erroneous information extraction is greatly reduced.
[0067] Figure 5 A flowchart illustrating the validity verification of an information extraction link according to another embodiment of this application is shown. Figure 5 As shown, verifying the legitimacy of information extraction links may also include the following steps: In step 510, it is determined whether the time of receiving the parsing operation instruction is within the legal time limit corresponding to the information extraction link.
[0068] Specifically, a corresponding legal period can be set for each information extraction link. The legal periods for each information extraction link can be the same or different.
[0069] For example, the legal expiration period for all information extraction links can be set to the entire day of January 1, 2021, allowing information extraction to be performed centrally on that day. When information extraction links are obtained from other applications of the same type, the legal expiration period can also be set based on the time when those applications sent the links. For instance, when a developer sends an information extraction link using their WeChat Work app to a WeChat Work app (used by a regular user) that needs information extraction, the server will obtain the sending time of the information extraction link. The legal expiration period for this link could then be one hour after that sending time. The server or the WeChat Work app that needs information extraction can compare the time the parsing operation command is received with the sending time of the information extraction link. If the time the parsing operation command is received is more than one hour after the sending time of the information extraction link, then it can be determined that the time the parsing operation command is received is not within the legal expiration period of the information extraction link.
[0070] In step 520, the information extraction link is determined to be legitimate based on the fact that the time of receiving the parsing operation instruction is within the legal period corresponding to the information extraction link.
[0071] In this embodiment of the application, each information extraction link has a corresponding legal period. Information can only be extracted from the information extraction link if it is within the legal period. This avoids the abuse of the information extraction function, reduces the risk of information leakage, and improves the security of information extraction.
[0072] In one embodiment of this application, before extracting the information extraction instruction from the information extraction link in the decryption result, the method further includes: extracting identity information from the information extraction link in the decryption result, wherein the identity information includes at least one of the following: an object identifier of the application and a version number of the application; performing identity verification based on the identity information, wherein if the identity information passes the identity verification, the step of extracting the information extraction instruction from the information extraction link in the decryption result is executed.
[0073] The object identifier can be a user identity identifier. Specifically, the identity identifier information in the information retrieval link can be compared with the identity identifier information corresponding to the application to determine whether the identity identifier information in the information retrieval link has passed identity verification. The identity identifier information corresponding to the application can be obtained locally on the device where the application is located, or it can be obtained from the server.
[0074] In this embodiment of the application, by verifying the identity information before extracting the information extraction instruction and performing the information extraction, and only allowing the information extraction when the identity information passes the identity verification, it is possible to limit the application scope of the information extraction link to only specified users and specified versions of the application, thereby greatly avoiding the abuse of the information extraction link and further improving the security of information extraction.
[0075] In one embodiment of this application, the method further includes: providing an error message in the application if the identity information fails identity verification.
[0076] The following section will detail the structure of the information extraction link.
[0077] As mentioned earlier, the information extraction link is an encrypted link that can be generated by a shell script. For example, a script named `diagutil.sh` can be created to generate the information extraction link. The unencrypted information extraction link generated by this script can be formatted as "diagutil.sh [action] [vid][App version number] [optional parameters]", where `action`, `vid`, `App version number`, and optional parameters are all provided parameters. `diagutil.sh` generates the information extraction link based on these parameters. The content generated by `diagutil.sh` based on the `action` parameter is the information extraction instruction. `vid` is the object identifier, which specifies the user `vid` who can use the information extraction link. `App version number` is the application version number, which can be set to a three-segment version number, such as 2.1.3. Optional parameters are parameters that some commands support passing.
[0078] diagutil.sh can generate encrypted links based on one or more actions from a list of actions. The functions of each action in the action list and the method by which the diagutil.sh script file generates the corresponding encrypted links for each action are as follows: 1. KVSystemConfig: Reads the key-value (kv) configuration value sent from the backend to the terminal.
[0079] Example of generating an encrypted link: diagutil.sh KVSystemConfig 1688851823364405 3.0.40xxxxx.
[0080] 2. PBSystemConfig: Reads a specific field from the pb (Protocol Buffers) protocol sent from the background.
[0081] Example of generating an encrypted link: diagutil.sh PBSystemConfig 1688851823364405 3.0.40xxxxx.
[0082] 3. DBExe: Executes an SQL statement.
[0083] Example of generating an encrypted link: diagutil.sh DBExe 1688851823364405 3.0.40 selectcount( ) from MESSAGE||Info.db.
[0084] 4. CopyAndSendDB: Copy and send the specified database.
[0085] Example of generating an encrypted link: diagutil.sh CopyAndSendDB 1688851823364405 3.0.40Message / Info.db.
[0086] 5. SendLog: Send log.
[0087] Example of generating an encrypted link: diagutil.sh SendLog 1688851823364405 3.0.40.
[0088] 6. NativeDebug: Executes a shell script.
[0089] Example of generating encrypted links: diagutil.sh NativeDebug 1688851823364405 3.1.0 native:shell?sh=sh\&cmd=ls / sdcard.
[0090] Therefore, information extraction can be achieved by viewing the KV values issued by the backend, the PB field configured by the system, running SQL statements to operate the database, copying the database, sending log files, or executing a shell script.
[0091] In some embodiments of this application, multiple user identifiers or group identifiers corresponding to multiple user identifiers can be set in the information extraction link to achieve the purpose of providing information extraction links in batches for applications of multiple users.
[0092] Please continue reading. Figure 2 In step 230, the information extraction instruction is executed in the application to generate the information extraction result.
[0093] The application can obtain relevant information and output the information extraction results by running information extraction instructions.
[0094] In some embodiments of this application, the method further includes: determining whether the information extraction instruction is valid, wherein if the information extraction instruction is valid, the step of executing the information extraction instruction in the application is performed.
[0095] Specifically, a command library can be pre-set, which includes pre-set legal information extraction commands. The legality of an information extraction command can be determined by searching the command library to see if the command is included in the library.
[0096] In step 240, the results are extracted by reporting information through the session entry in the application.
[0097] The results of information extraction can be reported in a variety of ways.
[0098] In one embodiment of this application, reporting information extraction results through an application includes: packaging the information extraction results into an information extraction file; and reporting the information extraction file through the application.
[0099] Specifically, extracted information files can be reported through a session entry point in the application (such as a chat box). This allows individuals who have established a session with the user (such as developers) to access the extracted information files via the session. The advantage of this approach is that it significantly improves the convenience for developers to obtain extracted information results, enabling them to quickly locate problems.
[0100] In other embodiments of this application, since the information extraction results are often in text form, the information extraction results can be directly reported through the session entry in the application.
[0101] In one embodiment of this application, obtaining an information extraction link through an application includes: obtaining an information extraction link through a session entry point in the application; and reporting information extraction results through the application includes: reporting information extraction results through a session entry point in the application.
[0102] The conversation entry point here can be a one-on-one conversation entry point or a group conversation entry point. As mentioned earlier, the chat box in WeChat and WeChat Work is a type of conversation entry point. On the one hand, information extraction links from developers can be directly obtained through the chat box; on the other hand, information extraction results can be returned to developers through the chat box.
[0103] In this embodiment of the application, the information extraction link is obtained through the session entry and the information extraction result is reported, which enables developers to obtain the extracted information more promptly and improves the efficiency of information acquisition.
[0104] Figure 6 A flowchart illustrating the process of parsing information and extracting links in an application in response to a parsing operation instruction, according to an embodiment of this application, is shown. Figure 6 As shown, it includes the following steps: In step 610, in response to the received parsing operation instruction, a pop-up window is displayed in the application to ask the object whether it allows information extraction.
[0105] The target here can be a user. The pop-up window can display the words "Allow information extraction" along with "Yes" and "No" buttons. These buttons in the pop-up window are used to ask the user whether they wish to allow information extraction.
[0106] In step 620, based on the received instruction to allow information extraction, the information extraction link is parsed in the application.
[0107] When the user clicks the "Yes" button, the application receives an instruction to allow the extraction of information.
[0108] In this embodiment of the application, user consent is required before information extraction, which effectively protects user privacy and security.
[0109] In one embodiment of this application, extracting results from information reported through an application includes: displaying a pop-up window in the application to ask the user whether to report; and extracting results from information reported through the application based on the received reporting instruction.
[0110] In this embodiment of the application, user consent is required before reporting the information extraction results, which further protects the user's privacy and security.
[0111] Figure 7 A schematic diagram illustrating an embodiment of this application shows how to obtain an information extraction link through a session entry in an application; Figure 8 A schematic diagram illustrating the display of a pop-up window in an application according to an embodiment of this application is shown; Figure 9 A schematic diagram illustrating the extraction results of information reported through a session entry in an application, according to an embodiment of this application, is shown below. Figures 7-9 This section introduces the process of data processing based on information extraction links.
[0112] Please refer to [the website / information] first. Figure 7 In a group chat, one user sends a message retrieval link via an application, and other users' applications in the group chat can access that link. See also... Figure 8 After a user clicks the information retrieval link received in a group chat within the application, a pop-up window will appear asking the user whether to view or send the retrieved information. Finally, when the user clicks send, the application will retrieve the information and send the retrieved information as a file to the developers and other users in the group chat.
[0113] Figure 10 A schematic flowchart of a data processing method according to an embodiment of this application is shown below. Figure 10 Here is the overall scheme of this application embodiment: First, the user clicks the link; then, the application judges the link to determine if it has the wxdiag prefix. If not, an error is reported; if it does, it judges whether a timeout has occurred. If so, an error is reported; if not, it decrypts using the RSA private key; then, it verifies information such as the vid and version number; next, it judges whether the verification is correct. If not, an error is reported; if so, it extracts the command word and parameters. Here, the command word is the information extraction instruction mentioned earlier; then, it judges whether the command word is valid. If not, an error is reported; if so, the command is executed; finally, the result is output.
[0114] In summary, according to the data processing method provided in this application embodiment, once the type of information to be extracted is determined, only the corresponding information extraction link needs to be provided to the application. The application can respond according to the parsing operation, automatically extract the information extraction instruction from the information extraction link, and complete the information extraction by executing the information extraction instruction. Finally, the information extraction result can be reported through the application. Therefore, the information required by the application can be quickly obtained based on the problems reported by the user, improving the accuracy, flexibility, and efficiency of information acquisition, thereby improving the efficiency and accuracy of locating problems in the application.
[0115] The following describes an apparatus embodiment of this application, which can be used to execute the data processing method described above in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the data processing method described above in this application.
[0116] Figure 11 A block diagram of a data processing apparatus according to an embodiment of this application is shown.
[0117] Reference Figure 11 As shown, a data processing apparatus 1100 according to an embodiment of this application includes: an acquisition unit 1110, a parsing unit 1120, a result generation unit 1130, and a reporting unit 1140. The acquisition unit 1110 is used to acquire an information extraction link through a session entry point in an application, the information extraction link originating from the terminal that has established a session connection with the terminal where the application is located; the parsing unit 1120 is used to parse the information extraction link in the application in response to a received parsing operation instruction, to extract the information extraction instruction from the information extraction link; the result generation unit 1130 is used to execute the information extraction instruction in the application to generate an information extraction result; and the reporting unit 1140 is used to report the information extraction result through the session entry point in the application.
[0118] In some embodiments of this application, based on the foregoing scheme, the information extraction link is generated by encryption using an asymmetric encryption algorithm, and the parsing unit 1120 is configured to: decrypt the information extraction link through the application to obtain a decryption result; and extract the information extraction instruction from the information extraction link from the decryption result.
[0119] In some embodiments of this application, based on the foregoing scheme, before decrypting the information extraction link through the application and obtaining the decryption result, the parsing unit 1120 is further configured to: perform a legality check on the information extraction link, wherein, if the information extraction link passes the legality check, the step of decrypting the information extraction link through the application is executed.
[0120] In some embodiments of this application, based on the foregoing scheme, the parsing unit 1120 is configured to: determine whether the information extraction link contains preset marker information; and determine that the information extraction link is valid based on the fact that the information extraction link contains preset marker information.
[0121] In some embodiments of this application, based on the foregoing scheme, the parsing unit 1120 is further configured to: determine whether the reception time of the parsing operation instruction is within the legal period corresponding to the information extraction link; and determine that the information extraction link is legal based on the fact that the reception time of the parsing operation instruction is within the legal period corresponding to the information extraction link.
[0122] In some embodiments of this application, based on the foregoing scheme, before extracting the information extraction instruction from the information extraction link from the decryption result, the parsing unit 1120 is further configured to: extract identity information from the information extraction link from the decryption result, wherein the identity information includes at least one of the following: an object identifier of the application, a version number of the application; perform identity verification based on the identity information, wherein, if the identity information passes the identity verification, the step of extracting the information extraction instruction from the information extraction link from the decryption result is executed.
[0123] In some embodiments of this application, based on the foregoing scheme, the parsing unit 1120 is configured to: in response to a received parsing operation instruction, display a pop-up window in the application to ask the object whether it is allowed to extract information; and parse the information extraction link in the application according to the received instruction to allow information extraction.
[0124] In some embodiments of this application, based on the foregoing scheme, the information extraction link is generated by a script.
[0125] Figure 12 A schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present application is shown.
[0126] It should be noted that, Figure 12 The computer system 1200 of the electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0127] like Figure 12As shown, the computer system 1200 includes a Central Processing Unit (CPU) 1201, which can perform various appropriate actions and processes based on programs stored in Read-Only Memory (ROM) 1202 or programs loaded from storage portion 1208 into Random Access Memory (RAM) 1203, such as performing the methods described in the above embodiments. Various programs and data required for system operation are also stored in RAM 1203. The CPU 1201, ROM 1202, and RAM 1203 are interconnected via bus 1204. An input / output (I / O) interface 1205 is also connected to bus 1204.
[0128] The following components are connected to I / O interface 1205: an input section 1206 including a keyboard, mouse, etc.; an output section 1207 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 1208 including a hard disk, etc.; and a communication section 1209 including a network interface card such as a LAN (Local Area Network) card, modem, etc. The communication section 1209 performs communication processing via a network such as the Internet. A drive 1210 is also connected to I / O interface 1205 as needed. Removable media 1211, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 1210 as needed so that computer programs read from them can be installed into storage section 1208 as needed.
[0129] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 1209, and / or installed from removable medium 1211. When the computer program is executed by central processing unit (CPU) 1201, it performs various functions defined in the system of this application.
[0130] It should be noted that the computer-readable medium shown in the embodiments of this application can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such transmitted data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.
[0131] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0132] The units described in the embodiments of this application can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself.
[0133] In one aspect, this application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiments; or it may exist independently and not assembled into the electronic device. The computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the methods described in the above embodiments.
[0134] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of this application, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0135] Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, touch terminal, or network device, etc.) to execute the methods according to the embodiments of this application.
[0136] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein.
[0137] The data collection and processing plan outlined in this application must be implemented in strict accordance with the requirements of relevant national laws and regulations, obtaining the informed consent or separate consent of the data subject (or having a legal basis as stipulated by the relevant national laws and regulations), and conducting subsequent data use and processing within the scope authorized by laws and regulations and the data subject.
[0138] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A data processing method, characterized in that, The method includes: The information extraction link is obtained through a session entry point in the application, and the information extraction link comes from the other end that has established a session connection with the terminal where the application is located; the session entry point is a chat box; the information extraction link is generated by encryption using an asymmetric encryption algorithm. In response to a received parsing operation instruction, the information extraction link is parsed in the application to extract the information extraction instruction from the information extraction link, including: decrypting the information extraction link through the application to obtain a decryption result; and extracting the information extraction instruction from the information extraction link from the decryption result. The information extraction instruction is executed in the application to generate information extraction results in at least one of the following ways: reading the key-value pair configuration value sent to the terminal from the background, reading the field in the protocol buffer sent from the background, running SQL statements to operate the database, or executing a shell script. The information extraction results are reported through the session entry point in the application.
2. The data processing method according to claim 1, characterized in that, Before decrypting the information extraction link through the application to obtain the decryption result, the method further includes: The information extraction link is validated for legality. If the information extraction link passes the validity validation, the application is used to decrypt the information extraction link.
3. The data processing method according to claim 2, characterized in that, The legality verification of the information extraction link includes: Determine whether the information extraction link contains preset marker information; The information extraction link is deemed legitimate based on the presence of preset marker information within it.
4. The data processing method according to claim 3, characterized in that, The legality verification of the information extraction link also includes: Determine whether the time of receiving the parsing operation instruction is within the legal time limit corresponding to the information extraction link; The information extraction link is deemed legitimate if the time of receiving the parsing operation instruction falls within the legal period corresponding to the information extraction link.
5. The data processing method according to claim 3 or 4, characterized in that, Before extracting the information extraction instructions from the information extraction link from the decryption result, the method further includes: Extract the identity information from the information extraction link from the decryption result, wherein the identity information includes at least one of the following: the object identifier of the application, the version number of the application; Identity verification is performed based on the identity information, wherein if the identity information passes the identity verification, the step of extracting the information extraction instruction from the information extraction link from the decryption result is executed.
6. The data processing method according to claim 1, characterized in that, The process of parsing the information extraction link in the application in response to the received parsing operation instruction includes: In response to the received parsing operation instruction, a pop-up window is displayed in the application to ask the object whether it allows the extraction of information; Upon receiving an instruction to allow information extraction, the application parses the information extraction link.
7. The data processing method according to claim 1, characterized in that, The information extraction links are generated by a script.
8. A data processing apparatus, characterized in that, The device includes: The acquisition unit is used to acquire an information extraction link through a session entry point in the application, wherein the information extraction link comes from the counterparty that has established a session connection with the terminal where the application is located; the session entry point is a chat box; and the information extraction link is generated by encryption using an asymmetric encryption algorithm. A parsing unit is configured to, in response to a received parsing operation instruction, parse the information extraction link in the application to extract the information extraction instruction from the information extraction link, including: decrypting the information extraction link through the application to obtain a decryption result; and extracting the information extraction instruction from the information extraction link from the decryption result. The result generation unit is used to execute the information extraction instruction in the application and generate information extraction results in at least one of the following ways: reading the key-value pair configuration value sent to the terminal from the background, reading the field in the protocol buffer sent from the background, running SQL statements to operate the database, and executing shell scripts. The reporting unit is used to report the information extraction results through the session entry in the application.
9. A computer-readable medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the data processing method as described in any one of claims 1 to 7.
10. An electronic device, characterized in that, include: One or more processors; A storage device for storing one or more programs, which, when executed by one or more processors, cause the one or more processors to implement the data processing method as described in any one of claims 1 to 7.
11. A computer program product, characterized in that, The computer program product includes computer instructions stored in a computer-readable storage medium, a processor of a computer device reading the computer instructions from the computer-readable storage medium, and the processor executing the computer instructions to cause the computer device to perform the data processing method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Log information display method and device, electronic equipment and storage medium
CN111061448A
Hardware debugging execution method and device, electronic equipment and storage medium
CN111970364A
Abnormal data processing method and device and computer readable storage medium
CN113010331A
