Information display method and device and server
By analyzing the QR code to obtain jump configuration information and sending jump page requests to the server in combination with user information, the problem of not being able to personalize QR code page display in the existing technology is solved, and different information is displayed when different users scan the same QR code, which improves the convenience of the application.
Patent Information
- Application Number
- CN202311110095.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-30
- Publication Date
- 2025-02-28
AI Technical Summary
In the prior art, when scanning the same QR code, personalized page display cannot be realized. A new QR code needs to be set to display different pages, resulting in inconvenience in application.
By obtaining the QR code and user information scanned by the terminal device, analyzing the QR code to obtain the jump configuration information, sending a jump page request to the server based on the user information and jump configuration information, determining and sending the target jump page link to the terminal device, realizing personalized information display.
It realizes that different users display different information when scanning the same QR code, improving the personalization and convenience of QR code applications.
Smart Images

Figure CN119537719A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of computer technology, and in particular, relates to an information display method, device and server. Background Art
[0002] Two-dimensional barcodes are black and white graphics that record data symbols and are distributed in a plane (two-dimensional direction) according to a certain pattern using certain geometric shapes. Based on the two-dimensional code, you can obtain information, jump to a website, push ads, shop online, trace anti-counterfeiting, discount promotions, member management, mobile payment, account login and other activities. The two-dimensional code has been widely used in daily life.
[0003] However, currently, when scanning a QR code, for the same QR code, each user scans the same page, and cannot display a personalized page for the user. If a different page needs to be displayed, a new QR code needs to be set, which brings inconvenience to the application of QR codes. Summary of the invention
[0004] In view of this, the embodiments of the present application provide an information display method, device and server, so that different information can be displayed when different users scan the same QR code, thereby realizing personalized information display based on the QR code.
[0005] A first aspect of an embodiment of the present application provides an information display method, which is applied to a first server, and the method includes:
[0006] Obtaining a target QR code scanned by a terminal device and user information corresponding to the terminal device, and parsing the target QR code to obtain jump configuration information;
[0007] Sending a jump page request to a second server based on the user information and the jump configuration information;
[0008] Determine a target jump page link according to the jump result returned by the second server;
[0009] The target jump page link is sent to the terminal device, and the terminal device is used to display a page according to the target jump page link.
[0010] A second aspect of an embodiment of the present application provides an information display method, which is applied to a second server, and the method includes:
[0011] Receiving a jump page request from the first server, the jump page request carrying user information and jump configuration information of a target QR code scanned by a terminal device;
[0012] Determine a jump result according to the user information and the jump configuration information;
[0013] The jump result is returned to the first server.
[0014] A third aspect of an embodiment of the present application provides an information display device, applied to a first server, the device comprising:
[0015] An acquisition module, used to acquire a target QR code scanned by a terminal device and user information corresponding to the terminal device, and parse the target QR code to obtain jump configuration information;
[0016] A request module, configured to send a jump page request to a second server based on the user information and the jump configuration information;
[0017] A determination module, used to determine a target jump page link according to the jump result returned by the second server;
[0018] The sending module is used to send the target jump page link to the terminal device, and the terminal device is used to display the page according to the target jump page link.
[0019] A fourth aspect of the embodiments of the present application provides an information display device, which is applied to a second server, and the device includes:
[0020] A receiving module, configured to receive a jump page request from the first server, wherein the jump page request carries user information and jump configuration information of a target QR code scanned by a terminal device;
[0021] A matching module, used for determining a jump result according to the user information and the jump configuration information;
[0022] A returning module is used to return the jump result to the first server.
[0023] A third aspect of an embodiment of the present application provides a server, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the first aspect or the second aspect when executing the computer program.
[0024] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect or the second aspect above is implemented.
[0025] A fifth aspect of the embodiments of the present application provides a computer program product. When the computer program product runs on a server, the server executes the method described in the first aspect or the second aspect.
[0026] Compared with the prior art, the embodiments of the present application have the following advantages:
[0027] The method in the embodiment of the present application can be used to display information based on a QR code. When the terminal device scans the target QR code, the first server can receive the scanned target QR code and the user information corresponding to the terminal device, and parse the target QR code to obtain the corresponding jump configuration information; based on the user information and the jump configuration information, the first server can send a jump page request to the second server; after receiving the jump page request, the second server can return the jump result to the first server according to the user information and the jump configuration information. After that, the first server can determine the target jump page link according to the jump result returned by the second server, and send the target jump page link to the terminal device, and the terminal device can display the corresponding information on the display interface according to the target jump page link. In the embodiment of the present application, the information displayed after the terminal device scans the QR code may not be a fixed page, but the corresponding display information can be determined according to the user information, which is equivalent to the terminal device being able to display personalized information based on the user information, thereby facilitating the use of the QR code. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art.
[0029] Figure 1 It is a schematic diagram of the steps of an information display method provided in an embodiment of the present application;
[0030] Figure 2 It is a schematic diagram of the steps of another information display method provided by an embodiment of the present application;
[0031] Figure 3 is a schematic diagram of information interaction of an information display system provided in an embodiment of the present application;
[0032] Figure 4 It is a schematic diagram of an execution flow of a system front end provided in an embodiment of the present application;
[0033] Figure 5 It is a schematic diagram of an execution flow of a system backend provided in an embodiment of the present application;
[0034] Figure 6 is a schematic diagram of a QR code page provided in an embodiment of the present application;
[0035] Figure 7 is a schematic diagram of a display page provided in an embodiment of the present application;
[0036] Figure 8 is a schematic diagram of another display page provided in an embodiment of the present application;
[0037] Fig. 9 is a schematic diagram of another display page provided in an embodiment of the present application;
[0038] Fig.10 is a schematic diagram of another display page provided in an embodiment of the present application;
[0039] Fig.11 is a schematic diagram of an information display device provided in an embodiment of the present application;
[0040] Fig.12 is a schematic diagram of another information display device provided in an embodiment of the present application;
[0041] Fig.13 It is a schematic diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] In the following description, specific details such as specific system structures, technologies, etc. are proposed for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from hindering the description of the present application.
[0043] The technical solution of the present application is described below through specific embodiments.
[0044] In order to facilitate the explanation of the scheme in the embodiment of the present application, first, some terms in the scheme of the present application are explained. The embodiment of the present application provides an information display system. The information display system may include a first server and a second server, wherein the first server may be a front-end server and the second server may be a back-end server.
[0045] The front-end server may provide a configuration interface for the jump configuration information corresponding to the QR code, and based on the configuration interface, the administrator may configure the jump configuration information corresponding to the QR code. The front-end server may include a database, and the database may store the association between the QR code and the jump configuration information. The QR code may have unique identification information, for example, each QR code may have a unique identifier (ruleId). The jump configuration information corresponding to the QR code may be used to describe the page jump rule corresponding to the QR code. The jump configuration information may include one or more jump information. Among them, the jump information may describe the page jump mode. For example, you can jump through the display position, that is, you can display multiple display positions on the interface, each display position may correspond to a display information, different terminal devices may display different display positions, different activities, and multiple display positions, such as pop-up window positions and center positions; you can also select the jump activity through the activity code, that is, each activity can have a unique identifier, and the code can be a character or a number; in addition, it can also include a bottom-up jump activity, that is, you can directly jump to the mall's coupon sales page and the guide and drainage interface. Each jump information can be configured with a corresponding jump mode, which can include direct jump or polling jump. The direct jump can be a "jump to only one activity" mode, that is, after each QR code scan, the user's terminal device will jump to the configured single activity page. The polling jump can be a "jump to the next level of configured activity each time" mode, that is, after each QR code scan, the user's terminal device can jump to the next level of activity page according to the configuration.
[0046] The back-end server may store the display information corresponding to the QR code. The display information may have a corresponding link. After the terminal device obtains the corresponding link, the corresponding information may be displayed on the display interface based on the link. In the embodiment of the present application, the display information corresponding to the QR code may include one or more. The back-end server may include a jump list, and the jump list includes an association relationship between the user information and the display information.
[0047] It should be noted that the first server and the second server may be two different devices or the same device.
[0048] Reference Figure 1 , shows a schematic flow chart of a method for displaying information provided by an embodiment of the present application, which may specifically include the following steps:
[0049] S101, obtaining a target QR code scanned by a terminal device and user information corresponding to the terminal device, and parsing the target QR code to obtain jump configuration information.
[0050] The execution subject of this embodiment may be the first server. The first server may provide a QR code to the terminal device. In one possible implementation, the first server may include a display interface, and the first server may display the QR code on the display interface, so that the terminal device can scan the QR code on the display interface of the first server. In another possible implementation, the first server may send the QR code to the terminal device, so that the QR code can be displayed on the interface of the terminal device, and the terminal device can scan the QR code on the page currently displayed by itself.
[0051] The terminal device can obtain information by scanning the QR code provided by the first server. The above-mentioned target QR code can be a QR code scanned by the terminal device. After the terminal device scans the target QR code, the terminal device can send the scanned target QR code and the user information of the terminal device to the first server, so that the first server can obtain the user information corresponding to the terminal device and the target QR code scanned by the terminal device, and the first server can parse the target QR code to obtain the corresponding jump configuration information. In another possible implementation, the terminal device can trigger the corresponding middleware after scanning the QR code, and the middleware can send the scanned target QR code and the user information of the terminal device to the first server. The user information can be the identification information of the user, which is used to uniquely identify the user identity. The jump configuration information may include the jump rule corresponding to the target QR code. The jump configuration information may include one or more jump information, and each jump information may have a corresponding jump mode and jump level.
[0052] The first server may include a database, and each two-dimensional code and its corresponding jump configuration information may be stored in the database. After the first server obtains the two-dimensional code and the corresponding jump configuration information from the database, the two-dimensional code and the corresponding jump configuration information may be placed in the cache. Generally, the data in the database can be permanently stored, and the data in the cache can generally only be retained for a period of time. The reading speed of the data in the cache is fast, and the reading speed of the data in the database is slow. Therefore, when determining the jump configuration information corresponding to the target two-dimensional code, the corresponding jump configuration information may be first searched from the cache data according to the target two-dimensional code. Since the cache reads quickly, the search result may be obtained quickly. If the jump configuration information exists in the cache data, the jump configuration information may be directly obtained from the cache data, thereby improving the task processing speed. If the jump configuration information does not exist in the cache data, the jump configuration information corresponding to the target two-dimensional code may be queried from the database. After querying the jump configuration information corresponding to the target two-dimensional code from the database, in order to facilitate the next quick query of the jump configuration information corresponding to the target two-dimensional code, the jump configuration information may be added to the cache data.
[0053] In a possible implementation, the first server may provide an interface for viewing and configuring the jump configuration information, so that the administrator may view the jump configuration information and configure the jump configuration information through the interface provided by the first server. For example, the first server may provide a viewing interface and a configuration interface, and the administrator may configure and view the jump configuration information through the operation buttons in the interface. Alternatively, the administrator may directly submit configuration and viewing requirements for the jump configuration information to the database through the interface, thereby realizing the configuration and viewing of the jump configuration information.
[0054] S102: Send a jump page request to the second server based on the user information and the jump configuration information.
[0055] The jump configuration information may include one or more jump information, each of which may have a corresponding jump mode and jump level. The jump level is used to describe the priority of selecting jump information from multiple jump information when jumping. The higher the jump level, the higher the priority of page jumping based on the jump information.
[0056] The first server may determine the target jump information from the jump configuration information according to the jump level of the jump information. For example, if the jump configuration information includes multiple jump information, the first server may determine the jump information of the uncompleted jump from the jump configuration information, and then select the highest level jump information from the jump information of the uncompleted jump as the target jump information. Of course, in a possible implementation, the first server may also directly randomly select a jump information from the unused jump information as the target jump information.
[0057] Afterwards, the first server can determine the interface request address of the second server according to the system environment of the current server. For example, if the system installed on the first server is an Android system, the corresponding interface request address can be the link address of the second server in the Android system environment; if the system installed on the first server is a Microsoft system, the corresponding interface request address can be the link address of the second server in the Microsoft system environment.
[0058] The first server can send the user information and the target jump information to the interface request address corresponding to the second server, thereby sending a jump page request to the second server, that is, requesting the link address of the display information from the second server. After receiving the jump page request, the second server can determine the jump result according to the user information and the target jump information in the jump page request, and return the jump result to the first server. The jump result can be empty or a page link. The page link can be the address corresponding to the display information, and the corresponding display information can be obtained based on the page link.
[0059] S103, determining a target jump page link according to the jump result returned by the backend server.
[0060] The target jump page link may be a link address corresponding to the display information. The target jump page link may be a link address returned by the second server, or a fallback link address. The fallback link address may be a link address of the last display page that the terminal device may jump to.
[0061] If the jump result received by the first server is a page link, the first server may directly use the page link as the target jump page link.
[0062] If the jump result received by the first server is empty, it can be explained that based on the target jump information, the display information corresponding to the user information has been displayed on the interface of the terminal device. At this time, it can be determined whether there is jump information that has not been sent to the second server in the jump configuration information.
[0063] If there is jump information that has not been sent to the second server in the jump configuration information, the target jump configuration information can be selected again from the jump information that has not been sent to the second server. When selecting the target jump configuration information from the jump information that has not been sent to the second server, it can be selected randomly, or the jump information with the highest jump level can be selected as the target jump information. Then the first server can continue to send the user information and the new target jump information to the interface request address corresponding to the second server, so as to continue to send the jump page request to the second server, and continue to determine the target jump page link according to the jump result returned by the second server. If there is no jump information that has not been sent to the second server in the jump configuration information, it can be determined that there is no corresponding display information in the second server or that all the display information in the second server has been displayed on the interface of the terminal device. At this time, the first server can use the cached bottom-up jump page link as the target jump page link.
[0064] S104, sending the target jump page link to the terminal device, and the terminal device is used to display the page according to the target jump page link.
[0065] After receiving the target jump page link, the terminal device can obtain page display information from the second server according to the target jump page link, and display the page on the display interface of the terminal device. For example, the terminal device can click on the target jump page link to send a request to obtain display information to the second server, and the second server can send the display information to the terminal device, so that the terminal device can display the display information on the display interface.
[0066] In the embodiment of the present application, for the same QR code, the corresponding target jump page link can be determined based on different user information and jump information configuration information, so that different users can display different information after scanning the QR code, realizing personalized display for users. In addition, in the embodiment of the present application, personalized display for users based on QR codes is realized based on simple configuration, making the application of QR codes more universal.
[0067] Reference Figure 2 , shows a schematic flow chart of another information display method provided by an embodiment of the present application, which may specifically include the following steps:
[0068] S201, receiving a page jump request from a first server, where the page jump request carries user information and jump configuration information of a target QR code scanned by a terminal device.
[0069] The execution subject of this embodiment is the second server. The first server can request the second server to display information through a jump page request. After receiving the jump page request from the first server, the second server can obtain user information and jump configuration information from the jump page request.
[0070] S202: Determine a jump result according to the user information and the jump configuration information.
[0071] The jump configuration information may be a jump information, and the jump information may include a jump mode. Based on the jump mode of the jump information, the second server may determine whether to perform polling.
[0072] If polling is not performed, the jump result determined based on the user information may be a fixed jump result. Each jump information may correspond to a jump list in the second server, the jump list may store the association between the user information and the display information, and each display information may have a corresponding page link, wherein the page link may be the storage address of the display information in the second server. The second server may determine the jump result associated with the user information based on the jump list corresponding to the jump information. Specifically, the second server may determine whether there is a target page link corresponding to the user information in the jump list corresponding to the jump information; if there is a target page link corresponding to the user information in the jump list, the target page link may be used as the jump result; if there is no target page link corresponding to the user information in the jump list, the jump result may be determined to be empty.
[0073] If polling is performed, the jump result determined based on the user information each time can be a different page link. The second server can determine whether there is a first page link corresponding to the user information in the jump list; if there is no first page link corresponding to the user information in the jump list, it can be determined that the jump result is empty; if there is a first page link corresponding to the user information in the jump list, it can be determined whether the display information corresponding to the first page link has been displayed by the terminal device; if the display information corresponding to the first page link has not been displayed by the terminal device, it can be determined that the jump result is the first page link; if the display information corresponding to the first page link has been displayed by the terminal device, it can be determined whether there is a second page link corresponding to the user information in the jump list. If there is no second page link corresponding to the user information in the jump list, it can be determined that the jump result is empty; if there is a second page link corresponding to the user information in the jump list, it can be determined whether the display information corresponding to the second page link has been displayed by the terminal device; if the display information corresponding to the second page link has not been displayed by the terminal device, it can be determined that the jump result is the second page link; if the display information corresponding to the second page link has been displayed by the terminal device, it can be determined whether there is a third page link corresponding to the user information in the jump list. And so on, until the jump result is determined.
[0074] In a possible implementation, when acquiring a page link, the second server may generate a polling identifier based on the user information and the first page link. The polling identifier may be used to uniquely identify the first page link currently acquired. If the first page link has been displayed, the second server has previously generated a polling identifier, and the polling identifier exists in the cache of the second server; if the first page link has not been displayed, the polling identifier does not exist in the cache of the second server before. Therefore, it is determined whether there is a polling identifier in the cache data of the second server, thereby determining whether the first page link has been displayed by the terminal device; if there is a polling identifier in the cache data of the second server, it can be determined that the information corresponding to the first page link has been displayed by the terminal device; if there is no polling identifier in the cache data of the second server, it is determined that the information corresponding to the first page link has not been displayed by the terminal device. In addition, when there is no polling identifier in the cache data of the second server, after determining that the information corresponding to the first page link has not been displayed by the terminal device, the polling identifier may be stored in the cache of the second server.
[0075] If it is determined that the information corresponding to the first page link has not been displayed by the terminal device, the second server can use the first page link as the jump result; if the display information corresponding to the first page link has been displayed by the terminal device, the second server can determine whether there is a second page link corresponding to the user information in the jump list, and the second page link is a page link different from the first page link; based on whether the second page link exists in the jump list, if the second page link does not exist in the jump list, the second server can determine that the jump result is empty. If the second page link exists in the jump list, the second server can continue to determine the jump result according to the above steps.
[0076] S203: Return the jump result to the first server.
[0077] The second server can send the jump result to the first server, so that the first server can determine the target jump page link based on the jump result, so that the terminal device can obtain display information from the second server according to the target jump page link to display the information on the display interface.
[0078] In an embodiment of the present application, a polling display can be performed so that when the same user scans the same QR code multiple times, the displayed information can be different, thereby enabling the display of multiple information based on the same QR code, thereby facilitating marketing of commercial activities based on QR codes.
[0079] It should be noted that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0080] Figure 3 Schematic diagram of information interaction of an information display system provided by an embodiment of the present application. Figure 3 As shown, the information display system can be divided into two parts: the front end and the back end. Figure 3 The system front end in the system, the device corresponding to the system front end can be the first server, and the back end is Figure 3 The system backend in the system, the device corresponding to the system backend can be the second server. Figure 3Users in the system can use terminal devices to perform information interaction operations. In this system, a front-end and back-end separation architecture can be adopted. The front-end can be developed using frameworks such as React and Vue, and the front-end service is called through the application programming interface (API) to obtain active links. The front-end of the back-end can be developed using the Spring framework, and the back-end of the back-end can be developed using the Spring Boot framework. Both the front-end and back-end of the back-end can implement calls between services by providing a RESTful API interface. The RESTful API is an architecture style of an application program interface that uses the Hypertext Transfer Protocol (HTTP) to request access or use data. In order to ensure the security of user information, this system can use the Hypertext Transfer Protocol Secure (HTTPS) for data transmission and encrypt and store sensitive data. In addition, in order to improve the performance of the system, frequently accessed data can be cached, thereby reducing access to the database and improving the response speed of the system.
[0081] The system front end can provide rule management and configuration rule interfaces, such as Figure 3 As shown, the administrator can view the rules and configure the rules through the interface provided by the system front end. After the user scans the QR code displayed on the system front end through the terminal device, the system front end can determine the QR code scanned by the user according to the identification information of the QR code, and determine the jump rule corresponding to the QR code according to the configured rules. The jump rule is the above-mentioned jump configuration information. Based on the jump rule, the system front end can obtain cache data from the system back end, and the system back end can send the matching jump link to the system front end. The system front end returns the jump link to the terminal device used by the user. After the user's terminal device obtains the jump link, the corresponding display information can be obtained from the system back end according to the jump link, so that the terminal device can display the corresponding information on the display interface. Exemplarily, the user scans the code to enter, and the QR code link carries an identification ID. The system front end can obtain the jump configuration information corresponding to the QR code from the specified database table according to the identification ID. For example, the jump configuration information can include jump information 1, 2, 3, and then call the back end interface through jump information 1, 2, 3. The system back end can find the required active link corresponding to the jump information through the user information of the logged-in person, and return it to the system front end. The system front end can send the activity link to the user, and when the user clicks the corresponding link, the corresponding activity page can be accessed. In addition, when the user accesses the corresponding activity page, data can be cached based on the called back-end interface so that this activity page can be excluded next time. Among them, the jump rule or rule information can be the above-mentioned jump configuration information.
[0082] When the user scans the QR code, the execution logic of the system front end can be as follows Figure 4 As shown. When the user uses a terminal device to scan the QR code, the ruleId that comes with the QR code can be used as an input parameter to call the interface. First, the system front end can obtain the rule data from the cache through the ruleId. The rule data is the jump configuration information associated with the ruleId. If the rule data is not stored in the cache, the jump configuration information associated with the ruleId can be queried and obtained from the database, and the jump configuration information associated with the ruleId can be inserted into the cache for next use.
[0083] Based on the current system environment, the front end can obtain the background request address, and construct the parameters for calling the background interface based on the rule data and user information, and then obtain the request result based on the parameters and the background request address. If the result is not empty, the jump result can be returned; if the result is empty, the next cycle can be performed based on other rule data to obtain the jump result.
[0084] The execution process of the system backend can be as follows Figure 5 As shown, the input parameters of the system backend may include user information and rule information. According to the rule information, it can be determined whether polling is required. If polling is not required, the first activity that meets the requirements is obtained through configuration. For example, the rule information is: obtain activity details through display position, then the system backend can jump to the corresponding list from the database to obtain the center position activities that the user has permission for through the two conditions of user card number and center position, and return the activity link corresponding to the first center position activity.
[0085] If polling is required, you can first obtain the corresponding activities that meet the requirements through configuration, then eliminate the activities that have been clicked, and finally return. For example, if rule information 1 is: Get activity details through the display position, then use the user card number and the center position to obtain the center position activity that the user has permission for from the database table, and then use the user card number and the activity code to build the user code key in the cache, and obtain from the cache whether the user code key exists; if the user code key exists in the cache, it means that the activity has been clicked, then you can poll the next activity and continue to search for activity links that have not been clicked. The activity list does not include the unique identifier of the QR code, and the association between the unique identifier of the QR code and the rule is stored in the first server.
[0086] The method in this application can be applied in commercial marketing. For example, express delivery companies can conduct marketing activities for express delivery services based on QR codes. Express delivery companies can provide specific service platforms for users who sign monthly settlement contracts, aiming to attract users to participate in operational activities. Users can obtain corresponding rewards by completing corresponding tasks, thereby motivating users to send parcels and increase the number of parcels sent by users. There are many types of operational activities and rich rewards, which have a good marketing effect on the corresponding customer groups. Express delivery companies can determine a marketing QR code for monthly settlement activities. Figure 6 It is a schematic diagram of a QR code provided in an embodiment of the present application. Based on the QR code, multiple different activities can be designed, and each activity can have a corresponding display page. The second server can store an activity list, which can store multiple activities that each user can query, and the display position of each activity in the interface, that is, the display position. Each user sees different activities, and the location where the activities are displayed is also different. The user card number and activity code can also be stored in the activity list. Figure 7-10 Schematic diagram showing four possible display pages.
[0087] The information display system in this application can also provide a caching function, which users can configure in the background according to their needs. The caching strategy includes cache time and jump mode. Among them, users can choose to set the cache duration by day, week or month. The system can automatically clear expired cache according to the cache time to ensure the timeliness of the data. During the cache period, the user can also obtain the latest activity page information by scanning the same QR code again. Users can choose different jump modes according to their needs. One is the "jump to only one activity" mode, that is, each time the QR code is scanned, the user will jump to the configured single activity page. The other is the "jump to the next level of configured activity each time" mode. Each time the QR code is scanned, the user will jump to the next level of activity page according to the configuration. This mode is suitable for scenarios where multiple activity pages need to be displayed in sequence, allowing users to gradually learn more related content.
[0088] Assume that the user has configured the following in this system: Cache time: by day; Jump mode: jump to the next activity; Activity configuration: the user has two level 1 activities a and b, and one level 2 activity c, and the jump rule is that you can jump to the second level activity only after you have jumped all the first level activities. Then for user A:
[0089] On the first day, user A scans the QR code. During the first scan, the system returns activity a that meets the conditions based on the first-level matching of the rule. Activity a can correspond to Figure 7 The display page is shown. In the second scan, the system returns activity b that meets the conditions according to the first-level matching of the rule. Activity b can correspond to Figure 8In the third scan, according to the second-level matching of the rule, the system returns the activity c that meets the conditions. Activity c can correspond to the following Fig. 9 The display page is shown. In the fourth scan, according to the three-level matching of the rules, the system returns the bottom-line activity, which can correspond to the following Fig.10 The display page shown. No value may be returned on the fifth scan. The data of the first day can be in the cache. The data of the first day will be cleared on the second day. On the second day, user A scans the QR code again. In the first scan, since it is a new day, the system can restart the first level matching of the rules and return the activity a that meets the conditions. After that, the system will continue to match the rules and return the activities, and the cycle will continue.
[0090] In the embodiment of the present application, the system can match the user's cache time and jump mode configuration according to the level of the rule, and return the activities that meet the conditions in sequence. If the matched activity does not meet the requirements or no activity is matched, the system will process it according to the configuration and return the bottom jump activity.
[0091] Through these configurations, the system can flexibly implement the jump and cache management functions of the QR code scanning activity page according to the unique identification and rule relationship of the QR code, as well as the user's settings for the cache time and jump mode.
[0092] Therefore, by accurately pushing corresponding activities to different users, we can increase the role of operational activities in express delivery marketing, improve the stickiness of different users, and increase user satisfaction. This system can better meet the needs of users, improve the participation of activities and user experience, while also reducing labor costs, improving marketing effects, and achieving higher marketing goals.
[0093] Reference Fig.11 , shows a schematic diagram of an information display device provided in an embodiment of the present application, the device can be applied to a first server, and specifically may include an acquisition module 1101, a request module 1102, a determination module 1103 and a sending module 1104, wherein:
[0094] The acquisition module 1101 is used to acquire the target QR code scanned by the terminal device and the user information corresponding to the terminal device, and parse the target QR code to obtain the jump configuration information;
[0095] The request module 1102 is used to send a jump page request to the backend server based on the user information and the jump configuration information;
[0096] The determination module 1103 is used to determine the target jump page link according to the jump result returned by the back-end server;
[0097] The sending module 1104 is used to send the target jump page link to the terminal device, and the terminal device is used to display the page according to the target jump page link.
[0098] In a possible implementation, the acquisition module 1101 includes:
[0099] A search submodule, used for searching the corresponding jump configuration information from cache data according to the target two-dimensional code;
[0100] A first acquisition submodule, configured to acquire the jump configuration information from the cache data if the jump configuration information exists in the cache data;
[0101] The second acquisition submodule is used to query the jump configuration information corresponding to the target QR code from a database if the jump configuration information does not exist in the cache data, and add the jump configuration information to the cache data. The database is used to store QR codes and jump configuration information associated with the QR codes.
[0102] In a possible implementation, the jump configuration information includes one or more jump information, and the request module 1102 includes:
[0103] A target jump information determination submodule, used to determine the target jump information from the jump configuration information;
[0104] An interface request address determination submodule, used to determine the interface request address of the second server;
[0105] The request submodule is used to send the user information and the target jump information to the interface request address to send a jump page request to the second server.
[0106] In a possible implementation, the determining module 1103 includes:
[0107] A first determination submodule is used for, if the jump result is a page link, using the page link as the target jump page link;
[0108] The second determination submodule is used to determine whether there is jump information that has not been sent to the second server in the jump configuration information if the jump result is empty; if there is jump information that has not been sent to the second server in the jump configuration information, then send a jump page request to the second server again according to any jump information that has not been sent to the second server and the user information; if there is no jump information that has not been sent to the second server in the jump configuration information, then use the cached fallback jump page link as the target jump page link.
[0109] Reference Fig.12 , shows a schematic diagram of an information display device provided in an embodiment of the present application, the device can be applied to a second server, and specifically may include a receiving module 1201, a matching module 1202 and a returning module 1203, wherein:
[0110] The receiving module 1201 is used to receive a jump page request from the first server, where the jump page request carries user information and jump configuration information of a target QR code scanned by a terminal device;
[0111] A matching module 1202, configured to determine a jump result according to the user information and the jump configuration information;
[0112] The return module 1203 is used to return the jump result to the first server.
[0113] In a possible implementation, the matching module 1202 includes:
[0114] A polling determination submodule, used to determine whether to perform polling based on the jump information;
[0115] A first matching submodule, configured to determine the jump result according to a jump list corresponding to the jump information if polling is not performed;
[0116] The second matching submodule is used to determine the jump result according to the polling result if polling is performed.
[0117] In a possible implementation, the first matching submodule includes:
[0118] A first judgment unit is used to determine whether there is a target page link corresponding to the user information in the jump list corresponding to the jump information;
[0119] A first matching unit, configured to use the target page link as the jump result if the target page link exists in the jump list;
[0120] The second matching unit is used to determine that the jump result is empty if the target page link does not exist in the jump list.
[0121] In a possible implementation, the second matching submodule includes:
[0122] A second judgment unit is used to determine whether there is a first page link corresponding to the user information in the jump list;
[0123] A third matching unit, configured to, if the first page link does not exist in the jump list, the jump result is empty;
[0124] A fourth matching unit is used to determine whether the information corresponding to the first page link has been displayed by the terminal device if the first page link exists in the jump list; if the information corresponding to the first page link has not been displayed by the terminal device, use the first page link as the jump result; if the information corresponding to the first page link has been displayed by the terminal device, determine whether there is a second page link corresponding to the user information in the jump list; and determine the jump result based on whether the second page link exists in the jump list.
[0125] In a possible implementation, the fourth matching unit includes:
[0126] A polling identifier generating subunit, configured to generate a polling identifier according to the user information and the first page link;
[0127] A judging subunit, used for determining whether the polling identifier exists in the cache data of the second server;
[0128] a first determining subunit, configured to determine, if the polling identifier exists in the cache data of the second server, that the information corresponding to the first page link has been displayed by the terminal device;
[0129] The second determining subunit is configured to determine that the information corresponding to the first page link has not been displayed by the terminal device if the polling identifier does not exist in the cache data of the second server.
[0130] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment part.
[0131] Fig.13 A schematic diagram of the structure of a server provided in an embodiment of the present application. Fig.13 As shown, the server 130 of this embodiment includes: at least one processor 1300 ( Fig.13 Only one is shown), a memory 1301, and a computer program 1302 stored in the memory 1301 and executable on the at least one processor 1300, wherein the processor 1300 implements the steps of any of the above-mentioned method embodiments when executing the computer program 1302.
[0132] The server may include, but is not limited to, a processor 1300 and a memory 1301. Those skilled in the art will appreciate that Fig.13The server 130 is merely an example and does not constitute a limitation on the server 130 , which may include more or fewer components than shown in the figure, or a combination of certain components, or different components, for example, may also include input and output devices, network access devices, etc.
[0133] The processor 1300 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0134] In some embodiments, the memory 1301 may be an internal storage unit of the server 130, such as a hard disk or memory of the server 130. In other embodiments, the memory 1301 may also be an external storage device of the server 130, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the server 130. Further, the memory 1301 may also include both an internal storage unit of the server 130 and an external storage device. The memory 1301 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory 1301 may also be used to temporarily store data that has been output or is to be output.
[0135] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0136] An embodiment of the present application provides a computer program product. When the computer program product runs on a server, the server can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0137] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application is described in detail with reference to the above-mentioned embodiments, a person skilled in the art should understand that the technical solutions described in the above-mentioned embodiments can still be modified, or some of the technical features can be replaced by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.
Claims
1. An information display method, characterized in that: Applied to the first server, comprising: Obtaining a target QR code scanned by a terminal device and user information corresponding to the terminal device, and parsing the target QR code to obtain jump configuration information; Sending a jump page request to a second server based on the user information and the jump configuration information; Determine a target jump page link according to the jump result returned by the second server; The target jump page link is sent to the terminal device, and the terminal device is used to display a page according to the target jump page link.
2. The method according to claim 1, characterized in that The step of parsing the target QR code to obtain jump configuration information includes: Searching the corresponding jump configuration information from cache data according to the target two-dimensional code; If the jump configuration information exists in the cache data, acquiring the jump configuration information from the cache data; If the jump configuration information does not exist in the cache data, the jump configuration information corresponding to the target QR code is queried from a database, and the jump configuration information is added to the cache data. The database is used to store QR codes and jump configuration information associated with the QR codes.
3. The method according to claim 1, characterized in that The jump configuration information includes one or more jump information, and sending a jump page request to the second server based on the user information and the jump configuration information includes: Determining target jump information from the jump configuration information; Determining an interface request address of the second server; The user information and the target jump information are sent to the interface request address to send a jump page request to the second server.
4. The method according to any one of claims 1 to 3, characterized in that: The step of determining a target jump page link according to the jump result returned by the second server includes: If the jump result is a page link, the page link is used as the target jump page link; If the jump result is empty, determine whether there is jump information that has not been sent to the second server in the jump configuration information; if there is jump information that has not been sent to the second server in the jump configuration information, send a jump page request to the second server again based on any jump information that has not been sent to the second server and the user information; if there is no jump information that has not been sent to the second server in the jump configuration information, use the cached fallback jump page link as the target jump page link.
5. An information display method, characterized in that: Applied to the second server, including: Receiving a jump page request from the first server, the jump page request carrying user information and jump configuration information of a target QR code scanned by a terminal device; Determine a jump result according to the user information and the jump configuration information; The jump result is returned to the first server.
6. The method according to claim 5, characterized in that The jump configuration information includes jump information, and determining the jump result according to the user information and the jump configuration information includes: Based on the jump information, determining whether to perform polling; If polling is not performed, determining the jump result according to the jump list corresponding to the jump information; If polling is performed, the jump result is determined according to the polling result.
7. The method according to claim 6, characterized in that The determining the jump result according to the jump list corresponding to the jump information includes: Determine whether there is a target page link corresponding to the user information in the jump list corresponding to the jump information; If the target page link exists in the jump list, the target page link is used as the jump result; If the target page link does not exist in the jump list, it is determined that the jump result is empty.
8. The method according to claim 6, characterized in that The step of determining the jump result according to the polling result includes: Determine whether there is a first page link corresponding to the user information in the jump list; If the first page link does not exist in the jump list, the jump result is empty; If the first page link exists in the jump list, determine whether the information corresponding to the first page link has been displayed by the terminal device; if the information corresponding to the first page link has not been displayed by the terminal device, use the first page link as the jump result; if the information corresponding to the first page link has been displayed by the terminal device, determine whether there is a second page link corresponding to the user information in the jump list; determine the jump result based on whether the second page link exists in the jump list.
9. The method according to claim 8, characterized in that The determining whether the information corresponding to the first page link has been displayed by the terminal device includes: Generate a polling identifier according to the user information and the first page link; Determining whether the polling identifier exists in the cache data of the second server; If the polling identifier exists in the cache data of the second server, it is determined that the information corresponding to the first page link has been displayed by the terminal device; If the polling identifier does not exist in the cache data of the second server, it is determined that the information corresponding to the first page link has not been displayed by the terminal device.
10. A server comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 4 or 5 to 9 is implemented.