CN115510363A - Page display method and device, computer equipment and storage medium - Google Patents
Page display method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN115510363A CN115510363A CN202211305828.9A CN202211305828A CN115510363A CN 115510363 A CN115510363 A CN 115510363A CN 202211305828 A CN202211305828 A CN 202211305828A CN 115510363 A CN115510363 A CN 115510363A
- Authority
- CN
- China
- Prior art keywords
- page
- url
- target
- user
- customized
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Data Mining & Analysis (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本说明书提供一种页面展示方法、装置、计算机设备及存储介质,该方法应用于服务端,服务端的目标页面对应有默认URL和默认页面数据;目标页面还对应:至少一个用户预设的至少一个定制URL,每个定制URL对应用户对目标页面预设的定制页面数据或默认页面数据;获取浏览器发起的访问目标页面的请求;若请求中携带的是所述默认URL,返回所述默认页面数据以供所述浏览器展示页面;若请求中携带的是目标定制URL,确定目标定制URL对应的是目标定制页面数据或对应默认页面数据,返回与目标定制URL对应的目标定制页面数据以供浏览器展示页面;其中,请求是浏览器通过获取本地存储的IP地址与目标定制URL的映射关系发起的。
This specification provides a page display method, device, computer equipment, and storage medium. The method is applied to the server. The target page of the server corresponds to a default URL and default page data; the target page also corresponds to: at least one preset by at least one user Customized URLs, each customized URL corresponds to the customized page data or default page data preset by the user on the target page; obtain the request for accessing the target page initiated by the browser; if the default URL is carried in the request, return the default page data for the browser to display the page; if what is carried in the request is the target custom URL, it is determined that the target custom URL corresponds to the target custom page data or the corresponding default page data, and returns the target custom page data corresponding to the target custom URL for The browser displays the page; wherein, the request is initiated by the browser by obtaining the mapping relationship between the locally stored IP address and the target custom URL.
Description
技术领域technical field
本说明书涉及互联网技术领域,尤其涉及页面展示方法、装置、计算机设备及存储介质。This specification relates to the technical field of the Internet, in particular to a page display method, device, computer equipment and storage medium.
背景技术Background technique
在万维网(World Wide Web,WWW)上,每一网页都有统一的且在网上唯一的地址,该地址即URL(Uniform Resource Locator,统一资源定位器),即俗称的网页地址。On the World Wide Web (World Wide Web, WWW), each webpage has a unified and unique address on the Internet, and the address is a URL (Uniform Resource Locator, Uniform Resource Locator), which is commonly known as a webpage address.
例如,web服务器向用户提供一网页,用户可以在浏览器的地址栏中输入该网页的URL。URL中包括web服务器的域名和信息资源的路径名,浏览器根据URL中的域名(DomainName),通过域名解析(Domain Name System,DNS)确定所述访问的web服务器IP地址(Internet Protocol Address),根据IP地址访问web服务器,web服务器根据信息资源的路径名返回该网页的信息资源,此处的信息资源即该网页的页面数据,浏览器接收到后就可以展示网页。For example, a web server provides a webpage to a user, and the user can input the URL of the webpage in the address bar of the browser. The URL includes the domain name of the web server and the path name of the information resource, and the browser determines the web server IP address (Internet Protocol Address) of the visit by domain name resolution (Domain Name System, DNS) according to the domain name (DomainName) in the URL, Access the web server according to the IP address, and the web server returns the information resource of the webpage according to the path name of the information resource. The information resource here is the page data of the webpage, and the browser can display the webpage after receiving it.
然而,此种方案中各个用户均是通过相同的URL访问同一网页,无法满足一些特定场景下用户对网页的自定义需求。However, in this solution, each user accesses the same webpage through the same URL, which cannot meet the user's customization requirements for the webpage in some specific scenarios.
发明内容Contents of the invention
为克服相关技术中存在的问题,本说明书实施例提供了页面展示方法、装置、计算机设备及存储介质。In order to overcome the problems existing in the related technologies, the embodiments of this specification provide a page display method, device, computer equipment and storage medium.
根据本说明书实施例的第一方面,提供一种页面展示方法,应用于服务端,所述服务端的目标页面对应有默认URL和默认页面数据;According to the first aspect of the embodiment of this specification, a page display method is provided, which is applied to the server, and the target page of the server corresponds to a default URL and default page data;
所述目标页面还对应:至少一个用户预设的至少一个定制URL,每个所述定制URL对应用户对所述目标页面预设的定制页面数据或所述默认页面数据;The target page also corresponds to: at least one customized URL preset by at least one user, and each of the customized URLs corresponds to the customized page data or the default page data preset by the user for the target page;
所述方法包括:The methods include:
获取浏览器发起的访问所述目标页面的请求;Obtain a request initiated by the browser to access the target page;
若所述请求中携带的是所述默认URL,返回所述默认页面数据以供所述浏览器展示页面;If the default URL is carried in the request, return the default page data for the browser to display the page;
若所述请求中携带的是目标定制URL,确定所述目标定制URL对应的是目标定制页面数据或对应默认页面数据,返回与目标定制URL对应的目标定制页面数据以供所述浏览器展示页面;其中,所述请求是所述浏览器通过获取本地存储的IP地址与所述目标定制URL的映射关系发起的。If what carried in the request is the target custom URL, determine that the target custom URL corresponds to the target custom page data or the corresponding default page data, and return the target custom page data corresponding to the target custom URL for the browser to display the page ; Wherein, the request is initiated by the browser by obtaining the mapping relationship between the locally stored IP address and the target custom URL.
根据本说明书实施例的第二方面,提供一种页面展示方法,应用于浏览器,所述方法包括:According to the second aspect of the embodiments of this specification, there is provided a method for displaying a page, which is applied to a browser, and the method includes:
响应于用户输入的URL,获取本地存储的IP地址与所述定制URL的映射关系;In response to the URL input by the user, obtain the mapping relationship between the locally stored IP address and the custom URL;
若所述用户输入的URL与所述定制URL相同,向所述IP地址发起访问请求;If the URL input by the user is the same as the customized URL, initiate an access request to the IP address;
获取服务端返回的页面数据并展示页面;其中,所述服务端是根据所述访问请求携带的是定制URL,确定所述定制URL对应的是定制页面数据或对应默认页面数据后,返回与所述定制URL对应的页面数据。Obtain the page data returned by the server and display the page; wherein, the server carries a custom URL according to the access request, and after determining that the custom URL corresponds to the custom page data or the corresponding default page data, returns the URL corresponding to the default page data. The page data corresponding to the custom URL.
根据本说明书实施例的第三方面,提供一种用于服务端的目标页面的页面展示方法,应用于客户端,所述方法包括:According to the third aspect of the embodiment of this specification, there is provided a method for displaying a target page of a server, which is applied to a client, and the method includes:
提供对所述目标页面的URL的第一编辑功能,通过所述第一编辑功能获取客户端发送的用户编辑的URL并发送给所述服务端;和/或,Provide a first editing function for the URL of the target page, and obtain the user-edited URL sent by the client through the first editing function and send it to the server; and/or,
提供对所述目标页面的一种或多种页面元素的第二编辑功能,通过所述第二编辑功能获取用户编辑的页面元素数据并发送给服务端,以使所述服务端基于接收的URL和页面元素数据,存储定制URL和与所述定制URL对应的定制页面数据,并在获取到浏览器发起的访问所述目标页面的请求时,确定所述请求中携带的是所述定制URL时,确定所述定制URL对应的是定制页面数据或对应默认页面数据后,返回对应的定制页面数据至所述浏览器,其中,所述请求是所述浏览器通过获取本地存储的IP地址与所述目标定制URL的映射关系发起的。Provide a second editing function for one or more page elements of the target page, and obtain the page element data edited by the user through the second editing function and send it to the server, so that the server based on the received URL and page element data, store the custom URL and the custom page data corresponding to the custom URL, and when the request for accessing the target page initiated by the browser is obtained, it is determined that the custom URL is carried in the request After determining that the customized URL corresponds to the customized page data or the corresponding default page data, return the corresponding customized page data to the browser, wherein the request is obtained by the browser by obtaining the locally stored IP address and the corresponding default page data. Initiated by the mapping relationship of the target custom URL.
根据本说明书实施例的第四方面,提供一种页面展示装置,应用于服务端,所述服务端的目标页面对应有默认URL和默认页面数据;According to the fourth aspect of the embodiments of this specification, there is provided a page display device, which is applied to a server, and the target page of the server corresponds to a default URL and default page data;
所述目标页面还对应:至少一个用户预设的至少一个定制URL,每个所述定制URL对应用户对所述目标页面预设的定制页面数据或所述默认页面数据;The target page also corresponds to: at least one customized URL preset by at least one user, and each of the customized URLs corresponds to the customized page data or the default page data preset by the user for the target page;
所述装置包括:The devices include:
请求获取模块,用于:获取浏览器发起的访问所述目标页面的请求;The request acquisition module is used to: acquire the request initiated by the browser to access the target page;
数据返回模块,用于:在所述请求中携带的是所述默认URL的情况下,返回所述默认页面数据以供所述浏览器展示页面;在所述请求中携带的是目标定制URL的情况下,确定所述目标定制URL对应的是目标定制页面数据或对应默认页面数据,返回与目标定制URL对应的目标定制页面数据以供所述浏览器展示页面;其中,所述请求是所述浏览器通过获取本地存储的IP地址与所述目标定制URL的映射关系发起的。A data return module, configured to: return the default page data for the browser to display the page when the default URL is carried in the request; the target custom URL is carried in the request In this case, it is determined that the target custom URL corresponds to the target custom page data or the corresponding default page data, and the target custom page data corresponding to the target custom URL is returned for the browser to display the page; wherein the request is the The browser initiates by obtaining the mapping relationship between the locally stored IP address and the target custom URL.
根据本说明书实施例的第五方面,提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现前述第一方面至第三方面任一所述方法实施例的步骤。According to a fifth aspect of the embodiments of the present specification, there is provided a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the implementation of the method described in any one of the aforementioned first to third aspects is implemented. example steps.
根据本说明书实施例的第六方面,提供一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现前述第一方面至第三方面任一所述方法实施例的步骤。According to a sixth aspect of the embodiments of this specification, there is provided a computer device, including a memory, a processor, and a computer program stored in the memory and operable on the processor, wherein, when the processor executes the computer program, the The steps in any one of the method embodiments of the aforementioned first aspect to the third aspect.
本说明书的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of this specification may include the following beneficial effects:
本说明书实施例中,服务端的目标页面,不仅对应有默认URL和默认页面数据,还对应了至少一个用户预设的至少一个定制URL,每个所述定制URL对应用户对所述目标页面预设的定制页面数据或默认页面数据。当服务端接收到浏览器访问目标页面的请求时,需要确定当前访问目标页面的用户,以确定该用户是否有对目标页面定制显示内容并返回对应的显示数据。本实施例利用用户定制的URL实现,使得服务端通过用户的定制URL来确定当前的请求来自于哪个用户,若浏览器发起的请求中携带有用户定制的URL,则可以确定所述目标定制URL对应的是目标定制页面数据或对应默认页面数据。如此,定制URL既可以方便用户记忆以及便于访问目标页面,也使得服务端通过定制URL确定所访问的用户身份,从而可以返回对应的页面数据。因此,实现了一个目标页面可以供不同用户进行URL和页面数据的定制化,满足用户的自定义需求。In the embodiment of this specification, the target page of the server not only corresponds to the default URL and the default page data, but also corresponds to at least one customized URL preset by the user, and each of the customized URLs corresponds to the user’s default settings for the target page. Custom page data or default page data for . When the server receives a request from the browser to access the target page, it needs to determine the user currently accessing the target page to determine whether the user has customized display content for the target page and return corresponding display data. This embodiment utilizes the URL customized by the user to realize, so that the server determines which user the current request comes from through the customized URL of the user. If the request initiated by the browser carries the URL customized by the user, then the target customized URL can be determined. It corresponds to the target custom page data or corresponds to the default page data. In this way, the customized URL can not only facilitate the user's memory and access to the target page, but also enable the server to determine the identity of the accessed user through the customized URL, so that the corresponding page data can be returned. Therefore, it is realized that a target page can be customized by different users for URL and page data, so as to meet user's customization requirements.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本说明书。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the specification.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本说明书的实施例,并与说明书一起用于解释本说明书的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the specification and together with the description serve to explain the principles of the specification.
图1A是本说明书根据一示例性实施例示出的一种登录页面的示意图。Fig. 1A is a schematic diagram of a login page shown in this specification according to an exemplary embodiment.
图1B是本说明书根据一示例性实施例示出的另一种登录页面的示意图。Fig. 1B is a schematic diagram of another login page shown in this specification according to an exemplary embodiment.
图2A是本说明书根据一示例性实施例示出的一种客户端的第一编辑功能的示意图。Fig. 2A is a schematic diagram showing a first editing function of a client according to an exemplary embodiment in this specification.
图2B是本说明书根据一示例性实施例示出的一种客户端的第二编辑功能的示意图。Fig. 2B is a schematic diagram showing a second editing function of a client according to an exemplary embodiment in this specification.
图3A至图3D分别是本说明书根据一示例性实施例示出的一种页面展示方法的示意图。FIG. 3A to FIG. 3D are respectively schematic diagrams of a page display method according to an exemplary embodiment in this specification.
图4是本说明书根据一示例性实施例示出的一种云桌面服务的场景示意图。Fig. 4 is a schematic diagram of a scene of a cloud desktop service shown in this specification according to an exemplary embodiment.
图5是本说明书根据一示例性实施例示出的一种页面展示装置所在计算机设备的框图。Fig. 5 is a block diagram of a computer device where a page display device is located according to an exemplary embodiment of this specification.
图6是本说明书根据一示例性实施例示出的一种页面展示装置的框图。Fig. 6 is a block diagram of a page display device shown in this specification according to an exemplary embodiment.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本说明书相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本说明书的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with this specification. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present specification as recited in the appended claims.
在本说明书使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本说明书。在本说明书和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terms used in this specification are for the purpose of describing particular embodiments only, and are not intended to limit the specification. As used in this specification and the appended claims, the singular forms "a", "the", and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
应当理解,尽管在本说明书可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本说明书范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this specification, first information may also be called second information, and similarly, second information may also be called first information. Depending on the context, the word "if" as used herein may be interpreted as "at" or "when" or "in response to a determination."
首选对URL进行说明。以如下URL为例:It is preferred to describe the URL. Take the following URL as an example:
http://AAA.com/index.htmlhttp://AAA.com/index.html
其中,“http://”是指协议,即HTTP超文本传输协议,也就是网页在网上传输的协议。Among them, "http://" refers to the protocol, that is, the HTTP hypertext transfer protocol, which is the protocol for transmitting web pages on the Internet.
“AAA.com”是域名,是用来定位网站的独一无二的名字。"AAA.com" is a domain name, which is a unique name used to locate a website.
“/”是根目录,也就是说,通过域名找到服务器,然后在服务器存放网页的根目录。"/" is the root directory, that is to say, find the server through the domain name, and then store the root directory of the web page on the server.
“index.html”是根目录下的默认网页,即服务器提供的网页的信息资源的路径名。"index.html" is the default web page under the root directory, that is, the path name of the information resource of the web page provided by the server.
然而,此种方案中各个用户均是通过相同的URL访问网页,无法满足一些特定场景下用户对网页的自定义需求。However, in this solution, each user accesses the webpage through the same URL, which cannot meet the user's customization requirements for the webpage in some specific scenarios.
以云桌面场景为例。云桌面又称桌面虚拟化、云电脑,是替代传统电脑的一种新模式;采用云桌面后,主机所包含的CPU、内存、硬盘等组件都可以在后端的服务器中虚拟出来,单台高性能服务器可以虚拟出1至50台等多台虚拟主机。用户安装客户端后通过特有的通信协议访问后端服务器上的虚拟机主机来实现交互式操作,达到与电脑一致的体验效果;同时,云桌面还能支持手机、平板等其他智能设备在互联网上访问,也是移动办公的最新解决方案。Take the cloud desktop scenario as an example. Cloud desktop, also known as desktop virtualization and cloud computer, is a new model to replace traditional computers; after adopting cloud desktop, the CPU, memory, hard disk and other components contained in the host can be virtualized in the back-end server, and a single high The performance server can virtualize more than 1 to 50 virtual hosts. After installing the client, the user accesses the virtual machine host on the back-end server through a unique communication protocol to achieve interactive operations, achieving the same experience as the computer; at the same time, the cloud desktop can also support mobile phones, tablets and other smart devices on the Internet. Access is also the latest solution for mobile office.
使用云桌面服务时,用户可以使用浏览器,通过云桌面服务商提供的云桌面登录页面的URL,访问云桌面登录页面。云桌面登录页面中提供有登录入口,用户通过登录入口输入账户和密码,在通过账户认证后可以访问云桌面。如图1A所示,是本说明书根据一示例性实施例示出的登录页面的示意图,图1A中是以默认URL访问页面的示意图。When using the cloud desktop service, the user can use a browser to access the cloud desktop login page through the URL of the cloud desktop login page provided by the cloud desktop service provider. The cloud desktop login page provides a login entry, through which the user enters the account and password, and can access the cloud desktop after passing the account authentication. As shown in FIG. 1A , it is a schematic diagram of a login page shown in this specification according to an exemplary embodiment, and FIG. 1A is a schematic diagram of a default URL access page.
云桌面服务商可以向很多组织及用户提供云桌面服务,如前所述,云桌面登录页面是云桌面服务商制定的,各个用户访问云桌面登录页面时,页面展示内容都是相同的。发明人发现,一些企业用户希望云桌面登录页面的URL中的域名中能够与企业名称相关联,例如带有企业标识或带有企业网站的域名,使得该企业的用户可以更好地记忆登录页面的URL,方便用户使用。并且,用户对于登录页面还具有自定义需求,希望能够改变登录页面的背景图片、Logo图标或提示文案等等。Cloud desktop service providers can provide cloud desktop services to many organizations and users. As mentioned above, the cloud desktop login page is designed by the cloud desktop service provider. When each user accesses the cloud desktop login page, the content displayed on the page is the same. The inventor found that some enterprise users hope that the domain name in the URL of the cloud desktop login page can be associated with the enterprise name, such as a domain name with an enterprise logo or an enterprise website, so that users of the enterprise can better remember the login page URL, which is convenient for users to use. Moreover, users also have customization requirements for the login page, hoping to change the background image, logo icon or prompt text of the login page, etc.
基于此,本说明书实施例提供了一种页面显示方法,服务端的目标页面不再千篇一律,而是能够供通过用户定制URL访问;且根据用户的设置,若用户设置有定制页面数据,页面显示时还可以显示用户的定制页面数据。Based on this, the embodiment of this specification provides a page display method, the target page of the server is no longer stereotyped, but can be accessed through a user-defined URL; and according to the user's settings, if the user has customized page data, when the page is displayed It is also possible to display the user's custom page data.
如前所述,传统技术中,服务端向用户提供目标页面,该目标页面的URL和显示内容都是由服务端侧的人员配置的。为了让用户能够定制目标页面的显示内容,服务端可以存储用户定制的定制显示数据。当服务端接收到浏览器访问目标页面的请求时,需要确定当前访问目标页面的用户,以确定该用户是否有对目标页面定制显示内容并返回对应的显示数据。基于此,本实施例利用用户定制的URL实现,即服务端通过用户的定制URL来确定当前的请求来自于哪个用户,若浏览器发起的请求中携带有用户定制的URL,则可以确定用户是否有自定义的定制页面数据。如此,定制URL既可以方便用户记忆以及便于访问目标页面,也使得服务端通过定制URL确定所访问的用户身份,从而在用户有定制页面数据的情况下还可以返回对应的定制页面数据。如图1B所示,是本说明书根据一示例性实施例示出的登录页面的示意图,图1B中是用户以定制URL访问页面的示意图。As mentioned above, in the traditional technology, the server provides a target page to the user, and the URL and display content of the target page are configured by personnel at the server side. In order to allow the user to customize the display content of the target page, the server may store user-defined custom display data. When the server receives a request from the browser to access the target page, it needs to determine the user currently accessing the target page to determine whether the user has customized display content for the target page and return corresponding display data. Based on this, this embodiment is implemented using a user-customized URL, that is, the server determines which user the current request comes from through the user-customized URL, and if the request initiated by the browser carries the user-customized URL, it can be determined whether the user There is custom custom page data. In this way, the customized URL can not only facilitate the user's memory and access the target page, but also enable the server to determine the identity of the accessed user through the customized URL, so that the corresponding customized page data can be returned when the user has customized page data. As shown in FIG. 1B , it is a schematic diagram of a login page shown in this specification according to an exemplary embodiment, and FIG. 1B is a schematic diagram of a user accessing the page with a customized URL.
本实施例的方案适用于任何需要满足用户对页面定制URL或定制页面数据的场景。本实施例中,服务端存储有目标页面对应有默认URL和默认显示数据,此处的默认ULR和默认显示数据是服务端的,其中默认URL中包括默认域名,即服务端的域名,该域名可以是在公网上已注册的域名,并且对应服务端的IP地址,可以被公网的DNS服务器所解析到。The solution of this embodiment is applicable to any scenario where a user needs to customize a page URL or customize page data. In this embodiment, the server stores a default URL and default display data corresponding to the target page, where the default ULR and default display data are from the server, wherein the default URL includes a default domain name, that is, the domain name of the server, and the domain name can be The domain name registered on the public network and the IP address of the corresponding server can be resolved by the DNS server of the public network.
本实施例中,所述目标页面还对应:至少一个用户预设的至少一个定制URL,每个所述定制URL对应用户对所述目标页面预设的定制页面数据或所述默认页面数据,即服务端还存储各个定制URL与定制页面数据或默认页面数据的对应关系。本实施例的定制URL是用户自定义的URL,该URL中包括的域名可以是未经注册的,当然,已注册的域名也是可选的,浏览器通过获取本地存储的IP地址与定制URL的映射关系能够确定服务端的IP地址即可。如图1B所示,是用户以定制URL访问目标页面的示意图。In this embodiment, the target page also corresponds to: at least one customized URL preset by at least one user, and each of the customized URLs corresponds to the customized page data or the default page data preset by the user for the target page, that is The server also stores the corresponding relationship between each customized URL and customized page data or default page data. The custom URL in this embodiment is a user-defined URL, and the domain name included in this URL can be unregistered. Of course, a registered domain name is also optional. The browser obtains the locally stored IP address and the custom URL. It is sufficient that the mapping relationship can determine the IP address of the server. As shown in FIG. 1B , it is a schematic diagram of a user accessing a target page with a customized URL.
示例性的,服务端存储的定制URL可以是一个多个。一个用户可以定制一个或多个URL,并且,用户还定制有目标页面的定制显示数据。示例性的,可以通过客户端可以向用户提供对URL的定制功能,还可以向用户提供对目标页面的显示数据的定制功能。Exemplarily, there may be one or more customized URLs stored on the server. A user can customize one or more URLs, and the user also customizes the customized display data of the target page. Exemplarily, the client may provide the user with the function of customizing the URL, and may also provide the user with the function of customizing the display data of the target page.
实际应用中,可以通过多种方式实现用户定制目标页面的URL以及让用户定制目标页面的定制页面数据。例如,服务端可以向用户提供客户端,用户通过客户端定制URL和定制页面数据,由客户端将用户定制的URL和页面数据发送给服务端存储。示例性的,还可以对定制URL和页面数据的用户进行鉴权,即有权限的用户才允许定制URL和页面数据;鉴权的方式可以通过用户账户和密码实现,通过识别用户账户确定用户是否具有定制URL和页面数据的权限,本实施例对此不进行赘述。In practical applications, the user may customize the URL of the target page and allow the user to customize the customized page data of the target page in various ways. For example, the server may provide a client to the user, and the user customizes the URL and page data through the client, and the client sends the user-customized URL and page data to the server for storage. Exemplarily, it is also possible to authenticate users who customize URLs and page data, that is, only authorized users are allowed to customize URLs and page data; It has the authority to customize URL and page data, which will not be described in this embodiment.
示例性的,客户端可以提供有对所述目标页面的URL的第一编辑功能,客户端可以通过该第一编辑功能获取用户编辑的URL并发送给服务端,服务端接收客户端发送的用户编辑的URL,若所述用户编辑的URL满足预设校验条件,将所述用户编辑的URL存储为定制URL。实际应用中,所述客户端的第一编辑功能可以有多种实现方式,例如可以是一输入控件等等。如图2A所示,是本说明书根据一示例性实施例示出的一种客户端中第一编辑功能的示意图,图2A中以web客户端即浏览器为例,实际应用中还可以是其他客户端,本实施例对此不进行限定。图2A中第一编辑功能以输入框为例,用户可以在该页面中展示的输入框中输入URL,通过点击“提交校验”按钮,客户端检测到“提交校验”按钮被触发,则获取输入框中用户输入的URL并发送给服务端进行校验。Exemplarily, the client may be provided with a first editing function for the URL of the target page, the client may obtain the URL edited by the user through the first editing function and send it to the server, and the server receives the user's URL sent by the client. For the edited URL, if the URL edited by the user satisfies a preset verification condition, store the URL edited by the user as a customized URL. In practical applications, the first editing function of the client may be implemented in various manners, for example, it may be an input control or the like. As shown in Figure 2A, it is a schematic diagram of the first editing function in a client according to an exemplary embodiment shown in this specification. In Figure 2A, a web client, namely a browser, is taken as an example. terminal, which is not limited in this embodiment. The first editing function in Figure 2A takes the input box as an example. The user can enter the URL in the input box displayed on this page, and click the "Submit Verification" button. When the client detects that the "Submit Verification" button is triggered, then Obtain the URL entered by the user in the input box and send it to the server for verification.
其中,预设校验条件可以根据需要灵活配置,例如,预设校验条件可以包括URL唯一性校验,即校验用户编辑的URL是否与已存储的各个定制URL不同,若不同则确定通过校验。预设校验条件还可以包括对URL中字符的校验条件,URL中的字符包括数字和字母,可以检测URL中的一个或多个字符是否预设校验条件,例如,服务端可以维护一份黑名单,黑名单中包括多个字符串,用户编辑的URL中包括黑名单中的字符串,即可认为该URL校验失败,若不包括,则校验成功,用户可以使用其编辑的URL。根据需要,客户端可以输出校验成功通知,服务端则将用户编辑的URL存储为定制URL。在其他例子中,人工审核也是可选的,例如,服务端将用户编辑的URL发送至预设的审核人员的终端,以提示审核人员审核;之后服务端获取审核人员的终端返回的审核结果,确定用户编辑的URL是否通过校验。Among them, the preset verification conditions can be flexibly configured according to needs. For example, the preset verification conditions can include URL uniqueness verification, that is, to verify whether the URL edited by the user is different from each stored custom URL, and if it is different, it is determined to pass check. The preset check conditions can also include check conditions for characters in the URL. The characters in the URL include numbers and letters. It can be detected whether one or more characters in the URL are preset check conditions. For example, the server can maintain a The blacklist contains multiple character strings. If the URL edited by the user includes the strings in the blacklist, the URL verification fails. If the URL is not included, the verification succeeds, and the user can use the URL. As needed, the client can output a verification success notification, and the server stores the URL edited by the user as a custom URL. In other examples, manual review is also optional. For example, the server sends the URL edited by the user to the preset reviewer's terminal to prompt the reviewer to review; then the server obtains the review result returned by the reviewer's terminal, Determine whether the URL edited by the user passes the validation.
示例性的,客户端还可以提供对所述目标页面的页面数据的第二编辑功能。目标页面的默认页面数据可以包括多种页面元素,本实施例中,可供用户定制的页面元素的个数本实施例对此不进行限定,可以是默认页面数据中多种页面元素的部分页面元素,也可以是全部;实际应用中,可以根据目标页面的实际使用场景而确定。以登录页面为例,登录页面通常包括登录入口,即用于供用户输入账户和密码的登录控件;除了登录入口之外,登录页面中还包括的其他页面元素包括背景图、提示文案、图标或其他链接等等。因此,登录页面中,除了登录入口之外的其他页面元素可以供用户自定义,从而满足用户的自定义需求。Exemplarily, the client may also provide a second editing function for the page data of the target page. The default page data of the target page may include various page elements. In this embodiment, the number of user-customizable page elements is not limited in this embodiment. It may be a partial page of various page elements in the default page data. elements, or all of them; in practical applications, it can be determined according to the actual usage scenario of the target page. Taking the login page as an example, the login page usually includes a login entry, that is, a login control for the user to enter the account and password; in addition to the login entry, other page elements included in the login page include background images, prompt text, icons or other links and more. Therefore, in the login page, other page elements except the login entry can be customized by the user, so as to meet the customization requirements of the user.
示例性的,所述第二编辑功能可以有多种实现方式。作为一个示例,为了便于用户对目标页面的默认页面数据进行修改或替换,本实施例中,可以基于所述目标页面的默认页面数据展示用于模拟所述目标页面的模拟页面,并且模拟页面对可供用户自定义的各个所述页面元素进行提示,例如,模拟页面中,可以对可供用户自定义的各个所述页面元素进行动态展示,例如闪动或提示文字等等。并且,对可供用户自定义的各个所述页面元素实现替换功能,使得用户可以方便地输入定制页面数据。例如,替换功能可以是检测用户对可供用户自定义的各个所述页面元素的点击操作或上传操作等。以可供用户自定义的页面元素为页面的背景图元素为例,可以检测用户对背景图的点击操作,并提供对背景图的上传功能。例如,用户可以通过点击背景图触发替换请求,客户端通过检测到用户对背景图的点击操作,确定用户触发的替换请求,并提供上传功能,上传功能具体可以是在页面中展示的可供用户触发的控件,也可以是其他触发操作,例如用户可以右击即触发上传操作,页面通过检测到用户的右击操作,向用户提供上传背景图像的控件,通过该控件可以获取用户上传的背景图像。其他的页面元素同理。实际应用中第二编辑功能还可以有多种实现方式,本实施例对此不进行限定。如图2B所示,是本说明书根据一示例性示出的一种客户端的第二编辑功能的示意图,图2B中,基于默认页面数据,对图1A云桌面登录页面进行模拟展示,即展示了登录页面的模拟页面。并且,对页面中的文案元素和背景图元素进行可编辑的提示,即图2B中的“点击可替换欢迎文案”和“点击可替换背景图片”,并且还提供了上传其他页面元素的功能,例如图2B中的“上传其他图片”和“上传文案”的功能。Exemplarily, the second editing function may be implemented in multiple manners. As an example, in order to facilitate the user to modify or replace the default page data of the target page, in this embodiment, the simulated page for simulating the target page can be displayed based on the default page data of the target page, and the simulated page is Each of the page elements that can be customized by the user is prompted. For example, in the simulated page, each of the page elements that can be customized by the user can be dynamically displayed, such as flashing or prompting text. Moreover, a replacement function is implemented for each of the page elements that can be customized by the user, so that the user can conveniently input customized page data. For example, the replacement function may be to detect a user's click operation or upload operation on each of the page elements that can be customized by the user. Taking the page element that can be customized by the user as the background image element of the page as an example, it is possible to detect the user's click operation on the background image, and provide the function of uploading the background image. For example, the user can trigger a replacement request by clicking on the background image, and the client can determine the replacement request triggered by the user by detecting the user's click operation on the background image, and provide an upload function. The upload function can be displayed on the page for the user The triggered control can also be other triggered operations. For example, the user can right-click to trigger the upload operation. After detecting the user's right-click operation, the page provides the user with a control to upload the background image. Through this control, the background image uploaded by the user can be obtained. . The same goes for other page elements. In practical applications, the second editing function may also be implemented in multiple manners, which are not limited in this embodiment. As shown in Figure 2B, it is a schematic diagram of the second editing function of a client according to an example shown in this specification. In Figure 2B, based on the default page data, the cloud desktop login page in Figure 1A is simulated and displayed, that is, A mock page for the login page. In addition, editable prompts are provided for the copy elements and background image elements in the page, that is, "click to replace the welcome copy" and "click to replace the background image" in Figure 2B, and also provide the function of uploading other page elements, For example, the functions of "upload other pictures" and "upload copy" in Fig. 2B.
实际应用中,用户可以自定义定制URL,根据需要可以不定制页面数据也可以定制页面数据,在不定义页面数据的情况下,定制URL则对应默认页面数据。另外,在有定制URL和定制页面数据的情况下,定制URL和定制页面数据的用户可以相同也可以不同。自定义定制URL和定制页面数据的用户,与通过浏览器访问目标页面的用户也可以相同或不同。作为一个例子,图2A和图2B中可以是用户A自定义了定制URL和定制页面数据。而图1B中采用定制URL的是用户B,用户B的计算机设备中安装有浏览器,可以在浏览器的地址栏中输入定制URL访问目标页面。其中,浏览器需要获取到本地存储的IP地址与所述目标定制URL的映射关系。示例性的,可以是用户B的计算机设备所在局域网的本地域名解析服务器中配置了定制URL和目标页面的IP地址的映射关系,或者是用户B的计算机设备的本地操作系统的域名解析文件(例如hosts文件)中配置了定制URL和目标页面的IP地址的映射关系。In practical applications, the user can customize the custom URL, and the page data can be customized without customizing the page data as needed. If the page data is not defined, the custom URL corresponds to the default page data. In addition, when there are custom URLs and custom page data, users of the custom URL and custom page data may be the same or different. The user who customizes the customized URL and customized page data may be the same as or different from the user who accesses the target page through a browser. As an example, in FIG. 2A and FIG. 2B, user A may have customized a custom URL and custom page data. In FIG. 1B , it is user B who adopts the customized URL. User B has a browser installed in his computer device, and can enter the customized URL in the address bar of the browser to access the target page. Wherein, the browser needs to obtain the mapping relationship between the locally stored IP address and the target custom URL. Exemplarily, it may be that the local domain name resolution server of the local area network where user B's computer equipment is located is configured with a mapping relationship between the custom URL and the IP address of the target page, or the domain name resolution file of the local operating system of user B's computer equipment (such as hosts file) configures the mapping relationship between the custom URL and the IP address of the target page.
如图3A所示,是本说明书根据一示例性实施例示出的一种页面显示方法的流程图,本实施例从浏览器与服务端交互的角度描述了页面显示方法的流程,包括如下步骤:As shown in FIG. 3A, it is a flow chart of a page display method according to an exemplary embodiment of this specification. This embodiment describes the flow of the page display method from the perspective of interaction between the browser and the server, including the following steps:
在步骤301中,浏览器获取用户输入的URL。In step 301, the browser obtains the URL input by the user.
在步骤301中,浏览器根据URL获取IP地址。示例性的,浏览器通过地址栏获取到用户输入的URL,之后获取本地的定制URL与IP地址的映射关系;若用户输入的URL是定制URL,通过获取本地的定制URL与IP地址的映射关系,可以得到IP地址。若是默认URL,浏览器则采用相关技术中的域名解析方式获取IP地址。In step 301, the browser obtains the IP address according to the URL. Exemplarily, the browser obtains the URL entered by the user through the address bar, and then obtains the mapping relationship between the local custom URL and the IP address; if the URL entered by the user is a custom URL, it obtains the mapping relationship between the local custom URL and the IP address , you can get the IP address. If it is the default URL, the browser obtains the IP address by means of domain name resolution in related technologies.
在步骤302中,浏览器根据IP地址发送请求给服务端,该请求携带URL。In step 302, the browser sends a request to the server according to the IP address, and the request carries a URL.
在步骤311中,服务端获取请求中携带的URL。In step 311, the server acquires the URL carried in the request.
在步骤312中,服务端获取与URL对应的页面数据。示例性的,服务端存储了目标页面对应的默认URL和默认页面数据,以及各个定制URL和各份定制页面数据;服务端基于存储的数据,获取与URL对应的页面数据。若所述请求中携带的是默认URL,对应的是默认页面数据;若请求中携带的是目标定制URL,确定所述定制URL对应的是定制页面数据或对应默认页面数据后,返回与所述定制URL对应的页面数据。In step 312, the server acquires page data corresponding to the URL. Exemplarily, the server stores the default URL and default page data corresponding to the target page, as well as each customized URL and each customized page data; the server obtains the page data corresponding to the URL based on the stored data. If the request carries the default URL, it corresponds to the default page data; if the request carries the target custom URL, after determining that the custom URL corresponds to the custom page data or the corresponding default page data, return the Customize the page data corresponding to the URL.
在步骤313中,服务端返回页面数据给浏览器。示例性的,若所述请求中携带的是所述默认URL,返回所述默认页面数据;若所述请求中携带的是目标定制URL,返回与目标定制URL对应的目标定制页面数据或对应的默认页面数据。In step 313, the server returns the page data to the browser. Exemplarily, if the request carries the default URL, return the default page data; if the request carries the target custom URL, return the target custom page data corresponding to the target custom URL or the corresponding Default page data.
在步骤303中,浏览器根据页面数据展示页面。In step 303, the browser displays the page according to the page data.
如图3B所示,是本说明书根据一示例性实施例示出的一种页面显示方法的流程图,本实施例从服务端的角度描述了页面显示方法的流程,包括如下步骤:As shown in FIG. 3B , it is a flowchart of a page display method according to an exemplary embodiment in this specification. This embodiment describes the flow of the page display method from the perspective of the server, including the following steps:
在步骤322中,获取浏览器发起的访问所述目标页面的请求。In
在步骤324中,若所述请求中携带的是所述默认URL,返回所述默认页面数据以供所述浏览器展示页面。In
在步骤326中,若所述请求中携带的是目标定制URL,确定所述目标定制URL对应的是目标定制页面数据或对应默认页面数据,返回与目标定制URL对应的页面数据以供所述浏览器展示页面。In
其中,所述请求是所述浏览器通过获取本地存储的IP地址与所述目标定制URL的映射关系发起的。Wherein, the request is initiated by the browser by obtaining the mapping relationship between the locally stored IP address and the target custom URL.
本实施例的具体实施过程可以参考前述实施例的描述,在此不进行赘述。For the specific implementation process of this embodiment, reference may be made to the description of the foregoing embodiments, and details are not repeated here.
如图3C所示,是本说明书根据一示例性实施例示出的一种页面显示方法的流程图,本实施例从浏览器的角度描述了页面显示方法的流程,包括如下步骤:As shown in FIG. 3C , it is a flowchart of a page display method according to an exemplary embodiment in this specification. This embodiment describes the flow of the page display method from the perspective of a browser, including the following steps:
在步骤332中,响应于用户输入的URL,获取本地存储的IP地址与定制URL的映射关系;In
在步骤334中,若所述用户输入的URL与所述定制URL相同,向所述IP地址发起访问请求;In
在步骤336中,获取服务端返回的页面数据并展示页面。In
其中,所述服务端是根据所述访问请求携带的是定制URL,确定所述定制URL对应的是定制页面数据或对应默认页面数据后,返回与所述定制URL对应的页面数据。Wherein, the server returns the page data corresponding to the custom URL after determining that the custom URL corresponds to custom page data or corresponding default page data according to the access request carrying a custom URL.
本实施例的具体实施过程可以参考前述实施例的描述,在此不进行赘述。For the specific implementation process of this embodiment, reference may be made to the description of the foregoing embodiments, and details are not repeated here.
如图3D所示,是本说明书根据一示例性实施例示出的一种页面显示方法的流程图,本实施例从浏览器的角度描述了页面显示方法的流程,包括如下步骤:As shown in FIG. 3D , it is a flow chart of a page display method shown in this specification according to an exemplary embodiment. This embodiment describes the flow of the page display method from the perspective of a browser, including the following steps:
在步骤342中,提供对所述目标页面的URL的第一编辑功能,通过所述第一编辑功能获取客户端发送的用户编辑的URL并发送给所述服务端;和/或,In
在步骤344中,提供对所述目标页面的一种或多种页面元素的第二编辑功能,通过所述第二编辑功能获取用户编辑的页面元素数据并发送给服务端;以使所述服务端基于接收的URL和页面元素数据,存储定制URL和与所述定制URL对应的定制页面数据,并在获取到浏览器发起的访问所述目标页面的请求时,确定所述请求中携带的是所述定制URL时,确定所述定制URL对应的是定制页面数据或对应默认页面数据后,返回对应的页面数据至所述浏览器,其中,所述请求是所述浏览器通过获取本地存储的IP地址与所述目标定制URL的映射关系发起的。In
本实施例的具体实施过程可以参考前述实施例的描述,在此不进行赘述。For the specific implementation process of this embodiment, reference may be made to the description of the foregoing embodiments, and details are not repeated here.
接下来以云桌面场景为例再次进行说明。如图4所示,服务方向用户提供云桌面服务。服务端提供有云桌面登录页面,其URL为www.companyyun.com/desktop(此处的URL仅为示意,并非对应真实的登录页面)。该登录页面中包括了服务方的已注册的域名companyyun.com,其对应了服务方的IP地址。该登录页面的页面内容为服务方侧配置的,包括有登录入口以及其他页面元素,具有使用云桌面服务权限的任意用户均可以通过上述URL访问到该云桌面登录页面。Next, take the cloud desktop scenario as an example to explain again. As shown in Figure 4, the service provider provides the cloud desktop service to the user. The server provides a cloud desktop login page, and its URL is www.companyyun.com/desktop (the URL here is only for illustration and does not correspond to the real login page). The login page includes the registered domain name companyyun.com of the server, which corresponds to the IP address of the server. The page content of the login page is configured by the server side, including the login entry and other page elements. Any user with permission to use the cloud desktop service can access the cloud desktop login page through the above URL.
企业companyA的用户A可以登录服务方提供一web页面,在该web页面中,企业用户A可以购买云桌面服务,该web页面还提供了对云桌面登录页面的自定义URL的编辑功能,企业用户A可以通过该功能编辑URL。服务端通过该web页面获取用户A编辑的URL。示例性的,服务端对该URL进行自动校验,也可以是人工校验,例如确定该URL唯一且未包含敏感词等等。因此,用户A可以定制URL,例如可以令定制URL中包括companyA等,以定制URL为desktop.CompanyA.com为例,用户可以在定制URL中携带该企业的标识,方便该企业的用户记忆,而无需记忆云桌面登录页面的URL。User A of enterprise companyA can log in to a web page provided by the service provider. On this web page, enterprise user A can purchase cloud desktop services. This web page also provides the function of editing the custom URL of the cloud desktop login page. A can edit the URL through this function. The server obtains the URL edited by user A through the web page. Exemplarily, the server performs automatic verification on the URL, or manual verification, such as determining that the URL is unique and does not contain sensitive words. Therefore, user A can customize the URL. For example, companyA can be included in the customized URL. Taking the customized URL as desktop.CompanyA.com as an example, the user can carry the logo of the company in the customized URL, which is convenient for users of the company to remember. No need to memorize the URL of the cloud desktop login page.
服务端还可以向企业用户A提供对云桌面登录页面的自定义页面数据的编辑功能,可以是在上述web页面中提供,也可以采用其他web页面提供,本实施例对此不进行限定。示例性的,云桌面登录页面中包括多种页面元素,本实施例的该编辑功能可以基于所述目标页面的默认页面数据展示用于模拟所述目标页面的模拟页面,并且所述模拟页面对可供用户自定义的各个所述页面元素进行提示,例如,模拟页面中,可以对可供用户自定义的各个所述页面元素进行动态展示,例如闪动等等。可供用户自定义的页面元素也可以根据需要灵活配置,例如可以包括登录首页背景、Logo图标或提示文案等等。编辑的过程也可以有多种实现方式,用户A可以点击图片元素,右击可触发替换操作;用户A可以点击文本元素,右击可触发自定义操作;用户A还可以将图片位置进行拖动等等。示例性的,可以提供保存按钮和/或退出按钮,用户A可以通过点击退出按钮,从而不保存退出编辑。也可以通过点击保存按钮,则服务端可以通过该web页面获取到用户A自定义的定制页面数据。因此,用户可以通过拖拽、替换元素等方式快速便捷地定制适合自己的登录页面。The server can also provide enterprise user A with the function of editing the custom page data of the cloud desktop login page, which can be provided in the above web page or provided by other web pages, which is not limited in this embodiment. Exemplarily, the cloud desktop login page includes various page elements, and the editing function of this embodiment can display a simulated page for simulating the target page based on the default page data of the target page, and the simulated page is Each of the page elements that can be customized by the user is prompted. For example, in the simulated page, each of the page elements that can be customized by the user can be dynamically displayed, such as flashing. The page elements that can be customized by users can also be flexibly configured according to needs, for example, they can include the background of the login home page, logo icon or prompt copy, and so on. The editing process can also be implemented in a variety of ways. User A can click on a picture element and right-click to trigger a replacement operation; user A can click on a text element and right-click to trigger a custom operation; user A can also drag the position of the picture etc. Exemplarily, a save button and/or an exit button may be provided, and user A may click the exit button to exit editing without saving. Alternatively, by clicking the save button, the server can obtain the custom page data customized by user A through the web page. Therefore, users can quickly and easily customize the login page that suits them by dragging, replacing elements, etc.
在另一些例子中,用户也可以不定制登录页面,则用户定制的URL对应默认页面数据。In other examples, the user may not customize the login page, and the URL customized by the user corresponds to the default page data.
在其他例子中,还可以提供登录方式的定制功能。例如,用户A还可以选择登录页面的登录方式是否是SSO(SingleSignOn,单点登录)登录方式。采用SSO,用户在身份认证服务器上登录一次以后,即可获得访问单点登录系统中其他关联系统和应用软件的权限,这意味着在多个应用系统中,用户只需一次登录就可以访问所有相互信任的应用系统。这种方式减少了由登录产生的时间消耗。因此,服务方若对企业companyA的用户提供除了云桌面服务之外的其他关联服务,用户A根据需要可以选择SSO登录方式,从而便于其他关联服务的用户登录。In other examples, a custom function of the login method may also be provided. For example, user A may also select whether the login method of the login page is an SSO (SingleSignOn, single sign-on) login method. With SSO, after the user logs in once on the identity authentication server, he can gain access to other related systems and application software in the single sign-on system, which means that in multiple application systems, users only need to log in once to access all Mutual trust application system. This approach reduces the time consumed by logging in. Therefore, if the service provider provides related services other than the cloud desktop service to the users of companyA, user A can choose the SSO login method as needed, so as to facilitate the login of users of other related services.
企业用户A可以在企业的本地域名解析服务器中配置前述定制URL与所述服务端的IP地址的对应关系,或者是对企业内其他用户所使用的计算机设备进行配置,如对计算机设备的本地操作系统的域名解析文件中配置前述定制URL与所述服务端的IP地址的对应关系。之后,企业用户A可以将该定制URL提供给该企业的其他用户B、C或D等等。Enterprise user A can configure the corresponding relationship between the aforementioned customized URL and the IP address of the server in the local domain name resolution server of the enterprise, or configure the computer equipment used by other users in the enterprise, such as the local operating system of the computer equipment The corresponding relationship between the aforementioned customized URL and the IP address of the server is configured in the domain name resolution file of . Enterprise user A can then provide the customized URL to other users B, C or D, etc. of the enterprise.
以用户B为例,用户B可以使用计算机设备中的浏览器以定制URL(desktop.CompanyA.com)访问服务端的云桌面登录页面。浏览器获取到用户B输入的定制URL,通过本地的IP地址与定制URL的映射关系,可以向服务端的IP地址发起对云桌面登录页面的登录请求。Taking user B as an example, user B can use a browser in a computer device to access the cloud desktop login page of the server with a customized URL (desktop.CompanyA.com). The browser obtains the customized URL entered by user B, and through the mapping relationship between the local IP address and the customized URL, it can initiate a login request to the cloud desktop login page to the IP address of the server.
服务端接收到浏览器的请求,通过请求中携带的定制URL,可以确定当前发起请求的用户信息,即用户信息为企业companyA,通过定制URL也可以确定企业用户A预设的定制页面数据。服务端将对应的定制页面数据返回给浏览器。The server receives the request from the browser, and through the customized URL carried in the request, it can determine the user information that currently initiates the request, that is, the user information is companyA, and the customized page data preset by enterprise user A can also be determined through the customized URL. The server returns the corresponding customized page data to the browser.
示例性的,服务端还可以基于定制URL确定的用户信息(即企业companyA)确定用户A是否配置SSO登录方式。若否,则采用一般的登录方式,若是,则采用SSO登录方式,具体的登录方式可以参考相关技术,本实施例在此不进行赘述。Exemplarily, the server may also determine whether user A configures the SSO login method based on the user information determined by the customized URL (that is, companyA). If not, the general login method is adopted, and if so, the SSO login method is adopted. For the specific login method, reference may be made to related technologies, and details are not described in this embodiment here.
用户B可以通过登录入口输入账户和密码,登录页面通过获取用户输入的输入账户和密码,向服务端发起登录请求。服务端在确定用户B完成身份认证后,可以通过浏览器跳转至用于展示云桌面的页面,该页面中显示有用户B对应的桌面内容。具体的桌面内容可以是由用户A或用户B预先自定义的,本实施例对此不进行限定。User B can enter the account and password through the login portal, and the login page initiates a login request to the server by obtaining the input account and password entered by the user. After the server determines that user B has completed the identity authentication, the server can jump to a page for displaying the cloud desktop through the browser, and the desktop content corresponding to user B is displayed on the page. The specific desktop content may be pre-defined by user A or user B, which is not limited in this embodiment.
由上述实施例可见,用户可以使用定制URL访问云桌面登录页面,用户可以不用记住复杂的域名,可以使用任意自定义URL访问,还可以使用定制页面数据展示云桌面登录页面。It can be seen from the above embodiments that the user can use a custom URL to access the cloud desktop login page, and the user does not need to remember complicated domain names, can use any custom URL to access, and can also use the customized page data to display the cloud desktop login page.
与前述页面展示方法的实施例相对应,本说明书还提供了页面展示装置及其所应用的计算机的实施例。Corresponding to the foregoing embodiments of the page display method, this specification also provides embodiments of a page display device and a computer to which it is applied.
本说明书页面展示装置的实施例可以应用在计算机设备上,例如服务器或终端设备。装置实施例可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。以软件实现为例,作为一个逻辑意义上的装置,是通过其所在处理器将非易失性存储器中对应的计算机程序指令读取到内存中运行形成的。从硬件层面而言,如图5所示,为本说明书页面展示装置所在计算机设备的一种硬件结构图,除了图5所示的处理器510、内存530、网络接口520、以及非易失性存储器540之外,实施例中页面展示装置531所在的计算机设备,通常根据该计算机设备的实际功能,还可以包括其他硬件,对此不再赘述。Embodiments of the apparatus for displaying pages in this manual can be applied to computer equipment, such as servers or terminal equipment. The device embodiments can be implemented by software, or by hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, it is formed by reading the corresponding computer program instructions in the non-volatile memory into the memory for execution by its processor. From the perspective of hardware, as shown in Figure 5, it is a hardware structure diagram of the computer equipment where the display device is located on the page of this manual, except for the
如图6所示,图6是本说明书根据一示例性实施例示出的一种页面展示装置的框图,所述装置应用于服务端,所述服务端的目标页面对应有默认URL和默认页面数据;As shown in FIG. 6, FIG. 6 is a block diagram of a page display device according to an exemplary embodiment of this specification. The device is applied to a server, and the target page of the server corresponds to a default URL and default page data;
所述目标页面还对应:至少一个用户预设的至少一个定制URL,每个所述定制URL对应用户对所述目标页面预设的定制页面数据或所述默认页面数据;The target page also corresponds to: at least one customized URL preset by at least one user, and each of the customized URLs corresponds to the customized page data or the default page data preset by the user for the target page;
所述装置包括:The devices include:
请求获取模块61,用于:获取浏览器发起的访问所述目标页面的请求;The
数据返回模块62,用于:在所述请求中携带的是所述默认URL的情况下,返回所述默认页面数据以供所述浏览器展示页面;在所述请求中携带的是目标定制URL的情况下,确定所述目标定制URL对应的是目标定制页面数据或对应默认页面数据,返回与目标定制URL对应的页面数据以供所述浏览器展示页面;其中,所述请求是所述浏览器通过获取本地存储的IP地址与所述目标定制URL的映射关系发起的。The
在一些例子中,所述本地的所述目标页面的IP地址与所述目标定制URL的映射关系,是所述浏览器通过本地域名解析服务器获取到的,或者是所述浏览器通过本地操作系统的域名解析文件获取到的。In some examples, the mapping relationship between the local IP address of the target page and the target customized URL is obtained by the browser through the local domain name resolution server, or obtained by the browser through the local operating system obtained from the domain name resolution file.
在一些例子中,所述定制URL通过如下方式获取到:In some examples, the custom URL is obtained through the following methods:
接收客户端发送的用户编辑的URL,所述客户端提供有对所述目标页面的URL的第一编辑功能;receiving the URL edited by the user sent by the client, where the client provides a first editing function to the URL of the target page;
若所述用户编辑的URL满足预设校验条件,将所述用户编辑的URL存储为定制URL。If the URL edited by the user satisfies a preset verification condition, the URL edited by the user is stored as a customized URL.
在一些例子中,所述定制页面数据通过如下方式获取到:In some examples, the custom page data is obtained through the following methods:
接收所述客户端发送的用户编辑的页面元素数据,所述客户端提供有对所述目标页面的一种或多种页面元素的第二编辑功能;receiving user-edited page element data sent by the client, where the client provides a second editing function for one or more page elements of the target page;
基于所述用户编辑的一种或多种页面元素数据,存储与所述定制URL对应的定制页面数据。Based on one or more types of page element data edited by the user, the customized page data corresponding to the customized URL is stored.
在一些例子中,所述目标页面包括多种页面元素;所述客户端提供有对所述目标页面的一种或多种页面元素的第二编辑功能,包括:In some examples, the target page includes multiple page elements; the client provides a second editing function for one or more page elements of the target page, including:
所述客户端基于所述目标页面的默认页面数据展示用于模拟所述目标页面的模拟页面,并且所述模拟页面对可供用户自定义的各个所述页面元素进行提示。The client displays a simulated page for simulating the target page based on the default page data of the target page, and the simulated page prompts each of the page elements that can be customized by the user.
在一些例子中,所述目标页面包括:用户登录页面,所述目标页面的页面元素包括登录入口和其他页面元素;In some examples, the target page includes: a user login page, and the page elements of the target page include a login entry and other page elements;
所述定制页面数据,包括:所述用户对所述其他页面元素中的任一元素的定制页面数据。The customized page data includes: the customized page data of any element in the other page elements by the user.
上述页面展示装置中各个模块的功能和作用的实现过程具体详见上述页面展示方法中对应步骤的实现过程,在此不再赘述。For the implementation process of the functions and functions of each module in the above page display device, please refer to the implementation process of the corresponding steps in the above page display method for details, and will not be repeated here.
相应的,本说明书实施例还提供了一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现前述页面展示方法实施例的步骤。Correspondingly, the embodiment of this specification further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the aforementioned page display method embodiment are implemented.
相应的,本说明书实施例还提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述程序时实现页面展示方法实施例的步骤。Correspondingly, the embodiment of this specification also provides a computer device, including a memory, a processor, and a computer program stored in the memory and operable on the processor, wherein, when the processor executes the program, the page display is realized Steps of a method embodiment.
相应的,本说明书实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现页面展示方法实施例的步骤。Correspondingly, the embodiment of this specification also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the embodiment of the page display method are realized.
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本说明书方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。As for the device embodiment, since it basically corresponds to the method embodiment, for related parts, please refer to the part description of the method embodiment. The device embodiments described above are only illustrative, and the modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in One place, or it can be distributed to multiple network modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution in this specification. It can be understood and implemented by those skilled in the art without creative effort.
上述实施例可以应用于一个或者多个电子设备中,所述电子设备是一种能够按照事先设定或存储的指令,自动进行数值计算和/或信息处理的设备,所述电子设备的硬件包括但不限于微处理器、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程门阵列(Field-Programmable Gate Array,FPGA)、数字处理器(DigitalSignal Processor,DSP)、嵌入式设备等。The above-mentioned embodiments can be applied to one or more electronic devices. The electronic device is a device that can automatically perform numerical calculation and/or information processing according to preset or stored instructions. The hardware of the electronic device includes But not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices and the like.
所述电子设备可以是任何一种可与用户进行人机交互的电子产品,例如,个人计算机、平板电脑、智能手机、个人数字助理(Personal Digital Assistant,PDA)、游戏机、交互式网络电视(Internet Protocol Television,IPTV)、智能式穿戴式设备等。The electronic device may be any electronic product capable of man-machine interaction with the user, for example, a personal computer, a tablet computer, a smart phone, a personal digital assistant (Personal Digital Assistant, PDA), a game console, an interactive Internet TV ( Internet Protocol Television, IPTV), smart wearable devices, etc.
所述电子设备还可以包括网络设备和/或用户设备。其中,所述网络设备包括,但不限于单个网络服务器、多个网络服务器组成的服务器组或基于云计算(CloudComputing)的由大量主机或网络服务器构成的云。The electronic equipment may also include network equipment and/or user equipment. Wherein, the network device includes, but is not limited to, a single network server, a server group composed of multiple network servers, or a cloud composed of a large number of hosts or network servers based on cloud computing (Cloud Computing).
所述电子设备所处的网络包括但不限于互联网、广域网、城域网、局域网、虚拟专用网络(Virtual Private Network,VPN)等。The network where the electronic device is located includes but is not limited to the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (Virtual Private Network, VPN) and the like.
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing describes specific embodiments of this specification. Other implementations are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. Multitasking and parallel processing are also possible or may be advantageous in certain embodiments.
上面各种方法的步骤划分,只是为了描述清楚,实现时可以合并为一个步骤或者对某些步骤进行拆分,分解为多个步骤,只要包括相同的逻辑关系,都在本专利的保护范围内;对算法中或者流程中添加无关紧要的修改或者引入无关紧要的设计,但不改变其算法和流程的核心设计都在该申请的保护范围内。The step division of the above various methods is only for the sake of clarity of description. During implementation, it can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent. ; Adding insignificant modifications or introducing insignificant designs to the algorithm or process, but not changing the core design of the algorithm and process are all within the scope of protection of this application.
其中,“具体示例”、或“一些示例”等的描述意指结合所述实施例或示例描述的具体特征、结构、材料或者特点包含于本说明书的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。Wherein, descriptions such as "specific examples" or "some examples" mean that specific features, structures, materials or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example in this specification. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
本领域技术人员在考虑说明书及实践这里申请的发明后,将容易想到本说明书的其它实施方案。本说明书旨在涵盖本说明书的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本说明书的一般性原理并包括本说明书未申请的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本说明书的真正范围和精神由下面的权利要求指出。Other embodiments of the description will readily occur to those skilled in the art from consideration of the specification and practice of the invention claimed herein. This description is intended to cover any modification, use or adaptation of this description. These modifications, uses or adaptations follow the general principles of this description and include common knowledge or conventional technical means in this technical field for which this description does not apply . The specification and examples are to be considered exemplary only, with a true scope and spirit of the specification being indicated by the following claims.
应当理解的是,本说明书并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本说明书的范围仅由所附的权利要求来限制。It should be understood that this specification is not limited to the precise constructions which have been described above and shown in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the specification is limited only by the appended claims.
以上所述仅为本说明书的较佳实施例而已,并不用以限制本说明书,凡在本说明书的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本说明书保护的范围之内。The above descriptions are only preferred embodiments of this specification, and are not intended to limit this specification. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this specification shall be included in this specification. within the scope of protection.
Claims (12)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211305828.9A CN115510363B (en) | 2022-10-24 | 2022-10-24 | Page display method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211305828.9A CN115510363B (en) | 2022-10-24 | 2022-10-24 | Page display method, device, computer equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN115510363A true CN115510363A (en) | 2022-12-23 |
| CN115510363B CN115510363B (en) | 2025-10-17 |
Family
ID=84513132
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211305828.9A Active CN115510363B (en) | 2022-10-24 | 2022-10-24 | Page display method, device, computer equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115510363B (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101751444A (en) * | 2008-12-16 | 2010-06-23 | 鸿富锦精密工业(深圳)有限公司 | Webpage content customizing system and method |
| CN104272305A (en) * | 2012-05-09 | 2015-01-07 | 艾肯Ip科技私人有限公司 | A method of displaying a customised address bar or search results in a browser |
| US20150113626A1 (en) * | 2013-10-21 | 2015-04-23 | Adobe System Incorporated | Customized Log-In Experience |
| CN107423365A (en) * | 2017-06-28 | 2017-12-01 | 努比亚技术有限公司 | Web access method, terminal and computer-readable recording medium |
| US20200137138A1 (en) * | 2018-10-31 | 2020-04-30 | Salesforce.Com, Inc. | Endpoint url generation and management |
-
2022
- 2022-10-24 CN CN202211305828.9A patent/CN115510363B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101751444A (en) * | 2008-12-16 | 2010-06-23 | 鸿富锦精密工业(深圳)有限公司 | Webpage content customizing system and method |
| CN104272305A (en) * | 2012-05-09 | 2015-01-07 | 艾肯Ip科技私人有限公司 | A method of displaying a customised address bar or search results in a browser |
| US20150113626A1 (en) * | 2013-10-21 | 2015-04-23 | Adobe System Incorporated | Customized Log-In Experience |
| CN107423365A (en) * | 2017-06-28 | 2017-12-01 | 努比亚技术有限公司 | Web access method, terminal and computer-readable recording medium |
| US20200137138A1 (en) * | 2018-10-31 | 2020-04-30 | Salesforce.Com, Inc. | Endpoint url generation and management |
Also Published As
| Publication number | Publication date |
|---|---|
| CN115510363B (en) | 2025-10-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11621924B2 (en) | Incorporating web applications into web pages at the network level | |
| US10171455B2 (en) | Protection of application passwords using a secure proxy | |
| US20190190898A1 (en) | Methods and systems for managing internet preferences | |
| US20230328138A1 (en) | Cloud Platform and Bucket Management Method for Object Storage Service Provided by Cloud Platform | |
| US20100064234A1 (en) | System and Method for Browser within a Web Site and Proxy Server | |
| US9330198B1 (en) | Mapping stored client data to requested data using metadata | |
| GB2494027A (en) | Enabling a web application to call at least one native function of a mobile device | |
| JP2004078503A (en) | Network system, network server, information processing device, program, and data generation method | |
| US11882154B2 (en) | Template representation of security resources | |
| US20200036749A1 (en) | Web browser incorporating social and community features | |
| US11909729B2 (en) | Auto-form fill based website authentication | |
| US11381545B2 (en) | Multi-layer navigation based security certificate checking | |
| US20080275963A1 (en) | Dynamically Modifying A Universal Resource Indicator | |
| CN115510363A (en) | Page display method and device, computer equipment and storage medium | |
| US12406052B2 (en) | Automatic compliant password generation | |
| CN112214743B (en) | A method, device, equipment and storage medium for simulating account login | |
| US12495026B2 (en) | Auto-form fill based website authentication | |
| Manfield | Joomla for Developers | |
| Selvaraj | Building RESTful APIs with Ruby on Rails | |
| WO2024249152A1 (en) | Inserting and replacing placeholders in resource code | |
| KR20140011125A (en) | Method of sharing webpage by connecting multiple platform and the server thereof | |
| Doing et al. | Web-Based Projects that Rock the Class | |
| HK1197572B (en) | Method and server for processing http request | |
| HK1197572A (en) | Method and server for processing http request |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |