CN114253441B - Method and device for enabling target function, storage medium and electronic device - Google Patents

Method and device for enabling target function, storage medium and electronic device Download PDF

Info

Publication number
CN114253441B
CN114253441B CN202111450816.0A CN202111450816A CN114253441B CN 114253441 B CN114253441 B CN 114253441B CN 202111450816 A CN202111450816 A CN 202111450816A CN 114253441 B CN114253441 B CN 114253441B
Authority
CN
China
Prior art keywords
target
function
target function
determining
shortcut
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.)
Active
Application number
CN202111450816.0A
Other languages
Chinese (zh)
Other versions
CN114253441A (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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202111450816.0A priority Critical patent/CN114253441B/en
Publication of CN114253441A publication Critical patent/CN114253441A/en
Application granted granted Critical
Publication of CN114253441B publication Critical patent/CN114253441B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • 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)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a method and a device for starting a target function, a storage medium and an electronic device, wherein the method comprises the following steps: determining a target function of a target object to be accessed quickly, wherein the target function is a function of a target application installed on terminal equipment; under the condition that a display interface of the terminal equipment runs a target function, generating a uniform resource locator of the target function through a setting key on the display interface, and determining icon information of the target function; replacing a preset shortcut template file corresponding to the setting key according to the uniform resource locator and the icon information to obtain a target shortcut file corresponding to the target function; under the condition that the target shortcut file is successfully jumped to the target function through the target browser, a shortcut icon of the target function is generated according to the auxiliary function of the target browser, and the problems that the target function in the target application cannot be appointed for access in the prior art are solved.

Description

Method and device for enabling target function, storage medium and electronic device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and apparatus for enabling a target function, a storage medium, and an electronic device.
Background
Now, an app is usually opened by using a certain function inside the app, then a certain function is found according to habits or a certain function is found by searching keywords, and further time is wasted, and if the function is modified or the functions cannot be used due to keyword errors, the function experience of the app is not affected. In the related art, the way to quickly open the app is to send a short message or push a notification, and then open a fixed function by clicking, so that the short message and the notification are easily ignored and shielded.
Aiming at the problems that in the related art, the target function in the target application cannot be appointed to be accessed and the like, an effective technical scheme is not proposed yet.
Disclosure of Invention
The embodiment of the invention provides a method and a device for starting target functions, a storage medium and an electronic device, which are used for at least solving the problems that the target functions in target applications cannot be appointed for access and the like in the related technology.
According to an embodiment of the present invention, there is provided a method for enabling a target function, including: determining a target function of a target object to be accessed quickly, wherein the target function is a function of a target application installed on terminal equipment; under the condition that the display interface of the terminal equipment runs the target function, generating a uniform resource locator of the target function through a setting key on the display interface, and determining icon information of the target function; replacing a preset shortcut template file corresponding to the setting key according to the uniform resource locator and the icon information to obtain a target shortcut file corresponding to the target function; and under the condition that the target shortcut file is successfully jumped to the target function through the target browser, generating a shortcut icon of the target function according to the auxiliary function of the target browser.
In one exemplary embodiment, determining the icon information for the target function includes: receiving display information set by the target object for the target function, wherein the display information at least comprises one of the following: the code bit number corresponding to the shortcut icon and the icon name of the shortcut icon; under the condition that the display information is received, determining a page jump protocol of a target application where the target function is located; and determining the icon information of the target function according to the display information and the page skip protocol.
In an exemplary embodiment, when the display information is received, determining a page skip protocol of a target application where the target function is located includes: determining an operation function of the target application on the terminal equipment, wherein the operation function is used for indicating jump information for switching between different functions when the target application operates; and determining a page jump protocol of a target application where the target function is located according to the running function and the display information.
In an exemplary embodiment, in a case that the display interface of the terminal device runs the target function, generating, by a setting key on the display interface, a uniform resource locator of the target function includes: determining parameter information corresponding to the display interface; determining webpage link characters of the display interface according to the parameter information; and adding the function character corresponding to the target function into the webpage link character to obtain the uniform resource locator of the target function.
In an exemplary embodiment, before replacing the preset shortcut template file corresponding to the setting key according to the uniform resource locator and the icon information to obtain the target shortcut file corresponding to the target function, the method further includes: determining a local service port set on the terminal equipment, wherein the local service port is used for indicating a root directory where a template file of the preset shortcut template is located; and associating the local service port with the setting key so as to execute the call of the preset shortcut template after the setting key is started.
In an exemplary embodiment, when the target shortcut file successfully jumps to the target function through the target browser, the method includes: enabling a uniform resource locator in the target shortcut file; under the condition that the uniform resource locator starts the target browser, determining a display result of a display page of the target browser; and determining the page jump of the target shortcut file according to the display result.
In an exemplary embodiment, determining the page jump of the target shortcut file according to the display result includes: under the condition that the display result contains the target function, determining that the page corresponding to the target shortcut file is successfully jumped; and under the condition that the display result does not contain the target function, determining that the page jump corresponding to the target shortcut file fails, and sending prompt information to the target object, wherein the prompt information is used for indicating that the target shortcut file needs to be regenerated.
According to another embodiment of the present invention, there is provided an enabling apparatus of a target function, including: the system comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining a target function of a target object to be accessed quickly, and the target function is a function of a target application installed on terminal equipment; the generating module is used for generating a uniform resource locator of the target function through a setting key on the display interface and determining icon information of the target function under the condition that the display interface of the terminal equipment operates the target function; the replacing module is used for replacing the preset shortcut template file corresponding to the setting key according to the uniform resource locator and the icon information to obtain a target shortcut file corresponding to the target function; and the jump module is used for generating shortcut icons of the target functions according to the auxiliary functions of the target browser under the condition that the target shortcut files are successfully jumped to the target functions through the target browser.
In an exemplary embodiment, the generating module is further configured to receive display information set by the target object for the target function, where the display information includes at least one of: the code bit number corresponding to the shortcut icon and the icon name of the shortcut icon; under the condition that the display information is received, determining a page jump protocol of a target application where the target function is located; and determining the icon information of the target function according to the display information and the page skip protocol.
In an exemplary embodiment, the generating module further includes: a function unit, configured to determine an operation function of the target application on the terminal device, where the operation function is used to indicate jump information for switching between different functions when the target application is operated; and determining a page jump protocol of a target application where the target function is located according to the running function and the display information.
In an exemplary embodiment, the generating module is further configured to determine parameter information corresponding to the display interface; determining webpage link characters of the display interface according to the parameter information; and adding the function character corresponding to the target function into the webpage link character to obtain the uniform resource locator of the target function.
In an exemplary embodiment, the above apparatus further includes: the port module is used for determining a local service port arranged on the terminal equipment, wherein the local service port is used for indicating a root directory where a template file of the preset shortcut template is located; and associating the local service port with the setting key so as to execute the call of the preset shortcut template after the setting key is started.
In an exemplary embodiment, the foregoing jumping module is further configured to enable a uniform resource locator in the target shortcut file; under the condition that the uniform resource locator starts the target browser, determining a display result of a display page of the target browser; and determining the page jump of the target shortcut file according to the display result.
In an exemplary embodiment, the foregoing skip module is further configured to determine that, when the display result includes the target function, a page skip corresponding to the target shortcut file is successful; and under the condition that the display result does not contain the target function, determining that the page jump corresponding to the target shortcut file fails, and sending prompt information to the target object, wherein the prompt information is used for indicating that the target shortcut file needs to be regenerated.
According to a further embodiment of the invention, there is also provided a storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the invention, there is also provided an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
According to the method and the device for determining the target function of the target object, the target function of the target object to be accessed quickly is determined, wherein the target function is a function of a target application installed on the terminal equipment; under the condition that a display interface of the terminal equipment runs a target function, generating a uniform resource locator of the target function through a setting key on the display interface, and determining icon information of the target function; replacing a preset shortcut template file corresponding to the setting key according to the uniform resource locator and the icon information to obtain a target shortcut file corresponding to the target function; under the condition that the target shortcut file is successfully jumped to the target function through the target browser, a shortcut icon of the target function is generated according to the auxiliary function of the target browser, namely, a uniform resource locator of the target function is determined through a setting key on a display interface, and then the preset shortcut template file is replaced, and the replaced preset shortcut template file is used by the auxiliary function in the browser to generate the shortcut icon of the target function, so that the problems that the target function in the target application cannot be appointed for access and the like in the prior art can be solved, the access efficiency of the target function is improved, and the use experience of the target object is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
fig. 1 is a hardware block diagram of a computer terminal of a method for enabling a target function according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of enabling a target function according to an embodiment of the invention;
FIG. 3 is a flow chart of a desktop shortcut creation process in accordance with an alternative embodiment of the present invention;
FIG. 4 is a flowchart of a desktop shortcut invocation in accordance with an alternative embodiment of the present invention;
fig. 5 is a block diagram of the structure of an enabling device of a target function according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the drawings in conjunction with embodiments. It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided by the embodiments of the present application may be executed in a computer terminal or a computing device similar to a device terminal. Taking a computer terminal as an example, fig. 1 is a block diagram of a hardware structure of a computer terminal of a method for enabling a target function according to an embodiment of the present invention. As shown in fig. 1, the computer terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, and in one exemplary embodiment, may also include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the configuration shown in fig. 1 is merely illustrative and is not intended to limit the configuration of the computer terminal described above. For example, a computer terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than the equivalent functions shown in FIG. 1 or more than the functions shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a method for enabling a target function in an embodiment of the present invention, and the processor 102 executes the computer program stored in the memory 104 to perform various functional applications and data processing, that is, to implement the above-mentioned method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the computer terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 106 is arranged to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
In this embodiment, a method for enabling a target function is provided, and fig. 2 is a flowchart of a method for enabling a target function according to an embodiment of the present invention, where the flowchart includes the following steps:
step S202, determining a target function of a target object to be accessed quickly, wherein the target function is a function of a target application installed on a terminal device;
step S204, under the condition that the display interface of the terminal equipment runs the target function, generating a uniform resource locator of the target function through a setting key on the display interface, and determining icon information of the target function;
it can be understood that, in order to jump the front-end page on the same target application, then display the display interfaces corresponding to different containers, firstly determine the page type of the front-end page to be jumped to the page, and determine the corresponding interface (corresponding to the calling interface in the embodiment of the present invention) for executing jump in the page management module included in the target application according to the page type;
step S206, replacing the preset shortcut template file corresponding to the setting key according to the uniform resource locator and the icon information to obtain a target shortcut file corresponding to the target function;
step S208, under the condition that the target shortcut file is successfully jumped to the target function through the target browser, generating shortcut icons of the target function according to auxiliary functions of the target browser.
Through the steps, determining the target function of the target object to be accessed quickly, wherein the target function is a function of a target application installed on the terminal equipment; under the condition that a display interface of the terminal equipment runs a target function, generating a uniform resource locator of the target function through a setting key on the display interface, and determining icon information of the target function; replacing a preset shortcut template file corresponding to the setting key according to the uniform resource locator and the icon information to obtain a target shortcut file corresponding to the target function; under the condition that the target shortcut file is successfully jumped to the target function through the target browser, a shortcut icon of the target function is generated according to the auxiliary function of the target browser, namely, a uniform resource locator of the target function is determined through a setting key on a display interface, and then the preset shortcut template file is replaced, and the replaced preset shortcut template file is used by the auxiliary function in the browser to generate the shortcut icon of the target function, so that the problems that the target function in the target application cannot be appointed for access and the like in the prior art can be solved, the access efficiency of the target function is improved, and the use experience of the target object is improved.
In one exemplary embodiment, determining the icon information for the target function includes: receiving display information set by the target object for the target function, wherein the display information at least comprises one of the following: the code bit number corresponding to the shortcut icon and the icon name of the shortcut icon; under the condition that the display information is received, determining a page jump protocol of a target application where the target function is located; and determining the icon information of the target function according to the display information and the page skip protocol.
For example, after determining the target function that needs to be accessed quickly, corresponding information is determined, such as: delivering desktop icons (the icons are base64 codes), icon names and URL (Uniform resource Locator, same resource locator, URL for short) contents of a current interface needing to be skipped to a desktop shortcut HTML (Hyper Text Markup language, hyper file markup language, HTML for short) template to replace appointed contents in the template; and storing the template file into a sandbox, wherein the template content also comprises a page jump protocol schema of the jump APP.
In an exemplary embodiment, when the display information is received, determining a page skip protocol of a target application where the target function is located includes: determining an operation function of the target application on the terminal equipment, wherein the operation function is used for indicating jump information for switching between different functions when the target application operates; and determining a page jump protocol of a target application where the target function is located according to the running function and the display information.
Optionally, when clicking the desktop shortcut, the desktop shortcut starts the App through a scheme of the App set by the system, then obtains the whole content of the scheme through an open URL function in the App, intercepts the jump target URL according to the own string splicing rule, and jumps to the corresponding functional interface.
In an exemplary embodiment, in a case that the display interface of the terminal device runs the target function, generating, by a setting key on the display interface, a uniform resource locator of the target function includes: determining parameter information corresponding to the display interface; determining webpage link characters of the display interface according to the parameter information; and adding the function character corresponding to the target function into the webpage link character to obtain the uniform resource locator of the target function.
In an exemplary embodiment, before replacing the preset shortcut template file corresponding to the setting key according to the uniform resource locator and the icon information to obtain the target shortcut file corresponding to the target function, the method further includes: determining a local service port set on the terminal equipment, wherein the local service port is used for indicating a root directory where a template file of the preset shortcut template is located; and associating the local service port with the setting key so as to execute the call of the preset shortcut template after the setting key is started.
In an exemplary embodiment, when the target shortcut file successfully jumps to the target function through the target browser, the method includes: enabling a uniform resource locator in the target shortcut file; under the condition that the uniform resource locator starts the target browser, determining a display result of a display page of the target browser; and determining the page jump of the target shortcut file according to the display result.
In an exemplary embodiment, determining the page jump of the target shortcut file according to the display result includes: under the condition that the display result contains the target function, determining that the page corresponding to the target shortcut file is successfully jumped; and under the condition that the display result does not contain the target function, determining that the page jump corresponding to the target shortcut file fails, and sending prompt information to the target object, wherein the prompt information is used for indicating that the target shortcut file needs to be regenerated.
In order to better understand the process of the method for enabling the target function, the following describes the flow of the method for enabling the target function in combination with several alternative embodiments.
In an alternative embodiment of the present invention, a method for creating a function shortcut is mainly provided, and by creating a shortcut of the function on a desktop and clicking the shortcut, a specified function interface of an app can be automatically opened without worrying about that the position of the function is moved or cannot be found.
Optionally, as shown in fig. 3, a flowchart of a desktop shortcut creation process according to an alternative embodiment of the present invention is specifically as follows:
when entering a certain function interface, the interface has a desktop shortcut setting function;
and step 1, clicking a desktop shortcut function.
Step 2, determining corresponding information, such as: delivering desktop icons (the icons are base64 codes), icon names and URL (Uniform resource Locator, same resource locator, URL for short) contents of a current interface needing to be skipped to a desktop shortcut HTML (HyperText Markup language, hyper file markup language, HTML for short) template to replace appointed contents in the template; and storing the template file into a sandbox, wherein the template content also comprises a page jump protocol schema of the jump APP.
And step 3, starting local service, and setting a local service port and a local service root directory as sandboxed directories of the template files.
And 4, acquiring a template webpage through the local path.
Step 5, starting a browser from the App through an open URL to access the template file; at this time, the mobile phone browser is jumped to.
And 6, creating a desktop shortcut in the auxiliary function of the browser, and creating the desktop shortcut of the current webpage.
Alternatively, FIG. 4 is a flow chart illustrating the invocation of a desktop shortcut in accordance with an alternative embodiment of the present invention. The method comprises the following steps:
step S302: click on the desktop shortcut icon.
Step S304: the shortcut icon initiates the schema protocol, invoking the APP.
Step S306: the APP obtains an address URL to be jumped through the schema.
Step S308; jump to the designated interface.
Specifically, when clicking the desktop shortcut, the desktop shortcut starts the App through a scheme of the App set by the system, then the whole content of the scheme is obtained in the App through an open URL function, a jump target URL is intercepted according to a string splicing rule of the App, and then the jump target URL is jumped to a corresponding functional interface.
In summary, according to an alternative embodiment of the present invention, a method for establishing a desktop shortcut of an App is provided, and information is transmitted to a template interface through the App to modify the content of the template interface. And obtaining a template webpage obtained after modifying the template interface through a local path, making the common function interface into a desktop shortcut, directly opening the appointed function of the App through the desktop shortcut, and jumping to the appointed function interface of the App without other complicated operations. The problem that the position of a designated function cannot be found frequently after the interface is changed frequently and the version is updated is avoided, and the use experience of a target object is improved.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
In this embodiment, an enabling device for a target function is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and will not be described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 5 is a block diagram of a target function enabling apparatus according to an embodiment of the present invention, as shown in fig. 5, including:
a determining module 52, configured to determine a target function of a target object to be accessed quickly, where the target function is a function of a target application installed on a terminal device;
a generating module 54, configured to generate a uniform resource locator of the target function through a setting key on a display interface of the terminal device and determine icon information of the target function when the display interface of the terminal device runs the target function;
a replacing module 56, configured to replace a preset shortcut template file corresponding to the setting key according to the uniform resource locator and the icon information, so as to obtain a target shortcut file corresponding to the target function;
and a skip module 58, configured to generate a shortcut icon of the target function according to an auxiliary function of the target browser if the target shortcut file is successfully skipped to the target function by the target browser.
Through the device, the target function of the target object to be accessed quickly is determined, wherein the target function is a function of a target application installed on the terminal equipment; under the condition that a display interface of the terminal equipment runs a target function, generating a uniform resource locator of the target function through a setting key on the display interface, and determining icon information of the target function; replacing a preset shortcut template file corresponding to the setting key according to the uniform resource locator and the icon information to obtain a target shortcut file corresponding to the target function; under the condition that the target shortcut file is successfully jumped to the target function through the target browser, a shortcut icon of the target function is generated according to the auxiliary function of the target browser, namely, a uniform resource locator of the target function is determined through a setting key on a display interface, and then the preset shortcut template file is replaced, and the replaced preset shortcut template file is used by the auxiliary function in the browser to generate the shortcut icon of the target function, so that the problems that the target function in the target application cannot be appointed for access and the like in the prior art can be solved, the access efficiency of the target function is improved, and the use experience of the target object is improved.
In an exemplary embodiment, the generating module is further configured to receive display information set by the target object for the target function, where the display information includes at least one of: the code bit number corresponding to the shortcut icon and the icon name of the shortcut icon; under the condition that the display information is received, determining a page jump protocol of a target application where the target function is located; and determining the icon information of the target function according to the display information and the page skip protocol. For example, after determining the target function that needs to be accessed quickly, corresponding information is determined, such as: delivering desktop icons (the icons are base64 codes), icon names and URL (Uniform resource Locator, same resource locator, URL for short) contents of a current interface needing to be skipped to a desktop shortcut HTML (Hyper Text Markup language, hyper file markup language, HTML for short) template to replace appointed contents in the template; storing a template file into a sandbox, wherein the template content also comprises a page jump protocol schema of a jump APP;
in an exemplary embodiment, the generating module further includes: a function unit, configured to determine an operation function of the target application on the terminal device, where the operation function is used to indicate jump information for switching between different functions when the target application is operated; and determining a page jump protocol of a target application where the target function is located according to the running function and the display information.
In an exemplary embodiment, the generating module is further configured to determine parameter information corresponding to the display interface; determining webpage link characters of the display interface according to the parameter information; and adding the function character corresponding to the target function into the webpage link character to obtain the uniform resource locator of the target function.
In an exemplary embodiment, the above apparatus further includes: the port module is used for determining a local service port arranged on the terminal equipment, wherein the local service port is used for indicating a root directory where a template file of the preset shortcut template is located; and associating the local service port with the setting key so as to execute the call of the preset shortcut template after the setting key is started.
In an exemplary embodiment, the foregoing jumping module is further configured to enable a uniform resource locator in the target shortcut file; under the condition that the uniform resource locator starts the target browser, determining a display result of a display page of the target browser; and determining the page jump of the target shortcut file according to the display result.
In an exemplary embodiment, the foregoing skip module is further configured to determine that, when the display result includes the target function, a page skip corresponding to the target shortcut file is successful; and under the condition that the display result does not contain the target function, determining that the page jump corresponding to the target shortcut file fails, and sending prompt information to the target object, wherein the prompt information is used for indicating that the target shortcut file needs to be regenerated.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
An embodiment of the invention also provides a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
In an exemplary embodiment, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
s1, determining a target function of a target object to be accessed quickly, wherein the target function is a function of a target application installed on terminal equipment;
s2, under the condition that the display interface of the terminal equipment runs the target function, generating a uniform resource locator of the target function through a setting key on the display interface, and determining icon information of the target function;
s3, replacing a preset shortcut template file corresponding to the setting key according to the uniform resource locator and the icon information to obtain a target shortcut file corresponding to the target function;
and S4, under the condition that the target shortcut file is successfully jumped to the target function through the target browser, generating a shortcut icon of the target function according to the auxiliary function of the target browser.
In an exemplary embodiment, in the present embodiment, the storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
In an exemplary embodiment, the electronic apparatus may further include a transmission device connected to the processor, and an input/output device connected to the processor.
In an exemplary embodiment, in this embodiment, the above-mentioned processor may be configured to execute the following steps by a computer program:
s1, determining a target function of a target object to be accessed quickly, wherein the target function is a function of a target application installed on terminal equipment;
s2, under the condition that the display interface of the terminal equipment runs the target function, generating a uniform resource locator of the target function through a setting key on the display interface, and determining icon information of the target function;
s3, replacing a preset shortcut template file corresponding to the setting key according to the uniform resource locator and the icon information to obtain a target shortcut file corresponding to the target function;
and S4, under the condition that the target shortcut file is successfully jumped to the target function through the target browser, generating a shortcut icon of the target function according to the auxiliary function of the target browser.
In an exemplary embodiment, reference may be made to the examples described in the foregoing embodiments and optional implementations, and this embodiment is not repeated herein.
It will be apparent to those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, and in one exemplary embodiment they may be implemented in program code executable by a computing device, so that they may be stored in a memory device for execution by a computing device, and in some cases, the steps shown or described may be performed in a different order than what is shown or described, or they may be separately fabricated into individual integrated circuit modules, or a plurality of modules or steps in them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (9)

1. A method for enabling a target function, comprising:
determining a target function of a target object to be accessed quickly, wherein the target function is a function of a target application installed on terminal equipment;
under the condition that the display interface of the terminal equipment runs the target function, generating a uniform resource locator of the target function through a setting key on the display interface, and determining icon information of the target function;
replacing a preset shortcut template file corresponding to the setting key according to the uniform resource locator and the icon information to obtain a target shortcut file corresponding to the target function;
under the condition that the target shortcut file is successfully jumped to the target function through the target browser, generating a shortcut icon of the target function according to an auxiliary function of the target browser;
under the condition that the display interface of the terminal equipment runs the target function, generating the uniform resource locator of the target function through a setting key on the display interface comprises the following steps:
determining parameter information corresponding to the display interface;
determining webpage link characters of the display interface according to the parameter information;
and adding the function character corresponding to the target function into the webpage link character to obtain the uniform resource locator of the target function.
2. The method for enabling a target function according to claim 1, wherein determining icon information of the target function includes:
receiving display information set by the target object for the target function, wherein the display information at least comprises one of the following: the code bit number corresponding to the shortcut icon and the icon name of the shortcut icon;
under the condition that the display information is received, determining a page jump protocol of a target application where the target function is located;
and determining the icon information of the target function according to the display information and the page skip protocol.
3. The method for enabling a target function according to claim 2, wherein determining a page jump protocol of a target application where the target function is located in a case that the display information is received includes:
determining an operation function of the target application on the terminal equipment, wherein the operation function is used for indicating jump information for switching between different functions when the target application operates;
and determining a page jump protocol of a target application where the target function is located according to the running function and the display information.
4. The method for enabling a target function according to claim 1, wherein, before replacing a preset shortcut template file corresponding to the setting key according to the uniform resource locator and the icon information to obtain the target shortcut file corresponding to the target function, the method further comprises:
determining a local service port set on the terminal equipment, wherein the local service port is used for indicating a root directory where a template file of the preset shortcut template is located;
and associating the local service port with the setting key so as to execute the call of the preset shortcut template after the setting key is started.
5. The method for enabling a target function according to claim 1, wherein when the target shortcut file successfully jumps to the target function through a target browser, the method comprises:
enabling a uniform resource locator in the target shortcut file;
under the condition that the uniform resource locator starts the target browser, determining a display result of a display page of the target browser;
and determining the page jump of the target shortcut file according to the display result.
6. The method for enabling a target function according to claim 5, wherein determining a page jump of the target shortcut file according to the display result comprises:
under the condition that the display result contains the target function, determining that the page corresponding to the target shortcut file is successfully jumped;
and under the condition that the display result does not contain the target function, determining that the page jump corresponding to the target shortcut file fails, and sending prompt information to the target object, wherein the prompt information is used for indicating that the target shortcut file needs to be regenerated.
7. An enabling device for a target function, comprising:
the system comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining a target function of a target object to be accessed quickly, and the target function is a function of a target application installed on terminal equipment;
the generating module is used for generating a uniform resource locator of the target function through a setting key on the display interface and determining icon information of the target function under the condition that the display interface of the terminal equipment operates the target function;
the replacing module is used for replacing the preset shortcut template file corresponding to the setting key according to the uniform resource locator and the icon information to obtain a target shortcut file corresponding to the target function;
the jump module is used for generating shortcut icons of the target functions according to auxiliary functions of the target browser under the condition that the target shortcut files are successfully jumped to the target functions through the target browser;
the generating module is further used for determining parameter information corresponding to the display interface;
determining webpage link characters of the display interface according to the parameter information; and adding the function character corresponding to the target function into the webpage link character to obtain the uniform resource locator of the target function.
8. A computer-readable storage medium, characterized in that the storage medium has stored therein a computer program, wherein the computer program is arranged to execute the method of any of the claims 1 to 6 when run.
9. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the method of any of the claims 1 to 6.
CN202111450816.0A 2021-11-30 2021-11-30 Method and device for enabling target function, storage medium and electronic device Active CN114253441B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111450816.0A CN114253441B (en) 2021-11-30 2021-11-30 Method and device for enabling target function, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111450816.0A CN114253441B (en) 2021-11-30 2021-11-30 Method and device for enabling target function, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN114253441A CN114253441A (en) 2022-03-29
CN114253441B true CN114253441B (en) 2023-12-19

Family

ID=80791518

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111450816.0A Active CN114253441B (en) 2021-11-30 2021-11-30 Method and device for enabling target function, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN114253441B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115150662B (en) * 2022-06-20 2024-05-14 北京奇艺世纪科技有限公司 Data processing method, system, device, readable storage medium and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853540A (en) * 2012-12-04 2014-06-11 腾讯科技(深圳)有限公司 Method and system for accessing third-party application on operating system desktop
CN105867925A (en) * 2016-03-29 2016-08-17 联想(北京)有限公司 Shortcut establishing method and electronic device
CN108062412A (en) * 2017-12-30 2018-05-22 北京百度网讯科技有限公司 Shortcut generation method, device and the terminal device of Web page application program
CN110837616A (en) * 2019-09-27 2020-02-25 云深互联(北京)科技有限公司 Method, system and storage medium for managing browser kernel
CN112860273A (en) * 2019-11-27 2021-05-28 腾讯科技(深圳)有限公司 Page display method and device
EP3828682A1 (en) * 2019-11-28 2021-06-02 Beijing Xiaomi Mobile Software Co., Ltd. Method, apparatus for adding shortcut plug-in, and intelligent device
CN113467862A (en) * 2020-03-30 2021-10-01 腾讯科技(深圳)有限公司 Desktop shortcut generation method and device, mobile terminal and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102052605B1 (en) * 2012-11-13 2019-12-06 네이버 주식회사 Method and system of installing shortcut through mobile application

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853540A (en) * 2012-12-04 2014-06-11 腾讯科技(深圳)有限公司 Method and system for accessing third-party application on operating system desktop
CN105867925A (en) * 2016-03-29 2016-08-17 联想(北京)有限公司 Shortcut establishing method and electronic device
CN108062412A (en) * 2017-12-30 2018-05-22 北京百度网讯科技有限公司 Shortcut generation method, device and the terminal device of Web page application program
CN110837616A (en) * 2019-09-27 2020-02-25 云深互联(北京)科技有限公司 Method, system and storage medium for managing browser kernel
CN112860273A (en) * 2019-11-27 2021-05-28 腾讯科技(深圳)有限公司 Page display method and device
EP3828682A1 (en) * 2019-11-28 2021-06-02 Beijing Xiaomi Mobile Software Co., Ltd. Method, apparatus for adding shortcut plug-in, and intelligent device
CN113467862A (en) * 2020-03-30 2021-10-01 腾讯科技(深圳)有限公司 Desktop shortcut generation method and device, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN114253441A (en) 2022-03-29

Similar Documents

Publication Publication Date Title
CN110221872B (en) Page jump method and device, electronic equipment and storage medium
CN107870821B (en) Cross-platform calling method and system for application program
CN107844324B (en) Client page jump processing method and device
EP2775407B1 (en) Method and system for performing local invocation with webpage
EP3270300A1 (en) Method and device for form verification
CN107809383B (en) MVC-based path mapping method and device
US10754633B2 (en) Application installation package generation method and apparatus, and storage medium
EP2129148A1 (en) Content distribution management device, terminal, program, and content distribution system
US20130311985A1 (en) Updating Web Resources
CN107729014B (en) Page jump method and structure based on Android
CN106406844B (en) Method and device for realizing public number menu of communication interaction platform
CN104572114A (en) Binding device, application updating device and method and application
CN109240697B (en) Call processing method and device and storage medium
CN104821954A (en) Cross-platform remote procedure call method
CN108762767B (en) Application publishing method, device and computer readable storage medium
CN103944944A (en) Webpage link sharing method and system, and electronic device
CN112632420A (en) Interface skipping method and device, storage medium and electronic device
CN113064685A (en) H5 page loading method and device
CN114253441B (en) Method and device for enabling target function, storage medium and electronic device
CN104378428A (en) Method and device for downloading files
CN103957234A (en) Method for sending download files in browser and browser device
CN112818270A (en) Data cross-domain transfer method and device and computer equipment
CN113760278A (en) Page management method and device
CN111666074B (en) Web application customization method, related device and system
US20130332568A1 (en) Method of data processing by a navigation module

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