CN112214698A - Information processing method and device - Google Patents

Information processing method and device Download PDF

Info

Publication number
CN112214698A
CN112214698A CN202011058217.XA CN202011058217A CN112214698A CN 112214698 A CN112214698 A CN 112214698A CN 202011058217 A CN202011058217 A CN 202011058217A CN 112214698 A CN112214698 A CN 112214698A
Authority
CN
China
Prior art keywords
url
page
graphic code
application program
target page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011058217.XA
Other languages
Chinese (zh)
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.)
Ruiting Network Technology Shanghai Co ltd
Original Assignee
Ruiting Network Technology Shanghai 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 Ruiting Network Technology Shanghai Co ltd filed Critical Ruiting Network Technology Shanghai Co ltd
Priority to CN202011058217.XA priority Critical patent/CN112214698A/en
Publication of CN112214698A publication Critical patent/CN112214698A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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]
    • 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/9554Retrieval from the web using information identifiers, e.g. uniform resource locators [URL] by using bar codes

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses an information processing method and device. Acquiring page data and a graphic code generation instruction input by a user in a command line interface of an operating system of electronic equipment, wherein the page data at least comprises a URL (uniform resource locator) of a target page and an initialization page parameter; and responding to the graphic code generation instruction, generating a graphic code according to at least the URL and the initialized page parameter based on the graphic code generation control, and displaying the graphic code. And the user scans the graphic code by using the application program to obtain the URL and the initialized page parameter, and displays the target page on the application program at least based on the URL and the initialized page parameter. Therefore, the graphic code can be generated without a browser, so that a user can not manually start the browser on the electronic equipment, and the time can be saved, the complexity of operation of workers is reduced, and the system resources of the electronic equipment are saved.

Description

Information processing method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to an information processing method and apparatus.
Background
Currently, most business platforms can serve a large number of customers through web pages. For example, a worker of the service platform may develop an H5(HTML5, Hyper Text Markup Language 5, 5 th edition) page so that a client can access the H5 page on the terminal based on a browser, and thus enjoy the service provided by the service platform through the H5 page.
With the rapid development of the technology, more and more applications can be used on the terminal, in order to increase channels through which the client can enjoy the services provided by the service platform, so as to improve the convenience of the client for enjoying the services provided by the service platform, the staff of the service platform can develop the applications corresponding to the service platform, the client can install the applications on the terminal of the client, then access the page provided by the service platform based on the applications, and further enjoy the services provided by the service platform through the page.
Since the H5 page accessible by the browser has been previously developed, in order to avoid increasing the development workload, the worker may not develop a native page of the same content as the H5 page accessed by the application, but may make the H5 page accessible by the browser, which has been previously developed, compatible with the application, so that a wide range of customers can also access the H5 page based on the application.
However, in the stage of developing the application, after the worker has made the H5 page that has been developed before compatible with the application, it is necessary to test whether the H5 page displayed on the application is abnormal, and if so, it is necessary to perform a modification debugging work on the application until the H5 page displayed on the application is normal.
Disclosure of Invention
The application discloses an information processing method and device.
In a first aspect, the present application shows an information processing method applied to an electronic device, the method including:
acquiring page data input by a user in a command line interface of an operating system of the electronic equipment, wherein the page data at least comprises a Uniform Resource Locator (URL) of a target page and an initialization page parameter of the target page;
acquiring a graphic code generation instruction input by the user in the command line interface, wherein the graphic code generation instruction is used for generating a graphic code at least according to the URL and the initialized page parameter;
generating a graphic code based on a graphic code generation control according to at least the URL and the initialization page parameter in response to the graphic code generation instruction;
and displaying the graphic code so that the user can scan the graphic code by using an application program to obtain the URL and the initialized page parameter, and displaying the target page on the application program at least based on the URL and the initialized page parameter.
In an optional implementation manner, the generating the graphic code based on the graphic code generation control according to at least the URL and the initialization page parameter includes:
determining URL types supported by the application program;
judging whether the URL type based on the URL of the target page is the same as the URL type supported by the application program or not;
converting the URL of the target page into a target URL of a URL type supported by the application program under the condition that the URL type based on which the URL of the target page is based is different from the URL type supported by the application program;
and generating the graphic code at least comprising the target URL and the initialized page parameter based on the graphic code generation control.
In an alternative implementation, the page data further includes an identification of the application program for displaying the target page;
the determining the URL types supported by the application program comprises:
and identifying the URL type supported by the application program according to the identification of the application program in the page data.
In an optional implementation manner, the identifying, according to the identifier of the application program in the page data, a URL type supported by the application program includes:
and searching the URL type corresponding to the identifier of the application program in the corresponding relation between the identifier of the application program and the URL type, and taking the URL type as the URL type supported by the application program.
In a second aspect, the present application shows an information processing apparatus applied to an electronic device, the apparatus comprising:
the first acquisition module is used for acquiring page data input by a user in a command line interface of an operating system of the electronic equipment, wherein the page data at least comprises a Uniform Resource Locator (URL) of a target page and an initialization page parameter of the target page;
the second acquisition module is used for acquiring a graphic code generation instruction input by the user in the command line interface, wherein the graphic code generation instruction is used for generating a graphic code at least according to the URL and the initialized page parameter;
the generating module is used for responding to the graphic code generating instruction and generating the graphic code according to the URL and the initialized page parameter at least based on a graphic code generating control;
and the display module is used for displaying the graphic code so that the user can scan the graphic code by using an application program to obtain the URL and the initialized page parameter, and displaying the target page on the application program at least based on the URL and the initialized page parameter.
In an optional implementation manner, the generating module includes:
a determining unit, configured to determine a URL type supported by the application;
a judging unit, configured to judge whether a URL type based on which the URL of the target page is based is the same as a URL type supported by the application program;
a conversion unit configured to convert the URL of the target page into a target URL of a URL type supported by the application, in a case where the URL type on which the URL of the target page is based is different from the URL type supported by the application;
and the generating unit is used for generating the graphic code at least comprising the target URL and the initialized page parameter based on the graphic code generating control.
In an alternative implementation, the page data further includes an identification of the application program for displaying the target page;
the determining unit is specifically configured to: and identifying the URL type supported by the application program according to the identification of the application program in the page data.
In an optional implementation manner, the determining unit is specifically configured to: and searching the URL type corresponding to the identifier of the application program in the corresponding relation between the identifier of the application program and the URL type, and taking the URL type as the URL type supported by the application program.
In a third aspect, the present application shows an electronic device comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the information processing method according to the first aspect.
In a fourth aspect, the present application shows a non-transitory computer-readable storage medium having instructions which, when executed by a processor of an electronic device, enable the electronic device to perform the information processing method according to the first aspect.
In a fifth aspect, the present application shows a computer program product, in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the information processing method according to the first aspect.
The technical scheme provided by the application can comprise the following beneficial effects:
when the target page displayed on the application program needs to be tested whether to be abnormal or not, the staff can control the application program to display the target page.
In one approach, the two-dimensional code may be generated and displayed by a browser on the electronic device. For example, a worker may manually start a browser on the electronic device, and input a URL of a target page and an initialization page parameter of the target page in an address bar on the browser, and the browser may generate a two-dimensional code according to the URL of the target page and the initialization page parameter of the target page, and display the two-dimensional code. And then, the staff can scan the two-dimensional code by using the application program, then the application program obtains the URL of the target page and the initialized page parameter of the target page, the page data of the target page is obtained according to the URL of the target page and the initialized page parameter of the target page, and then the page data of the target page is rendered, so that the target page is displayed on the application program, and then the staff can check whether the target page displayed on the application program is abnormal or not.
However, in the above manner, whenever it is necessary to test whether or not one page displayed on the application program is abnormal, a worker is required to manually start the browser on the electronic device. The action of manually starting the browser not only needs to consume time and can increase the operation complexity of workers, but also occupies system resources of the electronic equipment after the browser is started.
Therefore, time saving, reduction of the operation complexity of the worker, and saving of system resources of the electronic device are required.
The inventor finds that: for example, before testing the application program, a worker needs to start the command line interface on the electronic device, input an instruction for entering the test environment in the command line interface, and then the electronic device enters the test environment through the command line interface according to the instruction, and then can test the application program on the electronic device, so that the command line interface is equivalent to an interface between the electronic device and the test environment. If the electronic device exits the command line interface, the electronic device exits the test environment, and the application cannot be tested, so that the command line interface needs to be started on the electronic device all the time during the process of testing the application.
Moreover, in the process of testing the application program on the electronic device, a worker often needs to use a command line interface of an operating system of the electronic device, so that the worker usually always opens the command line interface of the electronic device, so as to perform development, debugging, testing, initialization and the like on the application program through the command line interface when needed. Wherein, the command line interface can input the instruction in the form of characters.
Therefore, the method and the device can support a user to input page data and a graphic code generating instruction in a command line interface of an operating system of the electronic equipment, wherein the page data at least comprises the URL of a target page and the initialized page parameter of the target page, and the graphic code generating instruction is used for generating the graphic code at least according to the URL of the target page and the initialized page parameter. And then the electronic equipment acquires page data and a graphic code generation instruction input by a user in a command line interface of an operating system of the electronic equipment, responds to the graphic code generation instruction, generates a graphic code at least according to the URL of the target page and the initialized page parameter based on the graphic code generation control, and displays the graphic code. And the user scans the graphic code by using the application program to obtain the URL and the initialized page parameter of the target page, and displays the target page on the application program at least based on the URL and the initialized page parameter of the target page.
Therefore, the method and the device support that the staff can control the electronic equipment to generate and display the graphic codes by means of the command line interface started on the electronic equipment, so that the user can scan the graphic codes by using the application program, the graphic codes can be generated without the browser, the user can not manually start the browser on the electronic equipment, and the time can be saved, the complexity of operation of the staff is reduced, and the system resources of the electronic equipment are saved.
Drawings
FIG. 1 is a flow chart of the steps of an information processing method of the present application;
FIG. 2 is a flow chart of the steps of a method of generating a graphical code of the present application;
fig. 3 is a block diagram of a structure of an information processing apparatus of the present application;
FIG. 4 is a block diagram of an electronic device shown in the present application;
fig. 5 is a block diagram of an electronic device shown in the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
In the present application, referring to fig. 1, a flowchart illustrating steps of an information processing method of the present application is shown, where the method may specifically include the following steps:
in step S101, page data input by a user in a command line interface of an operating system of the electronic device is obtained, where the page data at least includes a URL (Uniform Resource Locator) of a target page and an initialization page parameter of the target page.
The user in the present application may be a worker or the like who develops the application, for example, a developer or a tester is included.
The electronic device in the present application includes an electronic device used by a user when testing an application program, and may include a desktop computer or a notebook computer.
The command line interface includes CMD in the Windows operating system, MAC Terminal (Terminal) in the MAC operating system (similar to CMD in the Windows operating system), Linux Terminal (Terminal) in the Linux operating system (similar to CMD in the Windows operating system), and the like.
The initialization page parameters of the target page include: the function name of a jump function for jumping from one page to another page, the related configuration items of the page, the name of a service line corresponding to the page, the name (title) of the page, and the like. The specific initialization page parameters may be determined according to actual situations, which is not limited in this application.
In the process of developing the application program, in order to test whether the H5 page displayed in the application program is abnormal, a target page needs to be displayed in the application program at first.
For example, the inventor finds that, during the process of testing an application program, a user generally needs to always open a command line interface of an operating system of an electronic device on the electronic device, so that the electronic device can enter a test environment to test the application program, and the user performs related configuration work on the test of the application program by using the command line interface of the operating system when necessary.
Therefore, under the condition that the target page needs to be displayed in the application program, the user can input the page data of the target page in the command line interface of the operating system of the electronic device, and the electronic device can acquire the page data of the target page through the command line interface.
In step S102, a graphic code generation instruction input by a user in the command line interface is obtained, where the graphic code generation instruction is used to generate a graphic code at least according to the URL of the target page and the initialized page parameter.
In the application, after the user inputs the page data of the target page in the command line interface of the operating system of the electronic device, a graphic code generation instruction can be further input in the command line interface of the operating system of the electronic device, so that the electronic device can be controlled to generate and display a graphic code at least comprising the URL of the target page and the initialized page parameter through the command line interface, the user can scan the graphic code by using an application program on the mobile terminal, the target page is displayed on the application program at least based on the URL of the target page and the initialized page parameter in the graphic code, and then the user can check whether the target page is normal or abnormal on the application program.
And under the condition that the target page is abnormal, the user can modify and debug the application program on the electronic equipment until the target page can be normally displayed on the application program.
Under the condition that the target page is normal, the test on the target page can be finished, and other pages displayed on the application program can be continuously detected to be normal or abnormal.
In this application, the command line interface of the operating system is loaded in the operating system before the vendor of the operating system of the electronic device issues the operating system, and in general, the command line interface of the operating system of the electronic device can recognize a specific command supported by the vendor, so that if the user inputs the specific command supported by the vendor in the command line interface of the operating system of the electronic device, the operating system can recognize the specific command and execute the specific command.
However, if the user inputs a command that is not supported by the vendor in the command line interface of the operating system of the electronic device, the operating system cannot recognize the command and cannot execute the command.
The command line interface of the operating system is likely to fail to recognize the page data of the target page and also likely to fail to recognize the graphic code generation instruction.
Therefore, in order to enable the command line interface of the operating system to recognize the page data and the graphic code generation instruction of the target page, a user can develop a component in advance, the component is used for recognizing the page data and the graphic code generation instruction of the target page, the component is installed on the operating system of the electronic equipment, and the command line interface is bound with the component, so that the command line interface can recognize the page data and the graphic code generation instruction of the target page through the component, and therefore the command line interface has the function of recognizing the page data and the graphic code generation instruction of the target page.
The component comprises "@ ajk/qrcli" and the like, wherein inquire.js scripts and the like can be included in the "@ ajk/qrcli".
The graphic code generation instruction may include a "qrcli" command or the like.
In step S103, in response to the graphic code generation instruction, a graphic code is generated based on the graphic code generation control according to at least the URL of the target page and the initialization page parameter.
In the present application, the graphic code may include a two-dimensional code, a barcode, and the like. The graphic code generation control comprises qrcode-terminal and the like.
In one embodiment, the generated graphic code may include at least the URL of the target page and the initialization page parameter.
In the present application, the command line interface often does not have the function of generating and displaying a graphic code. Accordingly, to enable an electronic device to generate and graph a graphical code and display the graphical code at a command line interface for scanning by a user through an application.
In the application, a user can install the graphic code generation control on an operating system of the electronic equipment in advance and bind the graphic code generation control with the command line interface.
Therefore, the command line interface of the electronic equipment can call the graphic code generation control through the graphic code generation instruction, so that the graphic code generation control generates the graphic code according to the page data received by the command line interface.
For example, after the user inputs page data in the command line interface, a graphic code generation instruction may be further input in the command line interface, and after the electronic device receives the graphic code generation instruction through the command line interface, the electronic device may call the graphic code generation control to generate a graphic code according to the page data. For example, the command line interface may transmit the page data to the graphic code generation control, and then the graphic code generation control generates the graphic code according to the page data transmitted by the command line interface, for example, generates the graphic code including at least the URL of the target page and the initialized page parameter, and then transmits the generated graphic code to the command line interface, and the command line interface may receive the graphic code transmitted by the graphic code generation control, that is, the electronic device may obtain the graphic code based on the command line interface, and then may execute step S104.
In step S104, the graphic code is displayed, so that the user scans the graphic code to obtain the URL of the target page and the initialization page parameter using the application program, and displays the target page on the application program based on at least the URL of the target page and the initialization page parameter.
In the present application, the electronic device may display the graphical code directly in the command line interface.
When the target page displayed on the application program needs to be tested whether to be abnormal or not, the staff can control the application program to display the target page.
In one approach, the two-dimensional code may be generated and displayed by a browser on the electronic device. For example, a worker may manually start a browser on the electronic device, and input a URL of a target page and an initialization page parameter of the target page in an address bar on the browser, and the browser may generate a two-dimensional code according to the URL of the target page and the initialization page parameter of the target page, and display the two-dimensional code. And then, the staff can scan the two-dimensional code by using the application program, then the application program obtains the URL of the target page and the initialized page parameter of the target page, the page data of the target page is obtained according to the URL of the target page and the initialized page parameter of the target page, and then the page data of the target page is rendered, so that the target page is displayed on the application program, and then the staff can check whether the target page displayed on the application program is abnormal or not.
However, in the above manner, whenever it is necessary to test whether or not one page displayed on the application program is abnormal, a worker is required to manually start the browser on the electronic device. The action of manually starting the browser not only needs to consume time and can increase the operation complexity of workers, but also occupies system resources of the electronic equipment after the browser is started.
Therefore, time saving, reduction of the operation complexity of the worker, and saving of system resources of the electronic device are required.
The inventor finds that: for example, before testing the application program, a worker needs to start the command line interface on the electronic device, input an instruction for entering the test environment in the command line interface, and then the electronic device enters the test environment through the command line interface according to the instruction, and then can test the application program on the electronic device, so that the command line interface is equivalent to an interface between the electronic device and the test environment. If the electronic device exits the command line interface, the electronic device exits the test environment, and the application cannot be tested, so that the command line interface needs to be started on the electronic device all the time during the process of testing the application.
Moreover, in the process of testing the application program on the electronic device, a worker often needs to use a command line interface of an operating system of the electronic device, so that the worker usually always opens the command line interface of the electronic device, so as to perform development, debugging, testing, initialization and the like on the application program through the command line interface when needed. Wherein, the command line interface can input the instruction in the form of characters.
Therefore, the method and the device can support a user to input page data and a graphic code generating instruction in a command line interface of an operating system of the electronic equipment, wherein the page data at least comprises the URL of a target page and the initialized page parameter of the target page, and the graphic code generating instruction is used for generating the graphic code at least according to the URL of the target page and the initialized page parameter. And then the electronic equipment acquires page data and a graphic code generation instruction input by a user in a command line interface of an operating system of the electronic equipment, responds to the graphic code generation instruction, generates a graphic code at least according to the URL of the target page and the initialized page parameter based on the graphic code generation control, and displays the graphic code. And the user scans the graphic code by using the application program to obtain the URL and the initialized page parameter of the target page, and displays the target page on the application program at least based on the URL and the initialized page parameter of the target page.
Therefore, the method and the device support that the staff can control the electronic equipment to generate and display the graphic codes by means of the command line interface started on the electronic equipment, so that the user can scan the graphic codes by using the application program, the graphic codes can be generated without the browser, the user can not manually start the browser on the electronic equipment, and the time can be saved, the complexity of operation of the staff is reduced, and the system resources of the electronic equipment are saved.
The URL type of the URL of the target page is a URL type supported by the browser, and the target page can be directly accessed on the browser based on the URL of the target page.
In this way, if the URL type supported by the application is the same as the URL type supported by the browser, after the application obtains the URL of the target page and the initialization parameter of the target page, the application may identify the URL of the target page, and then the application may obtain the page data of the target page based on the URL of the target page and the initialization parameter of the target page, and then render the page data of the target page, thereby displaying the target page on the application.
However, in one possible scenario, the URL types supported by the application are different from the URL types supported by the browser.
Also, in another possible scenario, sometimes a plurality of applications may be developed separately, and in each of the plurality of applications, a native page having the same content as the target page needs to be developed separately.
Since the target page accessible by the browser has been previously developed, in order to avoid an increase in development workload, the worker may not develop a native page having the same content as the target page accessed by the application, but may separately make the target page accessible by the browser, which has been previously developed, compatible with each application, so that a wide range of users can access the target page based on each application. Thus, it is necessary to test whether or not the target page displayed on each application program is abnormal.
There may be differences between URL types supported by different applications, and the URL types supported by the respective applications are different from the URL types supported by the browser.
For example, assume that the URL based on the target page that the browser can access is "http:// m.anjuke. com/sh/xinfang/".
Wherein "http" is a Protocol header of a HyperText Transfer Protocol (HyperText Transfer Protocol) supported by a browser, "m.anjuke.com" is a host address of a guest, "sh" is a page of a shanghai region in a home page of the guest, and "xinfang" is a sub-page about a new house in the page of the shanghai region.
That is, the page corresponding to the URL "http:// m.anjuke. com/sh/xinfang/" is the page of the Shanghai new house of the lodger.
However, assume that the application includes application "58 is city-together" and application "live guest", etc.
Taking the application program "live guest" as an example for illustration, the protocol supported by the application program "live guest" is the live guest protocol, and based on the URL of the page of the shanghai new house that the application program "live guest" can access is:
“ajkdemo://aaa/bbb/commonparams=%7B%22type%22%3A%22common%22%2C%22url%22%3A%22https%3A%2F%2Fm.anjuke.com%2Fsh%2Fxinfang%2F%22%”。
wherein, "ajkddemo" is the protocol header of the transport protocol supported by the inhabitant, "aaa/bbb/common? "is the transmission route.
Second, the URL type of the URL based on the target page that the browser can access is different from the URL type of the URL based on the target page that the application "resident guest" can access. For example, the format of the URL, the delimiters in the URL, the location of different parameters in the URL, etc. are all different.
Each application program can only identify the URL of the URL type supported by the application program, but cannot identify the URL of the URL type not supported by the application program, and for the URL of the URL type not supported by the application program, the application program cannot acquire the page data of the corresponding page through the URL, so that the page cannot be displayed.
Thus, in one embodiment of the present application, referring to fig. 2, step S103 includes:
in step S201, URL types supported by the application are determined.
In the present application, the page data input by the user in the command line interface may further include an identifier of an application program used for displaying the target page, and the application program may be an application program that the user currently needs to test.
As such, in the present application, the URL types supported by the application may be identified according to the identification of the application in the page data.
For example, in an embodiment of the present application, for any application program that needs to be tested, the identifier of the application program and the URL type supported by the application program may be stored in the correspondence between the identifier of the application program and the URL type in advance, so that when the URL type supported by the application program is identified according to the identifier of the application program in the page data, the URL type corresponding to the identifier of the application program may be searched in the correspondence between the identifier of the application program and the URL type, and may be used as the URL type supported by the application program.
In step S202, it is determined whether the URL type on which the URL of the target page is based is the same as the URL type supported by the application.
In the case where the URL type on which the URL of the target page is based is different from the URL types supported by the application, the URL of the target page is converted into a target URL of a URL type supported by the application in step S203.
In the present application, the respective types of URLs supported by different applications have respective formats, which include the styles of separators and the positions of different URL parameters in the URLs, and the protocols supported by the respective types.
In this step, each URL parameter may be extracted from the URL of the target page, and then the target URL may be generated according to the application support protocol, each extracted URL parameter, and the URL format supported by the application.
In step S204, a graphic code including at least the target URL and the initialization page parameter is generated based on the graphic code generation control.
This step can be referred to the related description of step S103, and will not be described in detail here.
In the case where the URL type on which the URL of the target page is based is the same as the URL type supported by the application program, in step S205, the graphic code generation control generates a graphic code including at least the URL of the target page and the initialization page parameter based on the graphic code.
This step can be referred to the related description of step S103, and will not be described in detail here.
It should be noted that for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art will appreciate that the embodiments described in the specification are exemplary embodiments and that no single embodiment is necessarily required for all aspects of the invention.
Referring to fig. 3, a block diagram of an information processing apparatus according to the present application is shown, and the apparatus may specifically include the following modules:
a first obtaining module 11, configured to obtain page data input by a user in a command line interface of an operating system of the electronic device, where the page data at least includes a uniform resource locator URL of a target page and an initialization page parameter of the target page;
a second obtaining module 12, configured to obtain a graphic code generation instruction input by the user in the command line interface, where the graphic code generation instruction is used to generate a graphic code according to at least the URL and the initialized page parameter;
a generating module 13, configured to generate, in response to the graphic code generating instruction, a graphic code based on a graphic code generating control according to at least the URL and the initialization page parameter;
a display module 14, configured to display the graphic code, so that the user scans the graphic code using an application program to obtain the URL and the initialization page parameter, and displays the target page on the application program based on at least the URL and the initialization page parameter.
In an optional implementation manner, the generating module includes:
a determining unit, configured to determine a URL type supported by the application;
a judging unit, configured to judge whether a URL type based on which the URL of the target page is based is the same as a URL type supported by the application program;
a conversion unit configured to convert the URL of the target page into a target URL of a URL type supported by the application, in a case where the URL type on which the URL of the target page is based is different from the URL type supported by the application;
and the generating unit is used for generating the graphic code at least comprising the target URL and the initialized page parameter based on the graphic code generating control.
In an alternative implementation, the page data further includes an identification of the application program for displaying the target page;
the determining unit is specifically configured to: and identifying the URL type supported by the application program according to the identification of the application program in the page data.
In an optional implementation manner, the determining unit is specifically configured to: and searching the URL type corresponding to the identifier of the application program in the corresponding relation between the identifier of the application program and the URL type, and taking the URL type as the URL type supported by the application program.
When the target page displayed on the application program needs to be tested whether to be abnormal or not, the staff can control the application program to display the target page.
In one approach, the two-dimensional code may be generated and displayed by a browser on the electronic device. For example, a worker may manually start a browser on the electronic device, and input a URL of a target page and an initialization page parameter of the target page in an address bar on the browser, and the browser may generate a two-dimensional code according to the URL of the target page and the initialization page parameter of the target page, and display the two-dimensional code. And then, the staff can scan the two-dimensional code by using the application program, then the application program obtains the URL of the target page and the initialized page parameter of the target page, the page data of the target page is obtained according to the URL of the target page and the initialized page parameter of the target page, and then the page data of the target page is rendered, so that the target page is displayed on the application program, and then the staff can check whether the target page displayed on the application program is abnormal or not.
However, in the above manner, whenever it is necessary to test whether or not one page displayed on the application program is abnormal, a worker is required to manually start the browser on the electronic device. The action of manually starting the browser not only needs to consume time and can increase the operation complexity of workers, but also occupies system resources of the electronic equipment after the browser is started.
Therefore, time saving, reduction of the operation complexity of the worker, and saving of system resources of the electronic device are required.
The inventor finds that: for example, before testing the application program, a worker needs to start the command line interface on the electronic device, input an instruction for entering the test environment in the command line interface, and then the electronic device enters the test environment through the command line interface according to the instruction, and then can test the application program on the electronic device, so that the command line interface is equivalent to an interface between the electronic device and the test environment. If the electronic device exits the command line interface, the electronic device exits the test environment, and the application cannot be tested, so that the command line interface needs to be started on the electronic device all the time during the process of testing the application.
Moreover, in the process of testing the application program on the electronic device, a worker often needs to use a command line interface of an operating system of the electronic device, so that the worker usually always opens the command line interface of the electronic device, so as to perform development, debugging, testing, initialization and the like on the application program through the command line interface when needed. Wherein, the command line interface can input the instruction in the form of characters.
Therefore, the method and the device can support a user to input page data and a graphic code generating instruction in a command line interface of an operating system of the electronic equipment, wherein the page data at least comprises the URL of a target page and the initialized page parameter of the target page, and the graphic code generating instruction is used for generating the graphic code at least according to the URL of the target page and the initialized page parameter. And then the electronic equipment acquires page data and a graphic code generation instruction input by a user in a command line interface of an operating system of the electronic equipment, responds to the graphic code generation instruction, generates a graphic code at least according to the URL of the target page and the initialized page parameter based on the graphic code generation control, and displays the graphic code. And the user scans the graphic code by using the application program to obtain the URL and the initialized page parameter of the target page, and displays the target page on the application program at least based on the URL and the initialized page parameter of the target page.
Therefore, the method and the device support that the staff can control the electronic equipment to generate and display the graphic codes by means of the command line interface started on the electronic equipment, so that the user can scan the graphic codes by using the application program, the graphic codes can be generated without the browser, the user can not manually start the browser on the electronic equipment, and the time can be saved, the complexity of operation of the staff is reduced, and the system resources of the electronic equipment are saved.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
Fig. 4 is a block diagram of an electronic device 800 shown in the present application. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 4, electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, images, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 806 provides power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in the temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives broadcast signals or broadcast operation information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the electronic device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 5 is a block diagram of an electronic device 1900 shown in the present application. For example, the electronic device 1900 may be provided as a server.
Referring to fig. 5, electronic device 1900 includes a processing component 1922 further including one or more processors and memory resources, represented by memory 1932, for storing instructions, e.g., applications, executable by processing component 1922. The application programs stored in memory 1932 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1922 is configured to execute instructions to perform the above-described method.
The electronic device 1900 may also include a power component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input/output (I/O) interface 1958. The electronic device 1900 may operate based on an operating system stored in memory 1932, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one of skill in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal 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 terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The information processing method and apparatus provided by the present application are introduced in detail, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for the ordinary workers in the field, according to the idea of the present application, the specific implementation and the application scope may be changed, and in summary, the content of the present specification should not be construed as limiting the present application.

Claims (10)

1. An information processing method applied to an electronic device, the method comprising:
acquiring page data input by a user in a command line interface of an operating system of the electronic equipment, wherein the page data at least comprises a Uniform Resource Locator (URL) of a target page and an initialization page parameter of the target page;
acquiring a graphic code generation instruction input by the user in the command line interface, wherein the graphic code generation instruction is used for generating a graphic code at least according to the URL and the initialized page parameter;
generating a graphic code based on a graphic code generation control according to at least the URL and the initialization page parameter in response to the graphic code generation instruction;
and displaying the graphic code so that the user can scan the graphic code by using an application program to obtain the URL and the initialized page parameter, and displaying the target page on the application program at least based on the URL and the initialized page parameter.
2. The method of claim 1, wherein generating the graphical code based on the graphical code generation control from at least the URL and the initialization page parameters comprises:
determining URL types supported by the application program;
judging whether the URL type based on the URL of the target page is the same as the URL type supported by the application program or not;
converting the URL of the target page into a target URL of a URL type supported by the application program under the condition that the URL type based on which the URL of the target page is based is different from the URL type supported by the application program;
and generating the graphic code at least comprising the target URL and the initialized page parameter based on the graphic code generation control.
3. The method of claim 2, wherein the page data further includes an identification of the application for displaying the target page;
the determining the URL types supported by the application program comprises:
and identifying the URL type supported by the application program according to the identification of the application program in the page data.
4. The method of claim 3, wherein identifying the URL types supported by the application based on the identification of the application in the page data comprises:
and searching the URL type corresponding to the identifier of the application program in the corresponding relation between the identifier of the application program and the URL type, and taking the URL type as the URL type supported by the application program.
5. An information processing apparatus, applied to an electronic device, the apparatus comprising:
the first acquisition module is used for acquiring page data input by a user in a command line interface of an operating system of the electronic equipment, wherein the page data at least comprises a Uniform Resource Locator (URL) of a target page and an initialization page parameter of the target page;
the second acquisition module is used for acquiring a graphic code generation instruction input by the user in the command line interface, wherein the graphic code generation instruction is used for generating a graphic code at least according to the URL and the initialized page parameter;
the generating module is used for responding to the graphic code generating instruction and generating the graphic code according to the URL and the initialized page parameter at least based on a graphic code generating control;
and the display module is used for displaying the graphic code so that the user can scan the graphic code by using an application program to obtain the URL and the initialized page parameter, and displaying the target page on the application program at least based on the URL and the initialized page parameter.
6. The apparatus of claim 5, wherein the generating module comprises:
a determining unit, configured to determine a URL type supported by the application;
a judging unit, configured to judge whether a URL type based on which the URL of the target page is based is the same as a URL type supported by the application program;
a conversion unit configured to convert the URL of the target page into a target URL of a URL type supported by the application, in a case where the URL type on which the URL of the target page is based is different from the URL type supported by the application;
and the generating unit is used for generating the graphic code at least comprising the target URL and the initialized page parameter based on the graphic code generating control.
7. The apparatus of claim 6, wherein the page data further comprises an identification of the application for displaying the target page;
the determining unit is specifically configured to: and identifying the URL type supported by the application program according to the identification of the application program in the page data.
8. The apparatus according to claim 7, wherein the determining unit is specifically configured to: and searching the URL type corresponding to the identifier of the application program in the corresponding relation between the identifier of the application program and the URL type, and taking the URL type as the URL type supported by the application program.
9. An electronic device, characterized in that the electronic device comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the information processing method of any one of claims 1 to 4.
10. A non-transitory computer-readable storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the information processing method of any one of claims 1 to 4.
CN202011058217.XA 2020-09-29 2020-09-29 Information processing method and device Pending CN112214698A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011058217.XA CN112214698A (en) 2020-09-29 2020-09-29 Information processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011058217.XA CN112214698A (en) 2020-09-29 2020-09-29 Information processing method and device

Publications (1)

Publication Number Publication Date
CN112214698A true CN112214698A (en) 2021-01-12

Family

ID=74051715

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011058217.XA Pending CN112214698A (en) 2020-09-29 2020-09-29 Information processing method and device

Country Status (1)

Country Link
CN (1) CN112214698A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113761406B (en) * 2021-09-03 2024-06-04 丰巢网络技术有限公司 Intelligent cabinet two-dimension code short-chain generation method and device, medium and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101561850A (en) * 2009-06-10 2009-10-21 华中科技大学 System for comprehensively processing massive multi-channel nerve information and control method thereof
CN105989083A (en) * 2015-02-11 2016-10-05 阿里巴巴集团控股有限公司 Access environment switching method and apparatus
CN106372250A (en) * 2016-09-23 2017-02-01 郑州云海信息技术有限公司 Parameter passing method and device capable of starting local application through URL protocol
CN107992346A (en) * 2017-10-19 2018-05-04 用友网络科技股份有限公司 Interface display method, the interface display system of application program
CN110321498A (en) * 2018-03-30 2019-10-11 上海连尚网络科技有限公司 A kind of two dimensional code generates and analyzing method and device
CN111639279A (en) * 2020-05-27 2020-09-08 浙江口碑网络技术有限公司 Graphic code generation method, target page loading method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101561850A (en) * 2009-06-10 2009-10-21 华中科技大学 System for comprehensively processing massive multi-channel nerve information and control method thereof
CN105989083A (en) * 2015-02-11 2016-10-05 阿里巴巴集团控股有限公司 Access environment switching method and apparatus
CN106372250A (en) * 2016-09-23 2017-02-01 郑州云海信息技术有限公司 Parameter passing method and device capable of starting local application through URL protocol
CN107992346A (en) * 2017-10-19 2018-05-04 用友网络科技股份有限公司 Interface display method, the interface display system of application program
CN110321498A (en) * 2018-03-30 2019-10-11 上海连尚网络科技有限公司 A kind of two dimensional code generates and analyzing method and device
CN111639279A (en) * 2020-05-27 2020-09-08 浙江口碑网络技术有限公司 Graphic code generation method, target page loading method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113761406B (en) * 2021-09-03 2024-06-04 丰巢网络技术有限公司 Intelligent cabinet two-dimension code short-chain generation method and device, medium and electronic equipment

Similar Documents

Publication Publication Date Title
US10705780B2 (en) Method, device, and storage medium for displaying application page
CN106569800B (en) Front-end interface generation method and device
CN109032606B (en) Native application compiling method and device and terminal
US10909203B2 (en) Method and device for improving page display effect via execution, conversion and native layers
CN107203398B (en) Application distribution method and device
CN106547547B (en) data acquisition method and device
CN107193606B (en) Application distribution method and device
CN107193441B (en) Desktop pendant previewing method and device
CN117390330A (en) Webpage access method and device
CN111274131A (en) Interface testing method and device, electronic equipment and storage medium
CN107450912B (en) Page layout method, device and terminal
CN111708824A (en) Data processing method, device, equipment and storage medium
CN108984417B (en) Software testing method, device, terminal and storage medium
CN105808304B (en) Code deployment method, device and system
CN111159615A (en) Webpage processing method and device
CN114741292A (en) Test script management method and device, electronic equipment and storage medium
CN111061452A (en) Voice control method and device of user interface
US11210449B2 (en) Page display method and device and storage medium
WO2017166297A1 (en) Wifi hotpot portal authentication method and device
CN105468606B (en) Webpage saving method and device
CN110221813B (en) Application data connection establishment method and device, storage medium and electronic equipment
CN112214698A (en) Information processing method and device
CN109976872B (en) Data processing method and device, electronic equipment and storage medium
CN111695064A (en) Embedded point loading method and device
CN111221593A (en) Dynamic loading method and device

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