Sensitivity operation visualization method, device, apparatus and readable storage medium
By generating request messages corresponding to sensitive operations and selecting target message bodies based on subscription requirements, the problem of low visualization intelligence of sensitive operations is solved, personalized data display is achieved, and the display of redundant information is reduced.
Patent Information
- Application Number
- CN202211570993.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-08
- Publication Date
- 2026-02-17
- Estimated Expiration
- 2042-12-08
AI Technical Summary
Existing methods for visualizing sensitive operations result in subscribers seeing excessive data and cannot provide personalized displays based on their needs, resulting in low intelligence.
Generate request messages corresponding to sensitive operations, query data information based on preset visualization templates, and select and send target message bodies based on the client's subscription requirements.
It enables personalized visualization of sensitive operations based on subscription needs, reduces the display of redundant data information, and improves the intelligence of sensitive operation visualization.
Smart Images

Figure CN115757605B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, in particular to a sensitive operation visualization method and device, equipment and readable storage medium. BACKGROUND
[0002] With the development of information technology level, a large amount of information data flows into enterprise application system, in which various sensitive information data puts forward higher requirements for information security protection of enterprise application system.
[0003] At present, the sensitive operation visualization method usually displays all information of sensitive operation, so that different subscription objects view the same data content. However, in actual application, some data content does not need to be displayed to the subscription object, so this method not only causes the subscription object to view redundant data information, but also cannot display according to the subscription demand of the subscription object, thereby causing low intelligence of sensitive operation visualization. SUMMARY
[0004] The main purpose of the present application is to provide a sensitive operation visualization method, device, equipment and readable storage medium, which aims to solve the technical problem of low intelligence of current sensitive operation visualization.
[0005] To achieve the above purpose, the present application provides a sensitive operation visualization method, which comprises:
[0006] If it is detected that the client performs a sensitive operation, a request message corresponding to the sensitive operation is generated;
[0007] According to each preset visualization template, corresponding first data information is queried in the request message;
[0008] Each first data information is added to the corresponding preset visualization template to obtain each subscription message body, wherein the subscription message body corresponds to the preset visualization template;
[0009] Based on the subscription demand of the client, a corresponding target message body is selected from each subscription message body, and the target message body is sent to the client.
[0010] Optionally, the step of generating a request message corresponding to the sensitive operation if it is detected that the client performs a sensitive operation comprises:
[0011] If it is detected that the client performs the sensitive operation, an initial request message corresponding to the sensitive operation is obtained, wherein the request message comprises an initial request header and an initial request body;
[0012] The request message is generated by editing the initial request header and the initial request body.
[0013] Optionally, the step of generating the request message by editing the initial request header and the initial request body comprises:
[0014] A data field set corresponding to the sensitive operation is obtained, and the data field set is added in the initial request body to generate a new request body;
[0015] An operation identifier is added in the initial request header to generate a new request header;
[0016] The new request body and the new request header are combined to obtain the request message.
[0017] Optionally, the step of selecting a target message body corresponding to the subscription demand of the client from the subscription message bodies comprises:
[0018] It is detected whether there is a customized demand in the subscription demand;
[0019] If yes, second data information corresponding to the customized demand is queried in the request message;
[0020] According to the second data information, a customized template is created, and the second data information is added to the customized template to obtain a customized subscription message body, wherein the customized subscription message body corresponds to the customized template;
[0021] If no, subscription object type information in the subscription demand is obtained, and a target message body corresponding to the subscription object type information is selected from the subscription message bodies.
[0022] Optionally, the step of sending the target message body to the client comprises:
[0023] A sensitive level corresponding to the sensitive operation is obtained, and a sending priority of the target message body is determined according to the sensitive level;
[0024] According to the sending priority, the target message body is sequentially sent to the client.
[0025] Optionally, the step of obtaining the data field set corresponding to the sensitive operation comprises:
[0026] Each associated operation corresponding to the sensitive operation is determined, and a first data field is screened from each associated operation;
[0027] Obtaining a second data field corresponding to the sensitive operation, and merging each of the first data field and the second data field to obtain the data field set.
[0028] Optionally, the first data field includes a first original data field and a first operation data field, the second data field includes a second original data field and a second operation data field, and the step of merging each of the first data field and the second data field to obtain the data field set includes:
[0029] merging the first original data field and the second original data field to generate an original data field set;
[0030] merging the first operation data field and the second operation data field to generate an operation data field set;
[0031] merging the original data field set and the operation data field set to obtain the data field set.
[0032] In addition, to achieve the above object, the application further provides a sensitive operation visualization device, which comprises:
[0033] a request message generation module configured to generate a request message corresponding to the sensitive operation if it is detected that the client performs the sensitive operation;
[0034] a first data information query module configured to query corresponding first data information in the request message according to each preset visualization template;
[0035] a subscription message body generation module configured to add each of the first data information into a corresponding preset visualization template to obtain each subscription message body, wherein the subscription message body corresponds to the preset visualization template;
[0036] a target message body sending module configured to select a corresponding target message body from each of the subscription message bodies based on the subscription demand of the client, and send the target message body to the client.
[0037] Optionally, the request message generation module is further configured to:
[0038] if it is detected that the client performs the sensitive operation, obtaining an initial request message corresponding to the sensitive operation, wherein the request message includes an initial request header and an initial request body;
[0039] generating the request message by editing the initial request header and the initial request body.
[0040] Optionally, the request message generation module is further configured to:
[0041] obtaining a data field set corresponding to the sensitive operation, adding the data field set in the initial request body to generate a new request body;
[0042] adding an operation identifier in the initial request header to generate a new request header;
[0043] combining the new request body and the new request header to obtain the request message.
[0044] Optionally, the sending target message body module is further used for:
[0045] detecting whether there is a customized demand in the subscription demand;
[0046] if yes, querying second data information corresponding to the customized demand in the request message;
[0047] creating a customized template corresponding to the second data information according to the second data information, and adding the second data information into the customized template to obtain a customized subscription message body, wherein the customized subscription message body corresponds to the customized template;
[0048] if no, obtaining subscription object type information in the subscription demand, and selecting a corresponding target message body from each subscription message body according to the subscription object type information.
[0049] Optionally, the sending target message body module is further used for:
[0050] obtaining a sensitive level corresponding to the sensitive operation, and determining a sending priority of the target message body according to the sensitive level;
[0051] sending the target message body to the client in sequence according to the sending priority.
[0052] Optionally, the generating request message module is further used for:
[0053] determining each associated operation corresponding to the sensitive operation, and screening a first data field from each associated operation;
[0054] obtaining a second data field corresponding to the sensitive operation, and merging each first data field and the second data field to obtain the data field set.
[0055] Optionally, the generating request message module is further used for:
[0056] merging the first original data field and the second original data field to generate an original data field set;
[0057] merge the first operation data field and the second operation data field to generate an operation data field set;
[0058] merge the original data field set and the operation data field set to obtain the data field set.
[0059] The application further provides a sensitive operation visualization device, which comprises a memory, a processor and a sensitive operation visualization program stored in the memory and executable on the processor, and the sensitive operation visualization program implements the steps of the sensitive operation visualization method when executed by the processor.
[0060] The application further provides a readable storage medium, which stores a sensitive operation visualization program, and the sensitive operation visualization program implements the steps of the sensitive operation visualization method when executed by a processor.
[0061] The application further provides a computer program product, which comprises a computer program, and the computer program implements the steps of the sensitive operation visualization method when executed by a processor.
[0062] The application provides a sensitive operation visualization method, device, equipment and readable storage medium. Compared with the current mode of displaying all information of a sensitive operation, the application first generates a request message corresponding to the sensitive operation if it is detected that a client performs the sensitive operation; according to each preset visualization template, first data information corresponding to the request message is queried; each first data information is added to a corresponding preset visualization template to obtain each subscription message body, wherein the subscription message body corresponds to the preset visualization template; based on a subscription demand of the client, a target message body corresponding to each subscription message body is selected and sent to the client. Through the templating of the request message of the sensitive operation, the visualization template of the sensitive operation is sent according to the subscription demand of the client, the purpose of overcoming the technical defect that the current subscription object can view redundant data information and cannot be displayed according to the subscription demand of the subscription object, and the intelligence of the sensitive operation visualization is improved. BRIEF DESCRIPTION OF DRAWINGS
[0063] Figure 1 a flowchart of a first embodiment of the sensitive operation visualization method of the application;
[0064] Figure 2 a schematic diagram of a server connection relationship involved in the sensitive operation visualization method of the application;
[0065] Figure 3A transaction service diagram involved in the sensitive operation visualization method of the present application;
[0066] Figure 4 A device diagram involved in the sensitive operation visualization method of the present application;
[0067] Figure 5 A device structure diagram of a hardware running environment involved in the sensitive operation visualization method of the present application.
[0068] The implementation, functional features and advantages of the present application will be further described with reference to the accompanying drawings in conjunction with the embodiments. DETAILED DESCRIPTION
[0069] In order to make the above objectives, features and advantages of the present application more apparent and understandable, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the accompanying drawings. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of protection of the present application.
[0070] Currently, the sensitive operation visualization method usually displays all information of the sensitive operation, so that different subscription objects view the same data content. However, in actual application, some data content does not need to be displayed to the subscription object, for example, the operation personnel does not need to view the code information, but the technical personnel needs to view it. Therefore, this method not only causes the subscription object to view redundant data information, but also cannot display according to the subscription demand of the subscription object, thereby causing the intelligence of the sensitive operation visualization to be low.
[0071] The embodiments of the present application provide a sensitive operation visualization method. In the first embodiment of the sensitive operation visualization method of the present application, referring to Figure 1 , the sensitive operation visualization method comprises the following steps.
[0072] In step S10, if it is detected that the client performs a sensitive operation, a request message corresponding to the sensitive operation is generated.
[0073] In step S20, according to each preset visualization template, corresponding first data information is queried in the request message.
[0074] In step S30, each first data information is added to the corresponding preset visualization template, to obtain each subscription message body, wherein the subscription message body corresponds to the preset visualization template.
[0075] Step S40, based on the subscription demand of the client, selecting a corresponding target message body in each of the subscription message bodies, and sending the target message body to the client.
[0076] In the present embodiment, it should be noted that the execution subject of the present embodiment is a server, which is connected with a client through a third-party MQ (Message Queue) server, referring to Figure 2 , the MQ server is used for decoupling and reducing service peak pressure, and each of the subscription message bodies generated by the server can be stored in the MQ server for calling by the client; the sensitive operation refers to an add, delete or modify operation on data, which can include sensitive data and non-sensitive data; the preset visual template refers to a visual template defined in advance in the server, which can be a blank template or a one-to-one corresponding label template defined for each subscription object of the client; the subscription message body is used for encapsulating message data sent to the client, which can include template data obtained by adding each of the first data information to a corresponding preset visual template; the subscription demand refers to the demand of each subscription object of the client for the sensitive operation in display, and the subscription object can be each functional management personnel, ordinary user, R&D personnel, product operation, product operation and maintenance, etc. of the client.
[0077] As an example, steps S10 to S40 include: if a sensitive operation such as data addition, data editing or data deletion performed by the client is detected, an initial request message corresponding to the sensitive operation is generated, the initial request message is edited to generate the request message, wherein the initial request message includes initial request head information and an initial request body, the initial request head information can retain the request IP and operator ID corresponding to the sensitive operation, and the initial request body is used to record all data information of the sensitive operation; first data information corresponding to a preset display field in each preset visualization template is queried in the request message according to the preset display field; each first data information is added to the corresponding preset display field to generate each visualization template, and each visualization template is encapsulated into each subscription message body, wherein the subscription message body is used for the client to parse to obtain each visualization template, the subscription message body corresponds to the preset visualization template, that is, one preset visualization template corresponds to one subscription message body; based on the subscription demand of the client, it is detected whether there is a customized demand in the subscription demand, that is, it is detected whether the subscription object corresponding to the subscription demand needs to be visualized by a customized template, if there is a customized demand, a customized template of the sensitive operation is created according to the customized demand, second data information corresponding to the customized template is queried in the request message, the second data information is written into the customized template to obtain a customized visualization template, and the customized visualization template is also encapsulated into a customized subscription message body, and the customized subscription message body is sent to the client, and if there is no customized demand, the visualization template is pushed according to the object type of the subscription object.
[0078] For example, if it is detected that the client has performed deletion of transaction data, a request message corresponding to the deletion operation is generated, the IP address and operator ID performing the operation are recorded in the message head of the request message, and the deleted data field is recorded in the message body, and the request message is sent to the server for processing. Figure 3Since the deletion of the transaction data also affects the inventory quantity, the transaction amount and the order quantity, the inventory quantity field, the transaction amount field and the order quantity field are also recorded in the message body. Assuming that the preset visualization template 1 only displays the inventory quantity field, the corresponding subscription object is the warehouse manager, the preset visualization template 2 displays the transaction data field, the inventory quantity field, the transaction amount field and the order quantity field, and the corresponding subscription object is the general manager. Assuming that the subscription demand of the warehouse manager is obtained, if there is a customization demand in the subscription demand, that is, the warehouse manager needs to view all the data, a customized template 3 including the transaction data field, the inventory quantity field, the transaction amount field and the order quantity field is created, and the transaction data, the inventory quantity, the transaction amount and the order quantity are filled in, to obtain a customized visualization template 3. The customized visualization template 3 is encapsulated into a customized subscription message body and pushed to the warehouse manager. If there is no customization demand in the subscription demand, the preset visualization template 1 is directly pushed. A template of the most original database field change can also be defined for the R&D personnel. The same sensitive operation log can display different contents according to different templates, and different objects can display different templates, so that the intelligence of the sensitive operation visualization is improved.
[0079] The step of generating the request message corresponding to the sensitive operation if it is detected that the sensitive operation is performed by the client includes:
[0080] In step S11, if it is detected that the sensitive operation is performed by the client, an initial request message corresponding to the sensitive operation is obtained, wherein the request message includes an initial request header and an initial request body.
[0081] In step S12, the request message is generated by editing the initial request header and the initial request body.
[0082] As an example, steps S11 to S12 include: if it is detected that the sensitive operation is performed by the client, an initial request message corresponding to the sensitive operation is obtained, wherein the request message includes an initial request header and an initial request body, and different sensitive operations correspond to different initial request messages; an operation identifier is added in the initial request header, and all data information involved in the sensitive operation is written in the initial request body, so as to generate the request message, wherein the request message can also include a sensitive operation type, that is, three operations of adding, deleting and modifying.
[0083] The step of generating the request message by editing the initial request header and the initial request body includes:
[0084] In step S121, a data field set corresponding to the sensitive operation is obtained, and the data field set is added in the initial request body to generate a new request body.
[0085] Step S122, adding an operation identifier in the initial request header to generate a new request header;
[0086] Step S123, combining the new request body and the new request header to obtain the request message.
[0087] In this embodiment, it should be noted that since one sensitive operation can trigger changes of multiple functional modules, multiple operation results are obtained, in order to associate the multiple operation results, the embodiment adopts the way of writing an operation identifier, which can be a globally unique identifier, which will follow throughout the flow process of the sensitive operation. For example, deleting a piece of data in a transaction data table will cause changes in inventory data in an inventory table and changes in amount data in a transaction amount table, therefore, a globally unique identifier is written in the request message of the deletion operation, and the identifier will exist throughout the process of changing inventory data and changing amount data. By adding the globally unique identifier, not only can all operation results of the sensitive operation be associated, but also when querying the sensitive operation record, all operation results involved in the sensitive operation can be queried according to the globally unique identifier, wherein each subscription message body can also carry a corresponding template ID, that is, the sensitive operation record can be queried according to the template ID, operator ID or sensitive operation type.
[0088] As an example, steps S121 to S123 include: obtaining a data field set corresponding to the sensitive operation, adding the data field set in the initial request body to generate a new request body, wherein the data field set is obtained by merging the first data field and the second data field, the first data field is obtained from each associated operation corresponding to the sensitive operation, and the second data field is obtained from the sensitive operation itself; adding a globally unique identifier in the initial request header, i.e., the head information, to generate a new request header; combining the new request body and the new request header to obtain the request message.
[0089] For example, deleting transaction data is an operation of the sensitive operation itself, i.e., the transaction data is the second data field, and the changes in inventory data and the changes in transaction amount are associated operations of deleting transaction data, i.e., the inventory data and the transaction amount are the first data field. Merging the first data field and the second data field, i.e., obtaining the complete request information of deleting transaction data, which contains all operation results of the sensitive operation.
[0090] The step of selecting a corresponding target message body in each subscription message body based on the subscription demand of the client includes:
[0091] Step S41, detecting whether there is a customization demand in the subscription demand;
[0092] Step S42, if yes, querying second data information corresponding to the customization demand in the request message;
[0093] Step S43, creating a corresponding customization template according to the second data information, and adding the second data information into the customization template to obtain a customized subscription message body, wherein the customized subscription message body corresponds to the customization template;
[0094] Step S44, if no, obtaining subscription object type information in the subscription demand, and selecting a target message body in each subscription message body according to the subscription object type information.
[0095] As an example, steps S41 to S44 include that whether there is a customization demand in the subscription demand can be detected through a customization demand label, wherein the customization demand can contain second data information that needs to be visualized; if there is a customization demand, second data information is queried in the request message, i.e., each field corresponding to the customization data information is queried; a customization template containing display fields corresponding to the second data information is created according to the second data information, and the second data information is added to the display fields to generate a customized visualization template, which is encapsulated into a customized subscription message body and pushed to a corresponding subscription object, wherein the customized subscription message body corresponds to the customization template; if there is no customization demand, subscription object type information in the subscription demand can be obtained through a subscription object type label to determine a subscription object type corresponding to the subscription demand, and a target template corresponding to the subscription object type is selected in each visualization template.
[0096] For example, assuming that the customization requirement label is 0 and 1, 0 represents no customization requirement, and 1 represents customization requirement, if it is 1, the corresponding customizable data information that needs to be visualized is carried, such as the subscription requirement of the warehouse manager carrying label 1, that is, the warehouse manager has customization requirement, and the customizable data information that needs to be visualized is inventory data and transaction amount data, the changes of the inventory data and the transaction amount data are queried in the request body of the request message, and the changed data content is generated to push the customization template to the warehouse manager, if the subscription requirement of the warehouse manager carries label 0, that is, the warehouse manager has no customization requirement, since the server does not know that the subscription requirement comes from the warehouse manager at this time, the corresponding subscription object type is determined through the subscription object type label in the subscription requirement, it can be assumed that the subscription object type label of the warehouse manager is A, that is, when the server receives a subscription requirement carrying A, it can be determined that it comes from the warehouse manager, and the target template corresponding to the warehouse manager is pushed.
[0097] The step of sending the target message body to the client comprises:
[0098] In step S45, the sensitive level corresponding to the sensitive operation is obtained, and the sending priority of the target message body is determined according to the sensitive level;
[0099] In step S46, the target message body is sequentially sent to the client according to the sending priority.
[0100] In this embodiment, it should be noted that in actual application, the client will generate countless sensitive operations, that is, multiple subscription message bodies will be pushed to the subscription object, in order to avoid the subscription object from missing important sensitive operation records due to simultaneously receiving multiple push messages, therefore, the priority of each sensitive operation is divided, and the push is performed according to the priority, further improving the intelligence of sensitive operation visualization.
[0101] As an example, steps S45 to S46 comprise: obtaining the sensitive level corresponding to the sensitive operation, and performing sending priority sorting on each target message body according to the sensitive level, wherein the sending priority corresponds to the sensitive level, that is, the higher the sensitive level, the more priority to send to the client, the sensitive level can be divided according to the field sensitivity and operation influence degree; the target message body is sequentially sent to the client according to the sending priority.
[0102] For example, the information such as login password, name, bank card number, and amount is a high-sensitive field, and the influence degree of the deletion operation is larger than that of the modification operation and the addition operation, so when the sensitive operation of deleting the login password occurs, the request message is pushed to the client in priority, and for example, the highest manager of an application subscribes to the request messages of each function module, when the sensitive operation involving the amount data is performed, the push is performed in priority, if the normal operation such as modifying the commodity information or adding the commodity is performed, the push can be performed after the messages with high priority are all pushed, or the push is not performed.
[0103] The step of obtaining the data field set corresponding to the sensitive operation includes:
[0104] In step S1211, each associated operation corresponding to the sensitive operation is determined, and each first data field is filtered in each associated operation.
[0105] In step S1212, a second data field corresponding to the sensitive operation is obtained, each first data field and the second data field are combined, and the data field set is obtained.
[0106] As an example, steps S1211 to S1212 include: obtaining each associated operation corresponding to the sensitive operation, filtering the first data field changed in the data field of each associated operation, wherein the first data field can include a first original data field and a first operation data field; obtaining a second data field corresponding to the sensitive operation itself, combining each first data field and the second data field, and obtaining the data field set, wherein the second data field can include a second original data field and a second operation data field.
[0107] The first data field includes a first original data field and a first operation data field, the second data field includes a second original data field and a second operation data field, and the step of combining each first data field and the second data field to obtain the data field set includes:
[0108] In step S12121, the first original data field and the second original data field are combined to generate an original data field set.
[0109] In step S12122, the first operation data field and the second operation data field are combined to generate an operation data field set.
[0110] In step S12123, the original data field set and the operation data field set are combined to obtain the data field set.
[0111] In this embodiment, it should be noted that in order to more clearly show the operation result of the sensitive operation, the data field before the change and the data field after the change involved in the sensitive operation are both recorded in this embodiment to generate a complete visual template.
[0112] As an example, steps S12121 to S12123 include: merging the first original data field and the second original data field to generate an original data field set, wherein the first original field refers to the initial data field before the change in each of the associated operations, and the second original data field refers to the initial data field before the change corresponding to the sensitive operation itself; merging the first operation data field and the second operation data field to generate an operation data field set, wherein the first operation data field refers to the operation data field after the change in each of the associated operations, and the second original data field refers to the operation data field after the change corresponding to the sensitive operation itself; and merging the original data field set and the operation data field set to obtain the data field set.
[0113] For example, taking the sensitive operation of modifying transaction data as an example, assuming that the initial value of the transaction data is 10, the corresponding transaction amount is 500, the warehouse inventory is 100, the modified transaction data is 5, the corresponding transaction amount is changed to 250, and the warehouse inventory is 50, then 10 is the second original data field, 5 is the second operation data field, 500 and 100 are the first original data field, 250 and 50 are the first operation data field, 500, 100, and 10 are merged to obtain the original data field set, 250, 50, and 5 are merged to obtain the operation data field set, and the original data set and the operation data field set are merged to generate the data field set. The data field set represents the data change of the sensitive operation of modifying the transaction data itself and the data change corresponding to each associated operation, that is, it embodies all the operation results of the sensitive operation.
[0114] The embodiment provides a sensitive operation visualization method and device, equipment and a readable storage medium. Compared with the current mode of displaying all information of a sensitive operation, the embodiment first generates a request message corresponding to the sensitive operation if it is detected that a client performs the sensitive operation; queries corresponding first data information in the request message according to each preset visualization template; adds each first data information to a corresponding preset visualization template to obtain each subscription message body, wherein the subscription message body corresponds to the preset visualization template; selects a corresponding target message body in each subscription message body based on a subscription demand of the client, and sends the target message body to the client. Through the templating of the request message of the sensitive operation, the purpose of sending the visualization template of the sensitive operation according to the subscription demand of the client is achieved, and the technical defect that the current subscription object can view redundant data information and cannot perform corresponding display according to the subscription demand of the subscription object, thereby reducing the intelligence of the sensitive operation visualization is overcome. Therefore, the intelligence of the sensitive operation visualization is improved.
[0115] In addition, the embodiment of the application further provides a sensitive operation visualization device, as shown in the accompanying drawings, Figure 4 The sensitive operation visualization device comprises:
[0116] The request message generation module 10 is configured to generate a request message corresponding to the sensitive operation if it is detected that a client performs the sensitive operation.
[0117] The first data information query module 20 is configured to query corresponding first data information in the request message according to each preset visualization template.
[0118] The subscription message body generation module 30 is configured to add each first data information to a corresponding preset visualization template to obtain each subscription message body, wherein the subscription message body corresponds to the preset visualization template.
[0119] The target message body sending module 40 is configured to select a corresponding target message body in each subscription message body based on a subscription demand of the client, and send the target message body to the client.
[0120] Optionally, the request message generation module 10 is further configured to:
[0121] If it is detected that a client performs the sensitive operation, an initial request message corresponding to the sensitive operation is acquired, wherein the request message comprises an initial request header and an initial request body.
[0122] The initial request header and the initial request body are edited to generate the request message.
[0123] Optionally, the request message generating module 10 is further configured to:
[0124] acquire a data field set corresponding to the sensitive operation, add the data field set in the initial request body, and generate a new request body;
[0125] add an operation identifier in the initial request header, and generate a new request header;
[0126] combine the new request body and the new request header to obtain the request message.
[0127] Optionally, the target message body sending module 40 is further configured to:
[0128] detect whether there is a customized demand in the subscription demand;
[0129] if yes, query second data information corresponding to the customized demand in the request message;
[0130] create a customized template according to the second data information, add the second data information into the customized template, and obtain a customized subscription message body, wherein the customized subscription message body corresponds to the customized template;
[0131] if no, acquire subscription object type information in the subscription demand, and select a corresponding target message body from the subscription message bodies according to the subscription object type information.
[0132] Optionally, the target message body sending module 40 is further configured to:
[0133] acquire a sensitive level corresponding to the sensitive operation, and determine a sending priority of the target message body according to the sensitive level;
[0134] send the target message body to the client in sequence according to the sending priority.
[0135] Optionally, the request message generating module 10 is further configured to:
[0136] determine each associated operation corresponding to the sensitive operation, and filter first data fields from each associated operation;
[0137] acquire second data fields corresponding to the sensitive operation, and combine each first data field and the second data field to obtain the data field set.
[0138] Optionally, the request message generating module 10 is further configured to:
[0139] combine the first original data field and the second original data field to generate an original data field set.
[0140] merge the first operation data field and the second operation data field to generate an operation data field set;
[0141] merge the original data field set and the operation data field set to obtain the data field set.
[0142] The sensitive operation visualization device provided in the application adopts the sensitive operation visualization method in the above embodiments, and solves the technical problem of low intelligence of the current sensitive operation visualization. Compared with the prior art, the sensitive operation visualization device provided in the embodiments of the application has the same beneficial effects as the sensitive operation visualization method provided in the above embodiments, and other technical features in the sensitive operation visualization device are the same as the features disclosed in the above embodiments, and thus will not be described herein.
[0143] The embodiments of the application provide an electronic device, which comprises at least one processor, and a memory connected with the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the sensitive operation visualization method in the above embodiment one.
[0144] Reference will now be made to the following description Figure 5 , which shows a structural schematic diagram of an electronic device suitable for implementing the embodiments of the present disclosure. The electronic device in the embodiments of the present disclosure can include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle terminals (such as vehicle navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. Figure 5 The electronic device shown is only an example, and should not bring any limitation to the functions and use range of the embodiments of the present disclosure.
[0145] As shown in Figure 5 , the electronic device can include a processing device (such as a central processing unit, a graphics processing unit, or the like) that can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) or loaded into a random access memory (RAM) from a storage device. In the RAM, various programs and data required for the operation of the electronic device are also stored. The processing device, the ROM, and the RAM are connected to each other through a bus. An input / output (I / O) interface is also connected to the bus.
[0146] Generally, the following systems can be connected to the I / O interface: input devices including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices including, for example, a magnetic tape, a hard disk, etc.; and communication devices. The communication devices can allow the electronic device to communicate wirelessly or wiredly with other devices to exchange data. Although the electronic device is illustrated as having various systems, it is understood that all of the illustrated systems are not required to implement or have. More or less systems can be implemented or have instead.
[0147] In particular, the processes described above with reference to the flowcharts can be implemented as a computer software program according to embodiments of the present disclosure. For example, embodiments of the present disclosure 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 illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via the communication device, or installed from a storage device, or installed from a ROM. When the computer program is executed by the processing device, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are performed.
[0148] The electronic device provided by the present application adopts the sensitive operation visualization method in the above-mentioned embodiments, and solves the technical problem of low intelligence of the current sensitive operation visualization. Compared with the prior art, the electronic device provided by the embodiments of the present application has the same beneficial effects as the sensitive operation visualization method provided by the above-mentioned embodiments, and other technical features in the electronic device are the same as the features disclosed in the above-mentioned embodiment method, which will not be repeated here.
[0149] It should be understood that parts of the present disclosure can be realized by hardware, software, firmware or a combination thereof. In the description of the above-mentioned embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0150] The above is merely specific embodiments of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical scope disclosed by the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
[0151] The present embodiment provides a computer readable storage medium having stored thereon computer readable program instructions for performing the sensitive operation visualization method in the above-mentioned embodiment one.
[0152] The computer readable storage medium provided by the embodiments of the present application may, for example, be a U disk, but is not limited to an electric, magnetic, optical, electromagnetic, infrared, or semiconductor system, system, or device, or any combination thereof. More specific examples of the computer readable storage medium may include, but are not limited to, an electric connection with one or more conductive wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the embodiments, the computer readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer readable storage medium can be transmitted by any suitable medium, including but not limited to: electric wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0153] The above computer readable storage medium may be contained in an electronic device; or may exist separately without being assembled into an electronic device.
[0154] The above computer readable storage medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to: if it is detected that a client performs a sensitive operation, generate a request message corresponding to the sensitive operation; query corresponding first data information in the request message according to each preset visualization template; add each first data information to the corresponding preset visualization template to obtain each subscription message body, wherein the subscription message body corresponds to the preset visualization template; based on the subscription demand of the client, select a corresponding target message body in each subscription message body, and send the target message body to the client.
[0155] Computer program code for carrying out operations of the present disclosure can be written in one or more programming languages or combinations thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" language or similar programming languages. Program code can be executed entirely on a user computer, partially on a user computer, as a separate software package, partially on a user computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0156] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0157] The modules described in the embodiments of the present disclosure can be implemented by software, or by hardware. In some cases, the name of the module does not limit the unit itself.
[0158] The computer readable storage medium provided by the present application stores computer readable program instructions for executing the sensitive operation visualization method, and solves the technical problem of low intelligence of the sensitive operation visualization. Compared with the prior art, the computer readable storage medium provided by the embodiment of the present application has the same beneficial effects as the sensitive operation visualization method provided by the above-mentioned embodiment, and will not be described here.
[0159] The present application also provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of the sensitive operation visualization method as described above.
[0160] The computer program product provided by the present application solves the technical problem of low intelligence of the sensitive operation visualization. Compared with the prior art, the computer program product provided by the embodiment of the present application has the same beneficial effects as the sensitive operation visualization method provided by the above-mentioned embodiment, and will not be described here.
[0161] The above is only the preferred embodiment of the present application, and does not limit the patent scope of the present application, and any equivalent structure or equivalent process transformation using the content of the specification and drawings, or direct or indirect application in other related technical fields, are also included in the patent processing scope of the present application.
Claims
1. A method of visualizing sensitive operations, characterized by, The sensitive operation visualization method comprises: If it is detected that the client performs a sensitive operation, a request message corresponding to the sensitive operation is generated; According to each preset visualization template, corresponding first data information is queried in the request message; Each first data information is added to the corresponding preset visualization template to obtain each subscription message body, wherein the subscription message body corresponds to the preset visualization template, the subscription message body is used for encapsulating message data sent to the client, and the subscription message body comprises template data obtained after each first data information is added to the corresponding preset visualization template; Based on the subscription demand of the client, a corresponding target message body is selected from each subscription message body, and the target message body is sent to the client; The step of selecting the corresponding target message body from each subscription message body based on the subscription demand of the client and sending the target message body to the client comprises: Detecting whether a customized demand exists for a subscription object corresponding to the subscription demand through a customized demand tag, wherein the customized demand can include second data information that needs to be visualized; If the customized demand exists, a customized template including a display field corresponding to the second data information is created according to the second data information, and the second data information is added to the display field to generate a customized visualization template; The customized visualization template is encapsulated into a customized subscription message body and pushed to the corresponding subscription object, wherein the customized subscription message body corresponds to the customized template.
2. The sensitive operation visualization method of claim 1, wherein, The step of generating the request message corresponding to the sensitive operation if it is detected that the client performs the sensitive operation comprises: If it is detected that the client performs the sensitive operation, an initial request message corresponding to the sensitive operation is obtained, wherein the request message comprises an initial request header and an initial request body; The request message is generated by editing the initial request header and the initial request body.
3. The sensitive operation visualization method of claim 2, wherein, The step of generating the request message by editing the initial request header and the initial request body comprises: A data field set corresponding to the sensitive operation is obtained, and the data field set is added to the initial request body to generate a new request body; An operation identifier is added to the initial request header to generate a new request header; The new request body and the new request header are combined to obtain the request message.
4. The sensitive operation visualization method of claim 1, wherein, The step of selecting the corresponding target message body from each subscription message body based on the subscription demand of the client further comprises: Detecting whether a customized demand exists in the subscription demand; If not, subscription object type information in the subscription demand is obtained, and the corresponding target message body is selected from each subscription message body according to the subscription object type information.
5. The sensitive operation visualization method of claim 1, wherein, The step of sending the target message body to the client comprises: A sensitive level corresponding to the sensitive operation is obtained, and the sending priority of the target message body is determined according to the sensitive level; According to the sending priority, the target message body is sequentially sent to the client.
6. The sensitive operation visualization method of claim 3, wherein, The step of acquiring the data field set corresponding to the sensitive operation comprises: determining each associated operation corresponding to the sensitive operation, screening a first data field in each associated operation; acquiring a second data field corresponding to the sensitive operation, and merging each first data field and the second data field to obtain the data field set.
7. The sensitive operation visualization method of claim 6, wherein, The first data field comprises a first original data field and a first operation data field, the second data field comprises a second original data field and a second operation data field, and the step of merging each first data field and the second data field to obtain the data field set comprises: merging the first original data field and the second original data field to generate an original data field set; merging the first operation data field and the second operation data field to generate an operation data field set; merging the original data field set and the operation data field set to obtain the data field set.
8. A sensitive operation visualizing device, characterized by The sensitive operation visualization device comprises: a request message generation module configured to generate a request message corresponding to the sensitive operation if it is detected that the client performs the sensitive operation; a first data information query module configured to query corresponding first data information in the request message according to each preset visualization template; a subscription message body generation module configured to add each first data information to a corresponding preset visualization template to obtain each subscription message body, wherein the subscription message body corresponds to the preset visualization template, the subscription message body is used for encapsulating message data sent to the client, and the subscription message body comprises template data obtained after each first data information is added to a corresponding preset visualization template; a target message body sending module configured to select a corresponding target message body from each subscription message body based on a subscription requirement of the client, and send the target message body to the client; The target message body sending module is further configured to detect whether a subscription object corresponding to the subscription requirement exists a customization requirement through a customization requirement label, wherein the customization requirement can contain second data information that needs to be visualized; if the customization requirement exists, a customized template containing a display field corresponding to the second data information is created according to the second data information, and the second data information is added to the display field to generate a customized visualization template; the customized visualization template is encapsulated into a customized subscription message body and pushed to the corresponding subscription object, wherein the customized subscription message body corresponds to the customized template.
9. An electronic device, comprising: The electronic device comprises: at least one processor; and a memory connected in communication with the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the sensitive operation visualization method in any one of claims 1 to 7.
10. A readable storage medium, characterized by, The readable storage medium has stored thereon a program for implementing the sensitive operation visualization method, and the program for implementing the sensitive operation visualization method is executed by a processor to implement the steps of the sensitive operation visualization method in any one of claims 1 to 7.
Citation Information
Patent Citations
A heterogeneous database change real-time notification method
CN109284312A
Message notification method and device
CN110430121A
Data visualization method and device
CN113505183A