CN116069379B - Identification method, device, equipment and medium for secondary development function - Google Patents

Identification method, device, equipment and medium for secondary development function Download PDF

Info

Publication number
CN116069379B
CN116069379B CN202310042341.4A CN202310042341A CN116069379B CN 116069379 B CN116069379 B CN 116069379B CN 202310042341 A CN202310042341 A CN 202310042341A CN 116069379 B CN116069379 B CN 116069379B
Authority
CN
China
Prior art keywords
secondary development
file
preset
display interface
product software
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
CN202310042341.4A
Other languages
Chinese (zh)
Other versions
CN116069379A (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.)
Shenzhen Mingyuan Cloud Technology Co Ltd
Original Assignee
Shenzhen Mingyuan Cloud 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 Shenzhen Mingyuan Cloud Technology Co Ltd filed Critical Shenzhen Mingyuan Cloud Technology Co Ltd
Priority to CN202310042341.4A priority Critical patent/CN116069379B/en
Publication of CN116069379A publication Critical patent/CN116069379A/en
Application granted granted Critical
Publication of CN116069379B publication Critical patent/CN116069379B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a secondary development function identification method, a device, a terminal device and a computer readable storage medium, wherein when the terminal device containing product software runs the product software through a browser, a preset JS file is implanted in a current display interface according to a detected secondary development function identification instruction; executing the JS file to identify a page element of the secondary development of the product software in the display interface, and marking the page element. Therefore, the secondary development function of the product software can be quickly identified by the business personnel, and the working efficiency of the business personnel is improved.

Description

Identification method, device, equipment and medium for secondary development function
Technical Field
The invention belongs to the field of software development, and particularly relates to a method, a device, equipment and a medium for identifying a secondary development function.
Background
With development of science and technology, product software on the market needs to be developed for the second time in the actual use process after the development of the initial function is completed, and the function of the product software is expanded.
Now, with more and more secondary development function expansion and continuous iteration of initial functions of product software, definition between the expansion functions and the initial functions after secondary development is also more and more blurred, so that business personnel such as sales and service consultants, operation and maintenance personnel, developers and the like are difficult to judge whether the product software functions to be processed belong to secondary development or initial function iteration, and certain internal consumption is caused inside customers or companies.
Therefore, how to realize the secondary development function of quickly identifying product software by service personnel and improve the working efficiency of the service personnel is just like the technical problem to be solved in the field.
Disclosure of Invention
The invention mainly aims to provide a secondary development function identification method, a secondary development function identification device, terminal equipment and a computer readable storage medium. The method aims to realize the secondary development function of rapidly identifying product software by business personnel and improve the working efficiency of the business personnel.
In order to achieve the above object, the present invention provides a method for identifying a secondary development function, which is applied to a terminal device including product software;
the identification method of the secondary development function comprises the following steps:
when the product software is operated through a browser, implanting a preset JS file into a current display interface according to the detected secondary development function identification instruction;
executing the JS file to identify a page element of the secondary development of the product software in the display interface, and marking the page element.
Optionally, before the step of embedding the preset JS file in the current display interface according to the detected secondary development function identification instruction when the product software is run through the browser, the method further includes:
and inserting preset characters into the secondary development functional code of the product software according to a preset secondary development rule to serve as a unique identifier in the secondary development functional code.
Optionally, the step of executing the JS file to identify page elements of the secondary development of the product software in the display interface includes:
executing the JS file to search the preset characters in codes corresponding to the display interface;
and when the preset characters are found, identifying page elements secondarily developed in the display interface by the product software according to the preset characters.
Optionally, before the step of implanting the preset JS file in the current display interface according to the detected secondary development function identification instruction, the method further includes:
and installing a preset browser plug-in the browser, wherein the browser plug-in comprises a preset JS file and a secondary development function identification trigger switch.
Optionally, the step of executing the JS file to identify page elements of the secondary development of the product software in the display interface includes:
storing the JS file in a storage area of the browser;
executing the JS file in the storage area to identify a page element of the secondary development of the product software in the display interface.
Optionally, after the step of executing the JS file to identify page elements of the secondary development of the product software in the display interface, the method further includes:
caching the identified page elements in a preset storage area;
after the step of marking the page element, the method further comprises:
and when the secondary development function identification stopping instruction is detected, extracting the page elements in the storage area to replace the page elements with the added identifications.
Optionally, the method for identifying the secondary development function further comprises:
and repeatedly executing the JS file and repeatedly marking the page element according to a preset time interval to identify the secondarily developed page element of the product software in different display interfaces.
In addition, in order to achieve the above purpose, the present invention also provides an identification device of a secondary development function, the device is applied to a terminal device, and the terminal device includes a browser and product software;
the secondary development function identification device comprises:
the implantation module is used for implanting a preset JS file into the current display interface according to the detected secondary development function identification instruction when the product software is operated through the browser;
and the identification module is used for executing the JS file to identify the page element of the secondary development of the product software in the display interface, and marking the page element.
The steps of the identification method of the secondary development function are realized by each functional module of the identification device of the secondary development function in the invention when the functional module runs.
In addition, to achieve the above object, the present invention also provides a terminal device including: the method comprises the steps of a memory, a processor and a secondary development function identification program stored in the memory and capable of running on the processor, wherein the secondary development function identification program realizes the secondary development function identification method when being executed by the processor.
In addition, in order to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon an identification program of a secondary development function, which when executed by a processor, implements the steps of the identification method of a secondary development function as described above.
According to the identification method, the device, the terminal equipment and the computer readable storage medium for the secondary development function, which are provided by the embodiment of the invention, when the product software is operated through a browser by the terminal equipment containing the product software, a preset JS file is implanted in a current display interface according to the detected secondary development function identification instruction; executing the JS file to identify a page element of the secondary development of the product software in the display interface, and marking the page element.
When the terminal equipment runs the product software through the browser, a preset JS file is implanted on the current display interface according to the secondary development function identification instruction detected by the terminal equipment, then the terminal equipment executes the JS file to identify the page element of the secondary development of the product software on the current display interface, and finally the terminal equipment marks the page element when the terminal equipment identifies the page element of the secondary development of the product software on the current display interface.
Therefore, the embodiment of the invention realizes the rapid identification of the secondary development function of the product software by the service personnel by executing the page element of the secondary development function of the JS file identification product software and marking, and improves the working efficiency of the service personnel.
Drawings
FIG. 1 is a schematic device architecture diagram of a hardware operating environment of a terminal device according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of a second embodiment of the method for identifying a secondary development function according to the present invention;
FIG. 3 is a schematic diagram of adding identifiers according to an embodiment of the identification method of the secondary development function of the present invention;
FIG. 4 is a schematic diagram of a usage flow related to an embodiment of a method for identifying secondary development functions according to the present invention;
fig. 5 is a schematic functional block diagram of an embodiment of an identification device for secondary development of functions according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic device structure diagram of a hardware running environment of a terminal device according to an embodiment of the present invention.
The terminal equipment in the embodiment of the invention comprises product software, and can be desktop computers, notebooks, palm computers, cloud servers and the like, and the terminal equipment can perform man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch pad or sound control equipment and the like.
As shown in fig. 1, the terminal device may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., wi-Fi interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the terminal device structure shown in fig. 1 is not limiting of the terminal device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and an identification program of a secondary development function may be included in a memory 1005 as one type of computer storage medium.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client and communicating data with the client; and the processor 1001 may be configured to call an identification program of the secondary development function stored in the memory 1005 and perform the following operations:
when the product software is operated through a browser, implanting a preset JS file into a current display interface according to the detected secondary development function identification instruction;
executing the JS file to identify a page element of the secondary development of the product software in the display interface, and marking the page element.
Optionally, the processor 1001 may be further configured to invoke the recognition program of the secondary development function stored in the memory 1005, and before executing the step of embedding the preset JS file in the current display interface according to the detected recognition instruction of the secondary development function, further perform the following operations:
and inserting preset characters into the secondary development functional code of the product software according to a preset secondary development rule to serve as a unique identifier in the secondary development functional code.
Alternatively, the processor 1001 may also be used to call an identification program of the secondary development function stored in the memory 1005, and perform the following operations:
executing the JS file to search the preset characters in codes corresponding to the display interface;
and when the preset characters are found, identifying page elements secondarily developed in the display interface by the product software according to the preset characters.
Optionally, the processor 1001 may be further configured to invoke the recognition program of the secondary development function stored in the memory 1005, and before executing the step of embedding the preset JS file in the current display interface according to the detected recognition instruction of the secondary development function, further perform the following operations:
and installing a preset browser plug-in the browser, wherein the browser plug-in comprises a preset JS file and a secondary development function identification trigger switch.
Alternatively, the processor 1001 may also be used to call an identification program of the secondary development function stored in the memory 1005, and perform the following operations:
storing the JS file in a storage area of the browser;
executing the JS file in the storage area to identify a page element of the secondary development of the product software in the display interface.
Optionally, the processor 1001 may be further configured to call an identification program of a secondary development function stored in the memory 1005, and further perform the following operation after performing the step of executing the JS file to identify a page element of the secondary development of the product software in the display interface:
caching the identified page elements in a preset storage area;
optionally, the processor 1001 may be further configured to call an identification program of the secondary development function stored in the memory 1005, and after performing the step of marking the page element, perform the following operation:
and when the secondary development function identification stopping instruction is detected, extracting the page elements in the storage area to replace the page elements with the added identifications.
Alternatively, the processor 1001 may also be used to call an identification program of the secondary development function stored in the memory 1005, and perform the following operations:
and repeatedly executing the JS file and repeatedly marking the page element according to a preset time interval to identify the secondarily developed page element of the product software in different display interfaces.
Based on the above hardware structure, the overall conception of each embodiment of the identification method of the secondary development function of the present invention is presented.
In the embodiment of the invention, with the development of science and technology, product software on the market needs to be developed for the second time in the actual use process after the development of the initial function is completed, and the function of the product software is expanded.
Now, with more and more secondary development function expansion and continuous iteration of initial functions of product software, definition between the expansion functions and the initial functions after secondary development is also more and more blurred, so that business personnel such as sales and service consultants, operation and maintenance personnel, developers and the like are difficult to judge whether the product software functions to be processed belong to secondary development or initial function iteration, and certain internal consumption is caused inside customers or companies.
Therefore, how to realize the secondary development function of quickly identifying product software by service personnel and improve the working efficiency of the service personnel is just like the technical problem to be solved in the field.
In view of the above, the present invention provides a method for identifying a secondary development function, the method for identifying a secondary development function including: when the product software is operated through a browser, implanting a preset JS file into a current display interface according to the detected secondary development function identification instruction; executing the JS file to identify a page element of the secondary development of the product software in the display interface, and marking the page element.
When the terminal equipment runs the product software through the browser, a preset JS file is implanted on the current display interface according to the secondary development function identification instruction detected by the terminal equipment, then the terminal equipment executes the JS file to identify the page element of the secondary development of the product software on the current display interface, and finally the terminal equipment marks the page element when the terminal equipment identifies the page element of the secondary development of the product software on the current display interface.
Therefore, the embodiment of the invention realizes the rapid identification of the secondary development function of the product software by the service personnel by executing the page element of the secondary development function of the JS file identification product software and marking, and improves the working efficiency of the service personnel.
Based on the above general idea of the identification method of the secondary development function of the present invention, various embodiments of the identification method of the secondary development function of the present invention are presented.
In each embodiment of the identification method of the secondary development function of the present invention, the identification method of the secondary development function of the present invention is applied to the above-mentioned terminal device containing product software.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a method for identifying a secondary development function according to the present invention. In a first embodiment of the identification method of a secondary development function of the present invention, the identification method of a secondary development function of the present invention includes:
step S10: when the product software is operated through a browser, implanting a preset JS file into a current display interface according to the detected secondary development function identification instruction;
in this embodiment, when the terminal device runs the product software through its own browser, a preset JS file is immediately embedded in the current display interface according to the function identification instruction detected by itself.
In this embodiment, the JS file is a file with "JS" as an extension, and is written in a javascript (a programming language) scripting language, and is opened and executed in a browser of the terminal device.
Optionally, in a possible embodiment, before the step S10, the method for identifying a secondary development function of the present invention further includes:
step S30: and inserting preset characters into the secondary development functional code of the product software according to a preset secondary development rule to serve as a unique identifier in the secondary development functional code.
In this embodiment, before expanding the secondary development function of the product software, the user makes a development rule of the secondary development of the product software, and the terminal device inserts a preset character into the secondary development function code of the product software as a unique identifier in the secondary function code.
It should be noted that, in this embodiment, the preset characters added by the terminal device in the secondary development function code of the product software are only identifiable by the preset JS file, and no other actual functions exist in the secondary development code of the product software.
In one possible embodiment, the rule of secondary development of a product software is formulated by the user, for example, to mark the key value (identity) corresponding to the menu bar of the secondary development function of the product software, and the key value is unified to be x_beginning, that is, the preset character for inserting the secondary development function code of the product software is x_beginning, and in the secondary development of the product software, not only the menu bar, but also other function pages are x_beginning when the key value exists.
Optionally, in a possible embodiment, before the step S10, the method for identifying a secondary development function of the present invention further includes:
step S40: and installing a preset browser plug-in the browser, wherein the browser plug-in comprises a preset JS file and a secondary development function identification trigger switch.
In this embodiment, the terminal device installs a preset browser plug-in its own browser, where the browser plug-in includes a preset JS file and a function identification trigger switch.
It should be noted that, in this embodiment, the browser plug-in installed in the terminal device is integrated with the JS file and the function identification trigger switch, the terminal device can call the browser plug-in only when the browser page is opened, and the terminal device can execute the JS file only when the function identification trigger switch included in the browser plug-in is opened.
In an exemplary embodiment, in a possible implementation manner, the terminal device installs a preset browser plug-in the google browser, where the plug-in includes a preset JS file and a function identification trigger switch, when a user needs to identify a secondary development function of a product software, the user opens the product software in the google browser, and then the user invokes the browser plug-in the google browser, and detects that the function identification trigger development in the plug-in is triggered, that is, when the terminal device receives a secondary development function identification instruction, the terminal device implants the JS file in the plug-in into a current browser interface, that is, the terminal device implants the JS file in the plug-in into a current application interface of the product software.
Step S20: executing the JS file to identify a page element of the secondary development of the product software in the display interface, and marking the page element.
In this embodiment, when the terminal device detects the secondary development function identification instruction, the terminal device implants a JS file in its current display interface, that is, the terminal device implants a JS file in its browser interface, and then executes the JS file, and when the current display interface of the terminal device is switched to an application interface of the product software, the terminal device can identify a page element of the secondary development function in the current product software display interface by executing the JS file, and then the terminal device marks the identified page element, where the marked pattern is not specifically limited in the embodiment of the present invention.
It should be noted that, in this embodiment, the terminal device opens an application interface of the product software in the browser, so that the JS file executed in the browser identifies the secondary development function of the product software; in addition, the page elements of the secondary development in the product software can be navigation menu bars added through secondary development or page elements of button types added through secondary development, and it should be understood that, in different possible implementations, the page elements of the secondary development function in the product software can be in other different styles, and the identification method of the secondary development function of the invention is not limited to the style of the page elements of the secondary development of the product software.
Alternatively, in a possible embodiment, step S20 may include:
step S201: executing the JS file to search the preset characters in codes corresponding to the display interface;
in this embodiment, the terminal device executes the JS file on the browser page, after the JS file is opened, the code of the current display interface can be queried, and when the current display interface of the terminal device is switched to the application interface of the product software, the terminal device enters the preset character in the code layer query code of the product software by executing the JS file, wherein the preset character searched by the JS file is the unique identifier inserted by the terminal device in the secondary development function code of the product software.
Step S202: and when the preset characters are found, identifying page elements secondarily developed in the display interface by the product software according to the preset characters.
In this embodiment, the terminal device executes the JS file on the current display page, searches for a preset character in the code corresponding to the current display interface by executing the file, where the preset character is inserted into the code of secondary development of the product software, that is, the terminal device searches for whether the code corresponding to the current display interface has the code of secondary development of the product software, and when the terminal device searches for the preset character by executing the JS file, it indicates that there is a function of secondary development of the product software on the current display interface, the terminal device can find page elements of secondary development of the product software on the current display interface by identifying the code where the preset character is located.
The invention provides a recognition method of a secondary development function, which comprises the following steps: when the product software is operated through a browser, implanting a preset JS file into a current display interface according to the detected secondary development function identification instruction; executing the JS file to identify a page element of the secondary development of the product software in the display interface, and marking the page element.
When the product software is run through the browser of the terminal equipment, a preset JS file is immediately implanted in the current display interface according to the function identification instruction detected by the terminal equipment, then the terminal equipment executes the JS file in the current display interface, when the current display interface of the terminal equipment is switched to the application interface of the product software, the terminal equipment can identify page elements of the secondary development function in the current product software display interface by executing the JS file, and finally, the terminal equipment marks the identified page elements, and the identified patterns are not particularly limited in the embodiment of the invention.
Therefore, the method and the device execute the JS file to identify the page element of the secondary development function of the product software through the terminal equipment and mark the page element, thereby realizing the rapid identification of the secondary development function of the product software by the business personnel and improving the working efficiency of the business personnel.
Further, based on the above-described first embodiment of the identification method of the secondary development function of the present invention, a second embodiment of the identification method of the secondary development function of the present invention is proposed.
In this embodiment, the method for identifying a secondary development function of the present invention may further include:
step A10: and repeatedly executing the JS file and repeatedly marking the page element according to a preset time interval to identify the secondarily developed page element of the product software in different display interfaces.
In this embodiment, the terminal device repeatedly executes the steps of executing the JS file and marking the page element in the step S20 according to the preset time interval, and by repeatedly executing the steps, the terminal device can identify the page elements of the secondary development functions in different display interfaces of the product software.
In an exemplary embodiment, when detecting the secondary development function identification instruction, the terminal device implants the JS file in the browser plug-in into the current display interface, then the terminal device controls the JS file to execute once every 2 seconds, when the terminal device finds the page element of the secondary development of the product software in the current display interface of the browser webpage, a mark is added on the page element, as shown in fig. 3, in the navigation menu on the current product software display interface, the user counts, announces information, intelligent guidance, online API (Application Programming Interface application programming interface), operation log, message management and second learning hall are page elements of the secondary development of the product software, the terminal device adds a red frame on the page elements of the secondary development functions, and the user can intuitively see that the function corresponding to the page element with the red frame in the current display interface of the terminal device is the secondary development function of the product software.
In addition, in a feasible embodiment, the terminal device further comprises an identification statistics system, the terminal device can count the identification times of the secondary development function of the product software so as to enable a user to conduct data analysis of the usage condition of the secondary development function, and when the analysis result shows that the usage times of the secondary development function reach a preset threshold value, the user is prompted to add the secondary development function as an initial function of the product software.
Therefore, the method and the device execute the JS file to identify the page element of the secondary development function of the product software through the terminal equipment and mark the page element, thereby realizing the rapid identification of the secondary development function of the product software by the business personnel and improving the working efficiency of the business personnel.
Further, based on the first embodiment and/or the second embodiment of the identification method of the secondary development function of the present invention described above, a third embodiment of the identification method of the secondary development function of the present invention is proposed.
In this embodiment, the method for identifying secondary development functions of the present invention includes the step S20: executing the JS file to identify page elements of the secondary development of the product software in the display interface may further include:
step S203: storing the JS file in a preset storage area;
in this embodiment, after detecting the secondary development function identification instruction, the terminal device implants the JS file into its own display interface, and then, the terminal device immediately saves the JS file into its own preset storage area.
It should be noted that, in this embodiment, if the terminal device implants the JS file into the current display interface through the browser plug-in, the execution of the JS file can only be applied to the current display interface of the terminal device; after the terminal device saves the JS file in a preset storage area, when the terminal device switches the current display interface, the JS file executed according to a preset time interval can still act on the new display interface of the terminal device, and the JS file is not required to be implanted into the current new display interface again.
Step S204: executing the JS file in the storage area to identify a page element of the secondary development of the product software in the display interface.
In this embodiment, the terminal device executes the JS file stored in the storage area of itself, and identifies the page element added by secondary development in the product software by searching for a preset character as a unique identifier in the code of secondary development of the product software.
In this embodiment, when the terminal device detects the secondary development function identification instruction, the terminal device implants a JS file in its current display interface, and rapidly saves the JS file in its preset storage area, then the terminal device executes the JS file in the storage area to find a preset character x_ in the code of the product software, and when the terminal device finds the preset character x_, the terminal device finds a page element corresponding to the secondary development function of the product software in the current display interface.
Optionally, in a possible embodiment, in step S20 above: after executing the JS file to identify the page element of the secondary development of the product software in the display interface, an embodiment of the present invention may further include:
step B10: caching the identified page elements in a preset storage area;
in this embodiment, when the terminal device detects the secondary development function identification instruction, the terminal device executes the JS file in the browser plug-in, identifies the page element corresponding to the secondary development function of the product software on the current display interface by executing the JS file, and caches the identified page element in the storage area preset by itself.
Based on this, in one possible embodiment, in step S20 described above: after the step of marking the page element, the embodiment of the present invention may further include:
step B20: and when the secondary development function identification stopping instruction is detected, extracting the page elements in the storage area to replace the page elements with the added identifications.
In this embodiment, when the terminal device detects the function identification stop instruction, that is, when the user does not need to distinguish the secondary development function and the initial function of the product software at this time, the terminal device takes out the page element corresponding to the secondary development function of the current display interface cached by the terminal device, and replaces the marked page element in the display interface at this time with the page element.
In this embodiment, as shown in fig. 4, the terminal device brakes the two-way (two-way development) extension development rule, and then integrates the browser plugin, where the browser plugin includes the two-way extension flag switch and the JS file, when the terminal device detects that the two-way extension flag switch in the plugin is turned on, the terminal device immediately inserts the JS file in the plugin to the current page, then removes the JS file to the memory for execution, and controls the JS file to execute once for 2 seconds, when the current page is found out by executing the JS file, that is, the page element of the two-way development function in the current page is found out to be the original element pattern of the current page, then the terminal device caches the original element pattern of the current page, and adds different patterns to cover the original element pattern according to different element types, and then, when the user switches pages, since the two-way extension flag switch in the current new page is executed once every 2 seconds, the terminal device finds out the page element of the current page, when the two-way extension flag switch in the plug-in is turned off, the terminal device closes 2 seconds in the current page, then finds out the page element of the current page, and then the original element of the current page is restored.
In this embodiment, after detecting the secondary development function identification instruction, the method for identifying the secondary development function implants the JS file into the display interface of the terminal device, and then the terminal device immediately saves the JS file into the preset storage area of the terminal device, so that the JS file can be continuously executed after the display interface of the terminal device is switched without being re-implanted into the current new display interface, the working efficiency of service personnel can be improved, and when detecting the function identification stop instruction, the terminal device can extract the original page pattern of the current application interface of the product software to replace the page pattern marked currently, thereby more intuitively prompting the user that the identification process of the current secondary development function is finished, and if the user needs to identify the secondary development function again, the identification instruction of the secondary development function can be input again.
In addition, the embodiment of the invention also provides a recognition device of the secondary development function, and the recognition device of the secondary development function is applied to terminal equipment containing product software.
Referring to fig. 5, fig. 5 is a functional block diagram of an embodiment of a secondary development function recognition device according to the present invention, and as shown in fig. 5, the secondary development function recognition device according to the present invention includes:
the implantation module 10 is configured to implant a preset JS file in a current display interface according to the detected secondary development function identification instruction when the product software is run through the browser;
and the identifying module 20 is configured to execute the JS file to identify a page element of the secondary development of the product software in the display interface, and mark the page element.
Optionally, the identification module 20 includes:
the searching unit is used for executing the JS file to search the preset characters in codes corresponding to the display interface;
the identification unit is used for identifying page elements secondarily developed in the display interface by the product software according to the preset characters when the preset characters are found; and, a page element for executing the JS file in the storage area to identify the secondary development of the product software in the display interface; and the JS file is repeatedly executed and marked for the page elements according to a preset time interval, so that the page elements of the secondary development of the product software in different display interfaces are identified.
And the storage unit is used for storing the JS file in a storage area of the browser.
Optionally, the identification device of the secondary development function of the present invention further includes:
and the marking module is used for inserting preset characters into the secondary development functional code of the product software according to a preset secondary development rule to serve as a unique identifier in the secondary development functional code.
Optionally, the identification device of the secondary development function of the present invention further includes:
the installation module is used for installing a preset browser plug-in the browser, wherein the browser plug-in comprises a preset JS file and a secondary development function identification trigger switch;
the caching module is used for caching the page elements of the secondary development of the product software in a preset storage area;
and the replacement module is used for extracting the page elements in the storage area to replace the page elements with the added marks when the secondary development function identification stop instruction is detected.
The specific embodiments of each functional module of the secondary development function identification device of the present invention during operation are substantially the same as the embodiments of the secondary development function identification method of the present invention described above, and are not described herein.
The present invention also provides a computer storage medium having stored thereon a secondary development function identification program which, when executed by a processor, implements the steps of the secondary development function identification program method according to any one of the embodiments above.
The specific embodiment of the computer storage medium of the present invention is substantially the same as the above embodiments of the identification program method of the secondary development function of the present invention, and will not be described herein.
The present invention also provides a computer program product, which comprises a computer program, wherein the computer program when executed by a processor implements the steps of the method for identifying a secondary development function according to the present invention as described in any of the above embodiments, and is not described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented 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 product software stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a TWS headset or the like) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (5)

1. The identification method of the secondary development function is characterized in that the identification method of the secondary development function is applied to terminal equipment, and the terminal equipment comprises product software;
the identification method of the secondary development function comprises the following steps:
when the product software is operated through a browser, implanting a preset JS file into a current display interface according to the detected secondary development function identification instruction;
executing the JS file to identify a page element of secondary development of the product software in the display interface, and marking the page element;
wherein the step of executing the JS file to identify page elements of the secondary development of the product software in the display interface includes:
executing the JS file to inquire a code corresponding to the display interface, and searching a preset character in the code corresponding to the display interface, wherein the preset character is a unique identifier inserted into the code developed for the second time;
when the preset characters are found, identifying page elements secondarily developed in the display interface by the product software according to the preset characters;
before the step of implanting the preset JS file in the current display interface according to the detected secondary development function identification instruction, the method further includes:
inserting preset characters into the secondary development functional codes of the product software according to preset secondary development rules to serve as unique identifiers of the secondary development functional codes;
before the step of implanting the preset JS file in the current display interface according to the detected secondary development function identification instruction, the method further includes:
installing a preset browser plug-in the browser, wherein the browser plug-in comprises a preset JS file and a secondary development function identification trigger switch;
the step of executing the JS file to identify page elements of the secondary development of the product software in the display interface includes:
storing the JS file in a storage area of the browser;
executing the JS file in the storage area to identify a page element of secondary development of the product software in the display interface;
after the step of executing the JS file to identify page elements of the secondary development of the product software in the display interface, the method further includes:
caching the identified page elements in a preset storage area;
after the step of marking the page element, the method further comprises:
and when the secondary development function identification stopping instruction is detected, extracting the page elements in the storage area to replace the page elements with the added identifications.
2. The method for identifying a secondary development function as in claim 1, wherein the method comprises:
and repeatedly executing the JS file and repeatedly marking the page element according to a preset time interval to identify the secondarily developed page element of the product software in different display interfaces.
3. The recognition device of the secondary development function is characterized in that the device is applied to terminal equipment, and the terminal equipment comprises a browser and product software;
the secondary development function identification device comprises:
the implantation module is used for implanting a preset JS file into the current display interface according to the detected secondary development function identification instruction when the product software is operated through the browser;
the identification module is used for executing the JS file to identify the page element of the secondary development of the product software in the display interface, marking the page element, and executing the JS file to inquire the code corresponding to the display interface, and searching a preset character in the code corresponding to the display interface, wherein the preset character is a unique identifier inserted into the code of the secondary development; when the preset characters are found, identifying page elements secondarily developed in the display interface by the product software according to the preset characters;
the marking module is used for inserting preset characters into the secondary development functional code of the product software according to a preset secondary development rule to serve as a unique identifier of the secondary development functional code;
the installation module is used for installing a preset browser plug-in the browser, wherein the browser plug-in comprises a preset JS file and a secondary development function identification trigger switch;
the identification module comprises:
a storage unit, configured to store the JS file in a storage area of the browser;
an identifying unit, configured to execute the JS file in the storage area to identify, in the display interface, a page element of the secondary development of the product software;
the caching module is used for caching the identified page elements in a preset storage area;
and the replacement module is used for extracting the page elements in the storage area to replace the page elements with the added marks when the secondary development function identification stop instruction is detected.
4. A terminal device, characterized in that the terminal device comprises: memory, a processor and a recognition program of a secondary development function stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the recognition method of a secondary development function as claimed in any one of claims 1 to 2.
5. A computer-readable storage medium, wherein a secondary development function identification program is stored on the computer-readable storage medium, which when executed by a processor, implements the steps of the secondary development function identification method according to any one of claims 1 to 2.
CN202310042341.4A 2023-01-28 2023-01-28 Identification method, device, equipment and medium for secondary development function Active CN116069379B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310042341.4A CN116069379B (en) 2023-01-28 2023-01-28 Identification method, device, equipment and medium for secondary development function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310042341.4A CN116069379B (en) 2023-01-28 2023-01-28 Identification method, device, equipment and medium for secondary development function

Publications (2)

Publication Number Publication Date
CN116069379A CN116069379A (en) 2023-05-05
CN116069379B true CN116069379B (en) 2023-08-04

Family

ID=86181583

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310042341.4A Active CN116069379B (en) 2023-01-28 2023-01-28 Identification method, device, equipment and medium for secondary development function

Country Status (1)

Country Link
CN (1) CN116069379B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293808A (en) * 2016-07-26 2017-01-04 北京北森云计算股份有限公司 The compiling of multilingual cloud realizes the method and system of systemic-function dynamic interception extension
CN110275705A (en) * 2019-06-19 2019-09-24 北京三快在线科技有限公司 Generate method, apparatus, equipment and the storage medium for preloading page code
CN111159030A (en) * 2019-12-24 2020-05-15 联想(北京)有限公司 Program testing method, device, equipment and storage medium
CN111800492A (en) * 2020-06-22 2020-10-20 深圳壹账通智能科技有限公司 Method and device for marking characters in web page, computer equipment and storage medium
CN112363784A (en) * 2020-10-26 2021-02-12 深圳市明源云科技有限公司 Method and device for displaying window in application program
CN112363755A (en) * 2020-11-20 2021-02-12 成都秦川物联网科技股份有限公司 Low-coupling expansion business system based on plug-in engine injection

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10901763B2 (en) * 2018-07-19 2021-01-26 Citrix Systems, Inc. Systems and methods for user interface detection

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293808A (en) * 2016-07-26 2017-01-04 北京北森云计算股份有限公司 The compiling of multilingual cloud realizes the method and system of systemic-function dynamic interception extension
CN110275705A (en) * 2019-06-19 2019-09-24 北京三快在线科技有限公司 Generate method, apparatus, equipment and the storage medium for preloading page code
CN111159030A (en) * 2019-12-24 2020-05-15 联想(北京)有限公司 Program testing method, device, equipment and storage medium
CN111800492A (en) * 2020-06-22 2020-10-20 深圳壹账通智能科技有限公司 Method and device for marking characters in web page, computer equipment and storage medium
CN112363784A (en) * 2020-10-26 2021-02-12 深圳市明源云科技有限公司 Method and device for displaying window in application program
CN112363755A (en) * 2020-11-20 2021-02-12 成都秦川物联网科技股份有限公司 Low-coupling expansion business system based on plug-in engine injection

Also Published As

Publication number Publication date
CN116069379A (en) 2023-05-05

Similar Documents

Publication Publication Date Title
US11403364B2 (en) Method and terminal device for extracting web page content
CN100447743C (en) System and method for localizing JAVA GUI application without modifying source code
CN108399124B (en) Application testing method and device, computer equipment and storage medium
CN111068328B (en) Game advertisement configuration form generation method, terminal equipment and medium
CN107451040B (en) Method and device for positioning fault reason and computer readable storage medium
CN104834837A (en) Binary code anti-obfuscation method based on semanteme
CN111866158B (en) Routing method, routing device, computer equipment and storage medium
CN112256296A (en) Express delivery service APP updating method, device, equipment and storage medium based on Weex
WO2018188380A1 (en) Method and device for adding control identification
CN108268773B (en) Android application upgrade package local storage security detection method
CN110704816A (en) Interface cracking recognition method, device, equipment and storage medium
CN110727595B (en) Application login interface identification method, intelligent terminal and storage medium
CN116069379B (en) Identification method, device, equipment and medium for secondary development function
CN112634896B (en) Operation method of application program on intelligent terminal and intelligent terminal
CN101271408A (en) Method for analyzing stack use in embedded system
WO2023179298A1 (en) Application program updating method and apparatus, application program development method and apparatus, and computer device
CN107450937B (en) Application program running method and running device
CN112965732A (en) Resource package obtaining method, intelligent wearable device and storage medium
CN110727436A (en) Operation interface script execution method and device, terminal equipment and storage medium
CN116451271A (en) Automatic privacy policy extraction method for application software
CN114895884A (en) Method and system for compiling and executing RPA script of terminal equipment
CN109284097B (en) Method, device, system and storage medium for realizing complex data analysis
CN113709154B (en) Browser security processing method and device, computer equipment and storage medium
US20180267680A1 (en) Screen creation apparatus, simulation apparatus and recording medium
CN112699372A (en) Vulnerability processing method and device and computer readable 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