Data processing method and device, equipment, medium and product
By obtaining and storing business logic codes running in independent code files from the server when receiving data processing requests on the browser side, the risk of code leakage on the browser side is solved, and data processing is achieved while improving code security. .
Patent Information
- Application Number
- CN202411071936.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-11-26
AI Technical Summary
Due to the risk of visibility, the existing technology is difficult to effectively protect its security due to the risk of visibility.
When receiving data processing requests on the browser side, the target business logic code identification is sent to the server side, the server side determines and returns the target business logic code, and stores it in an independently run code file to run, avoiding running directly on the browser side.
Improve the security of business logic code on the browser side, prevent code leakage, and at the same time realize the processing of target data.
Smart Images

Figure CN119025205A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of data processing technology, and in particular, relates to a data processing method, device, equipment, medium and product. Background Art
[0002] Currently, users may need to input data processing based on the browser side, and the browser side will use the business logic code stored in the browser to process the data. Due to the limitations of World Wide Web (Web) technology, all codes stored in the browser side are visible, and the business logic code on the browser side may be stored. The risk of leakage. Summary of the invention
[0003] The embodiments of the present application provide a data processing method, apparatus, device, medium and product, which can improve the security of business logic code when running in a browser.
[0004] In a first aspect, an embodiment of the present application provides a data processing method, which is applied to a browser, and the method includes:
[0005] Receiving a data processing request input by a user based on a display interface of a browser, wherein the data processing request includes target data to be processed and a target business logic code identifier;
[0006] Sending request information to the server through the target code file, so that the server determines the target business logic code corresponding to the target business logic code identifier based on the correspondence between the preset business logic code identifier and the business logic code, and sends the target business logic code to the browser, wherein the request information includes the target business logic code identifier;
[0007] When receiving the target business logic code sent by the server, storing the target business logic code in a target code file included in the browser, wherein the code file is a file that can run the code independently;
[0008] The target business logic code in the target code file is run to process the target data to obtain a processing result.
[0009] In a second aspect, an embodiment of the present application provides a data processing device, which is applied to a browser side, and the device includes:
[0010] A receiving module, used to receive a data processing request input by a user based on a display interface of a browser, wherein the data processing request includes target data to be processed and a target business logic code identifier;
[0011] A sending module, used to send request information to the server through the target code file, so that the server determines the target business logic code corresponding to the target business logic code identifier based on the correspondence between the preset business logic code identifier and the business logic code, and sends the target business logic code to the browser, wherein the request information includes the target business logic code identifier;
[0012] A storage module, which is used to store the target business logic code into a target code file included in the browser end when receiving the target business logic code sent by the server end, wherein the code file is a file that can run the code independently;
[0013] The running module is used to run the target business logic code in the target code file, process the target data, and obtain a processing result.
[0014] In a third aspect, an embodiment of the present application provides an electronic device, the device comprising:
[0015] a processor and a memory storing computer program instructions;
[0016] When the processor executes the computer program instructions, it is used to perform the data processing method of the first aspect mentioned above.
[0017] In a fourth aspect, an embodiment of the present application provides a computer storage medium having computer program instructions stored thereon, and when the computer program instructions are executed by a processor, the data processing method of the first aspect described above is implemented.
[0018] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which implements the data processing method of the first aspect when processed by a processor.
[0019] The data processing method, apparatus, equipment, medium and product provided in the embodiments of the present application, when receiving a data processing request based on display interface data from a user on the browser side, sends request information to the server side through a code file, the server side determines the target business logic code based on the target business logic code identifier included in the request information, sends the target business logic code to the browser side, and stores the target business logic code in the code file and runs the target business logic code in the code file by the browser side, thereby avoiding the target business logic code from running directly on the browser side, and can achieve processing of the target data while improving the security of the business logic code during operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0021] Figure 1 A flowchart of a data processing method provided for some embodiments of the present application.
[0022] Figure 2 A schematic diagram of an exemplary display interface provided for some embodiments of the present application.
[0023] Figure 3 A flowchart of another data processing method provided for some embodiments of the present application.
[0024] Figure 4 A flowchart of another data processing method provided for some embodiments of the present application.
[0025] Figure 5 A schematic diagram of a data processing device provided for some embodiments of the present application.
[0026] Figure 6 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0028] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0029] It should be noted that the acquisition, storage, use and processing of data in the embodiments of the present application are in compliance with the relevant provisions of national laws and regulations.
[0030] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0031] Before describing the technical solutions provided by the embodiments of the present application, in order to facilitate the understanding of the embodiments of the present application, the present application first specifically describes the problems existing in the related art:
[0032] Users can process data based on the browser, and usually store the business logic code for processing the data in the source code layer in the browser. When the browser runs the business logic code, the business logic code may be leaked through crawlers, etc. Based on this, the embodiments of the present application provide a data processing method, device, equipment, medium and product, which can improve the security of the business logic code when it is running on the browser side and avoid the leakage of the business logic code.
[0033] In some embodiments, Figure 1 As shown, the embodiment of the present application provides a data processing method, which is applied to a browser side, and the method includes:
[0034] S110: The browser receives a data processing request input by a user based on a display interface of the browser, wherein the data processing request includes target data to be processed and a target business logic code identifier.
[0035] The user can input a data processing request based on the display interface of the browser. The data processing request is the target data to be processed. The format of the target data can be characters or pictures. The data processing request also includes a target business logic code identifier. Here, the target business logic code identifier is the target business logic code identifier corresponding to the target business logic code sent by the server to the user device when the user device stores the target business logic code in the server.
[0036] S120: The browser sends request information to the server through the target code file.
[0037] S130: The server determines the target business logic code corresponding to the target business logic code identifier based on the preset correspondence between the business logic code identifier and the business logic code, and sends the target business logic code to the browser, wherein the request information includes the target business logic code identifier.
[0038] Here, the browser includes a target code file. When the browser receives the user's operation of starting the browser display interface, the target code file can be loaded. After receiving the data processing request, the browser will store the target business logic code identifier in the target code file, run the code in the target code file and send the request information to the server. Based on the correspondence between the business logic identifier and the business logic code, the server can determine the target business logic code corresponding to the target business logic code identifier and send the target business logic code to the browser.
[0039] S140: When the browser receives the target business logic code sent by the server, the browser stores the target business logic code into a target code file included in the browser, where the code file is a file that can run the code independently.
[0040] After receiving the target business logic code, the browser will store the target business logic code in the target code file. Here, the target business logic code is the target business logic code that can run independently obtained by compiling the original business logic code after receiving the user's input, which is extracted from the source code layer by the server based on the user's operation.
[0041] S150: The browser runs the target business logic code in the target code file, processes the target data, and obtains a processing result.
[0042] By running the target business logic code in the code file, the target data is processed to obtain the processing result.
[0043] In the embodiment of the present application, when a browser receives a data processing request from a user based on display interface data, the browser sends request information to the server through a code file. The server determines the target business logic code based on the target business logic code identifier included in the request information, and sends the target business logic code to the browser. The browser stores the target business logic code in the code file and runs the target business logic code in the code file, thereby avoiding the target business logic code from running directly on the browser, and improving the security of the business logic code while processing the target data.
[0044] The target code file can be pre-stored on the browser side, and the browser side loads the target code file in response to user operations, thereby improving the speed of loading the target code file.
[0045] In some embodiments, before receiving a data processing request input by a user based on a display interface of a browser, the method further includes:
[0046] In response to a first operation of the user on the display interface of the browser, the target code file is loaded.
[0047] The user may perform a first operation including sliding or clicking on the display interface of the browser, and when the browser receives the first operation based on the display interface, the target code file may be loaded.
[0048] In some embodiments, Figure 2 As shown, the display interface includes multiple sub-display interfaces, the target code file includes multiple sub-code files, and one sub-display interface corresponds to one sub-code file.
[0049] In response to a user's first operation on a target sub-display interface in a display interface on the browser side, the browser side may load a target sub-code file corresponding to the target sub-display interface. Figure 2 When the sub-display interface 1 shown is slid or clicked, the browser will load the target sub-code file corresponding to the sub-display interface 1. By responding to the user's first operation on different target sub-display interfaces and loading the corresponding target sub-code file, different code files can be loaded for different target sub-display interfaces, thereby improving the flexibility of code files to adapt to different display interfaces.
[0050] In some examples, each sub-display interface can be a display interface for displaying different activity information. When a user performs a first operation on a target sub-display interface so that the browser generates browsing data, the target business logic code in the target code file can be run based on the above method to process the browsing data, and then the processing results obtained by processing the browsing data can be sent to the server. The server can determine the user's preference for the activity information based on the processing results and recommend the activity information to the user.
[0051] The embodiment of the present application can automatically trigger the loading of the target code file in a timely manner when the browser responds to the user's first operation on the display interface, so as to facilitate the subsequent storage of the target business logic code into the target code file and improve the security of the target business logic code.
[0052] Here, the target code file can be pre-stored on the server side, and the browser side sends a request to the server side in response to the user operation, and the target code file is sent to the browser side through the server side.
[0053] In some embodiments, Figure 3 As shown, in response to the first operation of the user on the display interface of the browser side, loading the code file includes:
[0054] S310: In response to a first operation of a user on a display interface of the browser, the browser sends an acquisition request to the server, wherein the acquisition request includes a target identifier.
[0055] S320: The server determines the target code file corresponding to the target identifier of the browser based on the preset correspondence between the identifier of the browser and the code file, and sends the target code file to the browser.
[0056] In response to the user's first operation on the display interface, the browser can send a request to the server, where the request includes a target identifier. The server can determine the target code file corresponding to the target identifier based on the correspondence between the browser identifier and the code file.
[0057] In some examples, when the display interface includes multiple sub-display interfaces, the target identifier may include that when the browser side responds to a user's first operation on the target sub-display interface, the browser side may send a retrieval request including the target identifier of the target sub-display interface to the server side, and the server side determines the target code file corresponding to the target sub-display interface based on the retrieval request.
[0058] S330: When the browser receives the target code file sent by the server, the browser loads the target code file.
[0059] When the browser receives the target code file sent by the server, it can load the target code file and store the target code file in a preset location.
[0060] The embodiment of the present application, when the browser receives a first operation input by the user based on the display interface, sends a request for obtaining a target identifier to the server, obtains the target code file corresponding to the target identifier through the server, and loads the target code file. This can improve the security and flexibility of the obtained target code file while improving the security of the target business logic code.
[0061] In order to improve the security of the target business logic code, the target business logic code may be encrypted, and the encrypted target business logic code obtained is decrypted through the target code file and then run.
[0062] In some embodiments, the target code file includes an execution code, and the target business logic code is an encrypted business logic code;
[0063] Run the target business logic code in the target code file to process the target data, including:
[0064] Run the execution code in the target code file, decrypt the target business logic code, and obtain the decrypted target business logic code; run the decrypted target business logic code in the target code file, process the target data, and obtain the processing result.
[0065] Here, the template business logic code sent by the server to the browser can be the encrypted target business logic code. The browser decrypts the encrypted target business logic code by running the execution code in the target business code to obtain the decrypted target business logic code. By running the decrypted target business logic code, the target data is processed to obtain the processing result.
[0066] In some embodiments, the browser can respond to user operations, compile the original business logic code obtained from the source code layer to obtain the target business logic code, and then encrypt the target business logic code to obtain the encrypted target business logic code. At the same time, the execution code is stored in the target code file, and the encrypted target business logic code is sent to the server.
[0067] In some examples, before the browser obtains the target code file from the server, the browser may send the execution code to the server so that the server stores the execution code into the target code file.
[0068] The embodiment of the present application can improve the security of business logic code during transmission between the browser and the server by setting an execution code in the target code file, running the execution code, decrypting the encrypted target code file, obtaining a decrypted target code file, and running the decrypted target code file to process the target data.
[0069] In some embodiments, Figure 4 As shown, before sending the acquisition request to the server, the method also includes:
[0070] S410: When the code file plug-in is installed on the browser side, in response to a second operation of the user based on the browser side display interface, download the code template file.
[0071] Here, the browser side can install a code file plug-in on the browser side in response to a user operation, and download a code template file through the code file plug-in in response to a second operation of the user based on the browser side display interface.
[0072] S420: The browser sends the code template file to the server.
[0073] S430: The server responds to the user's target operation and generates a target code file based on the code template file.
[0074] The browser can send a code template file to the server, and the server can respond to the user's target group, compile the code in the code template file to generate a target code file, and store the target code file in the server.
[0075] The embodiment of the present application can respond to the user's second operation based on the browser display interface by installing a code file plug-in on the browser side, download the code template file through the code file plug-in, and send the code template file to the server side through the browser side, so that the server side compiles the code template file to generate a target code file in response to the user operation, thereby improving the flexibility of generating the target code file, and the target code file obtained based on the above method can store the target business logic code and can realize the normal operation of the target business logic code in the target code file.
[0076] In some embodiments, the target code file further includes an acquisition code, and the acquisition code includes a target business logic code identifier;
[0077] Sending request information to the server through the target code file includes: obtaining code by running the target code file, and sending request information to the server.
[0078] The request information can be sent to the server by running the acquisition code in the target code file. Here, the acquisition code is the acquisition code generated when the server compiles the code template file in response to the user's target operation.
[0079] The embodiment of the present application sends request information to the server by running the acquisition code in the target code file on the browser side, so that during the process of interaction between the browser side and the server side based on the target business logic code, the browser side can directly interact with the server side by running the code in the target code file, thereby improving the security of the target business logic code and avoiding leakage of the target business logic code.
[0080] In some embodiments, the target code file is a binary code file (WebAssembly, WASM).
[0081] The embodiment of the present application sets the target code file as a binary code file, so as to realize the independent operation of the target business logic code in the WASM file, and at the same time improve the operation efficiency of the target code file in the WASM file, thereby improving the efficiency of processing the target data.
[0082] In some embodiments, after the target data is processed on the browser side and the processing result is obtained, the processing result can be displayed on the display interface of the browser, or the processing result can be sent to the server side.
[0083] Based on the same inventive concept, an embodiment of the present application also provides a data processing device.
[0084] In some embodiments, Figure 5 As shown, the embodiment of the present application provides a data processing device, which is applied to a browser side, and the processing method includes:
[0085] The receiving module 501 is used to receive a data processing request input by a user based on a display interface of a browser, wherein the data processing request includes target data to be processed and a target business logic code identifier;
[0086] The sending module 502 is used to send request information to the server through the target code file, so that the server determines the target business logic code corresponding to the target business logic code identifier based on the correspondence between the preset business logic code identifier and the business logic code, and sends the target business logic code to the browser, wherein the request information includes the target business logic code identifier;
[0087] The storage module 503 is used to store the target business logic code into a target code file included in the browser side when receiving the target business logic code sent by the server side. The code file is a file that can run the code independently.
[0088] The running module 504 is used to run the target business logic code in the target code file, process the target data, and obtain the processing result.
[0089] In some embodiments, the device further comprises a loading module, which is used for, before the receiving module receives the data processing request input by the user based on the display interface of the browser,
[0090] In response to a first operation of the user on the display interface of the browser, the target code file is loaded.
[0091] In some embodiments, the loading module may be specifically used to load the code file in response to a first operation of the user on the display interface of the browser, including:
[0092] In response to a first operation of the user on the display interface of the browser, an acquisition request is sent to the server, so that the server determines the target code file corresponding to the target identifier of the browser based on the preset correspondence between the identifier of the browser and the code file, and sends the target code file to the browser, wherein the acquisition request includes the target identifier;
[0093] When receiving the target code file sent by the server, load the target code file.
[0094] In some embodiments, the target code file includes an execution code, and the target business logic code is an encrypted business logic code;
[0095] Run module, can also be used to:
[0096] Run the execution code in the target code file, decrypt the target business logic code, and obtain the decrypted target business logic code;
[0097] The decrypted target business logic code is run in the target code file, the target data is processed, and the processing result is obtained.
[0098] In some embodiments, the sending module may also be used to:
[0099] In the case where the code file plug-in is installed on the browser side, in response to a second operation of the user based on the browser side display interface, downloading the code template file;
[0100] The code template file is sent to the server, so that the server generates a target code file based on the code template file in response to the user's target operation.
[0101] In some embodiments, the target code file further includes an acquisition code, and the acquisition code includes a target business logic code identifier;
[0102] The sending module can be used for:
[0103] Get the code by running the target code file and send request information to the server.
[0104] In some embodiments, the target code file is a binary code file WASM.
[0105] The device of the above embodiment is used to implement the corresponding data processing method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0106] Figure 6 A schematic diagram of the hardware structure of an electronic device provided in an application embodiment.
[0107] The electronic device 600 may include a processor 601 and a memory 602 storing computer program instructions.
[0108] Specifically, the processor 601 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0109] The memory 602 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 602 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 602 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 602 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 602 is a non-volatile solid-state memory.
[0110] In certain embodiments, memory 602 includes a read-only memory (ROM). The ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of the above, where appropriate.
[0111] The memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to the first aspect of the present application.
[0112] The processor 601 implements any one of the data processing methods in the above embodiments by reading and executing computer program instructions stored in the memory 602 .
[0113] In one example, the electronic device may further include a communication interface 603 and a bus 604. Figure 6 The processor 601, the memory 602, and the communication interface 603 are connected via a bus 604 and communicate with each other.
[0114] The communication interface 603 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0115] Bus 604 includes hardware, software or both, and the parts of online data flow billing equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 604 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0116] The electronic device of the above embodiment is used to implement the corresponding data processing method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0117] In addition, in combination with the data processing method in the above embodiments, the present application embodiment can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the data processing methods in the above embodiments is implemented.
[0118] In addition, in combination with the data processing method in the above embodiments, the present application embodiment can provide a computer program product to implement. When the computer program product instructions are executed by a processor of an electronic device, any one of the data processing methods in the above embodiments is implemented.
[0119] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.
[0120] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0121] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or devices based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0122] The above reference is according to the method of the embodiment of the present application, the flow chart of the device (device) and the computer program product and / or the block diagram described various aspects of the present application.It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram.Such a processor can be but is not limited to a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.It can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.
[0123] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the above-described devices, modules and units can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application.
Claims
1. A data processing method, characterized in that: Applied to the browser side, the processing method includes: Receiving a data processing request input by a user based on a display interface of a browser, wherein the data processing request includes target data to be processed and a target business logic code identifier; Sending request information to the server through the target code file, so that the server determines the target business logic code corresponding to the target business logic code identifier based on the correspondence between the preset business logic code identifier and the business logic code, and sends the target business logic code to the browser, wherein the request information includes the target business logic code identifier; When receiving the target business logic code sent by the server, storing the target business logic code in a target code file included in the browser, wherein the code file is a file that can run the code independently; The target business logic code in the target code file is run to process the target data to obtain a processing result.
2. The data processing method according to claim 1, characterized in that: Before receiving a data processing request input by a user based on a display interface of a browser, the method further includes: In response to a first operation of the user on the display interface of the browser, the target code file is loaded.
3. The data processing method according to claim 2, characterized in that: In response to a first operation of the user on the display interface of the browser, loading the code file includes: In response to a first operation of the user on the display interface of the browser, an acquisition request is sent to the server, so that the server determines a target code file corresponding to a target identifier of the browser based on a preset correspondence between an identifier of the browser and a code file, and sends the target code file to the browser, wherein the acquisition request includes the target identifier; When the target code file sent by the server is received, the target code file is loaded.
4. The data processing method according to claim 1, characterized in that: The target code file includes an execution code, and the target business logic code is an encrypted business logic code; The running of the target business logic code in the target code file to process the target data includes: Running the execution code in the target code file to decrypt the target business logic code to obtain the decrypted target business logic code; The decrypted target business logic code is run in the target code file, the target data is processed, and the processing result is obtained.
5. The data processing method according to claim 4, characterized in that: Before sending the acquisition request to the server, the method further includes: When the code file plug-in is installed on the browser side, in response to a second operation of the user based on the display interface on the browser side, downloading a code template file; The code template file is sent to the server, so that the server generates the target code file based on the code template file in response to the target operation of the user.
6. The data processing method according to claim 5, characterized in that: The target code file also includes an acquisition code, and the acquisition code includes a target business logic code identifier; The sending of request information to the server through the target code file includes: The acquisition code is executed by running the target code file to send the request information to the server.
7. The data processing method according to any one of claims 1 to 6, characterized in that: The target code file is a binary code file WASM.
8. A data processing device, characterized in that: Applied to the browser side, the processing method includes: A receiving module, used to receive a data processing request input by a user based on a display interface of a browser, wherein the data processing request includes target data to be processed and a target business logic code identifier; A sending module, used to send request information to the server through the target code file, so that the server determines the target business logic code corresponding to the target business logic code identifier based on the correspondence between the preset business logic code identifier and the business logic code, and sends the target business logic code to the browser, wherein the request information includes the target business logic code identifier; A storage module, which is used to store the target business logic code into a target code file included in the browser end when receiving the target business logic code sent by the server end, wherein the code file is a file that can run the code independently; The running module is used to run the target business logic code in the target code file, process the target data, and obtain a processing result.
9. An electronic device, characterized in that: The device comprises: a processor, and a memory storing computer program instructions; The processor reads and executes the computer program instructions to implement the data processing method according to any one of claims 1 to 7.
10. A readable storage medium, characterized in that: The readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the data processing method according to any one of claims 1 to 7 is implemented.
11. A computer program product, comprising a computer program, characterized in that When the computer program is processed by a processor, the data processing method according to any one of claims 1 to 7 is implemented.
