CN113377647A - Page processing method, device, server, terminal and readable storage medium - Google Patents

Page processing method, device, server, terminal and readable storage medium Download PDF

Info

Publication number
CN113377647A
CN113377647A CN202110585044.5A CN202110585044A CN113377647A CN 113377647 A CN113377647 A CN 113377647A CN 202110585044 A CN202110585044 A CN 202110585044A CN 113377647 A CN113377647 A CN 113377647A
Authority
CN
China
Prior art keywords
function
target function
account
terminal
page
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
Application number
CN202110585044.5A
Other languages
Chinese (zh)
Other versions
CN113377647B (en
Inventor
贾亮亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202110585044.5A priority Critical patent/CN113377647B/en
Publication of CN113377647A publication Critical patent/CN113377647A/en
Application granted granted Critical
Publication of CN113377647B publication Critical patent/CN113377647B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution 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)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to a page processing method, a page processing device, a server, a terminal and a readable storage medium, and belongs to the technical field of computers. According to the method and the device, whether the account can access the target function is verified by introducing the function grade based on the account type and indicating which types of accounts have right to access the target function, so that when an access request is received in a test process, the function grade based on the target function and the account type of the account requesting to access the target function are based on, and whether the account can access the target function is verified, and then only when the account type is matched with the function grade, the terminal can obtain the page corresponding to the target function, so that the account logged in the terminal can use the target function through the terminal, and even if the account in a white list does not obtain the link of the target function, the target function cannot be accessed due to the fact that the account type does not meet the requirement, the validity of the account setting based on the white list is guaranteed, the validity of the test process is further guaranteed, and the target function is protected.

Description

Page processing method, device, server, terminal and readable storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a page processing method, an apparatus, a server, a terminal, and a readable storage medium.
Background
Before an application program or a new function in the application program is on-line, the application program or the function to be on-line is often tested by a part of accounts, and after the test is passed, the application program or the function is on-line, so that all the accounts can use the new function in the application program or the application program.
In the related technology, the account identifier of the account participating in the test is added to the white list, so that the link corresponding to the application program or the function to be on-line is sent to the corresponding account according to the account identifier in the white list, and the account uses the application program or the new function to be on-line through the received link, so as to realize the test of the application program or the function to be on-line.
In the implementation process, if the account corresponding to the account identifier included in the white list receives the link, the link is shared with other accounts, and the account receiving the link may not be an account in the white list, but after the account acquires the link, the application program or new function to be online can also be used, so that the account participating in the test is not only an account in the white list, and therefore account setting based on the white list is invalid, and further validity in the test process cannot be guaranteed.
Disclosure of Invention
The disclosure provides a page processing method, a page processing device, a server, a terminal and a readable storage medium, so as to ensure validity of account setting based on a white list, further ensure validity of a testing process and realize protection of a target function. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a page processing method, including:
acquiring an access request of a terminal, wherein the access request is used for accessing a target function;
in response to the access request, determining the account type of the account which is logged in by the terminal and the function level of the target function, wherein the function level is used for indicating the account type of the account accessing the target function;
and if the account type is matched with the function level, sending a page of the target function to the terminal.
The present disclosure provides a solution that is based on the account type, and the level of functionality that indicates which types of accounts have access to the target functionality, so that upon receiving an access request during the testing process, based on the level of functionality of the target functionality, and an account type of the account requesting access to the target function to verify whether the account can access the target function, and then the terminal can obtain the page corresponding to the target function only when the account type is matched with the function grade, so that the account logged in on the terminal uses the target function through the terminal, even if the account in the white list obtains the link of the target function, the account type does not meet the requirement, and the target function cannot be accessed, the validity of the account setting based on the white list is ensured, the validity of the test process is further ensured, and the target function is protected.
In some embodiments, after determining the account type of the account to which the terminal has logged in and the function level of the target function in response to the access request, the method further comprises:
and if the account type and the function level are not matched, sending a redirection instruction to the terminal, wherein the redirection instruction is used for redirecting the terminal to a preset page.
When the account type is matched with the function level of the target function, a redirection instruction is sent to the terminal, so that the terminal is guided to redirect to a preset page through the redirection instruction, the target function cannot be used by the account of which the account type does not meet the condition, the visibility of the target function is ensured, and the target function is protected.
In some embodiments, the method further comprises any one of:
if the function level of the target function is updated and the account type is matched with the updated function level, sending a page of the target function to the terminal;
and if the account type is updated and the updated account type is matched with the function level of the target function, sending a page of the target function to the terminal.
If any one of the function level or the account type of the target function is updated, some accounts which are accessing the target function may not have the authority of accessing the target function, and at this time, a redirection instruction is sent to the terminal, so that the terminal is guided to be redirected to a preset page through the redirection instruction, real-time protection of the target function is achieved, and dynamic control of the visibility of the target function is achieved.
In some embodiments, the method further comprises any one of:
if the function level of the target function is updated and the account type is not matched with the updated function level, sending a redirection instruction to the terminal, wherein the redirection instruction is used for redirecting the terminal to a preset page;
and if the account type is updated and the updated account type is not matched with the function level of the target function, sending a redirection instruction to the terminal.
If any one of the function level or the account type of the target function is updated, some accounts which are accessing the target function may have the authority of accessing the target function, and at this time, the page of the target function is sent to the terminal, so that the terminal displays the page based on the target function, and dynamic control on the visibility of the target function is realized.
In some embodiments, the target functionality includes functionality for a live room.
By the scheme provided by the embodiment of the disclosure, the access request corresponding to the target function in the live broadcast room is processed, so that the visibility of the target function in the live broadcast room can be ensured, and the target function in the live broadcast room can be protected.
In some embodiments, the page of the target function includes a control, the control is provided with a corresponding control level, and the terminal is configured to set the control to an invalid state when the account type matches the control level, and set the control to an valid state when the account type does not match the control level;
the method further comprises the following steps:
and if the account type is matched with the function level, sending the control level of the control to the terminal.
Different control levels are set for the controls in the page of the target function, and then when the page is sent, the control levels are also sent to the terminal, so that the terminal can display the controls in the page based on the account type and the control levels, namely, the controls with the account type matched with the control levels are set to be in an effective state, the controls with the account type not matched with the control levels are set to be in an ineffective state, so that when the subfunctions included by the target function are tested, the test can be performed through accounts of different types, and the flexibility of the test process is improved.
In some embodiments, the page of the target function includes information, the information is provided with a corresponding information level, the terminal is configured to set the information as invalid information when the account type matches the information level, and set the information as valid information when the account type matches the information level;
the method further comprises the following steps:
and if the account type is matched with the function level, sending the information level of the information to the terminal.
Different information levels are set for information in a page with a target function, and then when the page is sent, the information levels are also sent to a terminal, so that the terminal can process the information in the page based on the account type and the information levels, namely, the information with the account type matched with the information levels is set as valid information, the valid information is loaded, the information with the account type not matched with the information levels is set as invalid information, the invalid information is not required to be loaded, the information displayed facing different types of accounts is different, and the flexibility of the page processing process is improved.
According to a second aspect of the embodiments of the present disclosure, there is provided a page processing method, including:
displaying a function entry of the target function;
responding to the triggering operation of the function entrance, and sending an access request to a server, wherein the access request is used for accessing a target function;
and responding to the received page of the target function, and displaying the page of the target function, wherein the page of the target function is sent by the server when the account type of the terminal logged-in account is matched with the function grade of the target function.
According to the scheme provided by the disclosure, the access request for accessing the target function is sent to the server, and the server returns the page of the target function to the terminal when the account type is matched with the function level, so that even if the account in the white list obtains the link of the target function, the target function cannot be accessed because the account type does not meet the requirement, the validity of the account setting based on the white list is ensured, the validity of the testing process is further ensured, and the target function is protected.
In some embodiments, after sending the access request to the server in response to the triggering operation on the function portal, the method further comprises:
responding to the received redirection instruction, and displaying a preset page corresponding to the redirection instruction;
the redirection instruction is sent by the server when the account type is not matched with the function level of the target function, or the redirection instruction is sent by the server when the account type is not matched with the updated function level, or the redirection instruction is sent by the server when the updated account type is not matched with the function level.
The server sends the redirection instruction to the terminal when the account type is not matched with the function level, or the account type is not matched with the updated function level, or the updated account type is not matched with the function level, so that the terminal displays the preset page according to the received redirection instruction, the account with the account type not meeting the requirement cannot use the target function, the visibility of the target function is ensured, and the target function is protected.
In some embodiments, the page of target functionality is also sent by the server when the account type matches the updated functionality level, or the page of target functionality is also sent by the server when the updated account type matches the functionality level.
When the account type or the function level is updated, if the account type is matched with the updated function level or the updated account type is matched with the function level, the page of the target function is sent to the terminal so that the terminal can display the page of the target function, and the account with the account type meeting the requirement can use the target function after the level is updated, so that the visibility of the target function is ensured, and the dynamic control of the visibility of the target function is realized.
In some embodiments, the target functionality includes functionality for a live room.
By applying the scheme provided by the embodiment of the disclosure to the target function in the live broadcast room, the visibility of the target function in the live broadcast room can be ensured, and the target function in the live broadcast room can be protected.
In some embodiments, after the sending the access request to the server in response to the triggering operation on the function portal, the method further comprises any one of:
responding to the received page of the target function, and setting the control to be in an effective state for the control included in the page if the account type is matched with the control level of the control;
and if the account type does not match the control level of the control, setting the control to be in an invalid state.
The controls in the page are displayed based on the account type and the control level, namely, the controls with the account type matched with the control level are set to be in an effective state, and the controls with the account type not matched with the control level are set to be in an ineffective state, so that when the sub-functions included in the target functions are tested, the tests can be performed through accounts of different types, and the flexibility of the test process is improved.
In some embodiments, after the sending the access request to the server in response to the triggering operation on the function portal, the method further comprises any one of:
responding to the received page of the target function, determining that the information is effective information for the information included in the page if the account type is matched with the information level of the information, and loading the information;
if the account type does not match the information level of the information, determining the information to be invalid information.
The information in the page is loaded based on the account type and the information level, namely, the control with the account type matched with the control level is set to be in an effective state, and the control with the account type not matched with the control level is set to be in an ineffective state, so that when the sub-functions included in the target function are tested, the test can be performed through accounts of different types, and the flexibility of the test process is improved.
According to a third aspect of the embodiments of the present disclosure, there is provided a page processing apparatus including:
an acquisition unit configured to execute an access request of an acquisition terminal, the access request being for accessing a target function;
a determining unit configured to execute determining, in response to the access request, an account type of an account that the terminal has logged in to and a function level of the target function, the function level indicating an account type of an account accessing the target function;
and the sending unit is configured to execute sending the page of the target function to the terminal if the account type is matched with the function level.
In some embodiments, the sending unit is further configured to execute, if the account type does not match the function level, sending a redirection instruction to the terminal, where the redirection instruction is used to redirect the terminal to a preset page.
In some embodiments, the transmitting unit is further configured to perform any one of:
if the function level of the target function is updated and the account type is matched with the updated function level, sending a page of the target function to the terminal;
and if the account type is updated and the updated account type is matched with the function level of the target function, sending a page of the target function to the terminal.
In some embodiments, the transmitting unit is further configured to perform any one of:
if the function level of the target function is updated and the account type is not matched with the updated function level, sending a redirection instruction to the terminal, wherein the redirection instruction is used for redirecting the terminal to a preset page;
and if the account type is updated and the updated account type is not matched with the function level of the target function, sending a redirection instruction to the terminal.
In some embodiments, the target functionality includes functionality for a live room.
In some embodiments, the page of the target function includes a control, the control is provided with a corresponding control level, and the terminal is configured to set the control to an invalid state when the account type matches the control level, and set the control to an valid state when the account type does not match the control level;
the sending unit is further configured to execute sending the control level of the control to the terminal if the account type is matched with the function level.
In some embodiments, the page of the target function includes information, the information is provided with a corresponding information level, the terminal is configured to set the information as invalid information when the account type matches the information level, and set the information as valid information when the account type matches the information level;
the sending unit is further configured to execute sending an information level of the information to the terminal if the account type matches the function level.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a page processing apparatus, including:
a display unit configured to execute a function portal displaying a target function;
a sending unit configured to execute a trigger operation in response to the function entry, and send an access request to the server, the access request being used for accessing the target function;
the display unit is further configured to execute displaying the page of the target function in response to receiving the page of the target function, wherein the page of the target function is sent by the server when the account type of the account which the terminal logs in matches with the function level of the target function.
In some embodiments, the display unit is further configured to perform, in response to receiving the redirection instruction, displaying a preset page corresponding to the redirection instruction;
the redirection instruction is sent by the server when the account type is not matched with the function level of the target function, or the redirection instruction is sent by the server when the account type is not matched with the updated function level, or the redirection instruction is sent by the server when the updated account type is not matched with the function level.
In some embodiments, the page of target functionality is also sent by the server when the account type matches the updated functionality level, or the page of target functionality is also sent by the server when the updated account type matches the functionality level.
In some embodiments, the target functionality includes functionality for a live room.
In some embodiments, the apparatus further comprises:
the setting unit is configured to execute, in response to receiving the page of the target function, setting a control included in the page to be in an effective state if the account type is matched with the control level of the control;
the setting unit is further configured to execute setting the control to be in an invalid state if the account type does not match the control level of the control.
In some embodiments, the apparatus further comprises:
the determining unit is configured to execute information included in the page, determine that the information is valid information if the account type is matched with the information level of the information, and load the information;
the determining unit is further configured to determine that the information is invalid if the account type does not match the information level of the information.
According to a fifth aspect of embodiments of the present disclosure, there is provided a server including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instruction to implement the page processing method.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a terminal, including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instruction to implement the page processing method.
According to a seventh aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, in which instructions, when executed by a processor of a server, enable the server to perform the above-mentioned page processing method; alternatively, the instructions in the computer-readable storage medium, when executed by a processor of the terminal, enable the terminal to perform the above-described page processing method.
According to an eighth aspect of embodiments of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor of a server, implements the above-described page processing method, or which, when executed by a processor of a terminal, implements the above-described page processing method.
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 disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a schematic diagram of an implementation environment of a page processing method according to an example embodiment;
FIG. 2 is a flow diagram illustrating a method of page processing in accordance with an exemplary embodiment;
FIG. 3 is a flow diagram illustrating a method of page processing in accordance with an exemplary embodiment;
FIG. 4 is a flowchart illustrating a method of page processing in accordance with an exemplary embodiment;
FIG. 5 is an interaction process diagram illustrating a method of page processing in accordance with an exemplary embodiment;
FIG. 6 is a diagram illustrating a rank update process of a page processing method in accordance with an illustrative embodiment;
FIG. 7 is a block diagram illustrating a page device in accordance with an exemplary embodiment;
FIG. 8 is a block diagram illustrating a page device in accordance with an exemplary embodiment;
fig. 9 is a block diagram illustrating a terminal 900 in accordance with an example embodiment;
fig. 10 is a block diagram illustrating a server 1000 in accordance with an example embodiment.
Detailed Description
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The information and data and the content related to the information and data are information authorized by the user or sufficiently authorized by each party.
Technical terms related to the present disclosure are explained first below.
It can be seen that: a function is said to be visible to an account when it can be used normally by the account. When the account type is matched with the function grade, the function is visible to the account; when the account type does not match the function level, the function is not visible to the account.
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of an implementation environment of a page processing method according to an exemplary embodiment, where as shown in fig. 1, the implementation environment includes: a terminal 101 and a server 102.
The terminal 101 is at least one of a smart phone, a tablet computer, an e-book reader, a smart watch, a desktop computer, a laptop computer, an MP3(Moving Picture Experts Group Audio Layer III, motion Picture Experts compression standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, motion Picture Experts compression standard Audio Layer 4) player, a virtual reality terminal, an augmented reality terminal, a wireless terminal, and a laptop computer. Optionally, the terminal 101 is connected to the server 102 through wired or wireless communication, which is not limited in the embodiment of the present disclosure. Terminal 101 generally refers to one of a plurality of terminals, and the disclosed embodiments are illustrated only with terminal 101. Those skilled in the art will appreciate that the number of terminals described above may be greater or fewer. For example, the number of the terminals is only a few, or the number of the terminals is several tens or hundreds, or more, and the number of the terminals 101 and the type of the device are not limited in the embodiment of the present disclosure.
The terminal 101 is a terminal corresponding to the account identifier included in the white list set by the relevant technical staff. The terminal 101 receives a Uniform Resource Locator (URL) sent by the server 102, and then displays a function entry of the target function based on the received URL, and the user logs in an account on the terminal, and then requests to access the target function by triggering the function entry. The terminal 101 sends an access request to the server 102 in response to the triggering operation on the function portal, and further displays the received page when receiving the page returned by the server 102 so as to provide the target function for the account.
The server 102 is an independent physical server, or the server 102 is a server cluster or a distributed file system formed by a plurality of physical servers, or the server 102 is a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a web service, cloud communication, a middleware service, a domain name service, a security service, a CDN (Content Delivery Network), a big data and artificial intelligence platform, and the like. The server 102 and the terminal 101 are connected by wired or wireless communication, which is not limited in the embodiment of the present disclosure. Optionally, the number of the servers is greater or less, and the embodiment of the disclosure does not limit this. Of course, in other embodiments, the server 102 may include other functional servers to provide more comprehensive and diverse services.
The related technical personnel add the account identifier of the account for testing the target function to be online to the white list by setting the white list, further upload the set white list and the page corresponding to the target function to be online to the server 102, store the received page by the server 102, generate the URL, further send the URL to the terminal corresponding to the account identifier in the white list, such as the terminal 101, and receive the access request sent by the terminal 101, thereby sending the page based on the received access request so as to provide the target function for the account.
Fig. 2 is a flowchart illustrating a page processing method according to an exemplary embodiment, where the page processing method is performed by a server, as shown in fig. 2, and includes the following steps.
In step S201, the server acquires an access request of the terminal, the access request being for accessing the target function.
In step S202, the server determines, in response to the access request, an account type of the account to which the terminal has logged in and a function level of the target function, the function level indicating an account type of the account to which the target function is accessed.
In step S203, if the account type matches the function level, the server sends the page of the target function to the terminal.
The solution provided by the embodiments of the present disclosure is to introduce a function level based on account types and indicating which types of accounts have access to the target function, so that when an access request is received in a test process, based on the function level of the target function, and an account type of the account requesting access to the target function to verify whether the account can access the target function, and then the terminal can obtain the page corresponding to the target function only when the account type is matched with the function grade, so that the account logged in on the terminal uses the target function through the terminal, even if the account in the white list obtains the link of the target function, the account type does not meet the requirement, and the target function cannot be accessed, the validity of the account setting based on the white list is ensured, the validity of the test process is further ensured, and the target function is protected.
In some embodiments, after determining the account type of the account to which the terminal has logged in and the function level of the target function in response to the access request, the method further comprises:
and if the account type and the function level are not matched, sending a redirection instruction to the terminal, wherein the redirection instruction is used for redirecting the terminal to a preset page.
In some embodiments, the method further comprises any one of:
if the function level of the target function is updated and the account type is matched with the updated function level, sending a page of the target function to the terminal;
and if the account type is updated and the updated account type is matched with the function level of the target function, sending a page of the target function to the terminal.
In some embodiments, the method further comprises any one of:
if the function level of the target function is updated and the account type is not matched with the updated function level, sending a redirection instruction to the terminal, wherein the redirection instruction is used for redirecting the terminal to a preset page;
and if the account type is updated and the updated account type is not matched with the function level of the target function, sending a redirection instruction to the terminal.
In some embodiments, the target functionality includes functionality for a live room.
In some embodiments, the page of the target function includes a control, the control is provided with a corresponding control level, and the terminal is configured to set the control to an invalid state when the account type matches the control level, and set the control to an valid state when the account type does not match the control level;
the method further comprises the following steps:
and if the account type is matched with the function level, sending the control level of the control to the terminal.
In some embodiments, the page of the target function includes information, the information is provided with a corresponding information level, the terminal is configured to set the information as invalid information when the account type matches the information level, and set the information as valid information when the account type matches the information level;
the method further comprises the following steps:
and if the account type is matched with the function level, sending the information level of the information to the terminal.
Fig. 3 is a flowchart illustrating a page processing method according to an exemplary embodiment, where the page processing method is performed by a terminal, as shown in fig. 3, and includes the following steps.
In step S301, the terminal displays a function entry of the target function.
In step S302, the terminal sends an access request to the server in response to a trigger operation on the function portal, the access request being used to access the target function.
In step S303, the terminal displays the page of the target function in response to receiving the page of the target function, where the page of the target function is sent by the server when the account type of the account that the terminal has logged in matches with the function level of the target function.
According to the scheme provided by the embodiment of the disclosure, the access request for accessing the target function is sent to the server, and the server returns the page of the target function to the terminal when the account type is matched with the function level, so that even if the account in the white list obtains the link of the target function, the target function cannot be accessed because the account type does not meet the requirement, the validity of the account setting based on the white list is ensured, the validity of the testing process is further ensured, and the target function is protected.
In some embodiments, after sending the access request to the server in response to the triggering operation on the function portal, the method further comprises:
responding to the received redirection instruction, and displaying a preset page corresponding to the redirection instruction;
the redirection instruction is sent by the server when the account type is not matched with the function level of the target function, or the redirection instruction is sent by the server when the account type is not matched with the updated function level, or the redirection instruction is sent by the server when the updated account type is not matched with the function level.
In some embodiments, the page of target functionality is also sent by the server when the account type matches the updated functionality level, or the page of target functionality is also sent by the server when the updated account type matches the functionality level.
In some embodiments, the target functionality includes functionality for a live room.
In some embodiments, after the sending the access request to the server in response to the triggering operation on the function portal, the method further comprises any one of:
responding to the received page of the target function, and setting the control to be in an effective state for the control included in the page if the account type is matched with the control level of the control;
and if the account type does not match the control level of the control, setting the control to be in an invalid state.
In some embodiments, after the sending the access request to the server in response to the triggering operation on the function portal, the method further comprises any one of:
responding to the received page of the target function, determining that the information is effective information for the information included in the page if the account type is matched with the information level of the information, and loading the information;
if the account type does not match the information level of the information, determining the information to be invalid information.
Fig. 4 is a flowchart illustrating a page processing method according to an exemplary embodiment, where the page processing method is implemented by an interaction between a terminal and a server, as shown in fig. 4, and includes the following steps.
In step S401, the terminal displays a function entry of the target function.
The target function is a function to be on-line, optionally, the target function includes a function for a live broadcast room, or the target function includes a function for other scenes, which is not limited in the embodiment of the present disclosure.
Before the target function is brought online formally, the target function is tested in advance, for example, the target function is internally tested. The accounts participating in the testing process of the target function are preset by the related technicians.
In some embodiments, the related technical staff adds the account identifier of the account participating in the test to the white list in advance to obtain a set white list, and uploads the set white list to the server, so that when the target function is tested, the URL corresponding to the target function is sent to the terminal corresponding to the account identifier in the white list, and the target function is tested through the account in the white list. After receiving the URL, the terminal displays the URL as a function entry of a target function.
Taking the target function as a function in the live broadcast room as an example, after receiving the URL, the terminal displays a function entry of the target function in a live broadcast page of the live broadcast room.
In step S402, the terminal sends an access request for accessing the target function to the server in response to a trigger operation for the function portal.
In some embodiments, the user accesses the page of the target function by triggering the function portal. The terminal responds to the triggering operation of the user on the function entrance, and sends the access request to the server, so that the server determines the account type of the account accessing the target function and the function level of the target function based on the received access request.
In step S403, the server receives an access request of the terminal.
In step S404, the server determines, in response to the access request, an account type of the account to which the terminal has logged in and a function level of the target function, the function level indicating an account type of the account to which the target function is accessed.
It should be noted that the account type and the function level of the target function are preset by a relevant technician. In some embodiments, the related technical staff sets the account types of the respective accounts, sets the function levels of the target functions, that is, the account types of the accounts capable of accessing the target functions, and uploads the set account types and function levels to the server, so that the server stores the received account types and function levels, and when an access request is obtained, determines the account type of the account requesting to access the target function and the function level of the target function.
In some embodiments, the account types are represented by account levels, and the different account levels correspond to different account types, so that when an access request is received, the corresponding account level is determined based on the account type of the account requesting to access the target function, and then the access request is processed by comparing the account level with the function level.
Alternatively, the account level may be determined in various ways. In some embodiments, the related technical staff sets the account type of each account, and sets the account level of each account based on the set account type, so as to directly send the set account level to the server. In other embodiments, the related technical staff sets account grades corresponding to different account types in the server in advance, and the related technical staff only need to set the account types of the accounts, and the server determines the account grades of the accounts based on the account types set by the related technical staff.
For example, the account types include a common account, a gray-scale account, a special test account, and an internal employee account, the account level corresponding to the common account is one level, the account level corresponding to the gray-scale account is two levels, the account level corresponding to the special test account is three levels, and the account level corresponding to the internal employee account is four levels. It should be noted that the above is only one example of setting the account type and the account level, and in other embodiments, the account type and the account level are other types, which is not limited by the embodiments of the disclosure.
In step S405, if the account type matches the function level, the server sends a page of the target function to the terminal.
In some embodiments, if the account type matches the function level, indicating that the account can access the target function, the server obtains a page of the target function, and then sends the page of the target function to the terminal, and the terminal displays the page of the target function, so that the account uses the target function through the terminal, thereby implementing the test of the target function.
Optionally, if the account level is used to represent the account type, the account type is matched with the function level, that is, the account level is higher than the function level of the target function, or the account level is the same as the function level of the target function. Accordingly, the account type does not match the function level, i.e., the account level is lower than the function level of the target function.
Optionally, the page of the target function includes a control and information, in other embodiments, related technicians may also set a control level of the control and an information level of the information, so that different types of accounts can see different controls or different information, thereby providing more targeted functions for different types of accounts, improving flexibility of a page processing process, and improving user experience.
If the relevant technical personnel set the corresponding control levels for the controls in the page, after the setting is completed, the relevant technical personnel upload the set control levels to the server, the server stores the received control levels, and then when the page with the target function is sent to the terminal, the control levels of the controls are sent to the terminal, so that the terminal displays the controls in a corresponding mode based on the account type and the received control levels.
If the relevant technical personnel set the corresponding information levels for the information in the page, after the setting is completed, the relevant technical personnel upload the set information levels to the server, the server stores the received information levels, and then when the page with the target function is sent to the terminal, the information levels of the information are sent to the terminal, so that the terminal processes the information in a corresponding mode based on the account type and the received information levels.
In step S406, the terminal displays the page of the target function in response to receiving the page of the target function.
Still taking the example that the target function includes a function for a live broadcast room, when the terminal displays the page of the target function, the terminal jumps to the function page of the target function from a live broadcast interface of the live broadcast room, or the terminal displays a dialog box in the live broadcast interface of the live broadcast room and displays the page of the target function in the dialog box. In other embodiments, the page of the target function is displayed in other forms, which are not limited by the embodiments of the present disclosure.
Optionally, if the terminal further receives a control level of a control included in the page, when the terminal displays the page of the target function, for the control included in the page, if the account type is matched with the control level, setting the control in an effective state; and if the account type does not match the control level of the control, setting the control to be in an invalid state.
The control level is set for the control in the page of the target function, and then when the page is sent, the control level is also sent to the terminal, so that the terminal can display the control in the page based on the account type and the control level, that is, the control with the account type matched with the control level is set to be in an effective state, and the control with the account type not matched with the control level is set to be in an invalid state, so that when the sub-functions included in the target function are tested, the test can be performed through accounts of different types, and the flexibility of the test process is improved.
Optionally, if the terminal further receives the information level of the information included in the page, when the terminal displays the page of the target function, for the information included in the page, if the account type is matched with the information level of the information, determining that the information is valid information, and loading the information; if the account type does not match the information level of the information, the information is determined to be invalid information, i.e., the information does not need to be loaded.
The information level is set for the information in the page of the target function, and then when the page is sent, the information level is also sent to the terminal, so that the terminal loads the information in the page based on the account type and the information level, that is, the control with the account type matched with the control level is set to be in an effective state, and the control with the account type not matched with the control level is set to be in an invalid state, so that when the sub-functions included in the target function are tested, the test can be performed through accounts of different types, and the flexibility of the test process is improved.
It should be noted that, in the above steps S405 to S406, only the page processing procedure corresponding to the case that the account type is matched with the function level is shown, in other embodiments, since the URL corresponding to the target function may be acquired by an account that is not in the white list, so that the account type of the account accessing the target function is not matched with the function level, after the step S404 is executed, if the account type is not matched with the function level, the server sends a redirection instruction to the terminal, where the redirection instruction is used to redirect the terminal to a preset page. And the terminal responds to the received redirection instruction and displays a preset page corresponding to the redirection instruction, so that the account cannot access the page of the target function, the visibility of the target function is ensured, and the target function is protected.
Referring to fig. 5, the process from the step S401 to the step S406 is an interaction process schematic diagram of a page processing method shown in an exemplary embodiment, taking account classes as an example to represent account types, a relevant technician (such as an administrator) sets an account class for each account and a function class for a target function to be tested, and further uploads the set account class and function class to a server, and the server stores the received account class and function class in a position corresponding to an authority service, so that the server subsequently calls the authority service to authenticate the account. The method comprises the steps that a user sends an access request to a server through a client on a terminal and an account logged in on the client to request for obtaining a service corresponding to a target function, the server responds to the received access request to authenticate the account, namely, the account grade of the account triggering the access request and the function grade of the target function are compared by calling an authority service in the server to determine whether the user corresponding to the account has the authority of using the target function, and then a corresponding result is returned to the client according to the determined result. When determining whether the account has the right to use the target function based on the account level and the function level, if the account level is higher than the function level or the account level is the same as the function level, indicating that the account has the right to use the target function, returning a page of the target function to the terminal, and displaying the page through the client; if the account level is lower than the function level, the account does not have the authority of using the target function, a redirection instruction is returned to the terminal, and the client is guided to be redirected to the preset page through the redirection instruction.
The above steps S401 to S406 are only described by taking the page processing process based on the access request as an example, in other embodiments, the related technical personnel can update the account type or the function level during the process of accessing the page of the target function by the account. And under the condition that any one of the account type or the function level is updated, if the current pages displayed by the terminal are different, the corresponding processing procedures are also different, and the specific processing procedures refer to the following contents:
(1) page with target function currently displayed by terminal
In some embodiments, if the function level of the target function is updated and the account type is not matched with the updated function level, the server sends a redirection instruction to the terminal, where the redirection instruction is used to redirect the terminal to a preset page, and the terminal displays the preset page corresponding to the redirection instruction in response to receiving the redirection instruction.
The account type is not matched with the updated function level, which indicates that the account cannot access the page of the target function after the function level is updated, and at this time, the server sends a redirection instruction to the terminal so as to guide the terminal to redirect to a preset page through the redirection instruction, so that the account of which the account type does not meet the condition cannot use the target function, thereby realizing real-time protection of the target function and realizing dynamic control of the visibility of the target function.
In other embodiments, if the account type is updated and the updated account type does not match the function level of the target function, the server sends a redirection instruction to the terminal, where the redirection instruction is used to redirect the terminal to a preset page, and the terminal displays the preset page corresponding to the redirection instruction in response to receiving the redirection instruction.
And if the updated account type is not matched with the function level of the target function, indicating that the account cannot access the page of the target function after the account type is updated, sending a redirection instruction to the terminal by the server so as to guide the terminal to redirect to a preset page through the redirection instruction, so that the account of which the account type does not meet the condition cannot use the target function, thereby realizing real-time protection of the target function and realizing dynamic control of the visibility of the target function.
(2) The current displayed page of the terminal is a preset page
In some embodiments, if the function level of the target function is updated and the account type matches the updated function level, the server sends a page of the target function to the terminal, and the terminal displays the page of the target function in response to receiving the page of the target function.
The account type is matched with the updated function level, which indicates that the account can already access the page of the target function after the function level is updated, and the server sends the page of the target function to the terminal so as to display the page of the target function through the terminal, so that the account with the account type meeting the conditions can use the target function, and dynamic control on the visibility of the target function is realized.
In other embodiments, if the account type is updated and the updated account type matches the function level of the target function, the server sends a page of the target function to the terminal, and the terminal displays the page of the target function in response to receiving the page of the target function.
And at the moment, the server sends the page of the target function to the terminal so as to display the page of the target function through the terminal, so that the account with the account type meeting the condition can use the target function, and the dynamic control on the visibility of the target function is realized.
Fig. 6 is a schematic diagram illustrating a level updating process of a page processing method according to an exemplary embodiment, referring to fig. 6, taking account level as an example of representing account types, a relevant technician (such as an administrator) modifies the account level or the function level, uploads the modified account level or the modified function level to a server, the server updates the stored account level or function level based on the received modified account level or modified function level, determines an account affected by the update based on the updated account level or function level through an authority service, and sends an instruction notifying a client to close or display a target function to the server based on a page displayed by a terminal corresponding to the account affected by the update, so that the server, based on the received instruction, and informing the client to close or show the target function, and executing corresponding operation by the client based on the indication of the server so as to realize real-time control on the visibility of the target function.
The solution provided by the embodiments of the present disclosure is to introduce a function level based on account types and indicating which types of accounts have access to the target function, so that when an access request is received in a test process, based on the function level of the target function, and an account type of the account requesting access to the target function to verify whether the account can access the target function, and then the terminal can obtain the page corresponding to the target function only when the account type is matched with the function grade, so that the account logged in on the terminal uses the target function through the terminal, even if the account in the white list obtains the link of the target function, the account type does not meet the requirement, and the target function cannot be accessed, the validity of the account setting based on the white list is ensured, the validity of the test process is further ensured, and the target function is protected. Moreover, if the account type or the function level changes in the test process, the scheme provided by the embodiment of the disclosure can respond based on the update condition, so that the dynamic control of the visibility of the function is realized. Accordingly, the scheme provided by the embodiment of the disclosure can realize dynamic control of the visibility of the functions, so that the white list does not need to be controlled again in each function test, and the test cost is reduced.
In addition, if the scheme provided by the embodiment of the present disclosure is applied to a live broadcast scenario, that is, when a target function includes a function for a live broadcast room, an access request corresponding to the target function in the live broadcast room can be processed by the scheme provided by the embodiment of the present disclosure, so that visibility of the target function in the live broadcast room can be ensured, and protection of the target function in the live broadcast room is achieved.
Fig. 7 is a block diagram illustrating a page processing apparatus according to an exemplary embodiment, as shown in fig. 7, applied to a server, the page processing apparatus including:
an obtaining unit 701 configured to execute an access request of obtaining a terminal, the access request being used for accessing a target function;
a determining unit 702 configured to perform determining, in response to the access request, an account type of the account to which the terminal has logged in and a function level of the target function, the function level indicating an account type of the account to which the target function is accessed;
a sending unit 703 configured to execute sending the page of the target function to the terminal if the account type matches the function level.
The apparatus provided by the embodiments of the present disclosure, by introducing a function level based on account types and indicating which types of accounts have access to the target function, so that when an access request is received during the test, based on the function level of the target function, and an account type of the account requesting access to the target function to verify whether the account can access the target function, and then the terminal can obtain the page corresponding to the target function only when the account type is matched with the function grade, so that the account logged in on the terminal uses the target function through the terminal, even if the account in the white list obtains the link of the target function, the account type does not meet the requirement, and the target function cannot be accessed, the validity of the account setting based on the white list is ensured, the validity of the test process is further ensured, and the target function is protected.
In some embodiments, the sending unit 703 is further configured to execute, if the account type and the function level do not match, sending a redirection instruction to the terminal, where the redirection instruction is used to redirect the terminal to a preset page.
In some embodiments, the sending unit 703 is further configured to perform any one of the following:
if the function level of the target function is updated and the account type is matched with the updated function level, sending a page of the target function to the terminal;
and if the account type is updated and the updated account type is matched with the function level of the target function, sending a page of the target function to the terminal.
In some embodiments, the sending unit 703 is further configured to perform any one of the following:
if the function level of the target function is updated and the account type is not matched with the updated function level, sending a redirection instruction to the terminal, wherein the redirection instruction is used for redirecting the terminal to a preset page;
and if the account type is updated and the updated account type is not matched with the function level of the target function, sending a redirection instruction to the terminal.
In some embodiments, the target functionality includes functionality for a live room.
In some embodiments, the page of the target function includes a control, the control is provided with a corresponding control level, and the terminal is configured to set the control to an invalid state when the account type matches the control level, and set the control to an valid state when the account type does not match the control level;
the sending unit 703 is further configured to send the control level of the control to the terminal if the account type matches the function level.
In some embodiments, the page of the target function includes information, the information is provided with a corresponding information level, the terminal is configured to set the information as invalid information when the account type matches the information level, and set the information as valid information when the account type matches the information level;
the sending unit 703 is further configured to execute sending an information level of the information to the terminal if the account type matches the function level.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 8 is a block diagram illustrating a page processing apparatus according to an exemplary embodiment, as shown in fig. 8, applied to a terminal, the page processing apparatus including:
a display unit 801 configured to execute a function portal displaying a target function;
a sending unit 802 configured to execute a trigger operation in response to the function entry, and send an access request to the server, where the access request is used to access the target function;
the display unit 801 is further configured to execute displaying a page of the target function in response to receiving the page of the target function, where the page of the target function is sent by the server when the account type of the account that the terminal has logged in matches with the function level of the target function.
According to the device provided by the embodiment of the disclosure, the access request for accessing the target function is sent to the server, and the server returns the page of the target function to the terminal when the account type is matched with the function level, so that even if the account in the white list does not obtain the link of the target function, the target function cannot be accessed because the account type does not meet the requirement, the validity of the account setting based on the white list is ensured, the validity of the testing process is further ensured, and the target function is protected.
In some embodiments, the display unit 801 is further configured to perform, in response to receiving a redirection instruction, displaying a preset page corresponding to the redirection instruction;
the redirection instruction is sent by the server when the account type is not matched with the function level of the target function, or the redirection instruction is sent by the server when the account type is not matched with the updated function level, or the redirection instruction is sent by the server when the updated account type is not matched with the function level.
In some embodiments, the page of target functionality is also sent by the server when the account type matches the updated functionality level, or the page of target functionality is also sent by the server when the updated account type matches the functionality level.
In some embodiments, the target functionality includes functionality for a live room.
In some embodiments, the apparatus further comprises:
the setting unit is configured to execute, in response to receiving the page of the target function, setting a control included in the page to be in an effective state if the account type is matched with the control level of the control;
the setting unit is further configured to execute setting the control to be in an invalid state if the account type does not match the control level of the control.
In some embodiments, the apparatus further comprises:
the determining unit is configured to execute information included in the page, determine that the information is valid information if the account type is matched with the information level of the information, and load the information;
the determining unit is further configured to determine that the information is invalid if the account type does not match the information level of the information.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 9 is a block diagram illustrating a terminal 900 according to an example embodiment. The terminal 900 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Terminal 900 may also be referred to by other names such as user equipment, portable terminals, laptop terminals, desktop terminals, and the like.
In general, terminal 900 includes: one or more processors 901 and one or more memories 902.
Processor 901 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 901 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 901 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 901 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 901 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 902 may include one or more computer-readable storage media, which may be non-transitory. The memory 902 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 902 is used to store at least one program code for execution by the processor 901 to implement the page processing method provided by the method embodiments in the present disclosure.
In some embodiments, terminal 900 can also optionally include: a peripheral interface 903 and at least one peripheral. The processor 901, memory 902, and peripheral interface 903 may be connected by buses or signal lines. Various peripheral devices may be connected to the peripheral interface 903 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 904, display screen 905, camera 906, audio circuitry 907, positioning component 908, and power supply 909.
The peripheral interface 903 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 901 and the memory 902. In some embodiments, the processor 901, memory 902, and peripheral interface 903 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 901, the memory 902 and the peripheral interface 903 may be implemented on a separate chip or circuit board, which is not limited by this embodiment.
The Radio Frequency circuit 904 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 904 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 904 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. In some embodiments, the radio frequency circuitry 904 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 904 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 904 may also include NFC (Near Field Communication) related circuits, which are not limited by this disclosure.
The display screen 905 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 905 is a touch display screen, the display screen 905 also has the ability to capture touch signals on or over the surface of the display screen 905. The touch signal may be input to the processor 901 as a control signal for processing. At this point, the display 905 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 905 may be one, providing the front panel of the terminal 900; in other embodiments, the number of the display panels 905 may be at least two, and each of the display panels is disposed on a different surface of the terminal 900 or is in a foldable design; in still other embodiments, the display 905 may be a flexible display disposed on a curved surface or a folded surface of the terminal 900. Even more, the display screen 905 may be arranged in a non-rectangular irregular figure, i.e. a shaped screen. The Display panel 905 can be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and other materials.
The camera assembly 906 is used to capture images or video. In some embodiments, camera assembly 906 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 906 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
Audio circuit 907 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 901 for processing, or inputting the electric signals to the radio frequency circuit 904 for realizing voice communication. For stereo sound acquisition or noise reduction purposes, the microphones may be multiple and disposed at different locations of the terminal 900. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 901 or the radio frequency circuit 904 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuit 907 may also include a headphone jack.
The positioning component 908 is used to locate the current geographic Location of the terminal 900 for navigation or LBS (Location Based Service). The Positioning component 908 may be a Positioning component based on the GPS (Global Positioning System) in the united states, the beidou System in china, the graves System in russia, or the galileo System in the european union.
Power supply 909 is used to provide power to the various components in terminal 900. The power source 909 may be alternating current, direct current, disposable or rechargeable. When power source 909 comprises a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 900 can also include one or more sensors 910. The one or more sensors 910 include, but are not limited to: acceleration sensor 911, gyro sensor 912, pressure sensor 913, fingerprint sensor 914, optical sensor 915, and proximity sensor 916.
The acceleration sensor 911 can detect the magnitude of acceleration in three coordinate axes of the coordinate system established with the terminal 900. For example, the acceleration sensor 911 may be used to detect the components of the gravitational acceleration in three coordinate axes. The processor 901 can control the display screen 905 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 911. The acceleration sensor 911 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 912 may detect a body direction and a rotation angle of the terminal 900, and the gyro sensor 912 may cooperate with the acceleration sensor 911 to acquire a 3D motion of the user on the terminal 900. The processor 901 can implement the following functions according to the data collected by the gyro sensor 912: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensor 913 may be disposed on a side bezel of the terminal 900 and/or underneath the display 905. When the pressure sensor 913 is disposed on the side frame of the terminal 900, the user's holding signal of the terminal 900 may be detected, and the processor 901 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 913. When the pressure sensor 913 is disposed at a lower layer of the display screen 905, the processor 901 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 905. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 914 is used for collecting a fingerprint of the user, and the processor 901 identifies the user according to the fingerprint collected by the fingerprint sensor 914, or the fingerprint sensor 914 identifies the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, processor 901 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 914 may be disposed on the front, back, or side of the terminal 900. When a physical key or vendor Logo is provided on the terminal 900, the fingerprint sensor 914 may be integrated with the physical key or vendor Logo.
The optical sensor 915 is used to collect ambient light intensity. In one embodiment, the processor 901 may control the display brightness of the display screen 905 based on the ambient light intensity collected by the optical sensor 915. Specifically, when the ambient light intensity is high, the display brightness of the display screen 905 is increased; when the ambient light intensity is low, the display brightness of the display screen 905 is reduced. In another embodiment, the processor 901 can also dynamically adjust the shooting parameters of the camera assembly 906 according to the ambient light intensity collected by the optical sensor 915.
Proximity sensor 916, also known as a distance sensor, is typically disposed on the front panel of terminal 900. The proximity sensor 916 is used to collect the distance between the user and the front face of the terminal 900. In one embodiment, when the proximity sensor 916 detects that the distance between the user and the front face of the terminal 900 gradually decreases, the processor 901 controls the display 905 to switch from the bright screen state to the dark screen state; when the proximity sensor 916 detects that the distance between the user and the front surface of the terminal 900 gradually becomes larger, the display 905 is controlled by the processor 901 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 9 does not constitute a limitation of terminal 900, and may include more or fewer components than those shown, or may combine certain components, or may employ a different arrangement of components.
Fig. 10 is a block diagram of a server 1000 according to an exemplary embodiment, where the server 1000 may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 1001 and one or more memories 1002, where the one or more memories 1002 store at least one program code, and the at least one program code is loaded and executed by the one or more processors 1001 to implement the page Processing method provided by the above-mentioned method embodiments. Of course, the server 1000 may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input and output, and the server 1000 may also include other components for implementing the functions of the device, which are not described herein again.
In an exemplary embodiment, a computer-readable storage medium including instructions, such as the memory 902 and the memory 1002 including instructions, which are executable by the processor 902 of the terminal 900 to perform the above-described page processing method, or which are executable by the processor 1002 of the server 1000 to perform the above-described page processing method, is also provided. Alternatively, the computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, there is also provided a computer program product comprising a computer program executable by the processor 901 of the terminal 900 to perform the method steps of the page processing method provided in the above embodiments; alternatively, the computer program may be executed by the processor 1001 of the server 1000 to perform the method steps of the page processing method provided in the above-described embodiment.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A page processing method, characterized in that the method comprises:
acquiring an access request of a terminal, wherein the access request is used for accessing a target function;
in response to the access request, determining an account type of a logged account of the terminal and a function level of the target function, wherein the function level is used for indicating the account type of the account accessing the target function;
and if the account type is matched with the function grade, sending a page of the target function to the terminal.
2. The page processing method according to claim 1, wherein after determining the account type of the account to which the terminal has logged in and the function level of the target function in response to the access request, the method further comprises:
and if the account type and the function level are not matched, sending a redirection instruction to the terminal, wherein the redirection instruction is used for redirecting the terminal to a preset page.
3. The page processing method according to claim 1, characterized in that the method further comprises any one of the following:
if the function level of the target function is updated and the account type is not matched with the updated function level, sending a redirection instruction to the terminal, wherein the redirection instruction is used for redirecting the terminal to a preset page;
and if the account type is updated and the updated account type is not matched with the function level of the target function, sending a redirection instruction to the terminal.
4. A page processing method, characterized in that the method comprises:
displaying a function entry of the target function;
responding to the trigger operation of the function entrance, and sending an access request to a server, wherein the access request is used for accessing a target function;
and responding to the received page of the target function, and displaying the page of the target function, wherein the page of the target function is sent by the server when the account type of the account logged in by the terminal is matched with the function grade of the target function.
5. The page processing method according to claim 4, wherein after sending an access request to a server in response to the triggering operation on the function portal, the method further comprises:
responding to the received redirection instruction, and displaying a preset page corresponding to the redirection instruction;
the redirection instruction is sent by the server when the account type is not matched with the function level of the target function, or the redirection instruction is sent by the server when the account type is not matched with the updated function level, or the redirection instruction is sent by the server when the updated account type is not matched with the function level.
6. A page processing apparatus, characterized in that the apparatus comprises:
an acquisition unit configured to execute an access request of an acquisition terminal, the access request being for accessing a target function;
a determining unit configured to execute determining, in response to the access request, an account type of an account that the terminal has logged in to and a function level of the target function, where the function level is used to indicate an account type of an account accessing the target function;
and the sending unit is configured to execute sending the page of the target function to the terminal if the account type is matched with the function grade.
7. A page processing apparatus, characterized in that the apparatus comprises:
a display unit configured to execute a function portal displaying a target function;
a sending unit configured to execute a trigger operation in response to the function entry, and send an access request to a server, the access request being used for accessing a target function;
the display unit is further configured to execute displaying the page of the target function in response to receiving the page of the target function, wherein the page of the target function is sent by the server when the account type of the account which the terminal logs in matches with the function grade of the target function.
8. A server, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the page processing method of any of claims 1 to 3.
9. A terminal, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the page processing method of any of claims 4 to 5.
10. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of a server, enable the server to perform the page processing method of any one of claims 1 to 3; alternatively, the instructions in the computer-readable storage medium, when executed by a processor of a terminal, enable the terminal to perform the page processing method of any one of claims 4 to 5.
CN202110585044.5A 2021-05-27 2021-05-27 Page processing method, device, server, terminal and readable storage medium Active CN113377647B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110585044.5A CN113377647B (en) 2021-05-27 2021-05-27 Page processing method, device, server, terminal and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110585044.5A CN113377647B (en) 2021-05-27 2021-05-27 Page processing method, device, server, terminal and readable storage medium

Publications (2)

Publication Number Publication Date
CN113377647A true CN113377647A (en) 2021-09-10
CN113377647B CN113377647B (en) 2023-04-07

Family

ID=77572486

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110585044.5A Active CN113377647B (en) 2021-05-27 2021-05-27 Page processing method, device, server, terminal and readable storage medium

Country Status (1)

Country Link
CN (1) CN113377647B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114528504A (en) * 2022-02-21 2022-05-24 北京达佳互联信息技术有限公司 Data processing method, device, electronic equipment and medium
CN114615721A (en) * 2022-01-26 2022-06-10 上海赛可出行科技服务有限公司 White list configuration method based on vehicle-mounted WIFI application

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102148867A (en) * 2011-02-09 2011-08-10 杭州华三通信技术有限公司 Method and device for accessing page based on user permission
CN103065074A (en) * 2012-12-14 2013-04-24 北京思特奇信息技术股份有限公司 Uniform Resource Locator (URL) authority control method based on fine granularity
CN107463807A (en) * 2017-06-27 2017-12-12 深圳市元征科技股份有限公司 Right management method, diagnostic device and server
US20180246983A1 (en) * 2018-04-01 2018-08-30 Yogesh Rathod Displaying updated structured sites or websites in a feed
CN108965280A (en) * 2018-07-05 2018-12-07 郑州云海信息技术有限公司 A kind of user right restriction method
CN109669597A (en) * 2018-10-31 2019-04-23 武汉艺果互动科技股份有限公司 Front end authority control method, equipment and storage equipment when user browses web sites
CN109740379A (en) * 2019-01-03 2019-05-10 山东浪潮通软信息科技有限公司 A kind of front end authority control method
US20200104396A1 (en) * 2018-09-28 2020-04-02 Microsoft Technology Licensing, Llc A/b testing of service-level metrics
CN111031111A (en) * 2019-11-29 2020-04-17 苏宁云计算有限公司 Page static resource access method, device and system
CN111277638A (en) * 2020-01-15 2020-06-12 北京奇艺世纪科技有限公司 Control method and server
CN111427631A (en) * 2020-04-01 2020-07-17 中电万维信息技术有限责任公司 Dynamic configuration method of diversified mobile application function module
CN111488598A (en) * 2020-04-09 2020-08-04 腾讯科技(深圳)有限公司 Access control method, device, computer equipment and storage medium
CN111752597A (en) * 2020-06-29 2020-10-09 深圳前海微众银行股份有限公司 Method, device and equipment for issuing gray scale of service and computer readable storage medium
CN111970298A (en) * 2020-08-26 2020-11-20 腾讯科技(深圳)有限公司 Application access method and device, storage medium and computer equipment

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102148867A (en) * 2011-02-09 2011-08-10 杭州华三通信技术有限公司 Method and device for accessing page based on user permission
CN103065074A (en) * 2012-12-14 2013-04-24 北京思特奇信息技术股份有限公司 Uniform Resource Locator (URL) authority control method based on fine granularity
CN107463807A (en) * 2017-06-27 2017-12-12 深圳市元征科技股份有限公司 Right management method, diagnostic device and server
US20180246983A1 (en) * 2018-04-01 2018-08-30 Yogesh Rathod Displaying updated structured sites or websites in a feed
CN108965280A (en) * 2018-07-05 2018-12-07 郑州云海信息技术有限公司 A kind of user right restriction method
US20200104396A1 (en) * 2018-09-28 2020-04-02 Microsoft Technology Licensing, Llc A/b testing of service-level metrics
CN109669597A (en) * 2018-10-31 2019-04-23 武汉艺果互动科技股份有限公司 Front end authority control method, equipment and storage equipment when user browses web sites
CN109740379A (en) * 2019-01-03 2019-05-10 山东浪潮通软信息科技有限公司 A kind of front end authority control method
CN111031111A (en) * 2019-11-29 2020-04-17 苏宁云计算有限公司 Page static resource access method, device and system
CN111277638A (en) * 2020-01-15 2020-06-12 北京奇艺世纪科技有限公司 Control method and server
CN111427631A (en) * 2020-04-01 2020-07-17 中电万维信息技术有限责任公司 Dynamic configuration method of diversified mobile application function module
CN111488598A (en) * 2020-04-09 2020-08-04 腾讯科技(深圳)有限公司 Access control method, device, computer equipment and storage medium
CN111752597A (en) * 2020-06-29 2020-10-09 深圳前海微众银行股份有限公司 Method, device and equipment for issuing gray scale of service and computer readable storage medium
CN111970298A (en) * 2020-08-26 2020-11-20 腾讯科技(深圳)有限公司 Application access method and device, storage medium and computer equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
张建华: "《WEB安全与容侵》", 19 September 2009, 电子科技大学出版社 *
殷广鸿等: "《VSS版本管理及其应用》", 31 January 2005, 国防工业出版社 *
韩小良: "《Excel VBA活用范例实用手册》", 31 October 2016, 中国铁道出版社 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114615721A (en) * 2022-01-26 2022-06-10 上海赛可出行科技服务有限公司 White list configuration method based on vehicle-mounted WIFI application
CN114615721B (en) * 2022-01-26 2023-12-22 上海赛可出行科技服务有限公司 White list configuration method based on vehicle-mounted WIFI application
CN114528504A (en) * 2022-02-21 2022-05-24 北京达佳互联信息技术有限公司 Data processing method, device, electronic equipment and medium

Also Published As

Publication number Publication date
CN113377647B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN110674022B (en) Behavior data acquisition method and device and storage medium
CN110278464B (en) Method and device for displaying list
CN109547495B (en) Sensitive operation processing method, device, server, terminal and storage medium
CN111159604A (en) Picture resource loading method and device
CN113377647B (en) Page processing method, device, server, terminal and readable storage medium
CN109040339B (en) Cross-domain request processing method, device and equipment based on AJAX
CN111866140A (en) Fusion management apparatus, management system, service calling method, and medium
CN110290191B (en) Resource transfer result processing method, device, server, terminal and storage medium
CN111625315A (en) Page display method and device, electronic equipment and storage medium
CN111131392A (en) Method, device, electronic equipment and medium for processing message
CN111008083B (en) Page communication method and device, electronic equipment and storage medium
CN110825465B (en) Log data processing method and device, electronic equipment and storage medium
CN113051015A (en) Page rendering method and device, electronic equipment and storage medium
CN111881423A (en) Method, device and system for limiting function use authorization
CN111241451A (en) Webpage processing method and device, computer equipment and storage medium
CN110569064A (en) interface identifier generation method, device, equipment and storage medium
CN110502708B (en) Method, device and storage medium for communication based on JSbridge
CN114900559A (en) Management system, terminal, management method, and storage medium
CN111131619B (en) Account switching processing method, device and system
CN113836426A (en) Information pushing method and device and electronic equipment
CN113051494A (en) Information display method and device, electronic equipment and storage medium
CN109618018B (en) User head portrait display method, device, terminal, server and storage medium
CN113569219A (en) Live broadcast embedded program authorization method, device, equipment and storage medium
CN114143280A (en) Session display method and device, electronic equipment and storage medium
CN112699364A (en) Method, device and equipment for processing verification information and storage medium

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