Resource display method and device, electronic device and medium
By matching the target resource according to the resource position and the attribute information of the resource in the ticketing application, and rendering it in the blank area of the page, the problem of the page not using the blank area is solved, and efficient display of resources and full utilization of page value is achieved.
Patent Information
- Application Number
- CN202010759714.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-31
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2040-07-31
AI Technical Summary
In ticketing applications, due to the irregularity of the venue, there are often unused blank areas on the seat selection page, which leads to the inadequate use of page resources.
By receiving page access requests, the resource bit information and resource information of the target page are obtained, and the target resource is determined and its association relationship with the resource bit is established based on the resource bit attribute information and resource requirement information. Then the target resource is rendered in the resource bit of the target page.
It realizes effective display of resources in blank areas of the page, makes full use of page space, and improves the display value and user experience of the page.
Smart Images

Figure CN114066547B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to computer technology, and more particularly to a resource display method and device, electronic device, and medium. Background Art
[0002] When users browse pages through browsers or applications, there may be many space elements on the page that are not well utilized. For example, in ticketing applications, when users select seats on the seat selection page, due to the irregularity of the venue, there are often unused blank areas on the seat selection page. In order to fully develop and utilize the value of the page, it is necessary to provide a resource display solution. Summary of the invention
[0003] Embodiments of the present disclosure relate to a resource display method and device, an electronic device, and a medium, which can be applied to loading resources on a page.
[0004] According to a first aspect of an embodiment of the present disclosure, a method for displaying resources is provided, comprising:
[0005] Receiving a page access request, and determining a target page according to the page access request;
[0006] Acquire information of a resource location provided by the target page, wherein the information of the resource location includes an identifier of the resource location and attribute information of the resource location;
[0007] Acquire resource information, wherein the resource information includes an identifier of the resource and resource attribute requirement information representing the resource's requirement for attribute information of a resource bit;
[0008] According to the attribute information of the resource position and the resource attribute requirement information of the resource, determine the target resource from the resources and establish an association relationship between the identifier of the target resource and the identifier of the resource position;
[0009] According to the association relationship, rendering the target resource in the resource location provided by the target page;
[0010] The rendered target page is sent.
[0011] Optionally, the method further comprises: obtaining attribute information of the user;
[0012] The resource information also includes user attribute requirement information, and the user attribute requirement information is used to characterize the corresponding relationship between the resource and the user's attribute information;
[0013] According to the attribute information of the resource position and the resource attribute requirement information of the resource, determining the target resource from the resource and establishing an association relationship between the identifier of the target resource and the identifier of the resource position, including:
[0014] Matching the attribute information of the resource position with the resource attribute requirement information of the resource to determine a candidate resource from the resource and establish an association relationship between an identifier of the candidate resource and an identifier of the resource position;
[0015] The user's attribute information is matched with the user attribute requirement information of the candidate resources to determine a target resource from the candidate resources.
[0016] Optionally, the method further comprises: obtaining attribute information of the user;
[0017] The resource information also includes user attribute requirement information, and the user attribute requirement information is used to characterize the corresponding relationship between the resource and the user's attribute information;
[0018] According to the attribute information of the resource position and the resource attribute requirement information of the resource, determining the target resource from the resource and establishing an association relationship between the identifier of the target resource and the identifier of the resource position, including:
[0019] Matching the attribute information of the resource position with the resource attribute requirement information of the resource to determine a candidate resource from the resource and establish an association relationship between an identifier of the candidate resource and an identifier of the resource position;
[0020] Determine the degree of compatibility between the candidate resources and the user according to the attribute information of the user and the user attribute requirement information of the candidate resources, and sort the candidate resources from high to low according to the degree of compatibility;
[0021] The candidate resource with the highest ranking is selected as the target resource.
[0022] Optionally, the method further comprises: acquiring attribute information of the user and the time period to which the current time belongs;
[0023] The resource information also includes user attribute requirement information, and the user attribute requirement information is used to characterize the corresponding relationship between the resource and the user's attribute information;
[0024] The resource information also includes time attribute requirement information representing the resource's requirements for time attributes;
[0025] According to the attribute information of the resource position and the resource attribute requirement information of the resource, determining the target resource from the resource and establishing an association relationship between the identifier of the target resource and the identifier of the resource position, including:
[0026] Matching the attribute information of the resource position with the resource attribute requirement information of the resource to determine a first candidate resource from the resources and establish an association relationship between an identifier of the first candidate resource and an identifier of the resource position;
[0027] Matching the attribute information of the user with the attribute requirement information of the first candidate resource to determine a second candidate resource from the first candidate resource;
[0028] The time period to which the current time belongs is matched with the time attribute requirement information of the second candidate resources to determine the target resource from the second candidate resources.
[0029] Optionally, the method further includes: when there are multiple target resources associated with the identifier of the resource bit, determining the resource bit as a rotating resource bit;
[0030] Rendering the target resource in the resource location provided by the target page according to the association relationship includes:
[0031] In the rotating resource position, multiple target resources associated with it are rendered in a carousel manner.
[0032] Optionally, the attribute information of the resource bit includes at least any one of the following:
[0033] Attribute information of the display location;
[0034] Attribute information of the scene, wherein the attribute information of the scene is determined based on the content of the target page.
[0035] According to a second aspect of an embodiment of the present disclosure, there is provided a resource display device, comprising:
[0036] A receiving module, used for receiving a page access request and determining a target page according to the page access request;
[0037] A first acquisition module, configured to acquire information of a resource location provided by the target page, wherein the information of the resource location includes an identifier of the resource location and attribute information of the resource location;
[0038] A second acquisition module is used to acquire resource information, wherein the resource information includes an identifier of the resource and resource attribute requirement information representing the resource's requirement for attribute information of a resource bit;
[0039] A target resource determination module, used to determine the target resource from the resources and establish an association relationship between the identifier of the target resource and the identifier of the resource position according to the attribute information of the resource position and the resource attribute requirement information of the resource;
[0040] A rendering module, used for rendering the target resource in a resource location provided by the target page according to the association relationship;
[0041] The sending module is used to send the rendered target page.
[0042] Optionally, the device further includes a third acquisition module;
[0043] The third acquisition module is used to acquire attribute information of the user;
[0044] The resource information also includes user attribute requirement information, and the user attribute requirement information is used to characterize the corresponding relationship between the resource and the user's attribute information;
[0045] The target resource determination module includes a first matching unit and a second matching unit;
[0046] The first matching unit is used to match the attribute information of the resource position with the resource attribute requirement information of the resource, so as to determine the candidate resource from the resource and establish an association relationship between the identifier of the candidate resource and the identifier of the resource position;
[0047] The second matching unit is used to match the attribute information of the user with the user attribute requirement information of the candidate resources to determine the target resource from the candidate resources.
[0048] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising a processor and a memory, wherein the memory is used to store computer instructions, and when the computer instructions are executed by the processor, the method provided in the first aspect of the present disclosure is implemented.
[0049] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer instructions are stored. When the computer instructions are executed by a processor, the method provided in the first aspect of the present disclosure is implemented.
[0050] The resource display method and device, electronic device and medium provided by the embodiments of the present disclosure pre-set resource positions in a target page, and when a user browses the target page, resources matching the target page can be displayed in the resource positions.
[0051] Other features and advantages of embodiments of the present disclosure will become apparent from the following detailed description of exemplary embodiments of embodiments of the present disclosure with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the embodiments of the present disclosure.
[0053] Figure 1 A schematic diagram of a resource display system provided for an embodiment of the present disclosure;
[0054] Figure 2A flowchart of a method for displaying resources provided in an embodiment of the present disclosure;
[0055] Figure 3 A schematic diagram of resource display results provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0056] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the embodiments of the present disclosure.
[0057] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the embodiments of the present disclosure and its application or uses.
[0058] Technologies, methods, and apparatuses known to persons of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, such technologies, methods, and apparatuses should be considered part of the specification.
[0059] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0060] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0061] <Hardware Configuration>
[0062] Figure 1 The hardware configuration of the application system provided by the embodiment of the present disclosure is shown. The system includes a terminal device 103 and a server 101. The server 101 and the terminal device 103 are connected to each other through a network 102. In one embodiment of the present disclosure, a user can implement related functions through an application client installed in the terminal device 103, and the server 101 can be a service end corresponding to the application client.
[0063] The terminal device 103 may be, for example, an electronic device installed with an intelligent operating system (e.g., Android, IOS, Windows, Linux, etc.), including but not limited to a portable computer, a desktop computer, a mobile phone, a tablet computer, etc. The configuration of the terminal device 103 includes but is not limited to a processor 1031, a memory 1032, an interface device 1033, a communication device 1034, a GPU (Graphics Processing Unit, image processor) 1035, a display device 1036, an input device 1037, a speaker 1038, a microphone 1039, and a camera 1030. The processor 1031 includes but is not limited to a central processing unit CPU, a microprocessor MCU, etc. The memory 1032 includes but is not limited to a ROM (read-only memory), a RAM (random access memory), a non-volatile memory such as a hard disk, etc. The interface device 1033 includes but is not limited to a USB interface, a serial interface, a parallel interface, etc. The communication device 1034 may, for example, be capable of wired communication or wireless communication, and may specifically include WiFi communication, Bluetooth communication, 2G / 3G / 4G / 5G communication, etc. The GPU 1035 is used to process the image. The display device 1036 includes but is not limited to a liquid crystal screen, a touch screen, etc. The input device 1037 includes but is not limited to a keyboard, a mouse, a touch screen, etc.
[0064] The server 101 may be in the form of a blade server, a rack-mounted server, or a server cluster deployed in the cloud. In some embodiments, each server may include hardware, software, or an embedded logic component or a combination of two or more such components for executing the appropriate functions supported or implemented by the server.
[0065] The specific configuration of the server 101 may include, but is not limited to: a processor 1011, a memory 1012, an interface device 1013, a communication device 1014, an input device 1015, and an output device 1016. The processor 1011 may include, but is not limited to, a central processing unit CPU, a microprocessor MCU, etc. The memory 1012 may include, but is not limited to, a ROM (read-only memory), a RAM (random access memory), a non-volatile memory such as a hard disk, etc. The interface device 1013 may include, but is not limited to, a USB interface, a serial interface, a parallel interface, etc. The communication device 1014 may, for example, be capable of wired communication or wireless communication, and may specifically include WiFi communication, Bluetooth communication, 2G / 3G / 4G / 5G communication, etc. The input device 1015 includes, but is not limited to, a keyboard, a mouse, a touch screen, etc. The output device 1016 includes, but is not limited to, a display screen, etc. Although the server may also include a speaker, a microphone, etc., these components are irrelevant to the embodiments of the present disclosure and are therefore omitted here.
[0066] When the terminal device 103 runs the application client, it can interact with the server 101 to implement corresponding functions. The memory 1012 of the server 101 is used to store instructions, which are used to control the processor 1011 to operate to execute the page display method provided in the embodiment of the present disclosure.
[0067] Figure 1 The page display system shown is merely illustrative and does not in any way imply any limitation on the embodiments of the present disclosure, its application or use. It should be understood by those skilled in the art that although multiple devices of the server and terminal device are described above, the embodiments of the present disclosure may only involve some of the devices.
[0068] In a specific example, the page display system may further include a resource server, which is used to store and manage resources, and the server 101 may communicate with the resource server to obtain resources from the resource server. The resource server and the server 101 may have similar hardware configurations.
[0069] In one embodiment of the present disclosure, the application client may be a client that provides ticketing services, and the server 101 is a server that provides ticketing services.
[0070] Those skilled in the art can design instructions according to the scheme disclosed in the embodiments of the present disclosure. How instructions control the processor to operate is a well-known technology in the art, so it will not be described in detail here.
[0071] <How to display resources>
[0072] See also Figure 2 As shown, the resource display method provided by the embodiment of the present disclosure is described. The method provided by this embodiment can be implemented by the aforementioned server 101.
[0073] The method provided in this embodiment includes steps S102 - S110 .
[0074] S102: Receive a page access request, and determine a target page according to the page access request.
[0075] S104, obtaining the resource location information provided by the target page and the resource information. The resource location information includes the resource location identifier and the resource location attribute information. The resource information includes the resource identifier and the resource attribute requirement information representing the resource's requirements for the resource location attribute information.
[0076] S106: According to the attribute information of the resource position and the resource attribute requirement information of the resource, determine the target resource from the resources and establish an association relationship between the identifier of the target resource and the identifier of the resource position.
[0077] S108. Render the target resource in the resource location provided by the target page according to the association relationship.
[0078] S110: Send the rendered target page.
[0079] In one embodiment, a user may send a page access request to a server through a terminal, and the server determines a target page according to the page access request and sends the rendered target page to the terminal.
[0080] In the disclosed embodiment, the resource position of the target page can be a pre-set position on the target page where resources can be displayed. The resource position of the target page can be set at a blank position on the target page. In the seat selection scenario, the resource position of the target page can be set at the stage position.
[0081] In the disclosed embodiment, the resource position of the target page may be a content element on the target page. For example, the walls, domes, columns, stages, podiums, screens, blackboards, seats, and other content elements displayed on the target page may be set as resource positions.
[0082] In the embodiments of the present disclosure, resources may be advertisements, media content, etc. Resources may be in the form of pictures, text, links, QR codes, etc., or any combination of these forms. Resources may be resources with dynamic effects, for example, resources are animated images or audio and video content, such as video advertisements, music songs, etc.
[0083] When the user loads the rendered target page through the terminal, he can see the relevant target resources at the resource position of the target page.
[0084] In one example, the target page is the VR seat selection page of the venue. After the user enters the seat selection page, he can see the rendered real venue and target resources. For example, the resource position includes the stage of the venue, and the target resource corresponding to the stage can be performance information. By virtually presenting the performance information on the stage, when the user selects a seat on the VR seat selection page, he can more intuitively experience the effect of the currently selected position when watching the performance; the resource position can also include the walls / screens of the venue, etc., and the corresponding target resources can be advertisements or posters, etc. In the VR seat selection page, the user can present the real venue information for reference when selecting seats, and at the same time, more diverse information can be presented.
[0085] The display method of the embodiment of the present disclosure can be used to display target resources to users. The display method of the embodiment of the present disclosure can also enrich the visual effects seen by users.
[0086] In one embodiment, step S104 may further include: obtaining the attribute information of the user who sends the page access request and / or obtaining the time period to which the current time belongs. In one embodiment, the resource information may further include user attribute requirement information and / or time attribute requirement information. The user attribute requirement information of the resource is used to characterize the corresponding relationship between the attribute information of the resource and the user. The time attribute requirement information of the resource is used to characterize the requirement of the resource for the time attribute.
[0087] The following is a description of the resource bit information.
[0088] The information of the resource position includes the identifier of the resource position and the attribute information of the resource position. The identifier of the resource position is used to identify the resource position to distinguish the resource position from other resource positions. The attribute information of the resource position is used to describe the attribute of the resource position. The attribute information of the resource position includes at least any one of the following: attribute information of the display position, attribute information of the scene, and the attribute information of the scene is determined based on the content of the target page.
[0089] The attribute information of the display position is used to describe the attribute of the display position of the resource position. For example, the attribute information of the display position can be "top", "bottom", "both sides", "single side", "upper right corner", "upper left corner".
[0090] The attribute information of the scene is used to describe the scene type of the target page to which the resource location belongs. Specifically, the attribute information of the scene is determined based on the content of the target page. For example, if the content of the target page is a movie theater ticket purchase and seat selection page, the attribute information of the scene may be "movie theater". For example, if the content of the target page is a football game ticket purchase and seat selection page, the attribute information of the scene may be "sports".
[0091] The user's attribute information is described below.
[0092] With the authorization of the user, the attribute information of the user that can be obtained may include: attribute information of the user's age, attribute information of the user's gender, attribute information of the user's geographical location, and attribute information of the user's interests.
[0093] The attribute information of the user's interests is used to describe the content that the user may be interested in. For example, the attribute information of the user's interests may be "entertainment", "sports", "beauty", etc.
[0094] The time period to which the current time belongs is described below.
[0095] According to the current time and the preset time period division mechanism, the time period to which the current time belongs can be determined. For example, if the preset time period division mechanism is that each hour is a time period, and the current time is 9:30, then the time period to which the current time belongs is the "9:00-10:00" time period.
[0096] The following is a description of the resource information.
[0097] The resource identifier is used to identify the resource to distinguish the resource from other resources.
[0098] The resource attribute requirement information of a resource is used to characterize the resource's requirement for the attribute information of the resource position. The resource attribute requirement information may include one or more pieces of requirement information, and one piece of requirement information may describe the requirement for one attribute of a resource. For example, the resource attribute requirement information may include requirement information for the display position and requirement information for the scene of the resource position. For example, if the resource attribute requirement information includes "top" and "motion", then the resource's requirement for the resource position is that the display position is at the top and the scene is a motion scene. For example, if the resource attribute requirement information includes "upper right corner" and "upper left corner", then the resource's requirement for the resource position is that the display position can be in the upper right corner or in the upper left corner, and there is no requirement for the scene of the resource position.
[0099] The user attribute requirement information of a resource is used to characterize the correspondence between the resource and the user's attribute information. That is, the user attribute requirement information of a resource can reflect the resource's preference for the attributes of the displayed object and can be used as a basis for selecting resources for the user.
[0100] The user attribute requirement information may include one or more requirement information. For example, the user attribute requirement information includes first information, second information, third information, and fourth information, which can be used to describe the corresponding relationship between the resource and the user's gender attribute, age attribute, geographic location attribute, and interest attribute, respectively, and the weight can be flexibly set as a reference during the matching process.
[0101] The time attribute requirement information of a resource is used to characterize the time period requirement of the resource. The time attribute requirement information may include one or more requirement information. For example, if the time attribute requirement information includes "9:00-12:00" and "17:00-24:00", the resource's display time requirement may be either 9:00-12:00 or 17:00-24:00.
[0102] The following uses five specific examples to illustrate step S106 of "determining a target resource from resources and establishing an association between the identifier of the target resource and the identifier of the resource position according to the attribute information of the resource position and the resource attribute requirement information of the resource."
[0103] <Example 1>
[0104] In this example, step S106 includes steps S202 - 204 .
[0105] S202: Match the attribute information of the resource position with the resource attribute requirement information of the resource to determine a resource matching the attribute information of the resource position as a target resource of the resource position.
[0106] For example, for the first resource position, the attribute information of its display position is "top", and the attribute information of its scene is "sports". For the second resource position, the attribute information of its display position is "upper left corner", and the attribute information of its scene is "entertainment". According to the resource attribute requirement information of the first resource, it can be known that the first resource requires the display position of the resource position to be "top", and the first resource has no requirements for the scene of the resource position. According to the resource attribute requirement information of the second resource, it can be known that the second resource requires the display position of the resource position to be "upper left corner" or "upper right corner", and the second resource requires the scene of the resource position to be "entertainment".
[0107] For example, by matching the attribute information of the first resource position with the resource attribute requirement information of multiple resources, it can be determined that the resource matching the first resource position is the first resource, and the resource matching the second resource position is the second resource. That is, the target resource of the first resource position is the first resource, and the target resource of the second resource position is the second resource.
[0108] S204: Establish an association relationship between the resource location and its target resource, that is, associate the resource identifier with the identifier of its target resource.
[0109] For example, after determining that the target resource of the first resource position is the first resource and the target resource of the second resource position is the second resource, an association relationship between the first resource position and the first resource is established, and an association relationship between the second resource position and the second resource is established.
[0110] <Example 2>
[0111] In this example, step S106 includes steps S302 - S304 .
[0112] S302: Match the attribute information of the resource position with the resource attribute requirement information of the resource to determine the candidate resource and establish an association relationship between the identifier of the candidate resource and the identifier of the resource position.
[0113] For example, the attribute information of the first resource position is matched with the resource attribute requirement information of multiple resources, and it is determined that the resources matching the first resource position are the second resource, the sixth resource, and the eighth resource, and the second resource, the sixth resource, and the eighth resource are used as candidate resources for the first resource position. The association relationship between the second resource, the sixth resource, the eighth resource and the first resource position is established respectively.
[0114] S304: Match the user's attribute information with the user's attribute requirement information of the candidate resources to determine the target resource from the candidate resources.
[0115] For example, the second resource, the sixth resource, and the eighth resource are candidate resources for the first resource position. The attributes of the user who submits the page access request are matched with the second resource, the sixth resource, and the eighth resource, respectively, and the eighth resource is determined as the target resource for the first resource position according to the matching result. The association relationship between the eighth resource and the first resource position has been established in step S302.
[0116] The target resource is selected by matching the user's attribute information with the user attribute requirement information of the candidate resource, that is, based on the user attribute requirement information of the candidate resource and the user's attribute information, a candidate resource that is more suitable for the user is selected as the target resource. In a specific example, the compatibility between the candidate resource and the user is determined based on the user attribute requirement information of the candidate resource and the user's attribute information, and the candidate resource whose compatibility reaches a preset threshold is selected as the target resource.
[0117] <Example 3>
[0118] In this example, step S106 includes steps S402 - S406 .
[0119] S402: Match the attribute information of the resource position with the resource attribute requirement information of the resource to determine the candidate resource and establish an association relationship between the identifier of the candidate resource and the identifier of the resource position.
[0120] For example, the attribute information of the first resource position is matched with the resource attribute requirement information of multiple resources, and it is determined that the resources matching the first resource position are the second resource, the sixth resource, and the eighth resource, and the second resource, the sixth resource, and the eighth resource are used as candidate resources for the first resource position. The association relationship between the second resource, the sixth resource, the eighth resource and the first resource position is established respectively.
[0121] S404: Determine the degree of compatibility between the candidate resources and the user based on the user's attribute information and the user's attribute requirement information of the candidate resources, and sort the candidate resources from high to low based on the degree of compatibility.
[0122] For example, the second resource, the sixth resource, and the eighth resource are candidate resources for the first resource position. The second resource is a brand sports drink advertisement, and its user attribute demand information includes: interest: "sports". The sixth resource is a maternal and infant product advertisement, and its user attribute demand information includes: interest: "maternal and infant products". The eighth resource is offline theater performance information, and its user attribute demand information includes: geographic location: "City A", interest: "offline performance".
[0123] With the user's authorization, the attributes of the user who submitted the page access request are obtained, including: gender: "male", age: "15-45 years old", geographic location: "City A", interests: "offline performances" and "sports".
[0124] The user's attribute information is matched with the user attribute demand information of the second resource, the sixth resource, and the eighth resource respectively. It can be seen that the eighth resource has two matching items with the user: geographical location: "City A" and interest: "offline performances", the second resource has one matching item with the user: interest: "sports", and the sixth resource has no matching item with the user. The candidate resources are sorted from high to low according to the degree of adaptation, and the sorting result is: the eighth resource, the second resource, and the sixth resource.
[0125] S406: Select the candidate resource with the highest ranking as the target resource.
[0126] In a specific example, for any resource position, a candidate resource before a preset ranking is selected as the target resource, for example, a candidate resource ranked before the third is selected as the target resource, that is, the first and second candidate resources are selected as the target resources.
[0127] For example, the ranking results of the candidate resources for the first resource position are the eighth resource, the second resource, and the sixth resource, and the eighth resource with a higher ranking is selected as the target resource for the first resource position.
[0128] See also Figure 3 As shown, Figure 3 A scenario provided by an embodiment of the present disclosure is shown, in which, in a seat selection page for a football game, the resource displayed in the upper right corner is a sports drink brand.
[0129] <Example 4>
[0130] In this example, step S106 includes steps S502 - S506 .
[0131] S502: Match the attribute information of the resource position with the resource attribute requirement information of the resource to determine a first candidate resource and establish an association relationship between the identifier of the first candidate resource and the identifier of the resource position.
[0132] For example, the attribute information of the third resource position is matched with the resource attribute requirement information of multiple resources, and it is determined that the resources matching the third resource position are the first resource, the third resource, the fifth resource, and the seventh resource, and the first resource, the third resource, the fifth resource, and the seventh resource are used as the first candidate resources for the third resource position. The association relationship between the second resource, the sixth resource, the eighth resource and the third resource position is established respectively.
[0133] S504: Match the user's attribute information with the user attribute requirement information of the first candidate resource to determine a second candidate resource from the first candidate resource.
[0134] For example, the first resource, the third resource, the fifth resource, and the seventh resource are first candidate resources for the third resource position. The attribute information of the user who submits the page access request is matched with the user attribute requirement information of the first resource, the third resource, the fifth resource, and the seventh resource respectively. If the matching result shows that the first resource and the third resource are more matched with the attribute information of the user, the first resource and the third resource are determined as second candidate resources for the third resource position.
[0135] S506: Match the time period to which the current time belongs with the time attribute requirement information of the second candidate resource to determine the target resource from the second candidate resources.
[0136] For example, the first resource and the third resource are the second candidate resources for the third resource position, the time attribute requirement information of the first resource is "17:00-24:00", the time attribute requirement information of the third resource is "5:00-10:00", and the time period to which the current time belongs is "9:00-10:00", then the time period to which the third resource and the current time belong is matched, and the third resource is determined as the target resource for the third resource position.
[0137] <Example 5>
[0138] In this example, step S106 includes steps S602 - S606 .
[0139] S602: Determine respectively the degree of adaptation between resources and resource positions, the degree of adaptation between resources and users, and the degree of adaptation between resources and the time period to which the current time belongs.
[0140] In a specific example, the degree of adaptation includes three levels: full adaptation, partial adaptation, and incompatible, which correspond to different score values, for example, the score value of full adaptation is 5 points, the score value of partial adaptation is 3 points, and the score value of incompatible is 1 point. The degree of adaptation between resources and resource positions, the degree of adaptation between resources and users, and the degree of adaptation between resources and the time period to which the current time belongs are determined respectively to obtain the adaptation score value.
[0141] S604: Determine the total degree of adaptation between the resource and the resource position according to the degree of adaptation between the resource and the resource position, the degree of adaptation between the resource and the user, and the degree of adaptation between the resource and the time period to which the current time belongs.
[0142] In a specific example, for any resource position, the sum of the adaptation score between the resource and the resource position, the adaptation score between the resource and the user, and the adaptation score between the resource and the time period to which the current time belongs is calculated as the total adaptation score between the resource and the resource position.
[0143] S606: For any resource position, sort the resources in descending order according to the total adaptability between the resource and the resource position, and select the resource with the highest order as the target resource of the resource position. Establish an association relationship between the target resource and the resource position, that is, establish an association relationship between the identifier of the target resource and the identifier of the resource position.
[0144] In a specific example, for any resource position, the resources are sorted in descending order according to the total adaptation score values of the resources and the resource position, and the resources with the highest sorting are selected as the target resources of the resource position. For example, the resource with the highest total adaptation score value is selected as the target resource of the resource position. For example, the resource with the total adaptation score value ranked before the preset ranking is selected as the target resource of the resource position, for example, the resource ranked before the fourth place is selected as the target resource, that is, the three resources with the first, second and third total adaptation score values are selected as the target resources, and the association relationship between these three target resources and the resource position is established respectively.
[0145] In step S108 "rendering the target resource in the resource position provided by the target page according to the association relationship", when there are multiple target resources that have an association relationship with the identifier of the resource position, the rendering can be performed in the following ways.
[0146] The first method: when there are multiple target resources associated with the identifier of the resource position, the resource position is determined as a rotating resource position. According to the association, the target resource is rendered in the resource position provided by the target page, including: rendering multiple target resources associated with the rotating resource position in the rotating resource position in a carousel manner.
[0147] That is to say, when one resource position corresponds to multiple target resource positions, they are displayed in turn in the form of rotation. For example, the dwell time of each target resource position is 1 second.
[0148] The second method: when there are multiple target resources associated with the identifier of the resource position, in step S108, the latest target resource is determined from the multiple target resources for rendering.
[0149] That is to say, when a resource position corresponds to multiple target resource positions, the latest target resource that is online is selected for rendering.
[0150] <Resource Display Device>
[0151] The embodiment of the present disclosure also provides a resource display device. The display device includes the following modules:
[0152] A receiving module, used for receiving a page access request and determining a target page according to the page access request;
[0153] A first acquisition module is used to acquire the resource location information provided by the target page, where the resource location information includes the resource location identifier and the resource location attribute information;
[0154] A second acquisition module is used to acquire resource information, where the resource information includes a resource identifier and resource attribute requirement information representing the resource's requirements for attribute information of a resource bit;
[0155] A target resource determination module, used to determine the target resource from the resources and establish an association relationship between the identifier of the target resource and the identifier of the resource position according to the attribute information of the resource position and the resource attribute requirement information of the resource;
[0156] A rendering module, used to render the target resource in the resource location provided by the target page according to the association relationship;
[0157] The sending module is used to send the rendered target page.
[0158] In a specific example, the display device further includes a third acquisition module. The third acquisition module is used to acquire attribute information of the user.
[0159] In a specific example, the display device further includes a fourth acquisition module. The fourth acquisition module is used for the time period to which the current time belongs.
[0160] In a specific example, the resource information may further include user attribute requirement information, and the user attribute requirement information of the resource is used to represent the corresponding relationship between the resource and the user's attribute information.
[0161] In a specific example, the resource information may further include time attribute requirement information, and the time attribute requirement information of the resource represents the requirement of the resource for the time attribute.
[0162] In a specific example, the attribute information of the resource position includes at least any one of the following: attribute information of the display position; attribute information of the scene, and the attribute information of the scene is determined based on the content of the target page.
[0163] In a specific example, the target resource determination module includes a first matching unit and a second matching unit.
[0164] The first matching unit is used to match the attribute information of the resource position with the resource attribute requirement information of the resource, so as to determine the candidate resource from the resources and establish an association relationship between the identifier of the candidate resource and the identifier of the resource position.
[0165] The second matching unit is used to match the user's attribute information with the user's attribute requirement information of the candidate resources to determine the target resource from the candidate resources.
[0166] In a specific example, the target resource determination module includes a third matching unit and a fourth matching unit.
[0167] The third matching unit is used to match the attribute information of the resource position with the resource attribute requirement information of the resource, so as to determine the candidate resource from the resources and establish an association relationship between the identifier of the candidate resource and the identifier of the resource position.
[0168] The fourth matching unit is used to determine the degree of compatibility between the candidate resources and the user based on the user's attribute information and the user attribute requirement information of the candidate resources, and to sort the candidate resources from high to low according to the degree of compatibility; and select the candidate resources with the highest ranking as the target resources.
[0169] In a specific example, the target resource determination module includes a fifth matching unit, a sixth matching unit, and a seventh matching unit.
[0170] The fifth matching unit is used to match the attribute information of the resource position with the resource attribute requirement information of the resource, so as to determine the first candidate resource from the resources and establish an association relationship between the identifier of the first candidate resource and the identifier of the resource position.
[0171] The sixth matching unit is used to match the attribute information of the user with the attribute requirement information of the first candidate resource to determine the second candidate resource from the first candidate resource.
[0172] The seventh matching unit is used to match the time period to which the current time belongs with the time attribute requirement information of the second candidate resource to determine the target resource from the second candidate resources.
[0173] In a specific example, the rendering module is specifically used to: when there are multiple target resources that have an association relationship with the identifier of a resource position, determine the resource position as a rotating resource position; based on the association relationship, render the target resource in the resource position provided by the target page, including: rendering multiple target resources that have an association relationship with it in the rotating resource position in a carousel manner.
[0174] The specific manner in which each module of the display device performs its function can be found in the corresponding part of the method embodiment, which will not be described in detail here.
[0175] <Electronic equipment>
[0176] An embodiment of the present disclosure provides an electronic device that supports the resource display method of the embodiment of the present disclosure. The electronic device has a processor and a memory, the memory is used to store computer instructions, and the computer instructions implement the resource display method in the above embodiment when the processor executes.
[0177] The electronic device may be Figure 1 The server shown in .
[0178] The electronic device may be a ticketing server providing ticketing services.
[0179] <Computer Readable Storage Medium>
[0180] The embodiments of the present disclosure also provide a computer-readable storage medium on which computer instructions are stored. When the computer instructions are executed by a processor, the resource display method in the aforementioned embodiment is implemented.
[0181] Each embodiment in the present disclosure is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, server, and storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0182] The above describes specific embodiments of the present disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0183] The embodiments of the present disclosure may be systems, methods and / or computer program products. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the embodiments of the present disclosure.
[0184] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0185] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0186] The computer program instructions for performing the operation of the embodiments of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of a computer-readable program instruction, and the electronic circuit may execute a computer-readable program instruction, thereby realizing various aspects of the embodiments of the present disclosure.
[0187] Here, various aspects of the embodiments of the present disclosure are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0188] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0189] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0190] The flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to the embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of an instruction, and the module, a program segment or a part of an instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.
[0191] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The choice of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the marketplace, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the embodiments of the present disclosure is defined by the appended claims.
Claims
1. A method for displaying resources, comprising: Receiving a page access request, and determining a target page according to the page access request; Acquire information of a resource location provided by the target page, the information of the resource location including an identifier of the resource location and attribute information of the resource location, the attribute information of the resource location including attribute information of a scene, and the attribute information of the scene is used to describe a scene type of the target page to which the resource location belongs; Acquire resource information, wherein the resource information includes an identifier of the resource and resource attribute requirement information representing the resource's requirement for attribute information of a resource bit; According to the attribute information of the resource position and the resource attribute requirement information of the resource, determine the target resource from the resources and establish an association relationship between the identifier of the target resource and the identifier of the resource position; According to the association relationship, rendering the target resource in the resource location provided by the target page; The rendered target page is sent.
2. The method according to claim 1, further comprising: Get user attribute information; The resource information also includes user attribute requirement information, and the user attribute requirement information is used to characterize the corresponding relationship between the resource and the user's attribute information; According to the attribute information of the resource position and the resource attribute requirement information of the resource, determining the target resource from the resource and establishing an association relationship between the identifier of the target resource and the identifier of the resource position, including: Matching the attribute information of the resource position with the resource attribute requirement information of the resource to determine a candidate resource from the resource and establish an association relationship between an identifier of the candidate resource and an identifier of the resource position; The user's attribute information is matched with the user attribute requirement information of the candidate resources to determine a target resource from the candidate resources.
3. The method according to claim 1, further comprising: Get user attribute information; The resource information also includes user attribute requirement information, and the user attribute requirement information is used to characterize the corresponding relationship between the resource and the user's attribute information; According to the attribute information of the resource position and the resource attribute requirement information of the resource, determining the target resource from the resource and establishing an association relationship between the identifier of the target resource and the identifier of the resource position, including: Matching the attribute information of the resource position with the resource attribute requirement information of the resource to determine a candidate resource from the resource and establish an association relationship between an identifier of the candidate resource and an identifier of the resource position; Determine the degree of compatibility between the candidate resources and the user according to the attribute information of the user and the user attribute requirement information of the candidate resources, and sort the candidate resources from high to low according to the degree of compatibility; The candidate resource with the highest ranking is selected as the target resource.
4. The method according to claim 1, further comprising: Get the user's attribute information and the time period to which the current time belongs; The resource information also includes user attribute requirement information, and the user attribute requirement information is used to characterize the corresponding relationship between the resource and the user's attribute information; The resource information also includes time attribute requirement information representing the resource's requirements for time attributes; According to the attribute information of the resource position and the resource attribute requirement information of the resource, determining the target resource from the resource and establishing an association relationship between the identifier of the target resource and the identifier of the resource position, including: Matching the attribute information of the resource position with the resource attribute requirement information of the resource to determine a first candidate resource from the resources and establish an association relationship between an identifier of the first candidate resource and an identifier of the resource position; Matching the attribute information of the user with the attribute requirement information of the first candidate resource to determine a second candidate resource from the first candidate resource; The time period to which the current time belongs is matched with the time attribute requirement information of the second candidate resources to determine the target resource from the second candidate resources.
5. The method according to any one of claims 1 to 4, further comprising: When there are multiple target resources associated with the identifier of the resource position, the resource position is determined as a rotating resource position; Rendering the target resource in the resource location provided by the target page according to the association relationship includes: In the rotating resource position, multiple target resources associated with it are rendered in a carousel manner.
6. The method according to any one of claims 1 to 4, wherein: The attribute information of the resource bit includes at least any of the following: Attribute information of the display location; Attribute information of the scene, wherein the attribute information of the scene is determined based on the content of the target page.
7. A resource display device, comprising: A receiving module, used for receiving a page access request and determining a target page according to the page access request; A first acquisition module, used to acquire information of a resource location provided by the target page, wherein the information of the resource location includes an identifier of the resource location and attribute information of the resource location, wherein the attribute information of the resource location includes attribute information of a scene, and the attribute information of the scene is used to describe a scene type of the target page to which the resource location belongs; A second acquisition module is used to acquire resource information, wherein the resource information includes an identifier of the resource and resource attribute requirement information representing the resource's requirement for attribute information of a resource bit; A target resource determination module, used to determine the target resource from the resources and establish an association relationship between the identifier of the target resource and the identifier of the resource position according to the attribute information of the resource position and the resource attribute requirement information of the resource; A rendering module, used for rendering the target resource in a resource location provided by the target page according to the association relationship; The sending module is used to send the rendered target page.
8. The device according to claim 7, further comprising a third acquisition module; The third acquisition module is used to acquire attribute information of the user; The resource information also includes user attribute requirement information, and the user attribute requirement information is used to characterize the corresponding relationship between the resource and the user's attribute information; The target resource determination module includes a first matching unit and a second matching unit; The first matching unit is used to match the attribute information of the resource position with the resource attribute requirement information of the resource, so as to determine the candidate resource from the resource and establish an association relationship between the identifier of the candidate resource and the identifier of the resource position; The second matching unit is used to match the attribute information of the user with the user attribute requirement information of the candidate resources to determine the target resource from the candidate resources.
9. An electronic device comprising a processor and a memory, wherein the memory is used to store computer instructions, and when the computer instructions are executed by the processor, the method according to any one of claims 1 to 6 is implemented.
10. A computer-readable storage medium having computer instructions stored thereon, wherein when the computer instructions are executed by a processor, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Advertisement preview method and device
CN109615415A