HK1235482B - Doi display method and apparatus - Google Patents
Doi display method and apparatus Download PDFInfo
- Publication number
- HK1235482B HK1235482B HK17108924.5A HK17108924A HK1235482B HK 1235482 B HK1235482 B HK 1235482B HK 17108924 A HK17108924 A HK 17108924A HK 1235482 B HK1235482 B HK 1235482B
- Authority
- HK
- Hong Kong
- Prior art keywords
- doi
- display instruction
- display
- server
- account
- Prior art date
Links
Description
技术领域Technical Field
本申请涉及计算机技术领域,尤其涉及一种DOI显示方法及装置。The present application relates to the field of computer technology, and in particular to a DOI display method and device.
背景技术Background Art
随着网络技术的不断发展,基于网络的服务商通过页面为用户显示的信息也越来越丰富,如,在页面中显示文字信息、数字对象标识符(Digital Object Identifier,DOI)、图像信息(如,图片)等。With the continuous development of network technology, network-based service providers display more and more information to users through web pages, such as text information, Digital Object Identifiers (DOIs), image information (such as pictures), etc.
目前,为了方便用户通过移动终端使用服务商提供的服务,服务商通常可在页面(这里所述的页面是指通过个人计算机(Personal Computer,PC)显示的页面)内显示二维码(即,DOI),用户可以通过移动终端扫描该二维码,以获得相应的服务。At present, in order to facilitate users to use the services provided by service providers through mobile terminals, service providers can usually display a QR code (i.e., DOI) on a page (the page mentioned here refers to the page displayed by a personal computer (PC)), and users can scan the QR code through a mobile terminal to obtain the corresponding service.
例如,某提供外卖服务的商家在其网站页面上提供了关注该商家的公众账号对应的二维码(即,DOI),如果用户想要关注该商家的公众账号时,可以打开位于移动终端上的即时通信应用对应的扫描二维码功能,扫描该页面中的二维码,当移动终端完成扫描二维码后,将关注公众账号的关注请求页面显示给用户,用户只需要点击确定添加按钮即可。For example, a merchant providing takeout service provides a QR code (i.e., DOI) corresponding to the merchant's public account on its website page. If a user wants to follow the merchant's public account, he or she can open the QR code scanning function corresponding to the instant messaging application on the mobile terminal and scan the QR code on the page. After the mobile terminal completes scanning the QR code, the follow-up request page for the public account is displayed to the user, and the user only needs to click the OK add button.
然而,在实际应用中,由于页面中显示的二维码通常都会占用一定的页面空间,这就会导致页面中显示其他信息的空间缩小,而且在用户浏览页面中显示的其他信息时,二维码也会对用户造成视觉上的干扰。However, in actual applications, since the QR code displayed on the page usually occupies a certain amount of page space, this will result in a reduction in the space for displaying other information on the page, and the QR code will also cause visual interference to the user when the user browses other information displayed on the page.
虽然现有技术中也存在采用独立的页面显示DOI的方法,即,页面中不显示二维码,当用户在该页面中执行了某些特定的操作时,通过另一个独立的页面来显示二维码,但是,该方法需要用户执行这些特定的操作来触发二维码的显示,这就会降低用户操作的便利性。Although there is a method in the prior art of displaying the DOI on an independent page, that is, the QR code is not displayed on the page, and when the user performs certain specific operations on the page, the QR code is displayed on another independent page, this method requires the user to perform these specific operations to trigger the display of the QR code, which reduces the convenience of user operation.
发明内容Summary of the Invention
本申请实施例提供一种DOI显示方法及装置,用以解决用户在浏览页面中显示的其他信息时,二维码(即,DOI)会对用户造成视觉上的干扰,并且,用户在使用服务商采用独立页面来显示的二维码时,操作的便利性较低的问题。The embodiments of the present application provide a DOI display method and device to solve the problem that a QR code (i.e., DOI) causes visual interference to users when they browse other information displayed on a page, and that users have low operational convenience when using a QR code displayed on an independent page by a service provider.
本申请实施例提供的一种DOI显示方法,所述方法包括:An embodiment of the present application provides a DOI display method, the method comprising:
第一设备接收用户的DOI扫描指令;The first device receives a DOI scanning instruction from a user;
向服务器发送DOI显示指令,使所述服务器将所述DOI显示指令发送给与所述第一设备关联的第二设备,以指示所述第二设备显示DOI,其中,所述第二设备在接收到所述DOI显示指令之前,不显示所述DOI。A DOI display instruction is sent to a server, so that the server sends the DOI display instruction to a second device associated with the first device to instruct the second device to display the DOI, wherein the second device does not display the DOI before receiving the DOI display instruction.
本申请实施例提供的一种DOI显示方法,所述方法包括:An embodiment of the present application provides a DOI display method, the method comprising:
服务器接收第一设备发送的DOI显示指令,其中,所述DOI显示指令是第一设备接收到DOI扫描指令时,向所述服务器发送的;The server receives a DOI display instruction sent by the first device, wherein the DOI display instruction is sent to the server by the first device when receiving a DOI scan instruction;
确定与所述第一设备关联的第二设备;determining a second device associated with the first device;
向所述第二设备发送所述DOI显示指令,使所述第二设备显示DOI,其中,所述第二设备在接收到所述DOI显示指令之前,不显示所述DOI。The DOI display instruction is sent to the second device, so that the second device displays the DOI, wherein the second device does not display the DOI before receiving the DOI display instruction.
本申请实施例提供的一种DOI显示方法,所述方法包括:An embodiment of the present application provides a DOI display method, the method comprising:
第二设备接收DOI显示指令,其中,所述DOI显示指令是第一设备接收到DOI扫描指令时,通过服务器转发给与所述第二设备的;The second device receives a DOI display instruction, wherein the DOI display instruction is forwarded to the second device through the server when the first device receives the DOI scan instruction;
获取当前页面对应的DOI,并显示,其中,所述第二设备在接收到所述DOI显示指令之前,不显示所述DOI。The DOI corresponding to the current page is obtained and displayed, wherein the second device does not display the DOI before receiving the DOI display instruction.
本申请实施例提供的一种DOI显示装置,所述装置包括:An embodiment of the present application provides a DOI display device, the device comprising:
接收模块,用于接收用户的DOI扫描指令;A receiving module, used for receiving a DOI scanning instruction from a user;
发送模块,用于向服务器发送DOI显示指令,使所述服务器将所述DOI显示指令发送给与所述装置关联的第二设备,以指示所述第二设备显示DOI,其中,所述第二设备在接收到所述DOI显示指令之前,不显示所述DOI。The sending module is used to send a DOI display instruction to the server, so that the server sends the DOI display instruction to a second device associated with the apparatus to instruct the second device to display the DOI, wherein the second device does not display the DOI before receiving the DOI display instruction.
本申请实施例提供的一种DOI显示装置,所述装置包括:An embodiment of the present application provides a DOI display device, the device comprising:
接收模块,用于接收第一设备发送的DOI显示指令,其中,所述DOI显示指令是第一设备接收到DOI扫描指令时,向所述装置发送的;a receiving module, configured to receive a DOI display instruction sent by the first device, wherein the DOI display instruction is sent to the apparatus when the first device receives a DOI scan instruction;
确定模块,用于确定与所述第一设备关联的第二设备;a determining module, configured to determine a second device associated with the first device;
发送模块,用于向所述第二设备发送所述DOI显示指令,使所述第二设备显示DOI,其中,所述第二设备在接收到所述DOI显示指令之前,不显示所述DOI。The sending module is configured to send the DOI display instruction to the second device, so that the second device displays the DOI, wherein the second device does not display the DOI before receiving the DOI display instruction.
本申请实施例提供的一种DOI显示装置,所述装置包括:An embodiment of the present application provides a DOI display device, the device comprising:
接收模块,用于接收DOI显示指令,其中,所述DOI显示指令是第一设备接收到DOI扫描指令时,通过服务器转发给与所述装置的;a receiving module, configured to receive a DOI display instruction, wherein the DOI display instruction is forwarded to the apparatus via the server when the first device receives a DOI scan instruction;
获取模块,用于获取当前页面对应的DOI,并显示,其中,所述装置在接收到所述DOI显示指令之前,不显示所述DOI。The acquisition module is used to acquire the DOI corresponding to the current page and display it, wherein the device does not display the DOI before receiving the DOI display instruction.
本申请实施例提供一种DOI显示方法及装置,该方法由第一设备接收用户的DOI扫描指令,向服务器发送DOI显示指令,使服务器将DOI显示指令发送给与第一设备关联的第二设备,以指示第二设备显示DOI,其中,第二设备在接收到DOI显示指令之前,不显示DOI。通过上述方法,由于第二设备在接收到DOI显示指令之前不显示DOI,只有当用户需要扫描DOI时,才显示DOI,因此,DOI不会影响用户浏览页面中的其他信息,又由于当用户需要扫描DOI时,无需在第二设备上执行任何冗余的操作,因此,提高了用户操作的便利性。An embodiment of the present application provides a DOI display method and apparatus. In this method, a first device receives a DOI scanning instruction from a user, sends the DOI display instruction to a server, and causes the server to send the DOI display instruction to a second device associated with the first device, instructing the second device to display the DOI. The second device does not display the DOI until it receives the DOI display instruction. With this method, since the second device does not display the DOI until it receives the DOI display instruction and only displays the DOI when the user needs to scan it, the DOI does not affect other information on the page the user is browsing. Furthermore, since the user does not need to perform any redundant operations on the second device when scanning the DOI, user convenience is improved.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
图1为本申请实施例提供的DOI显示过程示意图;FIG1 is a schematic diagram of a DOI display process according to an embodiment of the present application;
图2为本申请实施例提供的第一种DOI显示装置结构示意图;FIG2 is a schematic structural diagram of a first DOI display device provided in an embodiment of the present application;
图3为本申请实施例提供的第二种DOI显示装置结构示意图;FIG3 is a schematic structural diagram of a second DOI display device provided in an embodiment of the present application;
图4为本申请实施例提供的第三种DOI显示装置结构示意图。FIG4 is a schematic structural diagram of a third DOI display device provided in an embodiment of the present application.
具体实施方式DETAILED DESCRIPTION
为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请具体实施例及相应的附图对本申请技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。To make the purpose, technical solutions, and advantages of this application more clear, the technical solutions of this application will be clearly and completely described below in conjunction with the specific embodiments of this application and the corresponding drawings. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
图1为本申请实施例提供的DOI显示过程,具体包括以下步骤:FIG1 shows the DOI display process provided by an embodiment of the present application, which specifically includes the following steps:
S101:第一设备接收用户的DOI扫描指令。S101: A first device receives a DOI scanning instruction from a user.
在本申请实施例中,所述的DOI可以包括二维码、条形码等,用于标识一个资源或服务,即,每一资源(即,视频、电子书籍)或服务均可对应着一个DOI,用户通过扫描这个DOI,即可获取到相应的资源或服务。下面仅以DOI为二维码为例,详细说明本申请提供的DOI显示过程。In the embodiments of this application, the DOI may comprise a QR code, barcode, or other identifier, used to identify a resource or service. Specifically, each resource (e.g., video, e-book) or service may correspond to a DOI, and users may access the corresponding resource or service by scanning the DOI. The following describes the DOI display process provided by this application in detail, using a QR code as an example.
在实际应用中,服务商通常会将某些服务或资源对应的二维码添加到页面上,使用户可以方便的通过扫描页面中的该二维码获取相应的服务或资源。当用户需要扫描二维码时,就需要用户向其使用的第一设备输入二维码扫描指令,使第一设备启动二维码扫描功能,以进行二维码的扫描。其中,本申请中所述的第一设备可以是手机、平板电脑等一切可以扫描二维码的设备。In actual applications, service providers usually add QR codes corresponding to certain services or resources to a page, allowing users to easily obtain the corresponding services or resources by scanning the QR code on the page. When a user needs to scan a QR code, the user needs to input a QR code scanning command into the first device used, so that the first device activates the QR code scanning function to scan the QR code. The first device mentioned in this application can be any device that can scan a QR code, such as a mobile phone or tablet computer.
需要说明的是,在一般情况下,用户要扫描二维码时,必须要向第一设备输入二维码扫描指令,如,用户使用某即时通信软件时,可通过点击该即时通信软件中的“扫一扫”图标来输入二维码扫描指令,以启动二维码扫描功能,因此,用户向第一设备输入二维码扫描指令的操作并不是一个冗余的操作。It should be noted that, under normal circumstances, when a user wants to scan a QR code, he must input a QR code scanning instruction to the first device. For example, when a user uses a certain instant messaging software, he can input a QR code scanning instruction by clicking the "Scan" icon in the instant messaging software to start the QR code scanning function. Therefore, the operation of the user inputting a QR code scanning instruction to the first device is not a redundant operation.
而在实际应用中,用户经常会在区别于第一设备的另一设备(本申请中记为“第二设备”)上浏览信息,若浏览到感兴趣的信息,则用户一般会使用第一设备扫描第二设备上显示的二维码,以进行进一步的操作。本申请中所述的第二设备可以包括PC、平板电脑等一切可以显示信息的设备。In actual applications, users often browse information on another device (referred to as the "second device" in this application) that is different from the first device. If they find information of interest, they generally use the first device to scan the QR code displayed on the second device to perform further operations. The second device referred to in this application can include any device that can display information, such as a PC and a tablet computer.
为了使第二设备上显示的信息不会被二维码所干扰,因此,本申请实施例中第二设备在初始显示信息时,并不显示二维码。In order to prevent the information displayed on the second device from being interfered with by the QR code, in the embodiment of the present application, the second device does not display the QR code when initially displaying information.
例如,假设用户在PC(即,第二设备)上浏览某商品网站的商品信息,当浏览到其感兴趣的商品时,想要通过手机(即,第一设备)扫描该商品对应的二维码,以购买该商品,则用户可点击该手机上安装的支付软件中的“扫一扫”图标,即,输入二维码扫描指令,以启动手机的二维码扫描功能。而第二设备在为用户显示商品信息时,并不显示该商品对应的二维码,因此不会影响用户浏览该商品信息。For example, suppose a user is browsing product information on a certain website on a PC (i.e., the second device). When they see a product they are interested in, they want to scan the corresponding QR code of the product with their mobile phone (i.e., the first device) to purchase the product. The user can click the "Scan" icon in the payment app installed on the mobile phone, that is, enter the QR code scanning command to activate the QR code scanning function of the mobile phone. However, when the second device displays the product information to the user, it does not display the corresponding QR code of the product, so it does not affect the user's browsing of the product information.
S102:第一设备向服务器发送DOI显示指令。S102: The first device sends a DOI display instruction to the server.
S103:服务器接收第一设备发送的DOI显示指令,并确定与第一设备关联的第二设备。S103: The server receives the DOI display instruction sent by the first device, and determines a second device associated with the first device.
S104:服务器向第二设备发送该DOI显示指令。S104: The server sends the DOI display instruction to the second device.
在本申请实施例中,由于第二设备在初始显示信息时,并未显示二维码,而用户一旦启动了第一设备的二维码扫描功能,则说明用户已经具有了扫描二维码的意图,因此,在第一设备接收到用户输入的二维码扫描指令后(即,在上述的步骤S101后),就需要通知第二设备显示出相应的二维码,以供第一设备扫描。而在通知第二设备显示二维码时,其难点就在于需要知晓用户当前是在哪个第二设备上浏览的信息,也即,需要通知哪个第二设备显示二维码。In the embodiment of the present application, since the second device does not display a QR code when initially displaying information, and once the user activates the QR code scanning function of the first device, it indicates that the user has the intention to scan the QR code. Therefore, after the first device receives the QR code scanning instruction input by the user (i.e., after the above-mentioned step S101), it is necessary to notify the second device to display the corresponding QR code for the first device to scan. When notifying the second device to display the QR code, the difficulty lies in knowing which second device the user is currently browsing information on, that is, which second device needs to be notified to display the QR code.
考虑到由于在实际应用场景中,用户在第二设备上浏览信息时所使用的账号与在第一设备上扫描二维码所使用的账号往往是相同的,因此,可通过相同的账号来判断应该通知哪个第二设备显示二维码,以供用户使用第一设备扫描。从而,在本申请实施例中,第一设备在接收到用户输入的二维码扫描指令后,在步骤S102中,第一设备可向服务器发送二维码显示指令(即,DOI显示指令),该二维码显示指令中可携带该第一设备当前使用的账号。而在步骤S103中,服务器接收到该二维码显示指令后,即可根据该二维码显示指令中携带的账号,确定使用该账号的第二设备,作为与该第一设备关联的第二设备,也即,与该第一设备关联的第二设备就是该用户浏览信息所在的设备,或者说,该用户意欲扫描的二维码就显示在与该第一设备关联的第二设备上。进而,在步骤S104中,服务器即可将该二维码显示指令发送给确定出的与该第一设备关联的第二设备。Considering that in actual application scenarios, the account used by the user when browsing information on the second device is often the same as the account used to scan the QR code on the first device, the same account can be used to determine which second device should be notified to display the QR code for the user to scan using the first device. Thus, in an embodiment of the present application, after the first device receives the QR code scanning instruction input by the user, in step S102, the first device can send a QR code display instruction (i.e., a DOI display instruction) to the server, and the QR code display instruction can carry the account currently used by the first device. In step S103, after the server receives the QR code display instruction, it can determine the second device using the account according to the account carried in the QR code display instruction as the second device associated with the first device, that is, the second device associated with the first device is the device where the user browses the information, or in other words, the QR code that the user intends to scan is displayed on the second device associated with the first device. Furthermore, in step S104, the server can send the QR code display instruction to the second device determined to be associated with the first device.
继续沿用上例,手机(即,第一设备)在监测到用户点击了支付软件中的“扫一扫”图标,并启动二维码扫描功能时,则可向服务器发送二维码显示指令,假设二维码显示指令中携带的手机当前使用的账号为:nuoweisiji,则服务器在接收到二维码显示指令后,从二维码显示指令中提取出手机当前使用的账号“nuoweisiji”,并根据“nuoweisiji”在连接该服务器的众多设备中确定出当前使用账号为“nuoweisiji”的PC,也就是说,用户是在当前使用账号为“nuoweisiji”的PC(即,与第一设备相关联的第二设备)上浏览信息的,在确定出用户当前浏览商品信息的PC后,则可将二维码显示指令发送给该PC。具体的,服务器可先确定用户当前浏览信息的PC的互联网协议(Internet Protocol,IP)地址,再根据该IP地址,向该PC发送二维码显示指令。Continuing with the above example, when the mobile phone (i.e., the first device) detects that the user has clicked the "Scan" icon in the payment software and activated the QR code scanning function, it can send a QR code display instruction to the server. Assuming that the account currently used by the mobile phone carried in the QR code display instruction is: nuoweisiji, then after receiving the QR code display instruction, the server extracts the account currently used by the mobile phone "nuoweisiji" from the QR code display instruction, and based on "nuoweisiji", determines the PC currently using the account "nuoweisiji" among the many devices connected to the server. In other words, the user is browsing information on the PC currently using the account "nuoweisiji" (i.e., the second device associated with the first device). After determining the PC on which the user is currently browsing product information, the QR code display instruction can be sent to the PC. Specifically, the server can first determine the Internet Protocol (IP) address of the PC on which the user is currently browsing information, and then send the QR code display instruction to the PC based on the IP address.
另外,考虑到用户也可能会在第二设备上浏览信息时和在第一设备上扫描二维码时使用不同的账号,但这些账号毕竟都是同一个用户的,该用户也很可能将这些不同的账号预设为绑定的账号,因此,除了上述根据使用相同账号的方法来确定相关联的第一设备和第二设备以外,还可以根据预设的账号之间的绑定关系来确定。具体的,在上述步骤S103中,服务器接收到第一设备发送的DOI显示指令时,可先确定该DOI显示指令中携带的该第一设备当前使用的账号,并根据保存的账号绑定关系,确定与该账号具有绑定关系的另一账号,再将使用确定的该另一账号的第二设备确定为与该第一设备相关联的第二设备,最后在步骤S104中,服务器可将该DOI显示指令发送给确定出的第二设备。In addition, considering that a user may use different accounts when browsing information on the second device and when scanning the QR code on the first device, but these accounts are ultimately the same user, the user may also preset these different accounts as bound accounts. Therefore, in addition to the above method of determining the associated first and second devices based on the use of the same account, it can also be determined based on the preset binding relationship between the accounts. Specifically, in the above step S103, when the server receives the DOI display instruction sent by the first device, it can first determine the account currently used by the first device carried in the DOI display instruction, and based on the saved account binding relationship, determine another account with a binding relationship with the account, and then determine the second device using the determined another account as the second device associated with the first device. Finally, in step S104, the server can send the DOI display instruction to the determined second device.
105:第二设备接收DOI显示指令,获取当前页面对应的DOI,并显示。105: The second device receives the DOI display instruction, obtains the DOI corresponding to the current page, and displays it.
第二设备在接收到二维码显示指令时,则说明用户当前已经浏览了该第二设备显示的页面中的信息,而且已经准备好要扫描相应的二维码,因此,此时显示二维码不会对用户浏览页面中的信息造成干扰,从而,第二设备接收到二维码显示指令后,即可获取当前页面对应的二维码并显示,以供用户使用第一设备扫描该二维码。When the second device receives the QR code display instruction, it means that the user has currently browsed the information on the page displayed by the second device and is ready to scan the corresponding QR code. Therefore, displaying the QR code at this time will not interfere with the user's browsing of the information on the page. Therefore, after the second device receives the QR code display instruction, it can obtain the QR code corresponding to the current page and display it so that the user can use the first device to scan the QR code.
继续沿用上例,用户浏览商品信息的PC在接收到二维码显示指令后,则说明用户已经浏览过了当前页面中所展示的商品信息,并做好扫描二维码的准备了,因此,该PC则可获取用户当前浏览的页面对应的二维码(即,当前页面所显示的商品信息所对应的二维码),并显示给用户,此时显示该商品信息对应的二维码并不会干扰到用户浏览商品信息,后续的,用户则可通过手机扫描该二维码,并执行相应的支付操作,用以购买该商品。Continuing with the above example, when the PC on which the user is browsing product information receives the QR code display instruction, it means that the user has browsed the product information displayed on the current page and is ready to scan the QR code. Therefore, the PC can obtain the QR code corresponding to the page currently browsed by the user (that is, the QR code corresponding to the product information displayed on the current page) and display it to the user. At this time, displaying the QR code corresponding to the product information will not interfere with the user's browsing of the product information. Subsequently, the user can scan the QR code through the mobile phone and perform the corresponding payment operation to purchase the product.
通过上述方法,由于第二设备在接收到二维码(即,DOI)显示指令之前不显示二维码,只有当用户需要扫描二维码时,才显示二维码,因此,二维码不会影响用户浏览页面中的其他信息,又由于当用户需要扫描二维码时,除了输入二维码扫描指令以启动第一设备的二维码扫描功能以外,无需在第二设备上执行任何其他的冗余操作,因此,提高了用户操作的便利性。Through the above method, since the second device does not display the QR code before receiving the QR code (i.e., DOI) display instruction, the QR code is only displayed when the user needs to scan the QR code. Therefore, the QR code will not affect other information in the user's browsing page. Since when the user needs to scan the QR code, in addition to entering the QR code scanning instruction to start the QR code scanning function of the first device, there is no need to perform any other redundant operations on the second device, thereby improving the convenience of user operation.
进一步的,在上述步骤S105中,第二设备在接收到服务器发送的二维码显示指令后,需要获取页面对应的二维码,并将二维码显示在第二设备中,该二维码可预先存储在该第二设备本地,也可以存储在服务器中。当该二维码存储在服务器中时,第二设备则可向服务器发送当前页面的页面标识,并接收服务器返回的该页面标识对应的二维码。当该二维码预先存储在该第二设备本地时,该第二设备则可确定当前页面对应的页面标识,并在本地获取该页面标识对应的二维码。其中,本申请中所述的页面标识包括但不限于当前页面的统一资源定位符(Uniform Resource Locator,URL)。Furthermore, in the above step S105, after receiving the QR code display instruction sent by the server, the second device needs to obtain the QR code corresponding to the page and display the QR code in the second device. The QR code can be pre-stored locally on the second device or stored in the server. When the QR code is stored in the server, the second device can send the page identifier of the current page to the server and receive the QR code corresponding to the page identifier returned by the server. When the QR code is pre-stored locally on the second device, the second device can determine the page identifier corresponding to the current page and obtain the QR code corresponding to the page identifier locally. Among them, the page identifier described in this application includes but is not limited to the Uniform Resource Locator (URL) of the current page.
为了尽量节省网络资源,该第二设备在获取当前页面对应的二维码时,可先根据当前页面的页面标识,在本地查找该页面标识对应的二维码,若查找到,则可直接显示,若未查找到,则可向服务器发送该页面标识,以从服务器中获取当前页面对应的二维码并显示。In order to save network resources as much as possible, when the second device obtains the QR code corresponding to the current page, it can first search for the QR code corresponding to the page identifier locally based on the page identifier of the current page. If found, it can be displayed directly. If not found, the page identifier can be sent to the server to obtain the QR code corresponding to the current page from the server and display it.
另外,第二设备在显示二维码时,可直接将二维码显示在当前页面中的任意位置,只要保证所显示的二维码不被任何其他信息所遮挡即可,还可在显示二维码时,通过控件或其他软件开启一个独立于当前页面的另一页面或窗口,并在该单独的页面或窗口中显示二维码。In addition, when displaying the QR code, the second device can directly display the QR code at any position in the current page, as long as the displayed QR code is not blocked by any other information. When displaying the QR code, it can also open another page or window independent of the current page through controls or other software, and display the QR code in the separate page or window.
在本申请实施例中,由于第二设备在初始显示信息时,并不显示二维码,这就会使得用户在第二设备上浏览页面时,有可能不知道当前页面是否存在对应的二维码,因此,第二设备可在显示的当前页面中添加提示信息,用以提示用户该页面存在对应的二维码,并提示用户只要开启登录相同账号的第一设备(如,手机)中的二维码扫描功能,即可在第二设备上看到相应的二维码。当然,该提示信息中还可以包含二维码对应的服务或资源的详细信息,如,在商品网站中的商品信息页面中的某一区域内添加“该页面中提供有手机下单服务对应的二维码”。In the embodiment of the present application, since the second device does not display the QR code when initially displaying information, the user may not know whether the current page has a corresponding QR code when browsing the page on the second device. Therefore, the second device can add a prompt message to the current page displayed to remind the user that the page has a corresponding QR code, and remind the user that as long as the QR code scanning function in the first device (such as a mobile phone) logged in with the same account is turned on, the corresponding QR code can be seen on the second device. Of course, the prompt message can also include detailed information about the service or resource corresponding to the QR code, such as adding "This page provides a QR code corresponding to the mobile phone ordering service" to a certain area of the product information page on the product website.
上述是以DOI为二维码为例说明的DOI显示方法,当DOI为条形码或其他除二维码以外的DOI时,也均可采用本申请实施例提供的上述DOI显示方法显示相应的DOI,这里就不再一一赘述。The above is an example of a DOI display method using a DOI as a QR code. When the DOI is a barcode or other DOI other than a QR code, the above DOI display method provided in the embodiment of the present application can also be used to display the corresponding DOI, which will not be described in detail here.
以上为本申请实施例提供的DOI显示方法,基于同样的思路,本申请还提供了相应的DOI显示装置,如图2、图3、图4所述。The above is the DOI display method provided in the embodiment of the present application. Based on the same idea, the present application also provides a corresponding DOI display device, as shown in Figures 2, 3, and 4.
图2为本申请实施例提供的第一种DOI显示装置结构示意图,包括:FIG2 is a schematic structural diagram of a first DOI display device provided in an embodiment of the present application, comprising:
接收模块201,用于接收用户的DOI扫描指令;Receiving module 201, used for receiving a DOI scanning instruction from a user;
发送模块202,用于向服务器发送DOI显示指令,使所述服务器将所述DOI显示指令发送给与所述装置关联的第二设备,以指示所述第二设备显示DOI,其中,所述第二设备在接收到所述DOI显示指令之前,不显示所述DOI。The sending module 202 is used to send a DOI display instruction to the server, so that the server sends the DOI display instruction to a second device associated with the apparatus to instruct the second device to display the DOI, wherein the second device does not display the DOI before receiving the DOI display instruction.
与所述装置关联的第二设备包括:与所述装置使用相同账号的第二设备。The second device associated with the apparatus includes: a second device using the same account as the apparatus.
所述DOI包括二维码。The DOI includes a QR code.
图2所示的装置具体可以位于第一设备中,所述的第一设备可以是手机、平板电脑等一切可以扫描DOI的设备。The apparatus shown in FIG. 2 may be located in a first device. The first device may be a mobile phone, a tablet computer, or any other device capable of scanning a DOI.
图3为本申请实施例提供的第二种DOI显示装置结构示意图,包括:FIG3 is a schematic structural diagram of a second DOI display device provided in an embodiment of the present application, comprising:
接收模块301,用于接收第一设备发送的DOI显示指令,其中,所述DOI显示指令是第一设备接收到DOI扫描指令时,向所述装置发送的;The receiving module 301 is configured to receive a DOI display instruction sent by the first device, wherein the DOI display instruction is sent to the apparatus when the first device receives a DOI scan instruction;
确定模块302,用于确定与所述第一设备关联的第二设备;A determination module 302 is configured to determine a second device associated with the first device;
发送模块303,用于向所述第二设备发送所述DOI显示指令,使所述第二设备显示DOI,其中,所述第二设备在接收到所述DOI显示指令之前,不显示所述DOI。The sending module 303 is configured to send the DOI display instruction to the second device, so that the second device displays the DOI, wherein the second device does not display the DOI before receiving the DOI display instruction.
所述确定模块302具体用于,确定第一设备发送的DOI显示指令中携带的账号,其中所述DOI显示指令中携带的账号是所述第一设备当前使用的账号,根据所述账号,将使用所述账号的第二设备作为与第一设备关联的第二设备。The determination module 302 is specifically used to determine the account carried in the DOI display instruction sent by the first device, wherein the account carried in the DOI display instruction is the account currently used by the first device, and according to the account, the second device using the account is used as the second device associated with the first device.
图3所示的装置具体可以位于服务器中。The device shown in FIG. 3 may specifically be located in a server.
图4为本申请实施例提供的第三种DOI显示装置结构示意图,包括:FIG4 is a schematic structural diagram of a third DOI display device provided in an embodiment of the present application, comprising:
接收模块401,用于接收DOI显示指令,其中,所述DOI显示指令是第一设备接收到DOI扫描指令时,通过服务器转发给与所述装置的;The receiving module 401 is configured to receive a DOI display instruction, wherein the DOI display instruction is forwarded to the first device via the server when the first device receives a DOI scan instruction;
获取模块402,用于获取当前页面对应的DOI,并显示,其中,所述装置在接收到所述DOI显示指令之前,不显示所述DOI。The acquisition module 402 is configured to acquire the DOI corresponding to the current page and display it. The device does not display the DOI before receiving the DOI display instruction.
所述获取模块402具体用于,向服务器发送所述当前界面的页面标识,并接收所述服务器返回的所述页面标识对应的DOI,或者确定当前页面对应的页面标识,并在本地获取所述页面标识对应的DOI。The acquisition module 402 is specifically used to send the page identifier of the current interface to the server and receive the DOI corresponding to the page identifier returned by the server, or determine the page identifier corresponding to the current page and locally obtain the DOI corresponding to the page identifier.
图4所示的装置具体可以位于第二设备中,所述的第二设备可以包括PC、平板电脑等一切可以显示信息的设备。The apparatus shown in FIG. 4 may be located in a second device. The second device may include any device capable of displaying information, such as a PC and a tablet computer.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and/or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The foregoing is merely an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included within the scope of the claims of the present application.
Claims (10)
Publications (3)
| Publication Number | Publication Date |
|---|---|
| HK1235482A1 HK1235482A1 (en) | 2018-03-09 |
| HK1235482A HK1235482A (en) | 2018-03-09 |
| HK1235482B true HK1235482B (en) | 2021-03-05 |
Family
ID=
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12386492B2 (en) | Information processing terminal and control method | |
| CN111666518B (en) | A DOI display method and device | |
| US11281515B2 (en) | Method and system for problem modification and processing | |
| AU2019101586A4 (en) | Information push method and device | |
| CN107943547B (en) | Multi-service integration method, device, intelligent terminal, server and operating system | |
| JP6686165B2 (en) | Service execution method and device | |
| KR102058302B1 (en) | Reflow of data presentation using tracking data | |
| JP2020505681A (en) | Data acquisition method and device | |
| CN106296252B (en) | User recommendation method and device | |
| CN108122124B (en) | Information push method, platform and system | |
| JP2018500670A (en) | Handling unstructured messages | |
| TW201734856A (en) | Page display method and device | |
| CN104580639B (en) | A kind of information loading method and device based on telephone number | |
| CN109462868B (en) | Method and equipment for inquiring target information by wireless access point | |
| CN114640718B (en) | Data processing method and device based on data processing system | |
| HK1235482B (en) | Doi display method and apparatus | |
| HK1235482A (en) | Doi display method and apparatus | |
| HK1235482A1 (en) | Doi display method and apparatus | |
| CN105808543A (en) | A method and device for displaying information | |
| CN114500641B (en) | Message communication method, device and readable medium | |
| CN105843649A (en) | Network content sharing method and device | |
| CN119493914A (en) | Text search method, device, storage medium and system for online shopping mall | |
| HK1207709B (en) | Method for presenting information and device thereof | |
| HK1235168A1 (en) | Business function realizing method and device | |
| HK1235168A (en) | Business function realizing method and device |