CN118626186A - Data processing method, device, electronic equipment and storage medium - Google Patents
Data processing method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN118626186A CN118626186A CN202410714909.7A CN202410714909A CN118626186A CN 118626186 A CN118626186 A CN 118626186A CN 202410714909 A CN202410714909 A CN 202410714909A CN 118626186 A CN118626186 A CN 118626186A
- Authority
- CN
- China
- Prior art keywords
- page
- event
- type
- information
- processing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title abstract description 8
- 238000012545 processing Methods 0.000 claims abstract description 142
- 238000000034 method Methods 0.000 claims abstract description 59
- 230000008569 process Effects 0.000 claims abstract description 28
- 238000012544 monitoring process Methods 0.000 claims abstract description 14
- 230000006978 adaptation Effects 0.000 claims description 32
- 238000013507 mapping Methods 0.000 claims description 21
- 238000004590 computer program Methods 0.000 claims description 16
- 238000006243 chemical reaction Methods 0.000 claims description 11
- 239000011159 matrix material Substances 0.000 claims description 8
- 230000000694 effects Effects 0.000 abstract description 14
- 238000010586 diagram Methods 0.000 description 12
- 238000004891 communication Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a data processing method, a data processing device, electronic equipment and a storage medium, and relates to the technical field of computers. One embodiment of the method comprises the following steps: monitoring user operation of a page, acquiring corresponding operation page information and operation information to generate a first operation event operated by the user, converting the first operation event into a second operation event, and calling an associated second processing program to process the second operation event to obtain a second processing result; responding to the page loading instruction, and acquiring a corresponding type parameter to determine the display type of the page loading instruction; and responding to the display type being the second type, acquiring page information to be loaded, inquiring the associated second operation event to acquire a corresponding second processing result and sending the second processing result. According to the embodiment, the problems that the display data and the display screen are not adapted easily due to the screen-throwing display mode, the screen display effect is poor, and the user experience effect is reduced can be solved.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a data processing method, apparatus, electronic device, and storage medium.
Background
In various service scenes, in order to facilitate the understanding of users on service information, a multi-dimensional user experience scene can be built generally, and multi-type display windows are set so as to better display service information and improve the experience effect of users. In the related art, a display screen may be set in a display window of a user experience scene, so that operation information of service demonstration is displayed in the display window in a screen throwing manner, so that a user can display content experience service operation. However, the display data and the display screen are not adapted easily due to the screen-throwing display mode, so that the screen display effect is poor, and the user experience effect is reduced.
Disclosure of Invention
In view of the above, embodiments of the present invention provide a method, an apparatus, an electronic device, and a storage medium for processing data, which can solve the problem that a screen display mode easily causes discomfort between display data and a display screen, resulting in poor screen display effect and reduced user experience effect.
To achieve the above object, according to one aspect of an embodiment of the present invention, there is provided a method of data processing.
The data processing method of the embodiment of the invention comprises the following steps: monitoring user operation of a page, acquiring corresponding operation page information and operation information to generate a first operation event operated by the user, and calling an associated first processing program to process the first operation event to obtain a first processing result; calling a preset adaptation model to convert the first operation event into a second operation event, and calling an associated second processing program to process the second operation event to obtain a second processing result; responding to a page loading instruction, and acquiring a corresponding type parameter to determine the display type of the page loading instruction; responding to the display type as a first type, acquiring page information to be loaded, inquiring an associated first operation event to acquire a corresponding first processing result and sending the corresponding first processing result; and responding to the display type as a second type, acquiring page information to be loaded, inquiring the associated second operation event to acquire a corresponding second processing result and sending the second processing result.
In one embodiment, the invoking the preset adaptation model to convert the first operation event to a second operation event includes: extracting operation characteristics of user operation based on the first operation event to identify an operation type and a first operation object of the user operation; and calling a preset adaptation model, and determining that the first operation object corresponds to a second operation object based on a preset page information mapping relation so as to generate a second operation event by combining the operation type and the operation page information.
In yet another embodiment, the invoking the preset adaptation model to convert the first operation event to a second operation event includes: extracting operation characteristics of user operation based on the first operation event to identify operation type and operation position information of the user operation, and generating a first operation vector; and calling a preset adaptation model, and converting the first operation vector into a second operation vector based on a preset vector conversion matrix so as to generate a second operation event by combining the operation page information.
In yet another embodiment, invoking the associated second handler to process the second operational event to obtain a second processing result includes: and calling an associated second processing program, generating a mapping relation between the second operation event and the operation page, and generating a page operation sequence based on time information of the second operation event and the mapping relation.
In yet another embodiment, monitoring user operation of a page, obtaining corresponding operation page information and operation information includes: monitoring an operation instruction of a page, acquiring operation equipment and time information corresponding to the operation instruction, and inserting the operation instruction into an operation queue based on the time information; and sequentially reading operation instructions from the operation queue, and responding to the fact that the corresponding operation equipment belongs to a preset equipment set to acquire corresponding operation page information and operation information.
In yet another embodiment, obtaining page information to be loaded, querying an associated second operation event, includes: reading a long link corresponding to the page loading instruction to acquire loading attribute parameters and determining a loading type; and responding to the loading type belonging to a preset type, acquiring page information to be loaded, and inquiring a corresponding second operation event set based on the operation time of the page information.
To achieve the above object, according to another aspect of an embodiment of the present invention, there is provided an apparatus for data processing.
The device for processing data in the embodiment of the invention comprises: the processing unit is used for monitoring the user operation of the page, acquiring corresponding operation page information and operation information to generate a first operation event of the user operation, and calling an associated first processing program to process the first operation event to obtain a first processing result; the processing unit is further used for calling a preset adaptation model to convert the first operation event into a second operation event, and calling an associated second processing program to process the second operation event to obtain a second processing result; the determining unit is used for responding to the page loading instruction and acquiring the corresponding type parameter so as to determine the display type of the page loading instruction; the loading unit is used for responding to the display type as a first type, acquiring page information to be loaded, inquiring related first operation events to acquire corresponding first processing results and sending the corresponding first processing results; and responding to the display type as a second type, acquiring page information to be loaded, inquiring the associated second operation event to acquire a corresponding second processing result and sending the second processing result.
In one embodiment, the processing unit is specifically configured to: extracting operation characteristics of user operation based on the first operation event to identify an operation type and a first operation object of the user operation; and calling a preset adaptation model, and determining that the first operation object corresponds to a second operation object based on a preset page information mapping relation so as to generate a second operation event by combining the operation type and the operation page information.
In a further embodiment, the processing unit is specifically configured to: extracting operation characteristics of user operation based on the first operation event to identify operation type and operation position information of the user operation, and generating a first operation vector; and calling a preset adaptation model, and converting the first operation vector into a second operation vector based on a preset vector conversion matrix so as to generate a second operation event by combining the operation page information.
In a further embodiment, the processing unit is specifically configured to: and calling an associated second processing program, generating a mapping relation between the second operation event and the operation page, and generating a page operation sequence based on time information of the second operation event and the mapping relation.
In a further embodiment, the processing unit is specifically configured to: monitoring an operation instruction of a page, acquiring operation equipment and time information corresponding to the operation instruction, and inserting the operation instruction into an operation queue based on the time information; and sequentially reading operation instructions from the operation queue, and responding to the fact that the corresponding operation equipment belongs to a preset equipment set to acquire corresponding operation page information and operation information.
In a further embodiment, the loading unit is specifically configured to: reading a long link corresponding to the page loading instruction to acquire loading attribute parameters and determining a loading type; and responding to the loading type belonging to a preset type, acquiring page information to be loaded, and inquiring a corresponding second operation event set based on the operation time of the page information.
To achieve the above object, according to still another aspect of an embodiment of the present invention, there is provided an electronic apparatus.
An electronic device according to an embodiment of the present invention includes: one or more processors; and the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are enabled to realize the data processing method provided by the embodiment of the invention.
To achieve the above object, according to still another aspect of an embodiment of the present invention, a computer-readable medium is provided.
A computer readable medium of an embodiment of the present invention has stored thereon a computer program which, when executed by a processor, implements a method for data processing provided by the embodiment of the present invention.
To achieve the above object, according to still another aspect of an embodiment of the present invention, there is provided a computer program product.
A computer program product according to an embodiment of the present invention includes a computer program that, when executed by a processor, implements a method for data processing according to an embodiment of the present invention.
One embodiment of the above invention has the following advantages or benefits: in the embodiment of the invention, for the operation of a user on a page, page information and operation information can be acquired, then the user operation is converted into the user operation of other preset display types through a preset adaptation model, namely, the first operation event is converted into the second operation event, and further, the corresponding processing can be obtained respectively through processing the first operation event and the second operation event, so that when the page needs to be loaded, the proper page operation information can be determined and returned according to the display type, the returned processing result is adapted to the display type, and the page corresponding to the processing result can be adapted to the display requirements of different display types. In the embodiment of the invention, for the scene of displaying the information of the operation page through other equipment, the display equipment can be firstly adapted, and then when the page is operated, the specific information of the operation can be converted into the operation information suitable for the other equipment to display the page and the corresponding processing result is obtained, so that the processing result is suitable for the other equipment to display, the display content is ensured to be adapted to the other equipment when the operation page is displayed by the other equipment, and the screen display effect and the user experience effect are improved.
Further effects of the above-described non-conventional alternatives are described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram of one main flow of a method of data processing according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of yet another main flow of a method of data processing according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of yet another main flow of a method of data processing according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of yet another main flow of a method of data processing according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of the main units of an apparatus for data processing according to an embodiment of the present invention;
FIG. 6 is a diagram of an exemplary system architecture in which embodiments of the present invention may be applied;
FIG. 7 is a schematic diagram of a computer system suitable for use in implementing embodiments of the present invention.
Detailed Description
Exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It is noted that embodiments of the application and features of the embodiments may be combined with each other without conflict. The technical scheme of the application is used for acquiring, transmitting, storing, using and processing the data, and the like, which meet the relevant regulations of national laws and regulations. In the embodiments of the present application, some software, components, models, etc. may be mentioned in the industry, and they should be regarded as exemplary only for the purpose of illustrating the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or must not use the solution.
The embodiment of the invention provides a data processing system which can be used for processing scenes by page operation, in particular to the scenes of a user operation page displayed on other equipment. For example, in an embodiment of the present invention, the data processing system may include a first device, where the first device is a device operated by a user, and the first device includes a display device, where an operation page may be displayed, and at the same time, the user may input, through an input device, an operation for displaying the page, and the first device may process display content of the page based on the input operation; meanwhile, the content displayed by the display device in the first device can be displayed by other devices, and the other devices are taken as second devices as examples. In order to enable the page content displayed in the first device to be normally displayed in the second device, in the embodiment of the invention, an adaptation model corresponding to the display type of the second device can be preconfigured, so that the operation of displaying the page received in the first device can be converted into the operation corresponding to the page displayed in the second device display type, thereby obtaining a processing result adapted to the second device display type, and further meeting the display requirement when the second device is displayed.
An embodiment of the present invention provides a method of data processing, which may be performed by a data processing system, as shown in fig. 1, the method comprising the following steps.
S101: the user operation of the page is monitored, corresponding operation page information and operation information are obtained, so that a first operation event of the user operation is generated, and an associated first processing program is called to process the first operation event, so that a first processing result is obtained.
The user operation represents operations such as user input on a display page, wherein the operations can comprise operation page information and operation information, the operation page can represent a page currently displayed or operated by the user in the data processing system, and the operation information can comprise various types, and can be specifically set based on requirements. In this step, the first operation event may be generated based on the operation page information and the operation information, and the operation event identification may be generated. The first processing program can be set based on requirements, and then the corresponding processing result is obtained after the first operation event is processed by using the first processing program.
In some embodiments, in the embodiments of the present invention, the data system includes a first device, and the other devices are examples of a second device, where the first device is configured to receive a user operation, and the second device is configured to display an operation page of the first device. The first device can monitor user operation of the page in real time, and pre-configure a processing program corresponding to each operation event so as to process the operation event.
It should be noted that, in some scenarios, the data processing system may include a plurality of first devices, that is, a plurality of devices capable of inputting user operations, where the display types of the plurality of first devices are the same and the content of the display pages are the same, so that the input user operations may be normally displayed on each first device after being processed. In this scenario, the operation instruction of the page may be monitored, the operation device and the time information corresponding to the operation instruction may be obtained, the operation instruction may be stored in a preset operation queue according to the time information, that is, each operation instruction in the operation queue may be ordered according to the time information, and then the operation instructions may be sequentially read according to time, so as to determine whether the operation device corresponding to the operation instruction belongs to the preset device set. The preset device set may represent a device set allowing an input user operation, and may include all of the first devices or may include a part of the first devices. The operation instruction belongs to a preset device set, then subsequent processing can be executed on the operation instruction, and if the operation instruction does not belong to the preset device set, the operation instruction can be ignored. After determining that the operation instruction belongs to the preset device set, the step can be executed to obtain corresponding operation page information and operation information.
S102: and calling a preset adaptation model to convert the first operation event into a second operation event, and calling an associated second processing program to process the second operation event to obtain a second processing result.
The adaptation model is preconfigured, and can be used for establishing a conversion relation between a page displayed by one device and a display page of other devices, for example, a conversion relation between a page displayed by a first device and a display page of a second device in the data processing system. Since display types of display pages of a general device are different, configuration of the adaptation model can be performed based on the display types, and different display types correspond to different adaptation models. The display types may be differentiated based on display requirements, e.g., the display types may be differentiated based on display style, resolution, size, etc.
In this step, the first operation event is converted into the second operation event by the adaptation model, and the second operation event is equivalent to the operation event of the page operation displayed by the equipment (such as the second equipment) corresponding to the adaptation model by the user, so that the obtained processing result is the processing result suitable for the equipment corresponding to the adaptation model. The second process is preconfigured.
Specifically, in an aspect of the embodiment of the present invention, converting the first operation event into the second operation event may be performed as: extracting operation characteristics of user operation based on the first operation event to identify an operation type of the user operation and a first operation object; and calling a preset adaptation model, and determining that the first operation object corresponds to the second operation object based on a preset page information mapping relation so as to generate a second operation event by combining the operation type and the operation page information.
The operation object can represent the operation content of a control, a component, a display frame, an operation bar and the like in the operation page, the operation type can comprise action types such as clicking, double clicking, dragging and the like, the specific process of the user operation can be determined by the operation object and the operation type, and the content of the user operation can be further determined. The page information mapping relation can store the mapping relation between the same page content displayed in the corresponding pages of different display types, and the difference refers to the difference of patterns, resolutions, sizes and the like in different display types because the display content in the corresponding pages of the two display types is the same, so that the mapping relation can be established for the display objects in the corresponding pages of the two display types, the first operation object can be converted into the corresponding second operation object, and the second operation event can be generated by combining the operation type and the operation page information.
In another aspect of an embodiment of the present invention, converting the first operational event to the second operational event may be performed as: extracting operation characteristics of user operation based on a first operation event to identify operation type and operation position information of the user operation and generate a first operation vector; and calling a preset adaptation model, and converting the first operation vector into a second operation vector based on a preset vector conversion matrix so as to generate a second operation event by combining the operation page information.
The mapping of the content in the pages corresponding to the two display types can also be established through the position information, so that a vector conversion matrix can also be established in the embodiment of the invention, the conversion between the operation positions in the pages corresponding to the different display types is shown, for example, the position information can be shown through coordinates, so that the operation vector comprises the coordinate information of the operation type and the operation position, the first operation vector can be converted into the second operation vector through the vector conversion matrix, the operation type in the second operation vector is the same as the operation type in the first operation vector, and the coordinate information of the operation position in the second operation vector is the converted coordinate information, and the operation position of the page displayed by a user in other equipment (second equipment) is shown.
It should be noted that, after the first processing result and the second processing result are obtained, the relevant information may be stored in the database, so as to facilitate subsequent query and use.
S103: and responding to the page loading instruction, and acquiring a corresponding type parameter to determine the display type of the page loading instruction.
The page load instruction represents an instruction for page load display, wherein the instruction can comprise a type parameter representing a display type, and the display type of the page load instruction can be determined through the type parameter. In particular, the type parameter may include browser information, display parameter information, and the like, which may represent a display type.
S104: responding to the display type as a first type, acquiring page information to be loaded, inquiring related first operation events to acquire corresponding first processing results and sending the corresponding first processing results; and responding to the display type being the second type, acquiring page information to be loaded, inquiring the associated second operation event to acquire a corresponding second processing result and sending the second processing result.
The display type is a first type, and is adapted to a first processing result, so that a first operation event related to page information to be loaded can be queried first, then a corresponding first processing result is obtained, and the first processing result is sent so as to display the processing result; the display type is the second type, which indicates that the display type is suitable for the second processing result, so that the page information to be loaded can be firstly queried for the associated second operation event, then the corresponding second processing result is obtained, and the second processing result is sent, so that the processing result is more convenient to display.
It should be noted that, for the page load instruction of the second display type, connection is generally established through long links, so long links corresponding to the page load instruction are read to obtain the load attribute parameters, and the load type is determined. The load types may include synchronous loading, which means that the content of the displayed page in the data processing system is subsequently synchronously loaded and displayed, and asynchronous loading, which may mean that the content of the page in the data processing system is loaded and displayed at the expense of the page. In the embodiment of the invention, the preset type can be synchronous loading, so that when the loading type is determined to be the preset type, the page information to be loaded is acquired, the corresponding second operation event set is queried based on the operation time of the page information, and the second operation event set represents the set of all events after the operation time.
In still other embodiments, for other display devices (such as a second device), the converted operation event may be further sent as a processing result when the page is loaded, so that the converted operation event may be processed to obtain a corresponding page and displayed, so as to achieve the purpose that the page is displayed on the other device. And calling an associated second processing program, generating a mapping relation between a second operation event and an operation page, and generating a page operation sequence based on time information and the mapping relation of the second operation event. Thus, when the page alive is executed, the page operation sequence can be returned as a processing result, so that other devices can sequentially execute the operation events in the page operation sequence, and further, the corresponding page is obtained and displayed.
In the embodiment of the invention, for the scene of displaying the information of the operation page through other equipment, the display equipment can be firstly adapted, and then when the page is operated, the specific information of the operation can be converted into the operation information suitable for the other equipment to display the page and the corresponding processing result is obtained, so that the processing result is suitable for the other equipment to display, the display content is ensured to be adapted to the other equipment when the operation page is displayed by the other equipment, and the screen display effect and the user experience effect are improved.
The method for data processing in the embodiment of the present invention will be specifically described with reference to the embodiment shown in fig. 1, and as shown in fig. 2, the method includes the following steps.
S201: and monitoring the user operation of the page, and acquiring corresponding operation page information and operation information to generate a first operation event of the user operation.
S202: and calling an associated first processing program to process the first operation event, obtaining a first processing result and storing the first processing result.
S203: an operation feature of the user operation is extracted based on the first operation event to identify an operation type of the user operation and a first operation object.
S204: and calling a preset adaptation model, and determining that the first operation object corresponds to the second operation object based on a preset page information mapping relation so as to generate a second operation event by combining the operation type and the operation page information.
S205: and calling an associated second processing program to process the second operation event, obtaining a second processing result and storing the second processing result.
It should be noted that, in the embodiment of the present invention, the data processing principle is the same as the corresponding data processing principle in the embodiment shown in fig. 1, and will not be described herein.
The method for data processing in the embodiment of the present invention will be specifically described with reference to the embodiment shown in fig. 1, and as shown in fig. 3, the method includes the following steps.
S301: and monitoring the user operation of the page, and acquiring corresponding operation page information and operation information to generate a first operation event of the user operation.
S302: and calling an associated first processing program to process the first operation event, obtaining a first processing result and storing the first processing result.
S303: and extracting operation characteristics of the user operation based on the first operation event to identify the operation type and the operation position information of the user operation and generate a first operation vector.
S304: and calling a preset adaptation model, and converting the first operation vector into a second operation vector based on a preset vector conversion matrix so as to generate a second operation event by combining the operation page information.
S305: and calling an associated second processing program to process the second operation event, obtaining a second processing result and storing the second processing result.
It should be noted that, in the embodiment of the present invention, the data processing principle is the same as the corresponding data processing principle in the embodiment shown in fig. 1, and will not be described herein.
The method for data processing in the embodiment of the present invention will be specifically described with reference to the embodiment shown in fig. 1, and as shown in fig. 4, the method includes the following steps.
S401: and monitoring the operation instruction of the page, acquiring operation equipment and time information corresponding to the operation instruction, and inserting the operation instruction into an operation queue based on the time information.
S402: and sequentially reading operation instructions from the operation queue, and responding to the fact that the corresponding operation equipment belongs to a preset equipment set, acquiring corresponding operation page information and operation information, and generating a first operation event operated by a user.
S403: and calling the associated first processing program to process the first operation event to obtain a first processing result.
S404: and calling a preset adaptation model to convert the first operation event into a second operation event, and calling an associated second processing program to process the second operation event to obtain a second processing result.
S405: and responding to the page loading instruction, and acquiring a corresponding type parameter to determine the display type of the page loading instruction.
S406: responding to the display type as a first type, acquiring page information to be loaded, inquiring related first operation events to acquire corresponding first processing results and sending the corresponding first processing results; and responding to the display type being the second type, acquiring page information to be loaded, inquiring the associated second operation event to acquire a corresponding second processing result and sending the second processing result.
It should be noted that, in the embodiment of the present invention, the data processing principle is the same as the corresponding data processing principle in the embodiment shown in fig. 1, and will not be described herein.
In order to solve the problems existing in the prior art, an embodiment of the present invention provides a data processing apparatus 500, as shown in fig. 5, the apparatus 500 includes: the processing unit 501 is configured to monitor a user operation of a page, acquire corresponding operation page information and operation information, generate a first operation event of the user operation, and call an associated first handler to process the first operation event to obtain a first processing result; the processing unit 501 is further configured to invoke a preset adaptation model to convert the first operation event into a second operation event, and invoke an associated second processing program to process the second operation event, so as to obtain a second processing result; a determining unit 502, configured to obtain a corresponding type parameter in response to a page load instruction, so as to determine a display type of the page load instruction; a loading unit 503, configured to obtain page information to be loaded in response to the display type being a first type, query an associated first operation event, and obtain and send a corresponding first processing result; and responding to the display type as a second type, acquiring page information to be loaded, inquiring the associated second operation event to acquire a corresponding second processing result and sending the second processing result.
It should be understood that the manner of implementing the embodiment of the present invention is the same as that of implementing the embodiment shown in fig. 1, and will not be described herein.
In one embodiment, the processing unit 501 is specifically configured to: extracting operation characteristics of user operation based on the first operation event to identify an operation type and a first operation object of the user operation; and calling a preset adaptation model, and determining that the first operation object corresponds to a second operation object based on a preset page information mapping relation so as to generate a second operation event by combining the operation type and the operation page information.
In yet another embodiment, the processing unit 501 is specifically configured to: extracting operation characteristics of user operation based on the first operation event to identify operation type and operation position information of the user operation, and generating a first operation vector; and calling a preset adaptation model, and converting the first operation vector into a second operation vector based on a preset vector conversion matrix so as to generate a second operation event by combining the operation page information.
In yet another embodiment, the processing unit 501 is specifically configured to:
And calling an associated second processing program, generating a mapping relation between the second operation event and the operation page, and generating a page operation sequence based on time information of the second operation event and the mapping relation.
In yet another embodiment, the processing unit 501 is specifically configured to: monitoring an operation instruction of a page, acquiring operation equipment and time information corresponding to the operation instruction, and inserting the operation instruction into an operation queue based on the time information; and sequentially reading operation instructions from the operation queue, and responding to the fact that the corresponding operation equipment belongs to a preset equipment set to acquire corresponding operation page information and operation information.
In yet another embodiment, the loading unit 503 is specifically configured to: reading a long link corresponding to the page loading instruction to acquire loading attribute parameters and determining a loading type; and responding to the loading type belonging to a preset type, acquiring page information to be loaded, and inquiring a corresponding second operation event set based on the operation time of the page information.
It should be understood that the manner of implementing the embodiments of the present invention is the same as that of implementing the embodiments shown in fig. 1, 2, 3 and 4, and will not be described herein.
In the embodiment of the invention, for the scene of displaying the information of the operation page through other equipment, the display equipment can be firstly adapted, and then when the page is operated, the specific information of the operation can be converted into the operation information suitable for the other equipment to display the page and the corresponding processing result is obtained, so that the processing result is suitable for the other equipment to display, the display content is ensured to be adapted to the other equipment when the operation page is displayed by the other equipment, and the screen display effect and the user experience effect are improved.
According to an embodiment of the present invention, an electronic device and a readable storage medium are also provided.
The electronic equipment of the embodiment of the invention comprises: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the one processor, and the instructions are executed by the at least one processor, so that the at least one processor performs the data processing method provided by the embodiment of the present invention.
Fig. 6 illustrates an exemplary system architecture 600 of a data processing method or apparatus to which embodiments of the present invention may be applied.
As shown in fig. 6, the system architecture 600 may include terminal devices 601, 602, 603, a network 604, and a server 605. The network 604 is used as a medium to provide communication links between the terminal devices 601, 602, 603 and the server 605. The network 604 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may interact with the server 605 via the network 604 using the terminal devices 601, 602, 603 to receive or send messages, etc. Various client applications may be installed on the terminal devices 601, 602, 603.
The terminal devices 601, 602, 603 may be, but are not limited to, smartphones, tablets, laptop and desktop computers, and the like.
The server 605 may be a server providing various services, and may perform processing such as analysis on received data such as a product information query request, and feed back processing results (e.g., product information—just an example) to the terminal device.
It should be noted that, the method for processing data provided in the embodiment of the present invention is generally executed by the server 605, and accordingly, the device for processing data is generally disposed in the server 605.
It should be understood that the number of terminal devices, networks and servers in fig. 6 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 7, there is illustrated a schematic diagram of a computer system 700 suitable for use in implementing embodiments of the present invention. The computer system shown in fig. 7 is only an example, and should not be construed as limiting the functionality and scope of use of the embodiments of the invention.
As shown in fig. 7, the computer system 700 includes a Central Processing Unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the system 700 are also stored. The CPU 701, ROM 702, and RAM 703 are connected to each other through a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
The following components are connected to the I/O interface 705: an input section 706 including a keyboard, a mouse, and the like; an output portion 707 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 708 including a hard disk or the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. The drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read therefrom is mounted into the storage section 708 as necessary.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 709, and/or installed from the removable medium 711. The above-described functions defined in the system of the present invention are performed when the computer program is executed by a Central Processing Unit (CPU) 701.
The computer readable medium shown in the present invention may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a unit, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present invention may be implemented in software or in hardware. The described units may also be provided in a processor, for example, described as: a processor includes a processing unit, a determining unit, and a loading unit. The names of these units do not constitute a limitation on the unit itself in some cases, for example, a processing unit may also be described as a "unit of processing function".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to perform the method of data processing provided by the present invention.
As another aspect, the present invention also provides a computer program product, including a computer program, where the program when executed by a processor implements a method for processing data provided by an embodiment of the present invention.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.
Claims (11)
1. A method of data processing, comprising:
Monitoring user operation of a page, acquiring corresponding operation page information and operation information to generate a first operation event operated by the user, and calling an associated first processing program to process the first operation event to obtain a first processing result;
calling a preset adaptation model to convert the first operation event into a second operation event, and calling an associated second processing program to process the second operation event to obtain a second processing result;
responding to a page loading instruction, and acquiring a corresponding type parameter to determine the display type of the page loading instruction;
Responding to the display type as a first type, acquiring page information to be loaded, inquiring an associated first operation event to acquire a corresponding first processing result and sending the corresponding first processing result; and responding to the display type as a second type, acquiring page information to be loaded, inquiring the associated second operation event to acquire a corresponding second processing result and sending the second processing result.
2. The method of claim 1, wherein invoking the preset adaptation model to convert the first operational event to a second operational event comprises:
Extracting operation characteristics of user operation based on the first operation event to identify an operation type and a first operation object of the user operation;
And calling a preset adaptation model, and determining that the first operation object corresponds to a second operation object based on a preset page information mapping relation so as to generate a second operation event by combining the operation type and the operation page information.
3. The method of claim 1, wherein invoking the preset adaptation model to convert the first operational event to a second operational event comprises:
extracting operation characteristics of user operation based on the first operation event to identify operation type and operation position information of the user operation, and generating a first operation vector;
and calling a preset adaptation model, and converting the first operation vector into a second operation vector based on a preset vector conversion matrix so as to generate a second operation event by combining the operation page information.
4. The method of claim 1, wherein invoking the associated second handler to process the second operational event results in a second process result comprises:
And calling an associated second processing program, generating a mapping relation between the second operation event and the operation page, and generating a page operation sequence based on time information of the second operation event and the mapping relation.
5. The method of claim 1, wherein monitoring user operations of the page to obtain corresponding operation page information and operation information comprises:
monitoring an operation instruction of a page, acquiring operation equipment and time information corresponding to the operation instruction, and inserting the operation instruction into an operation queue based on the time information;
And sequentially reading operation instructions from the operation queue, and responding to the fact that the corresponding operation equipment belongs to a preset equipment set to acquire corresponding operation page information and operation information.
6. The method of claim 1, wherein obtaining page information to be loaded, querying for an associated second operational event, comprises:
reading a long link corresponding to the page loading instruction to acquire loading attribute parameters and determining a loading type;
and responding to the loading type belonging to a preset type, acquiring page information to be loaded, and inquiring a corresponding second operation event set based on the operation time of the page information.
7. An apparatus for data processing, comprising:
The processing unit is used for monitoring the user operation of the page, acquiring corresponding operation page information and operation information to generate a first operation event of the user operation, and calling an associated first processing program to process the first operation event to obtain a first processing result;
The processing unit is further used for calling a preset adaptation model to convert the first operation event into a second operation event, and calling an associated second processing program to process the second operation event to obtain a second processing result;
The determining unit is used for responding to the page loading instruction and acquiring the corresponding type parameter so as to determine the display type of the page loading instruction;
the loading unit is used for responding to the display type as a first type, acquiring page information to be loaded, inquiring related first operation events to acquire corresponding first processing results and sending the corresponding first processing results; and responding to the display type as a second type, acquiring page information to be loaded, inquiring the associated second operation event to acquire a corresponding second processing result and sending the second processing result.
8. The apparatus according to claim 7, wherein the processing unit is specifically configured to:
Extracting operation characteristics of user operation based on the first operation event to identify an operation type and a first operation object of the user operation;
And calling a preset adaptation model, and determining that the first operation object corresponds to a second operation object based on a preset page information mapping relation so as to generate a second operation event by combining the operation type and the operation page information.
9. An electronic device, comprising:
One or more processors;
storage means for storing one or more programs,
When executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-6.
10. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-6.
11. A computer program product comprising a computer program, characterized in that the program, when executed by a processor, implements the method according to any of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410714909.7A CN118626186A (en) | 2024-06-04 | 2024-06-04 | Data processing method, device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410714909.7A CN118626186A (en) | 2024-06-04 | 2024-06-04 | Data processing method, device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118626186A true CN118626186A (en) | 2024-09-10 |
Family
ID=92597079
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410714909.7A Pending CN118626186A (en) | 2024-06-04 | 2024-06-04 | Data processing method, device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118626186A (en) |
-
2024
- 2024-06-04 CN CN202410714909.7A patent/CN118626186A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113808231B (en) | Information processing method and device, image rendering method and device, and electronic device | |
CN107315729B (en) | Data processing method, medium, device and computing equipment for chart | |
CN110232091B (en) | Method, system and apparatus for synchronizing data | |
CN112306793A (en) | Method and device for monitoring webpage | |
CN109582317B (en) | Method and apparatus for debugging hosted applications | |
CN111786939B (en) | Method, device and system for testing management platform of Internet of things | |
CN111240786A (en) | Walkthrough method and device, electronic equipment and storage medium | |
CN112947918A (en) | Data display method and device | |
CN114500481A (en) | Service request processing method, system and device | |
CN110795328A (en) | Interface testing method and device | |
CN114675820A (en) | Service arrangement data processing method and device, electronic equipment and storage medium | |
CN114389969A (en) | Client test method and device, electronic equipment and storage medium | |
CN113313623A (en) | Watermark information display method, watermark information display device, electronic equipment and computer readable medium | |
CN115495175A (en) | Picture display method and device, terminal equipment and computer medium | |
CN112433713A (en) | Application program design graph processing method and device | |
CN109462491B (en) | System, method and apparatus for testing server functionality | |
CN118626186A (en) | Data processing method, device, electronic equipment and storage medium | |
CN110858240A (en) | Front-end module loading method and device | |
CN114625458A (en) | Page data processing method and device, electronic equipment and storage medium | |
CN115248735A (en) | Log data output control method, device, equipment and storage medium | |
CN114764713A (en) | Method and device for generating merchant patrol task, electronic equipment and storage medium | |
CN113515328B (en) | Page rendering method, device, electronic equipment and storage medium | |
CN113779018A (en) | Data processing method and device | |
CN113691937A (en) | Method for determining position information, cloud mobile phone and terminal equipment | |
CN113836455A (en) | Special effect rendering method, device, equipment, storage medium and computer program product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |