Data access method, device and equipment and computer readable storage medium
By analyzing the access identifier in the data access request sent by the terminal, determining the target routing information and recommendation information identifiers, updating and encapsulating the data access request, sending it to the service server to present the recommended information in the target display environment, solving the data in the prior art The problem of inaccurate access and difficult verification of target display environments has achieved efficient and accurate data access and display.
Patent Information
- Application Number
- CN202310972672.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-02
- Publication Date
- 2025-02-14
AI Technical Summary
When the prior art experiences recommendation information in a test environment, it is difficult to achieve accurate data access and verification of the target display environment, and there is a problem of interference with recommendation information with higher bids in the bidding system.
By receiving the data access request sent by the terminal, the access identifier is parsed to determine the target routing information and the target recommendation information identifier of the target routing information, update the data access request and encapsulate the routing information, send encapsulated data packets to the service server, and finally present it in the target display environment Recommended information.
It realizes accurate presentation of recommended information in the target display environment, improves the convenience and accuracy of data access, and solves the problem of interference with recommendation information in the bidding system with higher bidding.
Smart Images

Figure CN119441580A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to information processing technology, and in particular to a data access method, device, equipment and computer-readable storage medium. Background Art
[0002] Before the product goes online, testers need to view and experience the display effect of the product. For example, in the experience of the recommended information effect, in the relevant technology, it is necessary to increase the bid of the recommended information to be experienced in the test environment recommendation information delivery system, so that the recommended information to be experienced wins in the bidding system, and then configure the request routing to the feature recommended information playback environment. In other words, by continuously competing to increase the recommended information bid, the display effect of the recommended information can be experienced.
[0003] However, if there is a recommendation information with a higher bid than the recommendation information to be experienced, the recommendation information to be experienced cannot win in the bidding system, and the recommendation information to be experienced cannot be experienced. In addition, the verification of switching the playback environment of specific recommendation information in the related art is difficult to implement. Summary of the invention
[0004] The embodiments of the present application provide a data access method, apparatus, computer device, computer-readable storage medium, and computer program product, which can improve the convenience of data access and improve the accuracy of data access.
[0005] The technical solution of the embodiment of the present application is implemented as follows:
[0006] The present application provides a data access method, the method comprising:
[0007] Receiving a data access request sent by a terminal, and obtaining an access identifier carried in the data access request, wherein the data access request is an access request for recommended information sent by the terminal when it is determined that a verification timing has arrived during the process of running an application program in a test environment;
[0008] Based on the access identifier, determining the target routing information and the target recommendation information identifier of the recommendation information corresponding to the data access request;
[0009] updating the data access request based on the target recommendation information identifier to obtain an updated data access request, and encapsulating the target routing information and the updated data access request to obtain an encapsulated data packet;
[0010] Sending the encapsulated data packet to the service server;
[0011] When the recommendation information sent by the service server is received, the recommendation information is sent to the terminal.
[0012] The present application provides a data access device, the device comprising:
[0013] A first receiving module is used to receive a data access request sent by a terminal and obtain an access identifier carried in the data access request, wherein the data access request is an access request for recommended information sent by the terminal when it is determined that a verification opportunity has arrived during the process of running an application in a test environment;
[0014] A first determination module, configured to determine, based on the access identifier, target routing information and target recommendation information identifiers of recommendation information corresponding to the data access request;
[0015] An updating module, configured to update the data access request based on the target recommendation information identifier to obtain an updated data access request, and encapsulate the target routing information and the updated data access request to obtain an encapsulated data packet;
[0016] A first sending module, used for sending the encapsulated data packet to a service server;
[0017] The second sending module is configured to send the recommendation information to the terminal when receiving the recommendation information sent by the service server.
[0018] An embodiment of the present application provides a computer device, including:
[0019] A memory for storing computer executable instructions;
[0020] The processor is used to implement the data access method provided in the embodiment of the present application when executing the computer executable instructions stored in the memory.
[0021] An embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions for causing a processor to execute the data access method provided by the embodiment of the present application.
[0022] An embodiment of the present application provides a computer program product, including a computer program or computer executable instructions. When the computer program or computer executable instructions are executed by a processor, the data access method provided by the embodiment of the present application is implemented.
[0023] The embodiments of the present application have the following beneficial effects:
[0024] In an embodiment of the present application, a data access request sent by a terminal is received, and an access identifier carried by the data access request can be obtained by parsing the data access request, wherein the data access request is an access request for recommended information sent by the terminal when it is determined that the verification time has arrived during the process of running an application in a test environment. Then, the target routing information corresponding to the data access request can be determined by the access identifier, and the target recommended information identifier of the recommended information corresponding to the data access request can also be determined by the access identifier. Then, the target display environment of the recommended information can be determined by the target routing information, and the recommended information in the target display environment can be determined by the target recommended information identifier, so that the recommended information can be presented in the target display environment. Then, based on the target recommended information identifier, the data access request is updated to obtain an updated data access request, and the target routing information and the updated data access request are also encapsulated to obtain an encapsulated data packet; the encapsulated data packet is sent to the business server so that the business server returns the recommended information. Finally, when the recommended information is received, the recommended information is also sent to the terminal so that the terminal presents the recommended information in the target display environment. In this way, the target routing information and target recommendation information identifier corresponding to the access identifier can be accurately determined based on the access identifier, and the target display environment can be further determined based on the target routing information, and the recommended information can be determined based on the target recommendation information identifier, and finally the effect of presenting the recommended information in the target display environment can be achieved, thereby improving the convenience of data access and the accuracy of data access. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is a schematic diagram of an implementation framework structure of a data access method provided by related technologies;
[0026] Figure 2 is a schematic diagram of a network architecture of a data access system 100 provided in an embodiment of the present application;
[0027] Figure 3 is a schematic diagram of the structure of the proxy server 400 provided in an embodiment of the present application;
[0028] Figure 4 This is a schematic diagram of an implementation flow of the data access method provided in an embodiment of the present application;
[0029] Figure 5 This is a schematic diagram of an implementation process of determining target routing information and target recommendation information identifiers provided in an embodiment of the present application;
[0030] Figure 6 A schematic diagram of another implementation flow of determining a target recommendation information identifier provided in an embodiment of the present application;
[0031] Figure 7A schematic diagram of another implementation flow of the data access method provided in an embodiment of the present application;
[0032] Figure 8 A schematic diagram of an implementation flow of the data access interaction method provided in an embodiment of the present application;
[0033] Fig.9A A schematic diagram of an implementation flow of binding data provided in an embodiment of the present application;
[0034] Fig. 9B A schematic diagram of another implementation flow of binding data provided in an embodiment of the present application;
[0035] Fig.10 A schematic diagram of a display of a dyed advertisement presented through a terminal provided in an embodiment of the present application;
[0036] Fig.11 A schematic diagram of a process framework for data access provided in an embodiment of the present application;
[0037] Fig.12 A schematic diagram of a process framework of the downgrade service provided in an embodiment of the present application. DETAILED DESCRIPTION
[0038] 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. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.
[0039] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0040] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0041] Unless otherwise defined, all technical and scientific terms used in the embodiments of the present application have the same meanings as those commonly understood by those skilled in the art. The terms used in the embodiments of the present application are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.
[0042] In order to better understand the data access method provided in the embodiment of the present application, the data access method in the related art and the existing shortcomings are first explained.
[0043] The schematic diagram of the framework structure of the data access method in the related technology is as follows: Figure 1 As shown in the figure, when testing and verifying a specific ad, you need to first increase the bid of the target ad in the test environment ad delivery system, that is, Figure 1 "Raise the target ad bid" in the bidding system to ensure that the target ad wins in the bidding system; then call the shell tool to configure the request routing to the feature ad playback environment, corresponding to Figure 1 In "Call remole shell to write nginx geo configuration uin: routing address". Based on this, send a request for advertising through the terminal, add an advertising identifier to the specified environment in the hypertext transfer uniform location resource identifier to request advertising, and then send the request with the added advertising identifier to the advertising playback system, and finally the advertising playback system returns the advertisement to the terminal.
[0044] In order to ensure that ads have a chance to win, related technologies will continue to compete to raise ad bids. Even so, it is difficult to switch to a specific environment for verification. In addition, related technologies only support the Hypertext Transfer Protocol (http) protocol, and do not support the Remote Procedure Call Protocol (rpc), custom protocols, etc., which affects the test efficiency.
[0045] It can be seen that the relevant technology is inefficient. Due to competitive bidding, the success rate is low when satisfying user identification and ad matching at the same time, and there is a problem of high cost for pulling specific ads. In addition, when pulling ads in the switching feature environment, remote call protocols and custom protocols are not supported.
[0046] The embodiments of the present application provide a data access method, apparatus, computer device, computer-readable storage medium, and computer program product, which can solve the problem of inaccurate or difficult data access. The following describes an exemplary application of the computer device provided by the embodiments of the present application. The computer device provided by the embodiments of the present application can be implemented as various types of user terminals such as laptop computers, tablet computers, desktop computers, set-top boxes, mobile devices (e.g., mobile phones, portable music players, personal digital assistants, dedicated messaging devices, portable gaming devices), smart phones, smart speakers, smart watches, smart TVs, and vehicle-mounted terminals. The following describes an exemplary application when the computer device is implemented as a proxy server.
[0047] See also Figure 2 , Figure 2This is a network architecture diagram of a data access system 100 provided in an embodiment of the present application. To support a data access application, a terminal 200 is connected to a proxy server 400 via a network 300, and the proxy server 400 is connected to a business server 500 via a network 300. The network 300 may be a wide area network or a local area network, or a combination of the two.
[0048] Taking accessing offline advertisements through a terminal as an example, when the terminal 200 receives a data access request for offline advertisements, the terminal 200 is used to send a data access request to the proxy server 400, and the data access request carries an access identifier. The proxy server 400 is used to obtain the access identifier carried by the data access request; based on the access identifier, determine the target routing information corresponding to the data access request and the target advertisement identifier of the offline advertisement; update the data access request based on the target recommendation information identifier to obtain the updated data access request, and encapsulate the target routing information and the updated data access request to obtain an encapsulated data packet. The proxy server 400 is used to send an encapsulated data packet to the business server 500. The business server 500 is used to send the offline advertisement to the proxy server 400. The proxy server 400 is used to send the offline advertisement to the terminal 200. The terminal 200 is used to present the offline advertisement corresponding to the target advertisement identifier in the target display environment corresponding to the target routing information based on the received offline advertisement.
[0049] In an embodiment of the present application, the proxy server 400 can determine the target routing information corresponding to the data access request through the access identifier, and can also determine the target recommendation information identifier of the recommendation information corresponding to the data access request through the access identifier. Then, the target display environment of the recommendation information can be determined through the target routing information, and the recommended information in the target display environment can be determined through the target recommendation information identifier, so that the recommended information can be presented in the target display environment. Send an encapsulated data packet to the business server so that the business server returns the recommendation information. Finally, when the recommendation information is received, the recommendation information is also sent to the terminal so that the terminal presents the recommendation information in the target display environment. In this way, the target routing information and the target recommendation information identifier corresponding to the access identifier can be accurately determined based on the access identifier, and the target display environment can be further determined based on the target routing information, and the recommended information can be determined based on the target recommendation information identifier, and finally the effect of presenting the recommended information in the target display environment can be achieved, thereby improving the convenience of data access and the accuracy of data access.
[0050] In some embodiments, the proxy server 400 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms. The terminal can be a smart phone, a tablet computer, a laptop, a desktop computer, a smart speaker, a smart watch, a car-mounted smart terminal, etc., but is not limited to this. The terminal and the server can be directly or indirectly connected by wired or wireless communication, which is not limited in the embodiments of the present application.
[0051] See also Figure 3 , Figure 3 A schematic diagram of the structure of the proxy server 400 provided in the embodiment of the present application, Figure 3 The proxy server 400 shown includes: at least one processor 410, a memory 450, at least one network interface 420 and a user interface 430. The various components in the proxy server 400 are coupled together via a bus system 440. It is understood that the bus system 440 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 440 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 440 is not shown in FIG. Figure 3 Various buses are labeled as bus system 440 .
[0052] The processor 410 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0053] The user interface 430 includes one or more output devices 431 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
[0054] The memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard disk drives, optical disk drives, etc. The memory 450 may optionally include one or more storage devices that are physically remote from the processor 410.
[0055] The memory 450 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 450 described in the embodiments of the present application is intended to include any suitable type of memory.
[0056] In some embodiments, memory 450 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplarily described below.
[0057] Operating system 451, including system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks;
[0058] A network communication module 452, used to reach other electronic devices via one or more (wired or wireless) network interfaces 420, exemplary network interfaces 420 include: Bluetooth, Wireless Compatibility Certification (WiFi), and Universal Serial Bus (USB), etc.;
[0059] a presentation module 453 for enabling presentation of information via one or more output devices 431 (e.g., display screen, speaker, etc.) associated with the user interface 430 (e.g., a user interface for operating peripherals and displaying content and information);
[0060] The input processing module 454 is used to detect one or more user inputs or interactions from one of the one or more input devices 432 and translate the detected inputs or interactions.
[0061] In some embodiments, the device provided in the embodiments of the present application can be implemented in software. Figure 3 The data access device 455 stored in the memory 450 is shown, which can be software in the form of a program and a plug-in, etc., and includes the following software modules: a first receiving module 4551, a first determining module 4552, an updating module 4553, a first sending module 4554 and a second sending module 4555. These modules are logical, and therefore can be arbitrarily combined or further split according to the functions implemented. The functions of each module will be described below.
[0062] In other embodiments, the device provided in the embodiments of the present application can be implemented in hardware. As an example, the device provided in the embodiments of the present application can be a processor in the form of a hardware decoding processor, which is programmed to execute the data access method provided in the embodiments of the present application. For example, the processor in the form of a hardware decoding processor can adopt one or more application-specific integrated circuits (Application Specific Integ rated Circuit, ASIC), DSP, programmable logic device (Programmable Logic Device, PLD), complex programmable logic device (Complex Programmable Logic Device, CPLD), field programmable gate array (Field-Programmable Gate Array, FPGA) or other electronic components.
[0063] The data access method provided in the embodiment of the present application will be explained in combination with the exemplary application and implementation of the proxy server provided in the embodiment of the present application.
[0064] The following describes the data access method provided by the embodiment of the present application. As mentioned above, the computer device implementing the data access method of the embodiment of the present application may be a proxy server. Therefore, the execution subject of each step will not be repeatedly described below.
[0065] It should be noted that the example of the data access method below is explained by accessing offline advertisements. Based on their understanding of the following text, those skilled in the art can apply the data access method provided in the embodiment of the present application to accessing other data such as offline mini-programs, games, etc.
[0066] See also Figure 4 , Figure 4 is a schematic diagram of an implementation flow of a data access method provided in an embodiment of the present application. The method is applied to a computer device. The method can be used in vehicle-mounted, artificial intelligence and other scenarios. For example, the computer device can be a proxy server. Figure 4 The steps shown are used to illustrate the data access method provided in the embodiment of the present application. Figure 4 The execution subject is the proxy server.
[0067] In step S101, a data access request sent by a terminal is received, and an access identifier carried in the data access request is obtained.
[0068] In the embodiment of the present application, the data access request is an access request for recommended information sent by the terminal when it is determined that the verification time has arrived during the process of running the application in the test environment. Among them, the application in the test environment refers to the stage of testing in the software development process, using an environment and tools specifically designed for testing purposes. It is mainly used to verify and debug the functions, performance, security and stability of the software. Generally, testers can access the application in the test environment through the terminal.
[0069] In some embodiments, the application in the test environment may be a reading application, a news application, a video application, etc. For example, if the application in the test environment is a reading application, the verification timing may be the start time of the reading application, the verification timing may also be when the reading application is left on for 1 minute, or when 5 pages of content are flipped on the reading application.
[0070] In some embodiments, the recommendation information may be reference recommendation information, and the reference recommendation information may be displayed through a target display effect, and the reference recommendation information is used to verify the display effect.
[0071] In other embodiments, the recommendation information may also be recommended information to be launched online that has not yet been launched. During the process of running an application in a test environment, the recommended information to be launched online is displayed, and the overall display effect of the recommended information to be launched online can be displayed, such as the display time of the recommended information to be launched online, the display font of the recommended information to be launched online, the display form of the recommended information to be launched online, etc., so that the relevant information of the recommended information to be launched can be fully and intuitively displayed, and the verification of the recommended information to be launched can be completed in advance before the recommended information to be launched goes online, to ensure that the recommended information to be launched goes online as expected.
[0072] In some embodiments, the recommendation information may be a test advertisement, an unreleased advertisement, an unreleased game, an unreleased news, an unreleased video, etc. The data access request carries an access identifier, which can be obtained by parsing the data access request. The access identifier includes at least a target user identifier and a target terminal identifier. The target user identifier may be a public instant messaging account, a public employee account, etc., and the target terminal identifier may be a device machine code, a custom code, etc. of the terminal.
[0073] In step S102, based on the access identifier, the target routing information and the target recommendation information identifier of the recommendation information corresponding to the data access request are determined.
[0074] In some embodiments, the access identifier includes a target terminal identifier and a target user identifier. Figure 5The above step S102 can be implemented by the following steps S1021 to S1027, which are described in detail below.
[0075] In step S1021, a preset mapping table is obtained.
[0076] In the embodiment of the present application, the mapping table stores a first mapping relationship between a terminal identifier and a recommended information identifier, a second mapping relationship between a user identifier and a recommended information identifier, a third mapping relationship between a terminal identifier and routing information, and a fourth mapping relationship between a user identifier and routing information. The mapping table is constructed in advance.
[0077] In some embodiments, the mapping table may store a first mapping relationship between multiple terminal identifiers and recommended information identifiers. Exemplarily, the mapping table may store a first mapping relationship between the first terminal identifier 1001 and the first recommended information identifier 0001, a first mapping relationship between the second terminal identifier 1002 and the second recommended information identifier 0002, a first mapping relationship between the third terminal identifier 1003 and the third recommended information identifier 0003, etc. Similarly, the mapping table may store multiple second mapping relationships, multiple third mapping relationships, and a fourth mapping relationship.
[0078] In step S1022, based on the first mapping relationship, a first candidate recommendation information identifier corresponding to the target terminal identifier is determined.
[0079] In some embodiments, a target first mapping relationship including a target terminal identifier is determined from the first mapping relationship, and the recommended information identifier included in the target first mapping relationship is determined as a first candidate recommended information identifier. The first candidate recommended information identifier may be one or more.
[0080] In step S1023, based on the second mapping relationship, a second candidate recommendation information identifier corresponding to the target user identifier is determined.
[0081] In some embodiments, a target second mapping relationship including a target user identifier is determined from the second mapping relationships, and the recommendation information identifier included in the target second mapping relationship is determined as a second candidate recommendation information identifier. The second candidate recommendation information identifier may be one or more.
[0082] In step S1024, a target recommended information identifier is determined from the first candidate recommended information identifier and the second candidate recommended information identifier.
[0083] In some embodiments, the target terminal identifier and the target user identifier are both access identifiers, based on which the first candidate recommendation information identifier and the second candidate recommendation information identifier correspond to the access identifier.
[0084] In some embodiments, see Figure 6 The above step S1024 can be implemented by the following steps S241 to S244, which are described in detail below.
[0085] In step S241, when the first candidate recommendation information identifier is the same as the second candidate recommendation information identifier, the first candidate recommendation information identifier is determined as the target recommendation information identifier.
[0086] In some embodiments, when the first candidate recommendation information identifier and the second candidate recommendation information identifier are both one and the same, the first candidate recommendation information identifier is determined as the target recommendation information identifier, and the second candidate recommendation information identifier may also be determined as the target recommendation information identifier.
[0087] In some embodiments, when there are multiple first candidate recommendation information identifiers and second candidate recommendation information identifiers, and each first candidate recommendation information identifier is the same as the corresponding second candidate recommendation information identifier, any one of the multiple first candidate recommendation information identifiers can be determined as the target recommendation information identifier, or the first candidate recommendation information identifier that constructs the first mapping relationship the latest among the multiple first candidate recommendation information identifiers can be determined as the target recommendation information identifier, or the first candidate recommendation information identifier that constructs the first mapping relationship the earliest among the multiple first candidate recommendation information identifiers can be determined as the target recommendation information identifier. Similarly, the target recommendation information identifier can be determined from multiple second candidate recommendation information identifiers by the same method.
[0088] In step S242, when the first candidate recommendation information identifier is different from the second candidate recommendation information identifier, a first priority level of the first candidate recommendation information identifier and a second priority level of the second candidate recommendation information identifier are obtained.
[0089] In some embodiments, when the first candidate recommendation information identifier and the second candidate recommendation information identifier are both one, and the first candidate recommendation information identifier is different from the second candidate recommendation information identifier, the first priority level of the first candidate recommendation information identifier and the second priority level of the second candidate recommendation information identifier are obtained. The priority level of each recommendation information identifier is set in advance. Exemplarily, the first priority level of the first candidate recommendation information identifier is 10, and the second priority level of the second candidate recommendation information identifier is 6.
[0090] In some embodiments, when there are multiple first candidate recommendation information identifiers and multiple second candidate recommendation information identifiers, and any first candidate recommendation information identifier is different from any second candidate recommendation information identifier, the first priority level of each first candidate recommendation information identifier and the second priority level of each second candidate recommendation information identifier are obtained. Exemplarily, the first priority level of the first candidate recommendation information identifier 1 is 8, the first priority level of the first candidate recommendation information identifier 2 is 2, the second priority level of the second candidate recommendation information identifier 1 is 9, and the second priority level of the second candidate recommendation information identifier 2 is 6.
[0091] In step S243, when the first priority level is different from the second priority level, the candidate recommended information identifier with a higher priority level between the first candidate recommended information identifier and the second candidate recommended information identifier is determined as the target recommended information identifier.
[0092] In some embodiments, when the first candidate recommendation information identifier and the second candidate recommendation information identifier are both one, and the first candidate recommendation information identifier is different from the second candidate recommendation information identifier, continuing with the above example, the first priority level is different from the second priority level, and the first priority level is higher than the second priority level, the first candidate recommendation information identifier is determined as the target recommendation information identifier.
[0093] In some embodiments, when there are multiple first candidate recommendation information identifiers and multiple second candidate recommendation information identifiers, and any first candidate recommendation information identifier is different from any second candidate recommendation information identifier, the candidate recommendation information identifier with a higher priority among each first candidate recommendation information identifier and each second candidate recommendation information identifier is determined as the target recommendation information identifier. Continuing with the above example, since the second priority of the second candidate recommendation information identifier 1 is 9, and is higher than the first priority of the first candidate recommendation information identifier 1, the first priority of the first candidate recommendation information identifier 2, and the second priority of the second candidate recommendation information identifier 2, the second candidate recommendation information identifier 1 is determined as the target recommendation information identifier.
[0094] In step S244, when the first priority level is the same as the second priority level, a candidate recommendation information identifier is randomly selected from the first candidate recommendation information identifier and the second candidate recommendation information identifier as the target recommendation information identifier.
[0095] In some embodiments, when the first candidate recommendation information identifier and the second candidate recommendation information identifier are both one, and the first candidate recommendation information identifier is different from the second candidate recommendation information identifier, the first candidate recommendation information identifier or the second candidate recommendation information identifier is determined as the target recommendation information identifier.
[0096] In some embodiments, when there are multiple first candidate recommendation information identifiers and second candidate recommendation information identifiers, and the first candidate recommendation information identifier is different from the second candidate recommendation information identifier, any one of the first candidate recommendation information identifiers is determined as the target recommendation information identifier, or any one of the second candidate recommendation information identifiers is determined as the target recommendation information identifier.
[0097] Continue to refer to Figure 5 , proceed to step S1024 for explanation.
[0098] In step S1025, based on the third mapping relationship, first candidate routing information corresponding to the target terminal identifier is determined.
[0099] In some embodiments, the implementation process of step S1025 is similar to the implementation process of the above-mentioned step S1022. Therefore, the implementation process of step S1025 can refer to the implementation process of the above-mentioned step S1022.
[0100] In step S1026, based on the fourth mapping relationship, second candidate routing information corresponding to the target user identifier is determined.
[0101] In some embodiments, the implementation process of step S1026 is similar to the implementation process of step S1023 described above. Therefore, the implementation process of step S1026 may refer to the implementation process of step S1023 described above.
[0102] In step S1027, target routing information is determined from the first candidate routing information and the second candidate routing information.
[0103] In some embodiments, the implementation process of step S1027 is similar to the implementation process of the above-mentioned step S1024. Therefore, the implementation process of step S1027 can refer to the implementation process of the above-mentioned step S1024.
[0104] Through step S102, the target routing information and the target recommendation information identifier corresponding to the access identifier can be accurately and quickly determined based on the access identifier and the preset mapping table, thereby improving the accuracy and efficiency of data access.
[0105] Continue to refer to Figure 4 , and the description continues with step S102.
[0106] In step S103, the data access request is updated based on the target recommendation information identifier to obtain an updated data access request, and the target routing information and the updated data access request are encapsulated to obtain an encapsulated data packet.
[0107] In some embodiments, the implementation method of "updating the data access request based on the target recommendation information identifier to obtain an updated data access request" in the above step S103 may include obtaining the data format corresponding to the reference protocol type; adding the target recommendation information identifier to the data access request according to the data format to obtain an updated data access request.
[0108] Exemplarily, assuming that the target recommendation information identifier is at the 4th position in the data format corresponding to the reference protocol type, the target recommendation information identifier is added to the 4th position of the data access request to obtain an updated data access request.
[0109] In some embodiments, the target routing information and the updated data access request are further encapsulated to obtain an encapsulated data packet.
[0110] In some embodiments, before executing the above step S103, the initial protocol type of the data access request can also be obtained; when the initial protocol type is different from the reference protocol type, the data access request is converted according to the reference protocol type to obtain a converted data access request, wherein the protocol type of the converted data access request is the reference protocol type.
[0111] In some embodiments, the initial protocol type of the data access request may be of various types. For example, the initial protocol type may be a hypertext transfer protocol type, a remote call protocol type, a json protocol type, a custom protocol type, etc. The reference protocol type may be a json protocol type. In order to unify or facilitate updating of the data access request, when the initial protocol type is not the reference protocol type, the data access request is first converted according to the reference protocol type to obtain a converted data access request, and the protocol type of the converted data access request is the reference protocol type. After the conversion is completed, step S103 is entered, that is, the converted data access request is updated.
[0112] In some embodiments, when the initial protocol type is the same as the reference protocol type, there is no need to perform type conversion on the data access request, and the process directly proceeds to step S103.
[0113] Through step S103, before updating the data access request, if the initial protocol type of the data access request is different from the reference protocol type, the data access request will be type-converted so that the protocol type of the converted data access request is the reference protocol type. In this way, data access requests of various protocol types can be updated, the scope of the update can be expanded, and the scope of application of data access can be improved.
[0114] In step S104, the encapsulated data packet is sent to the service server.
[0115] In some embodiments, the implementation method of the above-mentioned step S104 includes, when the initial protocol type is different from the reference protocol type, performing type conversion processing on the encapsulated data packet according to the initial protocol type to obtain a converted encapsulated data packet, wherein the protocol type of the converted encapsulated data packet is the initial protocol type; and then sending the converted encapsulated data packet to the business server.
[0116] In some embodiments, when the initial protocol type is the same as the reference protocol type, there is no need to convert the encapsulated data packet, and the encapsulated data packet is directly sent to the service server.
[0117] In some embodiments, a data transmission network is established between the proxy server and the service server, and data transmission between the proxy server and the service server can be achieved based on the data transmission network.
[0118] In step S105, when the recommendation information sent by the service server is received, the recommendation information is sent to the terminal.
[0119] In some embodiments, taking the recommendation information as an offline advertisement as an example, the recommendation information is the advertisement data of the offline advertisement, and the recommendation information also includes the operating environment of the offline advertisement. Exemplarily, the recommendation information may include relevant data of advertisement A presented in a pop-up form.
[0120] In some embodiments, when the proxy server receives the recommendation information, it sends the recommendation information to the terminal so that the terminal can present the recommendation information.
[0121] In some embodiments, the recommendation information may also carry debugging information generated during the data access process. The debugging information may include target routing information and target recommendation information identification, thereby improving the convenience of subsequent information positioning and information identification by displaying the debugging information.
[0122] In some embodiments, the implementation of the above step S105 includes, when the initial protocol type is different from the reference protocol type, performing type conversion processing on the recommended information according to the initial protocol type to obtain the restored recommended information, wherein the protocol type of the restored recommended information is the initial protocol type; and then sending the restored recommended information to the terminal so that the terminal can present the recommended information based on the restored recommended information. That is, in order to be consistent with the initial protocol type of the data access request so that the terminal can identify the recommended information, when the initial protocol type is different from the reference protocol type, the proxy server will also perform conversion processing on the recommended information to obtain the restored recommended information, and then return the restored recommended information to the terminal so that the terminal can present the recommended information based on the restored recommended information.
[0123] In some embodiments, when the initial protocol type is the same as the reference protocol type, the protocol type representing the recommendation information is the same as the protocol type of the data access request, and the recommendation information can be directly sent to the terminal without type conversion.
[0124] Through step S105, when the protocol type of the recommended information is different from the initial protocol type, the recommended information is first converted to obtain restored recommended information, the protocol type of the restored recommended information is the initial protocol type, so that the terminal can recognize the restored recommended information.
[0125] Through the above steps S101 to S105, the data access request sent by the terminal is received, and the access identifier carried by the data access request can be obtained by parsing the data access request. Then, the target routing information corresponding to the data access request can be determined through the access identifier, and the target recommendation information identifier of the recommendation information corresponding to the data access request can also be determined through the access identifier. Then, the target display environment of the recommended information can be determined through the target routing information, and the recommended information in the target display environment can be determined through the target recommendation information identifier, so that the recommended information can be presented in the target display environment. Then, based on the target recommendation information identifier, the data access request is updated to obtain an updated data access request, and the target routing information and the updated data access request are also encapsulated to obtain an encapsulated data packet; the encapsulated data packet is sent to the business server so that the business server returns the recommended information. Finally, when the recommended information is received, the recommended information is also sent to the terminal so that the terminal presents the recommended information in the display environment. In this way, the target routing information and target recommendation information identifier corresponding to the access identifier can be accurately determined based on the access identifier and the preset mapping table, and the target display environment can be further determined based on the target routing information, and the recommended information can be determined based on the target recommendation information identifier, and finally the effect of presenting the recommended information in the target display environment can be achieved, thereby improving the convenience of data access and the accuracy of data access. In addition, if the initial protocol type of the data access request is different from the reference protocol type, the data access request will be type converted so that the protocol type of the converted data access request is the reference protocol type. In this way, data access processing of data access requests of different types of protocols can be achieved, thereby improving the scope of application of data access.
[0126] In some embodiments, before executing the above step S101, see Figure 7 , the following steps S001 to S003 may also be performed, which are described in detail below.
[0127] In step S001 , feature extraction is performed on each of the received multiple historical data access requests to obtain a feature value of each historical data access request.
[0128] In some embodiments, feature selection, preprocessing and other methods may be used to extract features from multiple historical data access requests, thereby obtaining feature values of each historical data access request. The historical data access request refers to a data access request received before the current moment.
[0129] In step S002, recommendation information corresponding to each historical data access request is obtained.
[0130] In some embodiments, the recommendation information corresponding to each historical data access request can be stored in the storage module of the proxy server, based on which, the recommendation information corresponding to each historical data access request can be obtained from its own storage module. The recommendation information corresponding to each historical data access request can also be stored in the business server, based on which, the proxy server can obtain the recommendation information corresponding to each historical data access request from the business server through the recommendation information acquisition instruction.
[0131] In step S003, a mapping relationship between each feature value and the corresponding recommendation information is constructed to obtain a mapping relationship set, and the mapping relationship set is stored.
[0132] In some embodiments, a mapping relationship between each feature value and the corresponding recommendation information can be constructed in a key-value pair manner, and each mapping relationship constitutes a mapping relationship set. The proxy server also stores the mapping relationship set locally, for example, storing the mapping relationship set in its own storage module.
[0133] Based on this, continue to see Figure 7 After the above step S105, the following steps S106 to S108 may also be executed, which are described in detail below.
[0134] In step S106, when no recommendation information is received from the service server, feature extraction is performed on the data access request to obtain a feature value of the data access request.
[0135] In some embodiments, when an abnormality occurs in the data transmission network between the proxy server and the business server, or the business server crashes, the business server cannot send recommendation information to the proxy server, that is, when the proxy server does not receive the recommendation information sent by the business server, feature extraction is performed on the data access request, and the feature extraction method used is the same as the feature extraction method used in the above step S001 to obtain the feature value of the data access request.
[0136] In step S107, the recommendation information corresponding to the characteristic value of the data access request is determined from the mapping relationship set.
[0137] In some embodiments, a target feature value that matches the feature value of the data access request may be determined from the mapping relationship set, and then target recommendation information corresponding to the target feature value may be determined as recommendation information for data access.
[0138] In some embodiments, the target feature value may be the same feature value as the feature value of the data access request, and the target feature value may be the feature value most similar to the feature value of the data access request.
[0139] In some embodiments, when the data access request is different from the protocol type of the historical data access request corresponding to the target characteristic value, the target recommendation information will also be type-converted so that the protocol type of the converted target recommendation information is consistent with the protocol type of the data access request; finally, the converted target recommendation information is determined as the recommendation information corresponding to the characteristic value of the data access request, that is, the converted target recommendation information is determined as the recommendation information corresponding to the data access request.
[0140] In step S108, the recommendation information corresponding to the characteristic value of the data access request is sent to the terminal.
[0141] Through the above steps S106 to S108, when an abnormal situation occurs and the proxy server cannot receive the recommendation information sent by the business server, the proxy server can determine the recommendation information corresponding to the data access request based on the mapping relationship set, and return the recommendation information corresponding to the data access request to the terminal. In this way, data access can be completed in abnormal situations, data access interruption can be avoided, and the robustness of data access can be improved.
[0142] Based on the above embodiments, see Figure 8 , an embodiment of the present application provides a schematic diagram of an implementation flow of a data access interaction method, the method includes steps S801 to S815, which are described in detail below.
[0143] In step S801 , the proxy server extracts features of the received multiple historical data access requests respectively to obtain feature values of the respective historical data access requests.
[0144] In some embodiments, the implementation process of step S801 is similar to the implementation process of step S001 described above. Therefore, the implementation process of step S801 may refer to the implementation process of step S001 described above.
[0145] In step S802, the proxy server obtains recommendation information corresponding to each historical data access request.
[0146] In some embodiments, the implementation process of step S802 is similar to the implementation process of step S002 described above. Therefore, the implementation process of step S802 may refer to the implementation process of step S002 described above.
[0147] In step S803, the proxy server constructs a mapping relationship between each feature value and the corresponding recommendation information, obtains a mapping relationship set, and stores the mapping relationship set.
[0148] In some embodiments, the implementation process of step S803 is similar to the implementation process of the above step S003, and therefore, the implementation process of step S803 may refer to the implementation process of the above step S003.
[0149] In step S804, the terminal sends a data access request to the proxy server.
[0150] In step S805, the proxy server obtains the access identifier carried in the data access request.
[0151] In some embodiments, the implementation process of step S805 is similar to the implementation process of step S101 described above. Therefore, the implementation process of step S805 may refer to the implementation process of step S101 described above.
[0152] In step S806, the proxy server determines the target routing information and the target recommendation information identifier of the recommendation information corresponding to the data access request based on the access identifier.
[0153] In some embodiments, the implementation process of step S806 is similar to the implementation process of step S102 described above. Therefore, the implementation process of step S806 may refer to the implementation process of step S102 described above.
[0154] In step S807, the proxy server updates the data access request based on the target recommendation information identifier, obtains the updated data access request, and encapsulates the target routing information and the updated data access request to obtain an encapsulated data packet.
[0155] In some embodiments, the implementation process of step S807 is similar to the implementation process of step S103 described above. Therefore, the implementation process of step S807 may refer to the implementation process of step S103 described above.
[0156] In step S808, the proxy server sends the encapsulated data packet to the service server.
[0157] In step S809, the service server determines recommendation information based on the encapsulated data packet.
[0158] In step S810, the service server sends the recommendation information to the proxy server.
[0159] In step S811, it is determined whether the proxy server has received the recommendation information.
[0160] In some embodiments, if the business server receives the recommendation information, indicating that the data transmission network between the proxy server and the business server is normal and the business server is operating normally, then the process proceeds to step S812; if the business server does not receive the recommendation information, indicating that the data transmission network between the proxy server and the business server is abnormal, or the business server is down, that is, there is an abnormal situation, then the process proceeds to step S813.
[0161] In step S812, the proxy server sends the recommendation information to the terminal and ends the process.
[0162] In step S813, the proxy server extracts features of the data access request to obtain feature values of the data access request.
[0163] In some embodiments, the implementation process of step S813 is similar to the implementation process of step S106 described above. Therefore, the implementation process of step S813 may refer to the implementation process of step S106 described above.
[0164] In step S814, the proxy server determines the recommendation information corresponding to the characteristic value of the data access request from the mapping relationship set.
[0165] In some embodiments, the implementation process of step S814 is similar to the implementation process of step S107 described above. Therefore, the implementation process of step S814 may refer to the implementation process of step S107 described above.
[0166] In step S815, the proxy server sends the recommendation information corresponding to the characteristic value of the data access request to the terminal.
[0167] In some embodiments, the implementation process of step S815 is similar to the implementation process of step S108 described above. Therefore, the implementation process of step S815 may refer to the implementation process of step S108 described above.
[0168] Through the above steps S801 to S815, the proxy server determines the target routing information corresponding to the data access request through the access identifier, and can also determine the target recommended information identifier of the recommended information corresponding to the data access request through the access identifier. Then, the target display environment of the recommended information can be determined through the target routing information, and the recommended information in the target display environment can be determined through the target recommended information identifier, so that the recommended information can be presented in the target display environment. When the proxy server receives the recommended information, it also sends the recommended information to the terminal so that the terminal presents the recommended information in the display environment. In this way, the target routing information and the target recommended information identifier corresponding to the access identifier can be accurately determined based on the access identifier and the preset mapping table, and the target display environment can be further determined based on the target routing information, and the recommended information can be determined based on the target recommended information identifier, and finally the effect of presenting the recommended information in the target display environment can be achieved, thereby improving the convenience of data access and the accuracy of data access. In addition, through protocol conversion, data access processing for data access requests of different types of protocols can be realized, and the scope of application of data access can be expanded. In addition, when an abnormal situation occurs and the proxy server cannot receive the recommended information sent by the business server, it can determine the recommended information corresponding to the data access request based on the mapping relationship set and return the recommended information corresponding to the data access request to the terminal. This enables data access to be completed in abnormal situations, avoids interruptions in data access, and improves the robustness of data access.
[0169] The following is an explanation of an exemplary application of the embodiments of the present application in a practical application scenario.
[0170] The embodiment of the present application proposes a data access method that allows testers to use their instant messaging accounts to experience specific target ads in a specific environment. By binding routes and specific ads through user identifiers, the hit requests are stained with specific ad identifiers and routed to specific feature environments. Among them, the routes correspond to the target route information in other embodiments, the specific ads correspond to the recommended information in other embodiments, and the specific ad identifiers correspond to the target recommended information identifiers in other embodiments.
[0171] After receiving the coloring request, the ad indexing service ignores the user orientation, ad orientation, and traffic context features and directly outputs the colored ad. This enables test users to experience and verify ad features in multiple feature development environments, improving development iteration efficiency. The ad indexing service corresponds to the business server in other embodiments, and the colored ad corresponds to the recommended information in other embodiments.
[0172] Automatically downgrade to provide lossy services when the test environment is unavailable, keeping the iteration process unblocked.
[0173] In some embodiments, see Fig.9A and Fig. 9B , among which, Fig.9A As shown, a user identifier 901 and a target recommendation information identifier 902 may be received through the page. Fig. 9B As shown, the routing information 903 having a fourth mapping relationship with the user identifier 901 can be received through the page. Based on this, the terminal can present the following Fig.10 The dyed advertisement shown can be viewed and verified through the terminal application to see the actual effect of the dyed advertisement.
[0174] The embodiment of the present application obtains user identification information based on a specific request protocol, and modifies the request for coloring, and forwards it to the characteristic environment corresponding to the user identification after coloring. After receiving the coloring request, the advertising system obtains the target advertisement and directly returns the target advertisement to the terminal. Modifying the coloring means adding the target advertisement identification corresponding to the user identification in the request. Among them, the advertising system corresponds to the business server in other embodiments.
[0175] At the same time, in order to facilitate user positioning and identification of correct routing and coloring, the target route and target advertisement identification information corresponding to the hit user identification can also be reported to the centralized log platform, and added to the debugging information of the advertisement return packet in the return packet, and finally returned to the terminal. Among them, the return packet corresponds to the recommendation information in other embodiments.
[0176] In addition, in order to avoid blocking the development and testing process when the advertising environment is unavailable, after the proxy server receives the advertising response packet, it stores the request and response packet, identifies the features in the request, and updates and saves the request response based on the features. When the advertising environment is abnormal, it matches the advertising request features and directly returns the stored advertising response packet.
[0177] In some embodiments, see Fig.11 The proxy server includes a binding module 1101 , a protocol packaging module 1102 , a coloring module 1103 , a forwarding module 1104 , a storage module 1105 and a degraded service module 1106 .
[0178] For the binding module 1101, the target advertisement identifier, the target characteristic environment routing information and the identifier in the terminal or request are bound through the web page, and the binding data is written into the database key-value pair memory storage.
[0179] For the protocol packaging module 1102, in order to identify and modify specific field information, all protocols prot o, http and other custom format protocols are converted into json format.
[0180] For the coloring module 1103, all user identifiers and device identifiers in each request are parsed to determine whether the coloring rules are hit. If the coloring rules are hit, the request is modified, that is, the target advertising identifier is added to the corresponding field of the request; analyze whether the route is hit, and then bring the routing information to the request distribution module; modify the special fields in the response to meet business or other real-time feedback related requirements.
[0181] For the forwarding module 1104, according to the routing information obtained by parsing the request, combined with the forwarding method adapted by the protocol adapter, the restored protocol format is forwarded to the environment specified by the routing information using the forwarding method.
[0182] For the storage module 1105, the coloring routing information contained in each request and response is pushed to the message queue, and feature rules are extracted for the request, an integrated keyword is generated, and the keyword and the corresponding response are saved in the database. Among them, the keyword corresponds to the feature value in other embodiments.
[0183] For the downgraded service module 1106, the service is started and the key-value pair response in the database is loaded into the memory. When the coloring is hit but the advertising system does not return the advertisement due to environmental abnormalities, the request features are identified, the memory key-value pairs are retrieved, the response is extracted and reassembled into a package and returned to the terminal.
[0184] refer to Fig.11 The terminal sends a request advertisement to the protocol packaging module 1102, and the protocol packaging module 1102 performs protocol conversion on the request to package the protocol into json format; the protocol packaging module 1102 sends the first converted request to the dyeing module 1103, and sends the dyeing request to the dyeing module 1103; the dyeing module 1103 dyes the converted request, and also packages the dyed request, and sends the packaged request to the protocol packaging module 1102, the protocol packaging module 1102 converts the protocol type to the original protocol type, and sends the second converted request to the forwarding module 1104; the forwarding module 1104 parses the second converted request to obtain routing information, and then sends the second converted request to the advertising environment corresponding to the advertising playback characteristic environment based on the routing information; the advertising playback characteristic environment determines the target advertisement in the corresponding advertising environment, generates a response, and encapsulates the response and returns it to the forwarding module 1104; the response is modified by the coloring module 1103, and then the modified response is stored in the storage module 1105; then, the protocol packaging module 1102 also restores the protocol of the encapsulated response to the original protocol, obtains the converted response, and returns the converted response to the terminal.
[0185] In some embodiments, the downgrade process can be to start a downgraded service in a specified binding environment, that is, in order to reduce latency and improve experience efficiency, the downgraded service can be actively started. The downgraded service can also be started according to different protocols. When the downgraded service is started, rules and features are extracted from the request and binding information, and a response that meets the rule features is returned to the terminal.
[0186] The present application embodiment provides Fig.12 The schematic diagram of the downgrade service process framework is shown in FIG. Fig.12 is Fig.11 On this basis, the forwarding module 1104 and the related processes of the advertisement playing characteristic environment are removed, that is, the response is directly obtained from the storage module 1105.
[0187] The data access method provided by this application can support the simultaneous development and verification of multiple features, and it is very convenient to query feature advertisements. At the same time, when an abnormality occurs in the low-level environment, it is automatically downgraded to a lossy service without blocking the iterative development process. The embodiment of this application is based on protocol identification and coloring, and each hit protocol is dyed with a feature identifier; forwarding requests to the specified feature environment according to the identification information in the protocol; when the environment is unavailable, it can be downgraded to a lossy service and directly return historical advertisement data.
[0188] Through the data access method of the embodiment of the present application, the coloring of the request can be done through the proxy service, and the advertising playback system directly outputs the colored advertisement; the proxy server forwards the request to the target characteristic advertising system; and also records the advertisement request and response information, so that the advertisement can be directly returned when the advertising environment is abnormal, avoiding the development process from being blocked. In the case that the test environment is unavailable, an automatic degradation lossy service can be provided based on the recorded data to directly return the advertisement data without blocking the development process.
[0189] It is understandable that in the embodiments of the present application, the collection, use and processing of relevant data such as access identification, recommendation information, preset mapping tables, etc. need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0190] The following is a description of an exemplary structure of the data access device 455 provided in the embodiment of the present application implemented as a software module. In some embodiments, Figure 3 As shown, the software modules stored in the data access device 455 of the memory 450 may include:
[0191] The first receiving module 4551 is used to receive a data access request sent by a terminal and obtain an access identifier carried in the data access request, wherein the data access request is an access request for recommended information sent by the terminal when it is determined that a verification opportunity has arrived during the process of running an application in a test environment;
[0192] A first determination module 4552, configured to determine, based on the access identifier, target routing information and target recommendation information identifiers of recommendation information corresponding to the data access request;
[0193] An updating module 4553 is used to update the data access request based on the target recommendation information identifier to obtain an updated data access request, and encapsulate the target routing information and the updated data access request to obtain an encapsulated data packet;
[0194] A first sending module 4554, configured to send the encapsulated data packet to a service server;
[0195] The second sending module 4555 is configured to send the recommendation information to the terminal when receiving the recommendation information sent by the service server.
[0196] In some embodiments, the data access device 455 further includes:
[0197] A first feature extraction module is used to extract features from the received multiple historical data access requests respectively to obtain feature values of each historical data access request;
[0198] A first acquisition module, used to acquire recommendation information corresponding to each historical data access request;
[0199] The construction module is used to construct a mapping relationship between each feature value and the corresponding recommendation information, obtain a mapping relationship set, and store the mapping relationship set.
[0200] In some embodiments, the data access device 455 further includes:
[0201] a second feature extraction module, configured to extract features of the data access request to obtain a feature value of the data access request when no recommendation information sent by the business server is received;
[0202] A second determination module, configured to determine, from the mapping relationship set, recommendation information corresponding to the characteristic value of the data access request;
[0203] A third sending module is configured to send the recommendation information corresponding to the characteristic value of the data access request to the terminal.
[0204] In some embodiments, the data access device 455 further includes:
[0205] A second acquisition module, used to acquire the initial protocol type of the data access request;
[0206] The conversion module is used to perform type conversion processing on the data access request according to the reference protocol type when the initial protocol type is different from the reference protocol type, so as to obtain a converted data access request, wherein the protocol type of the converted data access request is the reference protocol type.
[0207] In some embodiments, the first sending module 4554 is further used to:
[0208] When the initial protocol type is different from the reference protocol type, performing type conversion processing on the encapsulated data packet according to the initial protocol type to obtain a converted encapsulated data packet, the protocol type of the converted encapsulated data packet being the initial protocol type;
[0209] The converted encapsulated data packet is sent to the service server.
[0210] In some embodiments, the second sending module 4555 is further used to:
[0211] When the initial protocol type is different from the reference protocol type, performing type conversion processing on the recommendation information according to the initial protocol type to obtain restored recommendation information, wherein the protocol type of the restored recommendation information is the initial protocol type;
[0212] The restored recommendation information is sent to the terminal, so that the terminal can present the recommendation information based on the restored recommendation information.
[0213] In some embodiments, the update module 4553 is further used to:
[0214] Get the data format corresponding to the reference protocol type;
[0215] The target recommendation information identifier is added to the data access request according to the data format to obtain an updated data access request.
[0216] In some embodiments, the first determining module 4552 is further configured to:
[0217] Obtaining a preset mapping table, wherein the mapping table stores a first mapping relationship between a terminal identifier and a recommendation information identifier, a second mapping relationship between a user identifier and a recommendation information identifier, a third mapping relationship between a terminal identifier and routing information, and a fourth mapping relationship between a user identifier and routing information;
[0218] Based on the first mapping relationship, determining a first candidate recommendation information identifier corresponding to the target terminal identifier;
[0219] Based on the second mapping relationship, determining a second candidate recommendation information identifier corresponding to the target user identifier;
[0220] Determine a target recommendation information identifier from the first candidate recommendation information identifier and the second candidate recommendation information identifier;
[0221] Based on the third mapping relationship, determine first candidate routing information corresponding to the target terminal identifier;
[0222] Based on the fourth mapping relationship, determine the second candidate routing information corresponding to the target user identifier;
[0223] Target routing information is determined from the first candidate routing information and the second candidate routing information.
[0224] In some embodiments, the first determining module 4552 is further configured to:
[0225] When the first candidate recommendation information identifier is the same as the second candidate recommendation information identifier, determining the first candidate recommendation information identifier as the target recommendation information identifier;
[0226] When the first candidate recommendation information identifier is different from the second candidate recommendation information identifier, obtaining a first priority level of the first candidate recommendation information identifier and a second priority level of the second candidate recommendation information identifier;
[0227] When the first priority level is different from the second priority level, determining the candidate recommendation information identifier with a higher priority level between the first candidate recommendation information identifier and the second candidate recommendation information identifier as the target recommendation information identifier;
[0228] When the first priority level is the same as the second priority level, a candidate recommendation information identifier is randomly selected from the first candidate recommendation information identifier and the second candidate recommendation information identifier as a target recommendation information identifier.
[0229] The embodiment of the present application provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the data access method described above in the embodiment of the present application.
[0230] The present application embodiment provides a computer-readable storage medium storing executable instructions, wherein the executable instructions are stored. When the executable instructions are executed by a processor, the processor will execute the data access method provided by the present application embodiment, for example, Figure 4 , Figure 7 and Figure 8 The data access method is shown.
[0231] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EP ROM, EEPROM, flash memory, magnetic surface storage, optical disk, or CD-ROM; or it may be various devices including one or any combination of the above memories.
[0232] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.
[0233] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).
[0234] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.
[0235] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.
Claims
1. A data access method, characterized in that: The method comprises: Receiving a data access request sent by a terminal, and obtaining an access identifier carried in the data access request, wherein the data access request is an access request for recommended information sent by the terminal when it is determined that a verification timing has arrived during the process of running an application program in a test environment; Based on the access identifier, determining the target routing information and the target recommendation information identifier of the recommendation information corresponding to the data access request; updating the data access request based on the target recommendation information identifier to obtain an updated data access request, and encapsulating the target routing information and the updated data access request to obtain an encapsulated data packet; Sending the encapsulated data packet to the service server; When the recommendation information sent by the service server is received, the recommendation information is sent to the terminal.
2. The method according to claim 1, characterized in that The method further comprises: Extract features of the received multiple historical data access requests respectively to obtain feature values of each historical data access request; Obtaining recommendation information corresponding to each of the historical data access requests; A mapping relationship between each feature value and the corresponding recommendation information is constructed to obtain a mapping relationship set, and the mapping relationship set is stored.
3. The method according to claim 2, characterized in that The method further comprises: When no recommendation information sent by the business server is received, feature extraction is performed on the data access request to obtain a feature value of the data access request; Determining, from the mapping relationship set, recommendation information corresponding to the characteristic value of the data access request; The recommendation information corresponding to the characteristic value of the data access request is sent to the terminal.
4. The method according to claim 1, characterized in that Before updating the data access request based on the target recommendation information identifier, the method further includes: Obtaining an initial protocol type of the data access request; When the initial protocol type is different from the reference protocol type, the data access request is subjected to type conversion processing according to the reference protocol type to obtain a converted data access request, and the protocol type of the converted data access request is the reference protocol type.
5. The method according to claim 4, characterized in that The step of sending the encapsulated data packet to the service server comprises: When the initial protocol type is different from the reference protocol type, performing type conversion processing on the encapsulated data packet according to the initial protocol type to obtain a converted encapsulated data packet, the protocol type of the converted encapsulated data packet being the initial protocol type; The converted encapsulated data packet is sent to the service server.
6. The method according to claim 4 or 5, characterized in that The sending the recommendation information to the terminal includes: When the initial protocol type is different from the reference protocol type, performing type conversion processing on the recommendation information according to the initial protocol type to obtain restored recommendation information, wherein the protocol type of the restored recommendation information is the initial protocol type; The restored recommendation information is sent to the terminal, so that the terminal can present the recommendation information based on the restored recommendation information.
7. The method according to any one of claims 1 to 5, characterized in that: The updating of the data access request based on the target recommendation information identifier to obtain an updated data access request includes: Get the data format corresponding to the reference protocol type; The target recommendation information identifier is added to the data access request according to the data format to obtain an updated data access request.
8. The method according to any one of claims 1 to 5, characterized in that The access identifier includes a target terminal identifier and a target user identifier, and determining the target routing information and the target recommendation information identifier of the recommendation information corresponding to the data access request based on the access identifier includes: Obtaining a preset mapping table, wherein the mapping table stores a first mapping relationship between a terminal identifier and a recommendation information identifier, a second mapping relationship between a user identifier and a recommendation information identifier, a third mapping relationship between a terminal identifier and routing information, and a fourth mapping relationship between a user identifier and routing information; Based on the first mapping relationship, determining a first candidate recommendation information identifier corresponding to the target terminal identifier; Based on the second mapping relationship, determining a second candidate recommendation information identifier corresponding to the target user identifier; Determine a target recommendation information identifier from the first candidate recommendation information identifier and the second candidate recommendation information identifier; Based on the third mapping relationship, determine first candidate routing information corresponding to the target terminal identifier; Based on the fourth mapping relationship, determine the second candidate routing information corresponding to the target user identifier; Target routing information is determined from the first candidate routing information and the second candidate routing information.
9. The method according to claim 8, characterized in that The determining of the target recommendation information identifier from the first candidate recommendation information identifier and the second candidate recommendation information identifier includes: When the first candidate recommendation information identifier is the same as the second candidate recommendation information identifier, determining the first candidate recommendation information identifier as the target recommendation information identifier; When the first candidate recommendation information identifier is different from the second candidate recommendation information identifier, obtaining a first priority level of the first candidate recommendation information identifier and a second priority level of the second candidate recommendation information identifier; When the first priority level is different from the second priority level, determining the candidate recommendation information identifier with a higher priority level between the first candidate recommendation information identifier and the second candidate recommendation information identifier as the target recommendation information identifier; When the first priority level is the same as the second priority level, a candidate recommendation information identifier is randomly selected from the first candidate recommendation information identifier and the second candidate recommendation information identifier as a target recommendation information identifier.
10. A data access device, characterized in that: The device comprises: A first receiving module is used to receive a data access request sent by a terminal and obtain an access identifier carried in the data access request, wherein the data access request is an access request for recommended information sent by the terminal when it is determined that a verification opportunity has arrived during the process of running an application in a test environment; A first determination module, configured to determine, based on the access identifier, target routing information and target recommendation information identifiers of recommendation information corresponding to the data access request; An updating module, configured to update the data access request based on the target recommendation information identifier to obtain an updated data access request, and encapsulate the target routing information and the updated data access request to obtain an encapsulated data packet; A first sending module, used for sending the encapsulated data packet to a service server; The second sending module is configured to send the recommendation information to the terminal when receiving the recommendation information sent by the service server.
11. A computer device, characterized in that: The computer device comprises: A memory for storing computer executable instructions; A processor, configured to implement the data access method according to any one of claims 1 to 9 when executing computer executable instructions stored in the memory.
12. A computer-readable storage medium storing computer-executable instructions, characterized in that: When the computer executable instructions are executed by a processor, the data access method according to any one of claims 1 to 9 is implemented.