Data processing method and device, computer equipment, storage medium and product
By obtaining application credentials and performing permission verification, it is ensured that only applications with corresponding permissions can update data, solving the problem of unauthorized operations in the OpenAPI interface and improving the security and reliability of data updates.
Patent Information
- Application Number
- CN202310328367.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-23
- Publication Date
- 2024-09-24
AI Technical Summary
When updating data through the OpenAPI interface of Enterprise WeChat, unauthorized operations may occur, leading to data destruction or hacker attacks. How to improve the security and reliability of data updates.
By obtaining the application credentials, it is determined that the application platform has the open interface calling permission, the data update request is transparently transmitted, and the update permissions are verified based on the application credentials to ensure that only applications with corresponding permissions can update data.
It improves the reliability and security of the data update process, avoids malicious tampering of data, ensures data integrity and prevents unauthorized update operations.
Smart Images

Figure CN118690400A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a data processing method, a data processing apparatus, a computer device, a computer-readable storage medium, and a computer program product. Background Art
[0002] WeChat for Business provides developers with an OpenAPI interface (Open Application Programming Interface, open interface for short), ensuring that developers of every enterprise can carry out private development in WeChat for Business. However, although the privatization and personalization of an enterprise can be achieved through calling the openapi interface, the developer's request package may carry non-standard parameter formats, which may cause unauthorized operations. Unauthorized operations may cause the destruction or deletion of important data information of the enterprise or employees, and hackers may also attack the enterprise through loopholes in permission verification. Therefore, how to update enterprise data more securely based on the openapi interface has become a technical problem that needs to be solved urgently. Summary of the invention
[0003] The embodiments of the present application propose a data processing method, apparatus, computer equipment, storage medium and product, which support authentication processing of update permissions based on application credentials, thereby improving the reliability of the data update process and data security.
[0004] On the one hand, an embodiment of the present application provides a data processing method, the method comprising:
[0005] Obtaining a data update request for an application to be updated in the application platform, wherein the data update request carries an application credential and update data of the application to be updated;
[0006] After determining that the user has the calling authority of the open interface of the application platform based on the application credential, the open interface is called to transparently transmit the application credential and update data of the application to be updated in the data update request;
[0007] Verify the update permission of the application to be updated based on the application credentials;
[0008] If it is determined according to the verification result that the update authority for the application to be updated is possessed, the template data of the application to be updated is updated based on the update data.
[0009] On the one hand, an embodiment of the present application provides a data processing device, the device comprising:
[0010] An acquisition unit, configured to acquire a data update request for an application to be updated in the application platform, wherein the data update request carries an application credential and update data of the application to be updated;
[0011] A processing unit, configured to, after determining based on the application credentials that the application platform has the calling authority for the open interface, call the open interface to transparently transmit the application credentials and update data of the application to be updated in the data update request;
[0012] The processing unit is further used to verify the update permission of the application to be updated according to the application credential;
[0013] The processing unit is further configured to update the template data of the application to be updated based on the update data if it is determined according to the verification result that the update authority for the application to be updated is possessed.
[0014] In a possible implementation, the processing unit is further configured to perform the following operations:
[0015] receiving a credential acquisition request sent by an application client, where the credential acquisition request is generated based on an enterprise identifier of a target enterprise associated with the application to be updated and an application key of the application to be updated;
[0016] Generate application credentials for the application to be updated based on the enterprise identity and application key;
[0017] The application credential is sent to the application client, so that the application client generates a data update request for the application to be updated based on the application credential.
[0018] In a possible implementation, after obtaining the data update request for the application to be updated, the processing unit is further configured to perform the following operations:
[0019] Performing data conversion processing on the application credentials in the data update request to obtain application attribute information of the application to be updated, where the application attribute information includes rule information of the application to be updated;
[0020] Verify whether the user has the permission to call the open interface of the application platform according to the rule information;
[0021] If the calling permission is available, the step of calling the open interface to transparently transmit the application credentials and update data of the application to be updated is triggered.
[0022] In a possible implementation, the processing unit is further configured to perform the following operations:
[0023] Call the open interface of the application platform based on the remote procedure call method to transparently transmit the application credentials and update data of the application to be updated;
[0024] Acquire template data of the application to be updated from the template database according to the application credentials;
[0025] Performing format verification on the update data according to the template data of the application to be updated, and if the format verification passes, triggering the step of verifying the update permission of the application to be updated according to the application credential;
[0026] The format verification process includes any one or more of text type verification, control type verification, and template name verification.
[0027] In a possible implementation, the application credential has a validity period; and the processing unit is further configured to perform any one of the following steps:
[0028] If the application credential is within the validity period, triggering the step of verifying the update authority of the application to be updated according to the application credential;
[0029] If the application credential is not within the validity period, a feedback message is generated and sent to the application client, wherein the feedback message is used to trigger the application client to reapply for the application credential of the application to be updated.
[0030] In a possible implementation, the processing unit performs update processing on the template data of the application to be updated based on the update data, and is used to perform the following operations:
[0031] According to the template data of the application to be updated, the update parameters matching the template data are parsed from the update data;
[0032] The data except the update parameters in the update data are deleted, and the template data of the application to be updated is updated based on the update parameters.
[0033] In a possible implementation, the processing unit is further configured to perform the following operations:
[0034] After updating the template data of the application to be updated based on the update parameters, updating the template database based on the updated template data;
[0035] Call the open interface by asynchronously calling the message queue to write the updated template data into the storage database;
[0036] The storage database is used to back up the template data of the application to be updated.
[0037] In a possible implementation, the processing unit verifies the update permission of the application to be updated according to the application credential, and performs the following operations:
[0038] Obtain the application ID of the application to be updated according to the application credential;
[0039] If the application identifier is an identifier of a system application of the application platform, the category to which the application to be updated belongs is determined according to the application identifier;
[0040] Based on the category of the application to be updated, the update permission of the application to be updated is verified.
[0041] On the one hand, an embodiment of the present application provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the above-mentioned data processing method.
[0042] On the one hand, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is read and executed by a processor of a computer device, the computer device executes the above-mentioned data processing method.
[0043] On the one hand, an embodiment of the present application provides a computer program product or a computer program, which includes 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, so that the computer device performs the above-mentioned data processing method.
[0044] In an embodiment of the present application, first, a data update request for an application to be updated in an application platform can be obtained, and the data update request carries the application credentials and update data of the application to be updated; then, after determining that the application platform has the calling authority for the open interface based on the application credentials, the open interface can be called to pass through the application credentials and update data in the data update request; next, the update authority of the application to be updated is verified according to the application credentials, and if it is determined that the application to be updated has the update authority according to the verification result, the template data of the application to be updated is updated based on the update data. It can be seen from this that before the application in the application platform is updated, the present application first needs to have the calling authority of the corresponding open interface, and then needs to verify whether it has the corresponding update authority based on the application credentials. Only when the corresponding application has the update authority can the corresponding update processing operation be performed, which can avoid malicious tampering of data, thereby improving the reliability and security of the data update process. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technical objects in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0046] Figure 1 It is a schematic diagram of the architecture of a data processing system provided in an embodiment of the present application;
[0047] Figure 2 It is a flowchart of a data processing method provided in an embodiment of the present application;
[0048] Figure 3a This is a schematic diagram of a management interface of an approval application provided in an embodiment of the present application;
[0049] Figure 3b This is a schematic diagram of an interface for obtaining application credentials provided in an embodiment of the present application;
[0050] Figure 4a This is a schematic diagram of a template interface of a system basic application provided in an embodiment of the present application;
[0051] Figure 4b This is a schematic diagram of an interface of a self-built application provided in an embodiment of the present application;
[0052] Figure 4c This is a schematic diagram of an interface of a server template to be developed provided in an embodiment of the present application;
[0053] Figure 4d This is a schematic diagram of an interface of an Internet enterprise provided by an embodiment of the present application;
[0054] Figure 4e This is a schematic diagram of an interface of a group template provided in an embodiment of the present application;
[0055] Figure 4f This is a schematic diagram of an interface of a personnel assistant application provided in an embodiment of the present application;
[0056] Figure 4g This is a schematic diagram of an interface of an onboarding template provided in an embodiment of the present application;
[0057] Figure 4h This is a schematic diagram of an interface of a clock-in application provided in an embodiment of the present application;
[0058] Figure 4i is a schematic diagram of an interface of a third-party application provided in an embodiment of the present application;
[0059] Figure 4j This is a schematic diagram of an interface of a reimbursement template provided in an embodiment of the present application;
[0060] Figure 5 It is a schematic diagram of an interactive flow of a data processing method provided in an embodiment of the present application;
[0061] Figure 6 is a structural schematic diagram of a data processing device provided in an embodiment of the present application;
[0062] Figure 7 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0063] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0064] 1. Principle of data processing solution:
[0065] The present application provides a data processing scheme, which is mainly applicable to the scenario of updating data of the application to be updated in the application platform (for example, updating the template data of the application), and supports checking the update permission based on the application credentials of the application before updating the data of the corresponding application, so that the data can be updated for the application only after it is determined that the corresponding update permission is possessed. The present application can perform authentication processing based on tokens, thereby improving the reliability and security of the data update process. Specifically, the principle of the data processing scheme is as follows: first, a data update request for the application to be updated in the application platform can be obtained, and the data update request carries the application credentials and update data of the application to be updated; then, after determining that the application platform has the call permission of the open interface based on the application credentials, the open interface can be called to pass through the application credentials and update data in the data update request; next, the update permission of the application to be updated is checked based on the application credentials. If it is determined that the application to be updated has the update permission based on the verification result, the template data of the application to be updated is updated based on the update data. It can be seen from this that before updating the data of the application in the application platform, this application must first have the calling permission of the corresponding open interface, and then verify whether it has the corresponding update permission based on the application credentials. Only when it has the update permission of the corresponding application can it perform the corresponding update processing operation, which can prevent the data from being maliciously tampered with, thereby improving the reliability and security of the data update process.
[0066] Next, the key technical terms involved in the above-mentioned data processing solutions are introduced in detail:
[0067] 2. Relevant technical terms involved in the data processing solution:
[0068] The data processing solution provided in this application mainly involves cloud technology and blockchain technology. In order to more clearly understand the technical solution provided by the embodiments of this application, the technical terms involved in the embodiments of this application are introduced below.
[0069] (1) Cloud technology:
[0070] Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model. It can form a resource pool, which can be used on demand and is flexible and convenient. Cloud computing technology will become an important support. The backend services of the technical network system require a large amount of computing and storage resources, such as video websites, picture websites and more portal websites. With the rapid development and application of the Internet industry, in the future, each item may have its own identification mark, which needs to be transmitted to the backend system for logical processing. Data of different levels will be processed separately. All kinds of industry data need strong system backing support, which can only be achieved through cloud computing.
[0071] In this application, the update permissions of the application to be updated are verified according to the application credentials, and the template data of the application to be updated is updated based on the update data. The process involves a large amount of data calculation and data storage services. The above process requires a lot of computer operating costs. Therefore, this application can be based on cloud computing technology to implement the corresponding credential authentication and data update processes. Among them, cloud computing is a computing model that distributes computing tasks on a resource pool composed of a large number of computers, so that various application systems can obtain computing power, storage space and information services as needed. The network that provides resources is called a "cloud". The resources in the "cloud" are infinitely expandable in the eyes of users, and can be obtained at any time, used on demand, expanded at any time, and paid for by use. As a basic capability provider of cloud computing, a cloud computing resource pool (referred to as a cloud platform) will be established, generally referred to as an IaaS (Infrastructure as a Service) platform, and various types of virtual resources will be deployed in the cloud computing resource pool for external customers to choose to use.
[0072] (2) Blockchain technology:
[0073] Blockchain is a new application model of computer technologies such as distributed data storage, P2P (Peer to Peer) transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks (also called blocks) generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next data block. Blockchain uses cryptography to ensure that data cannot be tampered with or forged.
[0074] In this application, data such as application credentials of the application to be updated, update data, and template data of the application to be updated involved in the data processing process can be sent to the blockchain for storage. Based on the blockchain's tamper-proof and traceable characteristics, the security of the data processing process can be improved and the leakage of application data can be avoided.
[0075] It is particularly important to note that in the subsequent specific implementation methods of this application, user information and other related data are involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0076] Combined with the above description of the data processing solution provided by this application and the related technical terms involved, next, combined with Figure 1 The architecture of the data processing system provided in the embodiments of the present application is introduced in detail.
[0077] See also Figure 1 , Figure 1 It is a schematic diagram of the architecture of a data processing system provided in an embodiment of the present application. The architecture diagram of the data processing system may include at least: a terminal device cluster, and an application server 104. Among them, the terminal device cluster includes: terminal device 101, terminal device 102, and terminal device 103, etc.; a communication connection can be established between the application server 104 and any terminal device in the terminal device cluster (such as terminal device 101) based on a wired or wireless method. It should be understood that an application client is running in any terminal device in the terminal device cluster, and the application client is used to render the application template data transmitted by the application server 104 to output the application interface of the corresponding application in the application client. In addition, the application server 104 refers to the background server of the application platform, which is used to provide background technical support for the application platform to realize related application functions; the application server 104 may store template data of each application in the application platform. It should be noted that the number of terminal devices in the terminal device cluster is used for example, and the embodiment of the present application does not limit the number of terminal devices.
[0078] The terminal devices 101, 102, and 103 mentioned in the present application may include but are not limited to: mobile phones, tablet computers, laptop computers, PDAs, mobile Internet devices (MIDs), intelligent voice interaction devices, vehicle-mounted terminals, roadside devices, aircraft, wearable devices, smart home appliances, or wearable devices with data processing functions such as smart watches, smart bracelets, pedometers, etc.
[0079] The application server 104 mentioned in this application can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), as well as big data and artificial intelligence platforms, etc.
[0080] Next, taking any terminal device (such as terminal device 101) in the data processing system as an example, the data interaction process between the terminal device 101 and the application server 104 is introduced accordingly:
[0081] ① The terminal device 101 may be the terminal device where the management object is located. The terminal device 101 may display the management page of the application platform, and then obtain the enterprise identification of the target enterprise associated with the application to be updated and the application key of the application to be updated in the management page, and then send the obtained enterprise identification and application key to the application server 104;
[0082] ② The application server 104 generates an application credential for the application to be updated based on the enterprise identification and application key sent by the terminal device 101, and sends the application credential to the terminal device 101;
[0083] ③ When the terminal device 101 needs to update the data of the application to be updated in the application platform, it can generate a data update request based on the application credential and update data of the application to be updated, and then send the data update request to the application server 104;
[0084] ④ The application server 104 obtains the data update request, and after determining that it has the calling authority for the open interface of the application platform based on the application credentials, it calls the open interface to transmit the application credentials and update data of the application to be updated in the data update request; and verifies the update authority for the application to be updated based on the application credentials; if it is determined that it has the update authority for the application to be updated based on the verification result, the template data of the application to be updated is updated based on the update data.
[0085] Subsequently, the terminal device 101 may request the updated application template data from the application server 104 , and then display the updated application template data in the application interface displayed by the application client of the terminal device 101 .
[0086] In a possible implementation, the data processing system provided by the embodiment of the present application can be deployed on a blockchain. For example, each terminal device included in the terminal device cluster can be regarded as a node device of the blockchain to form a blockchain network. Therefore, the data processing process in the present application can be executed on the blockchain, which can not only ensure the fairness and justice of the data processing process, but also make the data processing process traceable, thereby improving the security of the data processing process.
[0087] It can be understood that the data processing system described in the embodiment of the present application is to more clearly illustrate the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided in the embodiment of the present application. It is known to those skilled in the art that with the evolution of the system architecture and the emergence of new business scenarios, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.
[0088] Based on the foregoing description of the data processing scheme and the data processing system of the present application, the specific embodiments involved in the data processing scheme will be described in detail with reference to the accompanying drawings.
[0089] See also Figure 2 , Figure 2 is a flow chart of a data processing method provided in an embodiment of the present application. The method is applied to Figure 1 The data processing method mainly includes but is not limited to the following steps S201 to S204:
[0090] S201: Obtain a data update request for an application to be updated in an application platform, wherein the data update request carries application credentials and update data of the application to be updated.
[0091] In the embodiments of the present application, multiple applications can be run in the application platform, and the application platform can be, for example, an office platform, a social platform, a shopping platform, a content interaction platform, etc. It should be understood that different types of application platforms contain different applications. For example, if the application platform is an office platform, the applications corresponding to the office platform may include, but are not limited to: approval applications, document applications, calendar applications, conference applications, etc.; if the application platform is a social platform, the applications corresponding to the social platform may include, but are not limited to: address book applications, favorite applications, chat applications, etc. Among them, different applications can be used to implement different functions, for example, the approval application is used to implement functions for reviewing leave, going out, etc.; the conference application is used to implement functions such as booking and holding meetings; and the document application is used to implement functions such as document management (such as storage, editing), etc. For the convenience of explanation, the subsequent embodiments of this application take the application platform as an office platform as an example for corresponding explanation.
[0092] The application credential refers to the unique identifier of the application to be updated, that is, one application corresponds to a unique application credential. The application credential can be, for example, data in any format such as a string, number, text, or picture. The embodiment of the present application does not specifically limit the data format of the data credential.
[0093] The update data refers to the data corresponding to the update operation (addition, deletion, modification, etc.) performed on the application to be updated. The update data may include the application template for updating the template data of the application to be updated. The update data may include parameter fields in the template. For example, the update data corresponding to the approval application for attendance card replacement may include: reason for card replacement field, start time field, end time field, attachment field, etc.; for example, the update data corresponding to the approval application for leave may include: leave type field, start time field, end time field, leave reason field, description attachment field, etc.
[0094] Next, the process of obtaining application credentials is described in detail:
[0095] In one possible implementation, the specific process of obtaining the application credentials of the application to be updated is as follows: first, a credential acquisition request sent by the application client can be received, and the credential acquisition request is generated based on the enterprise identity of the target enterprise associated with the application to be updated and the application key of the application to be updated; then, based on the enterprise identity and the application key, the application credentials of the application to be updated are generated; finally, the application credentials are sent to the application client, so that the application client generates a data update request for the application to be updated based on the application credentials.
[0096] See also Figure 3a , Figure 3a Schematic diagram of a management interface of an approval application provided in an embodiment of the present application. Figure 3aAs shown, the interface may refer to the management interface of the application client entered based on the identity of the management object. The management interface can be used to manage the detailed information of each application in the application platform. Specifically, the management interface can display the application details of the application to be updated (such as the approval application). The so-called application details may include an introduction to the functions implemented by the approval application, the application identifier S301 corresponding to the approval application (for example, agentid=3010040), and the application key secret corresponding to the approval application (for example, as shown in s302). Based on this method, the application key of the application to be updated can be obtained in the management interface. Next, after obtaining the application key of the application to be updated, the enterprise identifier (for example, enterprise ID) of the target enterprise associated with the application to be updated can also be obtained, and then the credential acquisition URL (for example, http: / / qyapi.weixin.qq.com / cgi-bin / gettoken) is called to display the credential interface. Please refer to Figure 3b , Figure 3b Schematic diagram of an interface for obtaining application credentials provided in an embodiment of the present application. Figure 3b As shown, the credential interface displays an application credential generated based on the enterprise ID and the application key secret. The application credential obtained in the credential interface is shown as access_token in S303.
[0097] In a possible implementation, after obtaining the application credentials of the application to be updated, the application client can package the update data of the application to be updated and the application credentials to generate packaged data, and initiate a data update request to the application server based on the packaged data. In the process of packaging data, the update data of the application to be updated and the application credentials can be compressed based on a compression algorithm.
[0098] Optionally, the data update request carries a client identifier of the application client. After obtaining the data update request, the application server can parse the client identifier of the application client and authenticate the application client based on the client identifier. If the authentication is successful, step S202 is triggered. The authentication may include any one or more of security verification and legality verification. In this way, the application client performing data update can be verified, thereby improving the reliability and security of the data processing process.
[0099] S202: After determining that the user has the right to call the open interface of the application platform based on the application credential, the open interface is called to transparently transmit the application credential and update data of the application to be updated in the data update request.
[0100] In the specific implementation, the application server is configured with an openapi middle layer, which can be, for example, a specific URL (Uniform Resource Locator). Based on the openapi middle layer, it is determined whether it has the permission to call the open interface of the application platform. If it has the corresponding interface calling permission, it triggers the call of the open interface to transmit the application credentials and update data of the application to be updated to the application server.
[0101] In a possible implementation, after obtaining the data update request for the application to be updated, the application server may further perform the following steps: first, perform data conversion processing on the application credentials in the data update request to obtain the application attribute information of the application to be updated, and the application attribute information includes the rule information of the application to be updated; then, verify whether the application platform has the calling authority of the open interface according to the rule information; if the calling authority is available, trigger the step of calling the open interface to transparently transmit the application credentials and update data of the application to be updated. In specific implementation, the data conversion processing may include: format conversion of the application credentials to obtain the application attribute information of the application to be updated, and the application attribute information may include: the external application identification id of the application (the so-called external application identification refers to the identification information displayed by the application to external enterprises), the internal application identification appid of the application (the so-called internal application identification refers to the identification information displayed by the application to internal developers), the rule information of the application, the enterprise identification of the target enterprise associated with the application, etc. Further, it may be verified whether the rule information of the application has the calling authority of the corresponding open interface, and whether the rule information belongs to the application data of the system itself.
[0102] Furthermore, after the above-mentioned authentication is passed, the open interface of the application platform can be called based on the remote procedure call method to transparently transmit the application credentials and update data of the application to be updated; then the template data of the application to be updated is obtained from the template database according to the application credentials; next, the update data is formatted according to the template data of the application to be updated. If the format verification passes, it triggers the execution of the step of verifying the update permission of the application to be updated according to the application credentials; wherein the format verification processing includes: any one or more of text type verification, control type verification, and template name verification.
[0103] For example, the template database stores the template data corresponding to each application in the application platform. For example, the template database can store data in the format of k (key)-v (value), where key can be the application credential and value can be the template data of the corresponding application. Then, based on the application credential, the template data to be updated can be obtained from the template database. The template data can include but is not limited to: template name, application parameters (may include multiple fields), template update date, etc. Then, the data format of the incoming update data can be verified based on the obtained template data, for example: 1) determine whether the application template to be updated exists; 2) whether the template name has changed. If so, it is necessary to verify the language type corresponding to the update data. For example, the currently supported language types are as follows: Chinese, English, Traditional Chinese, etc., and it is necessary to verify whether the template name to be updated in the update data belongs to the above three language types. If it does, the verification is passed, and if it does not, the verification fails; 3) verify whether the control type included in the update data belongs to the supported control type. If all the above verifications are passed, execution S203 can be triggered.
[0104] S203: Verify the update permission of the application to be updated according to the application credential.
[0105] In a possible implementation, the application credential has a validity period. If the application credential is within the validity period, the step of verifying the update permission of the application to be updated according to the application credential is triggered; if the application credential is not within the validity period, a feedback message is generated and sent to the application client, wherein the feedback message is used to trigger the application client to reapply for the application credential of the application to be updated. In other words, the application credential is valid for a certain period of time. If the application credential is invalid, the corresponding authentication operation cannot be successfully performed, and the subsequent template data update operation cannot be performed.
[0106] In a possible implementation, the update permission of the application to be updated is verified according to the application credentials, including: first, obtaining the application identifier of the application to be updated according to the application credentials; if the application identifier belongs to the identifier of the system application of the application platform, determining the category to which the application to be updated belongs according to the application identifier; based on the category of the application to be updated, verifying the update permission of the application to be updated. Next, the specific logic included in how to verify the update permission of the application to be updated is described in detail:
[0107] Specifically, the application id of the application to be updated, that is, the agentid (i.e., the internal application identifier), can be obtained through the application credential access_token. The application server backend can make the following judgments through the agentid: If the agentid does not belong to the id of the system application, that is, it belongs to the agentid of the personalized setting, then each personalized application only has the authority to modify its own application, and different agentids cannot be modified, that is, the update data is used to update the template data of the application to be updated. If the agentid belongs to the id of the system application, it can specifically include the following multiple situations.
[0108] 1) If the application to be updated belongs to the system basic application, that is, the update data of the application to be updated belongs to the basic template, such as leave, reimbursement and other basic templates, then it can be determined that the update permission is available.
[0109] See also Figure 4a , Figure 4a Schematic diagram of a template interface of a system basic application provided in an embodiment of the present application. Figure 4a As shown in the figure, the template interface displays various basic applications of the system that belong to the basic template, such as: leave, business trip, outing, overtime, conference room reservation, item collection, car use, approval and other applications. The templates corresponding to the above applications can all be considered basic templates. Figure 4a The basic application shown has the update permission for the application to be updated. Specifically, the template interface is provided with a template adding entry, which may include: controls, options, etc. For example, the template adding entry may be a control S401. In a possible implementation, in response to a selection operation on the template adding entry, the template data of the application to be updated is updated based on the update data. The selection operation may include: any one of a click operation, a double-click operation, a long press operation, and a floating operation.
[0110] 2) If the application to be updated is a self-built application within the system, it does not have update permissions.
[0111] See also Figure 4b As shown, Figure 4b Schematic diagram of a self-built application interface provided by the embodiment of the present application. Figure 4b As shown, the management interface of the self-built application displays the application identifier agentid corresponding to the self-built application, the application key secret of the self-built application, and the administrators with update permissions for the self-built application, such as user 1, user 2, ... user 10.
[0112] 3) If the update data of the application to be updated is a template developed by the service provider, you do not have the update permission.
[0113] See also Figure 4c , Figure 4c This is a schematic diagram of the interface of a server to be developed template provided in the embodiment of the present application. Among them, the service provider development here is also classified as a kind of self-built application, and after the application is created, the information of the developer and the customer service phone number will be displayed, and it can support writing user reviews for the service provider in this interface. Figure 4c As shown, the service provider information displayed in the interface may be as shown in s403, for example, the name of the service provider (DLS Dallas Mavericks Enterprise) may be displayed.
[0114] 4) If the update data of the application to be updated belongs to the group template (bureau template), you do not have the update permission. The bureau template is mainly for the situation where the same enterprise has multiple subsidiaries, that is, the subsidiaries associated with the enterprise can share the same template. For example, if a school has multiple branches, then each branch shares the same exit ticket template.
[0115] See also Figure 4d , Figure 4d Schematic diagram of an interface of an Internet enterprise provided by an embodiment of the present application. Figure 4d As shown, a control S404 of an interconnected enterprise can be set in the group interface, and triggering the control S404 can display the group template corresponding to the enterprise. Figure 4e , Figure 4e It is a schematic diagram of an interface of a group template provided in an embodiment of the present application.
[0116] 5) If the update data (template to be updated) of the application to be updated belongs to the HR assistant related template (such as regularization, recruitment, resignation, transfer), then the update permission is not available. Specifically, the HR assistant related template is provided by the HR assistant application. Here, the authentication control is strengthened, and it is prohibited to modify the template information provided by the HR assistant application based on the openapi open interface.
[0117] See also Figure 4f , Figure 4f Schematic diagram of the interface of a personnel assistant application provided in the embodiment of the present application. Figure 4f As shown in , the HR assistant application can specifically include: onboarding template, regularization template, resignation template, performance template, and recruitment template. Figure 4g , Figure 4g Schematic diagram of an interface of an onboarding template provided in an embodiment of the present application. Figure 4g As shown, the on-the-job template S405 displays parameter fields of the on-the-job template, such as department, name, alias, position, account number, mobile phone, email address, etc.
[0118] 6) If the application to be updated is a punch-in application, it does not have update permission. That is to say, the template to be updated is a punch-in correction template or a switch schedule application template. Both the punch-in correction and switch schedule application templates are provided by the punch-in application, so it is not allowed to modify the template data of other applications through openapi.
[0119] See also Figure 4h , Figure 4h is a schematic diagram of an interface of a clock-in application provided in an embodiment of the present application. The clock-in application interface can be used to provide a clock-in and clock-out template and a shift change application template. It should be noted that, if Figure 4h As shown in S406, if you need to apply to open a punch-in and make-up card template, you need to set the punch-in rules in the punch-in application and check the option for make-up card application; if you want to open a shift transfer application template, you need to set the punch-in rules in the punch-in application and check the option for shift transfer application.
[0120] 7) If the application to be updated is a third-party application, it does not have update permission.
[0121] See also Figure 4i , Figure 4i Schematic diagram of the interface of a third-party card application provided in the embodiment of the present application. Figure 4i As shown, the third-party application may include, for example, application 1, application 2, application 3, application 4, application 5, and application 6. In this application, the template created by the third-party application will be intercepted by authentication at the openapi middle layer.
[0122] 8) If the application to be updated is a reimbursement application, it does not have update permissions.
[0123] See also Figure 4j , Figure 4j Schematic diagram of an interface of a reimbursement template provided in an embodiment of the present application. Figure 4j As shown, the reimbursement template S407 displays parameter fields of the reimbursement template, such as: reimbursement type, reimbursement reason, expense type, occurrence time, expense amount, expense description, attachments, etc.
[0124] It should be understood that the above situation is only an example. In the embodiment of the present application, you can also customize the update permissions corresponding to each system application, and then compare the application identifier corresponding to the application to be updated with the application permissions set by the system to determine whether it has the corresponding update permission.
[0125] S204: If it is determined according to the verification result that the update authority for the application to be updated is possessed, the template data of the application to be updated is updated based on the update data.
[0126] In specific implementation, the verification result may include: the update permission verification passed, or the update permission verification failed. If the verification result is that the update permission verification passed, it is determined that the update permission for the application to be updated is possessed, and then the operation step of updating the template data of the application to be updated based on the update data is triggered; if the verification result is that the update permission verification passed, it is determined that the update permission for the application to be updated is not possessed, and then the update data can be deleted.
[0127] In a possible implementation, the application server updates the template data of the application to be updated based on the update data, which may specifically include the following steps: first, according to the template data of the application to be updated, the update data is parsed to obtain update parameters that match the template data; then, the data in the update data other than the update parameters is deleted, and the template data of the application to be updated is updated based on the update parameters. In a specific implementation, the specific process of parsing the update data to obtain the update parameters that match the template data may include: parsing the update data according to the data format of the template data to obtain each parameter field, and clearing other additional parameters.
[0128] In a possible implementation, after updating the template data of the application to be updated based on the update parameters, the template database can also be updated based on the updated template data; then, the open interface is called by asynchronously calling the message queue to write the updated template data into the storage database; wherein the storage database is used to back up the template data of the application to be updated. In specific implementation, the asynchronous call to MQ (Message Queue) can save the historical data of this modification into the storage database. If the data is deleted due to an erroneous operation later, the corresponding records can be retrieved through the backup, thereby ensuring the security of the data update process.
[0129] In an embodiment of the present application, first, a data update request for an application to be updated in an application platform can be obtained, and the data update request carries the application credentials and update data of the application to be updated; then, after determining that the application platform has the calling authority for the open interface based on the application credentials, the open interface can be called to pass through the application credentials and update data in the data update request; next, the update authority of the application to be updated is verified according to the application credentials, and if it is determined that the application to be updated has the update authority according to the verification result, the template data of the application to be updated is updated based on the update data. It can be seen from this that before the application in the application platform is updated, the present application first needs to have the calling authority of the corresponding open interface, and then needs to verify whether it has the corresponding update authority based on the application credentials. Only when the corresponding application has the update authority can the corresponding update processing operation be performed, which can avoid malicious tampering of data, thereby improving the reliability and security of the data update process.
[0130] See also Figure 5 , Figure 5 It is a schematic diagram of the interaction process of a data processing method provided by an embodiment of the present application. The interaction process of the data processing method can be jointly executed by an application client and an application server, wherein the application server can be composed of the following modules: an openapi middle layer, an svr interface layer, a logic layer (logic layer), a dao layer, an authentication layer, and an MQ message queue. Next, the interaction process between the application client and each of the above modules is described in detail. Specifically, the interaction process specifically includes the following steps S501-S5016:
[0131] S501: The application client sends a credential acquisition request to the openapi middle layer.
[0132] In specific implementation, the application client can enter the management interface based on the identity of the management object (such as Figure 3a As shown in the figure, the application key of the application to be updated and the enterprise ID of the target enterprise associated with the application to be updated are obtained in the management interface. Then, a credential acquisition request is generated based on the application key and enterprise ID of the application to be updated, and the credential acquisition request is sent to the openapi middle layer.
[0133] S502: The openapi middle layer returns the application credentials to the application client.
[0134] In specific implementation, after receiving the credential acquisition request, the openapi middle layer can parse the application key of the application to be updated and the enterprise ID of the target enterprise associated with the application to be updated, and then generate an application credential based on the application key and the enterprise ID, and return the application credential to the application client.
[0135] Optionally, after receiving the credential acquisition request, the client identifier of the application client can also be obtained, and then the application client is authenticated based on the client identifier. After determining that the identity authentication of the application client is passed, the step of generating the application credential based on the application key and the enterprise identifier is triggered. In this way, the security of the data interaction process can be improved.
[0136] S503: The application client sends a data update request to the openapi middle layer.
[0137] In specific implementation, the application client may generate a data update request based on the update data of the application to be updated and the application credentials of the application to be updated; and then send the data update request to the openapi middle layer.
[0138] S504: The openapi middle layer verifies the authority of the application credentials.
[0139] In specific implementation, after receiving the data update request, the openapi middle layer can parse the application credentials in the data update request and perform format conversion on the application credentials to obtain the application attribute information of the application to be updated. The application attribute information may include, for example: the external application identification id of the application (the so-called external application identification refers to the identification information displayed by the application to external enterprises), the internal application identification appid of the application (the so-called internal application identification refers to the identification information displayed by the application to internal developers), the rule information of the application, the enterprise identification of the target enterprise associated with the application, and so on.
[0140] Furthermore, the openapi middle layer can verify whether the rule information of the application has the calling authority of the corresponding open interface, and verify whether the rule information belongs to the application data of the system itself.
[0141] S505: the openapi middle layer requests the svr layer to remotely call the open interface.
[0142] In specific implementation, after the openapi middle layer determines that it has the calling authority of the open interface, the openapi middle layer can call the svr interface based on the remote calling method.
[0143] S506: The svr layer transparently transmits the request parameters to the logic layer.
[0144] In the specific implementation, after the svr layer receives the rpc call request passed in by the openapi middle layer, it transmits the update data that can be carried in the request to the logic layer.
[0145] S507: The Logic layer obtains the template data of the application to be updated from the Dao layer.
[0146] In specific implementation, the Dao layer (data access object) is a relatively low-level, relatively basic operation (specifically, adding, deleting, modifying, and searching for a table). That is to say, a DAO must correspond one-to-one to a table in the database, which encapsulates the basic operations of adding, deleting, modifying, and searching. Therefore, based on the Dao layer, the template data list and template details of each application in the application platform can be obtained, so as to search for template data matching the application to be updated based on the template data list. Specifically, the template data can be searched according to the application name of the application to be updated, so as to obtain the template data of the application to be updated.
[0147] S508: The Dao layer returns the template data of the application to be updated to the Logic layer.
[0148] S509: The Logic layer performs confirmation of basic parameters.
[0149] In specific implementation, the Logic layer can perform format verification processing on the update data according to the template data of the application to be updated. The format verification processing includes: any one or more of text type verification, control type verification, and template name verification.
[0150] For example, the template database stores the template data corresponding to each application in the application platform. For example, the template database can store data in the format of k (key)-v (value), where key can be the application credential and value can be the template data of the corresponding application. Then, based on the application credential, the template data to be updated can be obtained from the template database. The template data can include but is not limited to: template name, application parameters (may include multiple fields), template update date, etc. Then, the data format of the incoming update data can be verified based on the obtained template data, for example: 1) determine whether the application template to be updated exists; 2) whether the template name has changed. If so, it is necessary to verify the language type corresponding to the update data. For example, the currently supported language types are as follows: Chinese, English, Traditional Chinese, etc., and it is necessary to verify whether the template name to be updated in the update data belongs to the above three language types. If so, the verification is passed, and if not, the verification fails; 3) verify whether the control type included in the update data belongs to the supported control type. If all the above verifications are passed, step S5010 is triggered.
[0151] S5010: The Logic layer requests the authentication layer to verify the update permissions.
[0152] In specific implementation, the Logic layer may obtain the application identifier of the application to be updated according to the application credential, and send the application identifier of the application to be updated to the authentication layer.
[0153] S5011: The authentication layer verifies the update authority.
[0154] It should be noted that the specific steps of the authentication layer to verify the update authority of the application to be updated can refer to the relevant steps in the above embodiment, and the embodiment of this application will not be repeated here. In addition, the authentication layer can also perform security verification and legality verification on the update data to obtain the verification result.
[0155] S5012: The authentication layer returns the verification result to the logic layer.
[0156] S5013: The Logic layer requests the Dao layer to update the template database.
[0157] In specific implementation, the Dao layer may respond to the request of the Logic layer and update the template data of the application to be updated based on the update data.
[0158] S5014: The Logic layer asynchronously calls the message queue.
[0159] In specific implementation, the Logic layer uses the method of asynchronously calling the message queue to call the open interface and write the updated template data into the storage database; the storage database is used to back up the template data to be updated. In specific implementation, the asynchronous call to MQ (Message Queue) can save the historical data of this modification into the storage database. If the data is deleted due to an erroneous operation later, the corresponding records can be retrieved through the backup, thereby ensuring the security of the data update process.
[0160] S5015: The MQ layer internally calls the svr interface and writes the changes to the storage.
[0161] S5016: Change storage is written to the Dao layer.
[0162] In the embodiment of the present application, firstly, a data update request for the application to be updated in the application platform can be obtained, and the data update request carries the application credentials and update data of the application to be updated; then, after determining that the application platform has the call permission of the open interface based on the application credentials, the open interface can be called to pass the application credentials and update data in the data update request; next, the update permission of the application to be updated is verified according to the application credentials. If it is determined that the update permission for the application to be updated is possessed according to the verification result, the template data of the application to be updated is updated based on the update data. It can be seen that the present application has the following beneficial effects: (1) the application template storage data can be updated through the openapi open interface, so that the application can meet the requirements of personalization and privatization; (2) strict restrictions are imposed on authentication through access_token to avoid accidental modification or deletion of enterprise data; (3) asynchronous backup operations are performed on each modification through MQ to ensure that there is a fallback mechanism even after an erroneous operation occurs, which plays a role in data protection during the data update process.
[0163] The above detailed description of the method of the embodiment of the present application. In order to facilitate the better implementation of the above scheme of the embodiment of the present application, the device of the embodiment of the present application is provided below accordingly. Next, in combination with the data processing scheme provided in the above embodiment of the present application, the relevant device of the embodiment of the present application is introduced accordingly.
[0164] See also Figure 6 , Figure 6 Schematic diagram of a data processing device provided in an embodiment of the present application. Figure 6 As shown, the data processing device 600 can be applied to the background server mentioned in the above-mentioned embodiment. Specifically, the data processing device 600 can be a computer program (including program code) running in a computer device, for example, the data processing device 600 is an application software; the data processing device 600 can be used to execute the corresponding steps in the data processing method provided in the embodiment of the present application, and the data processing device 600 can specifically include:
[0165] An acquisition unit 601 is used to acquire a data update request for an application to be updated in an application platform, wherein the data update request carries an application credential and update data of the application to be updated;
[0166] Processing unit 602 is used to call the open interface to transparently transmit the application credential and update data of the application to be updated in the data update request after determining that the application platform has the calling authority of the open interface based on the application credential;
[0167] The processing unit 602 is further used to verify the update permission of the application to be updated according to the application credential;
[0168] The processing unit 602 is further configured to update the template data of the application to be updated based on the update data if it is determined according to the verification result that the update authority for the application to be updated is possessed.
[0169] In a possible implementation, the processing unit 602 is further configured to perform the following operations:
[0170] receiving a credential acquisition request sent by an application client, where the credential acquisition request is generated based on an enterprise identifier of a target enterprise associated with the application to be updated and an application key of the application to be updated;
[0171] Generate application credentials for the application to be updated based on the enterprise identity and application key;
[0172] The application credential is sent to the application client, so that the application client generates a data update request for the application to be updated based on the application credential.
[0173] In a possible implementation, after obtaining the data update request for the application to be updated, the processing unit 602 is further configured to perform the following operations:
[0174] Performing data conversion processing on the application credentials in the data update request to obtain application attribute information of the application to be updated, where the application attribute information includes rule information of the application to be updated;
[0175] Verify whether the user has the permission to call the open interface of the application platform according to the rule information;
[0176] If the calling permission is available, the step of calling the open interface to transparently transmit the application credentials and update data of the application to be updated is triggered.
[0177] In a possible implementation, the processing unit 602 is further configured to perform the following operations:
[0178] Call the open interface of the application platform based on the remote procedure call method to transparently transmit the application credentials and update data of the application to be updated;
[0179] Acquire template data of the application to be updated from the template database according to the application credentials;
[0180] Performing format verification on the update data according to the template data of the application to be updated, and if the format verification passes, triggering the step of verifying the update permission of the application to be updated according to the application credential;
[0181] The format verification process includes any one or more of text type verification, control type verification, and template name verification.
[0182] In a possible implementation, the application credential has a validity period; the processing unit 602 is further configured to perform any one of the following steps:
[0183] If the application credential is within the validity period, triggering the step of verifying the update authority of the application to be updated according to the application credential;
[0184] If the application credential is not within the validity period, a feedback message is generated and sent to the application client, wherein the feedback message is used to trigger the application client to reapply for the application credential of the application to be updated.
[0185] In a possible implementation, the processing unit 602 performs update processing on the template data of the application to be updated based on the update data, and is configured to perform the following operations:
[0186] According to the template data of the application to be updated, the update parameters matching the template data are parsed from the update data;
[0187] The data except the update parameters in the update data are deleted, and the template data of the application to be updated is updated based on the update parameters.
[0188] In a possible implementation, the processing unit 602 is further configured to perform the following operations:
[0189] After updating the template data of the application to be updated based on the update parameters, updating the template database based on the updated template data;
[0190] Call the open interface by asynchronously calling the message queue to write the updated template data into the storage database;
[0191] The storage database is used to back up the template data of the application to be updated.
[0192] In a possible implementation, the processing unit 602 verifies the update permission of the application to be updated according to the application credential, and performs the following operations:
[0193] Obtain the application ID of the application to be updated according to the application credential;
[0194] If the application identifier is an identifier of a system application of the application platform, the category to which the application to be updated belongs is determined according to the application identifier;
[0195] Based on the category of the application to be updated, the update permission of the application to be updated is verified.
[0196] In an embodiment of the present application, first, a data update request for an application to be updated in an application platform can be obtained, and the data update request carries the application credentials and update data of the application to be updated; then, after determining that the application platform has the calling authority for the open interface based on the application credentials, the open interface can be called to pass through the application credentials and update data in the data update request; next, the update authority of the application to be updated is verified according to the application credentials, and if it is determined that the application to be updated has the update authority according to the verification result, the template data of the application to be updated is updated based on the update data. It can be seen from this that before the application in the application platform is updated, the present application first needs to have the calling authority of the corresponding open interface, and then needs to verify whether it has the corresponding update authority based on the application credentials. Only when the corresponding application has the update authority can the corresponding update processing operation be performed, which can avoid malicious tampering of data, thereby improving the reliability and security of the data update process.
[0197] See also Figure 7 , Figure 7 It is a structural diagram of a computer device provided in an embodiment of the present application. The computer device 700 is used to execute the steps performed by the first client in the aforementioned method embodiment. The computer device 700 includes: one or more processors 701; one or more input devices 702, one or more output devices 703 and a memory 704. The above-mentioned processor 701, input device 702, output device 703 and memory 704 are connected via a bus 705. Among them, the processor 701 (or CPU (Central Processing Unit)) is the processing core of the computer device, and the processor 701 is suitable for implementing one or more program instructions, and is specifically suitable for loading and executing one or more program instructions to implement the above-mentioned blockchain consensus method process. In addition, the memory 704 can be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk memory; optionally, it can also be at least one memory located away from the aforementioned processor. The memory 704 provides a storage space, which is used to store the operating system of the content playback device. In addition, the storage space is also used to store a computer program, which includes program instructions, and the program instructions are suitable for being called and executed by a processor to execute the various steps of the blockchain consensus method in this application.
[0198] Specifically, the memory 704 is used to store a computer program, where the computer program includes program instructions. The processor 701 calls the program instructions stored in the memory 704 to perform the following operations:
[0199] Obtaining a data update request for an application to be updated in the application platform, wherein the data update request carries an application credential and update data of the application to be updated;
[0200] After determining that the user has the calling authority of the open interface of the application platform based on the application credential, the open interface is called to transparently transmit the application credential and update data of the application to be updated in the data update request;
[0201] Verify the update permission of the application to be updated based on the application credentials;
[0202] If it is determined according to the verification result that the update authority for the application to be updated is possessed, the template data of the application to be updated is updated based on the update data.
[0203] In a possible implementation manner, the processor 701 is further configured to perform the following operations:
[0204] receiving a credential acquisition request sent by an application client, where the credential acquisition request is generated based on an enterprise identifier of a target enterprise associated with the application to be updated and an application key of the application to be updated;
[0205] Generate application credentials for the application to be updated based on the enterprise identity and application key;
[0206] The application credential is sent to the application client, so that the application client generates a data update request for the application to be updated based on the application credential.
[0207] In a possible implementation, after obtaining the data update request for the application to be updated, the processor 701 is further configured to perform the following operations:
[0208] Performing data conversion processing on the application credentials in the data update request to obtain application attribute information of the application to be updated, where the application attribute information includes rule information of the application to be updated;
[0209] Verify whether the user has the permission to call the open interface of the application platform according to the rule information;
[0210] If the calling permission is available, the step of calling the open interface to transparently transmit the application credentials and update data of the application to be updated is triggered.
[0211] In a possible implementation manner, the processor 701 is further configured to perform the following operations:
[0212] Call the open interface of the application platform based on the remote procedure call method to transparently transmit the application credentials and update data of the application to be updated;
[0213] Acquire template data of the application to be updated from the template database according to the application credentials;
[0214] Performing format verification on the update data according to the template data of the application to be updated, and if the format verification passes, triggering the step of verifying the update permission of the application to be updated according to the application credential;
[0215] The format verification process includes any one or more of text type verification, control type verification, and template name verification.
[0216] In a possible implementation, the application credential has a validity period; the processor 701 is further configured to perform any one of the following steps:
[0217] If the application credential is within the validity period, triggering the step of verifying the update authority of the application to be updated according to the application credential;
[0218] If the application credential is not within the validity period, a feedback message is generated and sent to the application client, wherein the feedback message is used to trigger the application client to reapply for the application credential of the application to be updated.
[0219] In a possible implementation, the processor 701 performs update processing on the template data of the application to be updated based on the update data, and is configured to perform the following operations:
[0220] According to the template data of the application to be updated, the update parameters matching the template data are parsed from the update data;
[0221] The data except the update parameters in the update data are deleted, and the template data of the application to be updated is updated based on the update parameters.
[0222] In a possible implementation manner, the processor 701 is further configured to perform the following operations:
[0223] After updating the template data of the application to be updated based on the update parameters, updating the template database based on the updated template data;
[0224] Call the open interface by asynchronously calling the message queue to write the updated template data into the storage database;
[0225] The storage database is used to back up the template data of the application to be updated.
[0226] In a possible implementation, the processor 701 verifies the update permission of the application to be updated according to the application credential, and performs the following operations:
[0227] Obtain the application ID of the application to be updated according to the application credential;
[0228] If the application identifier is an identifier of a system application of the application platform, the category to which the application to be updated belongs is determined according to the application identifier;
[0229] Based on the category of the application to be updated, the update permission of the application to be updated is verified.
[0230] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer storage medium, and a computer program is stored in the computer storage medium, and the computer program includes program instructions. When the processor executes the above program instructions, the method in the corresponding embodiment of the foregoing text can be executed, so it will not be repeated here. For technical details not disclosed in the computer storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application. As an example, the program instructions can be deployed on a computer device, or executed on multiple computer devices located in one place, or, executed on multiple computer devices distributed in multiple locations and interconnected by a communication network.
[0231] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes a computer instruction, and the computer instruction is stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device can execute the method in the above corresponding embodiment, so it will not be repeated here.
[0232] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the above-mentioned program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The above-mentioned storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0233] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A data processing method, characterized in that: include: Obtaining a data update request for an application to be updated in the application platform, wherein the data update request carries an application credential and update data of the application to be updated; After determining that the user has the calling authority of the open interface of the application platform based on the application credential, calling the open interface to transparently transmit the application credential and the update data of the application to be updated in the data update request; Verifying the update permission of the application to be updated according to the application credential; If it is determined according to the verification result that the update authority for the application to be updated is possessed, the template data of the application to be updated is updated based on the update data.
2. The method according to claim 1, characterized in that The method further comprises: Receiving a credential acquisition request sent by an application client, wherein the credential acquisition request is generated according to an enterprise identifier of a target enterprise associated with the application to be updated and an application key of the application to be updated; Generate an application credential for the application to be updated based on the enterprise identifier and the application key; The application credential is sent to the application client, so that the application client generates a data update request for the application to be updated based on the application credential.
3. The method according to claim 1, characterized in that After obtaining the data update request for the application to be updated, the method further includes: Performing data conversion processing on the application credentials in the data update request to obtain application attribute information of the application to be updated, wherein the application attribute information includes rule information of the application to be updated; Verify whether the user has the permission to call the open interface of the application platform according to the rule information; If the calling permission is possessed, the step of calling the open interface to transparently transmit the application credentials and update data of the application to be updated is triggered.
4. The method according to claim 3, characterized in that The method further comprises: Calling the open interface of the application platform based on a remote procedure call to transparently transmit the application credentials and update data of the application to be updated; Acquire the template data of the application to be updated from a template database according to the application credential; Performing format verification on the update data according to the template data of the application to be updated, and if the format verification passes, triggering the step of verifying the update permission of the application to be updated according to the application credential; The format verification process includes any one or more of text type verification, control type verification, and template name verification.
5. The method according to claim 1, characterized in that The application credential has a validity period; the method further comprises any one of the following steps: If the application credential is within the validity period, triggering the step of verifying the update permission of the application to be updated according to the application credential; If the application credential is not within the validity period, a feedback message is generated and sent to the application client, wherein the feedback message is used to trigger the application client to reapply for the application credential of the application to be updated.
6. The method according to claim 1, characterized in that The updating process of the template data of the application to be updated based on the update data includes: According to the template data of the application to be updated, parsing from the update data to obtain update parameters matching the template data; The data in the update data except the update parameters are deleted, and the template data of the application to be updated is updated based on the update parameters.
7. The method according to claim 6, characterized in that The method further comprises: After updating the template data of the application to be updated based on the update parameters, updating the template database based on the updated template data; The open interface is called by asynchronously calling a message queue, and the updated template data is written into a storage database; The storage database is used to back up the template data of the application to be updated.
8. The method according to claim 1, characterized in that The verifying the update permission of the application to be updated according to the application credential includes: Acquire the application identifier of the application to be updated according to the application credential; If the application identifier is an identifier of a system application of the application platform, determining the category to which the application to be updated belongs according to the application identifier; Based on the category of the application to be updated, the update permission of the application to be updated is verified.
9. A data processing device, characterized in that: The device comprises: An acquisition unit, configured to acquire a data update request for an application to be updated in the application platform, wherein the data update request carries an application credential and update data of the application to be updated; A processing unit, configured to, after determining that the user has the calling authority of the open interface of the application platform based on the application credential, call the open interface to transparently transmit the application credential and the update data of the application to be updated in the data update request; The processing unit is further used to verify the update permission of the application to be updated according to the application credential; The processing unit is further configured to update the template data of the application to be updated based on the update data if it is determined according to the verification result that the update authority for the application to be updated is possessed.
10. A computer device, characterized in that: include: a processor adapted to execute a computer program; A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by the processor, the data processing method according to any one of claims 1 to 8 is implemented.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the data processing method according to any one of claims 1 to 8.
12. A computer program product, characterized in that The computer program product comprises a computer program, which is suitable for being loaded by a processor and executing the data processing method according to any one of claims 1 to 8.
Citation Information
Cited By
Bidirectional real-time updated human resource management data center system
CN120509861A
