CN112069430A - Quick application preview method and device, electronic equipment and storage medium - Google Patents
Quick application preview method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN112069430A CN112069430A CN202011005155.6A CN202011005155A CN112069430A CN 112069430 A CN112069430 A CN 112069430A CN 202011005155 A CN202011005155 A CN 202011005155A CN 112069430 A CN112069430 A CN 112069430A
- Authority
- CN
- China
- Prior art keywords
- resource
- fast application
- identifier
- verification
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 69
- 238000012795 verification Methods 0.000 claims abstract description 109
- 238000012545 processing Methods 0.000 claims description 10
- 230000004044 response Effects 0.000 claims description 8
- 230000006870 function Effects 0.000 description 19
- 238000010586 diagram Methods 0.000 description 7
- 230000001960 triggered effect Effects 0.000 description 6
- 238000012546 transfer Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 238000012790 confirmation Methods 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 3
- 238000004806 packaging method and process Methods 0.000 description 3
- 238000013459 approach Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000011144 upstream manufacturing Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K17/00—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
- G06K17/0022—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisions for transferring data to distant stations, e.g. from a sensing device
- G06K17/0025—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisions for transferring data to distant stations, e.g. from a sensing device the arrangement consisting of a wireless interrogation device in combination with a device for optically marking the record carrier
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Computer Networks & Wireless Communication (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the application discloses a fast application preview method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring two-dimension code information; acquiring a resource identifier based on the two-dimension code information, and sending a resource verification request to a server; and if the verification is passed, calling a resource downloading interface to open the fast application corresponding to the resource identifier. By the method, the quick application can be opened directly by scanning the two-dimension code information without installing any other application, so that all complex links and operations can be avoided, and the quick application can be used after scanning.
Description
Technical Field
The present application relates to the field of software technologies, and in particular, to a fast application preview method and apparatus, an electronic device, and a storage medium.
Background
The quick application is a novel installation-free application developed based on an industry standard, and the standard of the quick application is jointly established by a quick application alliance formed by mainstream mobile phone manufacturers. The developer can distribute the application to all intelligent terminals supporting the industry standard to operate after developing once.
Target users of the related fast application code scan preview function include upstream and downstream users of fast application products in addition to developers. These users also have a need to preview the offline version of the fast application, but the related fast application code scanning preview function needs to enable the user to download the fast application debugger in advance, and then implement the fast application code scanning preview function through the fast application debugger. Such an implementation opens the link longer and the user cannot reach it quickly.
Disclosure of Invention
In view of the foregoing problems, embodiments of the present application provide a fast application preview method, apparatus, electronic device, and storage medium to improve the foregoing problems.
In a first aspect, an embodiment of the present application provides a fast application preview method, where the method includes: acquiring two-dimension code information; acquiring a resource identifier based on the two-dimension code information, and sending a resource verification request to a server; and if the verification is passed, calling a resource downloading interface to open the fast application corresponding to the resource identifier.
In a second aspect, an embodiment of the present application provides a fast application preview method, where the method includes: acquiring a resource verification request which is sent by electronic equipment and carries a resource identifier, wherein the resource identifier is acquired by the electronic equipment through two-dimensional code information; responding to the resource checking request, and checking the fast application resource corresponding to the resource identifier; and sending a resource checking result to the electronic equipment so that the electronic equipment calls a resource downloading interface to open the fast application corresponding to the resource identifier.
In a third aspect, an embodiment of the present application provides a fast application preview apparatus, where the apparatus includes: the information acquisition unit is used for acquiring two-dimension code information; the request sending unit is used for obtaining a resource identifier based on the two-dimension code information and sending a resource verification request to the server; and the processing unit is used for calling the resource downloading interface to open the fast application corresponding to the resource identifier if the verification is passed.
In a fourth aspect, an embodiment of the present application provides a fast application preview apparatus, where the apparatus includes: the request acquisition unit is used for acquiring a resource verification request which is sent by electronic equipment and carries a resource identifier, wherein the resource identifier is acquired by the electronic equipment through two-dimensional code information; the verification unit is used for responding to the resource verification request and verifying the fast application resource corresponding to the resource identifier; and the result sending unit is used for sending the resource checking result to the electronic equipment so that the electronic equipment calls a resource downloading interface to open the fast application corresponding to the resource identifier.
In a fifth aspect, an embodiment of the present application provides an electronic device, including one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors to implement the methods described above.
In a sixth aspect, the present application provides a computer-readable storage medium, in which a program code is stored, wherein the program code performs the above-mentioned method when executed by a processor.
According to the quick application preview method, the quick application preview device, the electronic equipment and the storage medium, firstly, two-dimension code information is obtained, a resource identifier is obtained based on the two-dimension code information, a resource verification request is sent to a server, and if verification is passed, a resource downloading interface is called to open a quick application corresponding to the resource identifier. By the method, the quick application can be opened directly by scanning the two-dimension code information without installing any other application, so that all complex links and operations can be avoided, and the quick application can be used after scanning.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a fast application preview method according to an embodiment of the present application;
fig. 2 is a schematic diagram illustrating a two-dimensional code generation proposed in an embodiment of the present application;
FIG. 3 is a flow chart illustrating a fast application preview method according to another embodiment of the present application;
FIG. 4 is a flow chart illustrating a fast application preview method according to yet another embodiment of the present application;
FIG. 5 is a flow chart illustrating a fast application preview method according to yet another embodiment of the present application;
FIG. 6 illustrates a system block diagram of a fast application preview system according to an embodiment of the present application;
fig. 7 is a block diagram illustrating a fast application preview device according to an embodiment of the present application;
fig. 8 is a block diagram illustrating a fast application preview device according to another embodiment of the present application;
fig. 9 is a block diagram illustrating a fast application preview device according to still another embodiment of the present application;
FIG. 10 is a block diagram of an electronic device for executing a fast application preview method according to an embodiment of the present application in real time;
fig. 11 illustrates a storage unit for storing or carrying program code implementing the fast application preview method according to an embodiment of the present application in real time.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The quick application is a program which is written by a developer into a set of JS codes and can run at multiple ends such as Android, IOS, WebView and the like based on a mobile phone hardware platform. The developer can write a form similar to conventional HTML to develop the program. The program can be divided into a component tree (DOM), a style (CSS), and a logic (JS code) from a data perspective; the file system can be divided into a configuration file (manifest. json), a global file (app. js) and a page file (page) from the composition, and an automatic compilation project (rpk) file is formed after packaging, and the packaged file is an application program of the fast application.
The fast application is a novel application form based on a mobile phone hardware platform. The standard is jointly established by a fast application alliance composed of mainstream mobile phone manufacturers. The emergence of the fast application standard builds a standard platform on the aspects of research and development interfaces, capability access, developer services and the like, and opens the full category of individual developers and enterprise developers in a platform ecological mode. Meanwhile, the fast application is also a lightweight APP and is directly implanted into a mobile phone operating system of a mobile phone manufacturer. The installation and the use of other trade application APP make things convenient for, only need to edit according to the unified external standard of quick application just can install on the quick application platform of cell-phone, click and open the use. The cost and time of APP developers are saved to a great extent.
The inventor finds that the related fast application preview method requires that a user first downloads a fast application debugger and then realizes a fast application code scanning preview function through the fast application debugger, and the realization method is not friendly to the user. In addition, the fast application debugger is expensive for non-developers to use, the user must learn to use the code scanning preview function through education, and the whole touch period is difficult and long.
Therefore, the inventor proposes a method, an apparatus, an electronic device, and a storage medium for scanning and using a fast application preview, in which two-dimensional code information is first acquired, a resource identifier is acquired based on the two-dimensional code information, a resource verification request is sent to a server, and if the verification is passed, a resource download interface is called to open the fast application corresponding to the resource identifier.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Referring to fig. 1, a fast application preview method provided in the embodiment of the present application includes:
s110: the electronic equipment acquires the two-dimension code information, acquires the resource identifier based on the two-dimension code information, and sends a resource verification request to the server.
In this embodiment of the application, the two-dimensional code information may be obtained by scanning a two-dimensional code by an instant messaging program, a browser, a store, a quick application center, or other camera applications with a code scanning function in the electronic device, or the two-dimensional code information may also be obtained by identifying a local two-dimensional code picture by a tool capable of identifying a two-dimensional code in the electronic device.
The two-dimensional code is generated by uploading rpk files to a server after a user logs in a fast application IDE (Integrated Development Environment), and returning information after the server receives rpk files, wherein the two-dimensional code points to a rpk file in the server. Among them, the fast application IDE is an application program for providing a program development environment.
Specifically, as shown in fig. 2, after the user logs in the fast application IDE using the account, when packaging the fast application, the fast application IDE will automatically splice a package name, such as a package name of preview, behind the rpk file to distinguish normal online package names and avoid functional conflicts such as cache with online resources. After packaging is completed, the fast application IDE calls a Resource uploading interface to upload a packaged rpk file to a designated database in a server side for storage, the server side returns a globally unique version Identifier to the fast application IDE after receiving a rpk file sent by the fast application IDE, the fast application IDE splices a fast application domain name to obtain a URI (Uniform Resource Identifier) according to information returned by the server side after receiving the globally unique version Identifier returned by the server side, and then the URI is subjected to two-dimensional coding by a two-dimensional code generating tool to obtain a two-dimensional code. Further, each rpk file corresponds to a two-dimensional code. Therefore, the electronic device recognizes that one two-dimensional code can acquire rpk corresponding two-dimensional code information.
As one way, the two-dimension code information may include parameters such as a fast application domain name and a resource identifier. After the electronic device obtains the two-dimension code information through a code scanning operation or a two-dimension code recognition operation, a resource identifier is obtained from the obtained two-dimension code information, and a resource verification request carrying the resource identifier is sent to a server, wherein the resource identifier can comprise a version identifier or a domain name.
S120: and the server receives a resource checking request sent by the electronic equipment and checks the fast application resource corresponding to the resource identifier.
As a way, the resource identifier has a one-to-one correspondence relationship with the fast application resource stored in the server, and then the fast application resource corresponding to the resource identifier can be found in the server through the resource identifier.
Specifically, when the server receives a resource verification request sent by the electronic device, the server acquires a resource identifier sent by the electronic device from the resource verification request, then searches a corresponding rpk file from a specified database according to the resource identifier, and verifies the rpk file. The resource check request may indicate a specific check manner, for example, whether the fast application resource corresponding to the resource identifier is expired is checked, or whether the fast application resource corresponding to the resource identifier has a preview right is checked. And then when the server receives a resource checking request sent by the electronic equipment, the server can simultaneously obtain the resource identifier and the checking mode.
S130: and the server sends a resource checking result to the electronic equipment.
As a mode, after the server checks the fast application resource corresponding to the resource identifier according to a preset checking mode, the checking result may be sent to the electronic device, so that the electronic device determines whether to perform subsequent operations based on the checking result.
Further, the server may send the resource verification result to the electronic device immediately after detecting that the verification of the fast application resource corresponding to the resource identifier is finished, or may send the resource verification result to the electronic device when receiving a resource verification result acquisition request sent by the electronic device. The resource verification result obtaining request may be an instruction triggered by a specific operation of a user, for example, a confirmation instruction may be sent to the electronic device after the server detects that the resource verification operation is completed, a confirmation box may pop up on a display interface of the electronic device when the electronic device receives the confirmation instruction, and the resource verification result obtaining request is triggered to be sent to the server when the user clicks "confirm".
S140: and the electronic equipment receives a resource checking result sent by the server, and if the page returned by the server received by the electronic equipment is the first page, the checking is determined to be passed.
In one mode, the first page is an intermediate page, and a fast application can be opened through a deeplink mechanism. Wherein the deeplink mechanism is a mobile terminal deep link mechanism, which is called deeplink for short. The jump technology is a jump technology for linking to a specific position of the app through the URI, and not only can the target app be simply opened through a webpage, the app and the like, but also the effect of jumping to different pages by using the transfer identifier can be achieved.
Optionally, corresponding identifiers may be set for different pages in advance, and then whether the page returned by the server is the first page may be determined by identifying the received identifier of the page returned by the server. Specifically, the identifier of the first page may be set to be ZJY, and the identifiers of the pages other than the first page may be set to be DDY, and further, when the electronic device can receive the page returned by the server, the electronic device may identify the received identifier of the page, and if the identifier of the page is identified as ZJY, it is determined that the check is passed, and if the identifier of the page is identified as DDY, it is determined that the check is not passed.
S150: and the electronic equipment calls a designated code corresponding to the first page to acquire the identifier and the package name of the fast application corresponding to the resource identifier.
The specified code can be understood as a web function, such as an appouter function, and calling the appouter function can trigger the fast application engine to open the fast application. The identification of the fast application is the version identification of the fast application.
It should be noted that the electronic device includes a browser and a fast application engine. The electronic equipment can scan the two-dimensional code through a browser to obtain two-dimensional code information, open a middle page and call a package name and a version identification of the aprouter function transfer application; further, the fast application engine can be triggered by the browser to open the fast application.
As one mode, when the electronic device receives a first page returned by the server, the first page is opened through the browser, and an appouter function is called to transfer a package name and a version identifier of a fast application corresponding to a resource identifier.
S160: and the electronic equipment calls a resource downloading interface to open the fast application corresponding to the identifier and the package name.
As a mode, after the electronic device opens the first page through the browser and calls the appouter function to transfer the package name and the version identifier of the fast application corresponding to the resource identifier, the fast application engine is triggered to call the resource download interface from the interface proxy server, and the fast application corresponding to the identifier and the package name of the fast application is opened by using the resource download interface.
Specifically, when the fast application engine is used for calling the resource downloading interface from the interface proxy server, the resource verification request may be sent to the server again, and when the server passes the verification of the fast application resource corresponding to the resource identifier according to the resource identifier, the server sends the fast application resource packet corresponding to the resource identifier to the fast application engine, and the fast application engine may install and open the fast application resource packet by using the resource downloading interface.
Further, when the fast application corresponding to the resource identifier is opened by using the fast application engine, a fast application execution environment may be created in advance, the fast application corresponding to the resource identifier is processed in the fast application execution environment, and the obtained processing result is interface display data of the fast application corresponding to the resource identifier, so as to be displayed on a browser or an application display interface of the electronic device according to the interface display data.
Optionally, when the fast application is installed and opened through the fast application engine, it is necessary to ensure that the electronic device and the server are in the same local area network.
In the fast application preview method provided by this embodiment, an electronic device obtains two-dimensional code information, obtains a resource identifier based on the two-dimensional code information, and sends a resource verification request to a server, the server receives the resource verification request sent by the electronic device, verifies a fast application resource corresponding to the resource identifier, and sends a resource verification result to the electronic device, the electronic device receives the resource verification result sent by the server, if a page returned by the electronic device and received by the server is a first page, it is determined that the verification is passed, the electronic device calls a designated code corresponding to the first page, obtains an identifier and a package name of a fast application corresponding to the resource identifier, and then the electronic device calls a resource download interface to open the fast application corresponding to the identifier and the package name. By the method, the quick application can be opened directly by scanning the two-dimension code information without installing any other application, so that all complex links and operations can be avoided, and the quick application can be used after scanning.
Referring to fig. 3, a fast application preview method provided in an embodiment of the present application is applied to an electronic device, and the method includes:
s210: and acquiring the two-dimension code information.
As one mode, the two-dimensional code information may be obtained by the electronic device directly from the storage area, or may be obtained by the electronic device through scanning a code in real time by a code scanning tool.
Optionally, the time for acquiring the two-dimension code information periodically may be set in advance for the electronic device, and when the electronic device detects that the time reaches the time for acquiring the two-dimension code information, the electronic device automatically acquires the stored two-dimension code information from the storage area of the electronic device.
The stored two-dimensional code information may be obtained by scanning, by the electronic device, the two-dimensional code in advance by using a code scanning tool such as a WeChat scanner, a browser, a store, a quick application center, or other camera applications with a code scanning function in the electronic device, or obtained by identifying the received two-dimensional code through a tool capable of identifying the two-dimensional code in the electronic device and storing the two-dimensional code information. Further, when the two-dimensional code information is stored, the two-dimensional code information can be stored according to the sequence of the time when the electronic device acquires the two-dimensional code information, and then the corresponding two-dimensional code information can be acquired from the storage area by searching the time when the acquired two-dimensional code information is acquired.
S220: and acquiring a resource identifier based on the two-dimension code information, and sending a resource verification request to a server.
As a mode, after the electronic device acquires the two-dimensional code information from the storage area, the two-dimensional code information can be identified, and then the resource identifier of the fast application can be acquired from the two-dimensional code information.
Further, the electronic device may send a resource check request carrying the resource identifier of the fast application to the server.
S230: and if the verification is passed, calling a resource downloading interface to open the fast application corresponding to the resource identifier.
By one approach, the resource check result may include both a check-pass result and a check-fail result. And after the electronic equipment receives the resource verification result sent by the server, the electronic equipment can identify the resource verification result, and when the electronic equipment identifies that the verification is passed, the electronic equipment can call the resource downloading interface to open the fast application corresponding to the resource identifier.
Further, before the electronic device calls the resource downloading interface to open the fast application corresponding to the resource identifier, whether the electronic device is in a network connection state or not may be detected in advance, and when the electronic device is detected to be in the network connection state, the resource downloading interface is called to open the fast application corresponding to the resource identifier.
In the fast application preview method provided by this embodiment, first, two-dimensional code information is obtained, a resource identifier is obtained based on the two-dimensional code information, a resource verification request is sent to a server, and if verification passes, a resource download interface is called to open a fast application corresponding to the resource identifier. By the method, the quick application can be opened directly by scanning the two-dimension code information without installing any other application, so that all complex links and operations can be avoided, and the quick application can be used after scanning.
Referring to fig. 4, a fast application preview method provided in an embodiment of the present application is applied to an electronic device, and the method includes:
s310: and acquiring the two-dimension code information.
S320: and acquiring a resource identifier based on the two-dimension code information, and sending a resource verification request to a server.
For the detailed explanation of the steps included in S310 and S320, reference may be made to the corresponding steps in the foregoing embodiments, which are not described herein again.
S330: and if the received page returned by the server is the first page, determining that the verification is passed, and calling a resource downloading interface to open the fast application corresponding to the resource identifier, wherein the first page comprises the identifier and the package name corresponding to the fast application resource.
As a mode, if the verification passes, the step of calling the resource download interface to open the fast application corresponding to the resource identifier includes: acquiring a first page returned by the server; opening the first page, and calling a designated code corresponding to the first page; acquiring an identifier and a packet name of a fast application resource corresponding to the resource identifier based on the specified code; and calling a resource downloading interface, and opening the fast application corresponding to the identifier and the package name.
Wherein, after acquiring the identifier and the package name of the fast application resource corresponding to the resource identifier based on the code, the method further comprises: sending a resource checking request to the server; and acquiring the fast application resource packet corresponding to the identifier returned by the server after the verification is passed.
Specifically, when the electronic device receives a page returned by the server, the page returned by the server can be identified, if the page returned by the server is the first page, it is determined that the verification is passed, a fast application engine in the electronic device is triggered to call a resource downloading interface from an interface proxy server, and a fast application corresponding to the resource identifier returned by the server is opened by using the resource downloading interface.
And when the resource downloading interface is called, sending a resource checking request to the server again to verify whether the fast application resource corresponding to the resource identifier is expired. And when the server verifies that the fast application resource corresponding to the resource identifier is not expired, sending a fast application resource packet in a binary data form to the electronic equipment, and then the electronic equipment can install and open the fast application resource packet in the binary data form sent by the server by using the resource downloading interface.
S340: and if the received page returned by the server is the second page, determining that the verification is not passed.
By one approach, the second page may be understood as a default bottom page. And when the electronic equipment detects that the received page returned by the server is the default bottom page, determining that the verification is not passed.
The fast application preview method provided by this embodiment includes obtaining two-dimensional code information, obtaining a resource identifier from the two-dimensional code information, sending a resource verification request to a server, determining that verification is passed if a page returned by the server is received as a first page, and calling a resource download interface to open a fast application corresponding to the resource identifier, where the first page includes an identifier and a package name corresponding to a fast application resource, and determining that verification is not passed if the page returned by the server is received as a second page. By the method, whether the verification is passed or not is determined according to the page returned by the server, if the verification is passed, the resource downloading interface is called to open the fast application corresponding to the resource identifier, the safety of previewing the fast application is improved, further, the fast application can be opened directly by scanning the two-dimensional code information without installing any other application, all complex links and operation can be avoided, and the scanning and using are realized.
Referring to fig. 5, a fast application preview method provided in the embodiment of the present application is applied to a server, and the method includes:
s410: the method comprises the steps of obtaining a resource verification request which is sent by electronic equipment and carries a resource identifier, wherein the resource identifier is obtained by the electronic equipment through two-dimension code information.
The detailed explanation of the steps included in S410 may refer to the corresponding steps in the foregoing embodiments, and are not described herein again.
S420: and responding to the resource checking request, and checking the fast application resource corresponding to the resource identifier.
As a manner, the checking the fast application resource corresponding to the resource identifier in response to the resource checking request includes: responding to the resource checking request, and verifying whether the fast application resource corresponding to the resource identification is expired; if the fast application resource is not expired, determining that the verification is passed, and sending a first page to the electronic equipment, wherein the first page comprises an identifier and a package name corresponding to the fast application resource; and if the fast application resource is expired, determining that the verification is not passed, and sending a second page to the electronic equipment.
Optionally, when the server receives a resource check request sent by the electronic device, the server may check the fast application resource corresponding to the resource identifier according to the time when the resource check request is received, detect whether the fast application resource packet is expired, and further determine whether the check is passed.
Specifically, when the IDE sends the fast application resource package to the server for storage, the server may establish a one-to-one correspondence relationship between the fast application resource package and the resource identifier, and when the server receives the resource verification request sent by the electronic device, the server may search the fast application resource corresponding to the resource identifier from the server according to the resource identifier in the resource verification request sent by the electronic device. Optionally, when the server stores the fast application resource package, the server may record and store a timestamp of the received fast application resource package, further, may set an effective time limit for each fast application resource, and may compare the time of receiving the resource verification request with the timestamp of the record, determine whether the effective time limit of the fast application resource is exceeded, if the effective time limit of the fast application resource is exceeded, determine that the fast application resource is expired, and if the verification fails, the server sends a second page to the electronic device; and if the effective time limit of the fast application is not exceeded, determining that the fast application resource is not overdue, checking to pass, and sending a first page to the electronic equipment by the server. For example, the server receives the fast application resource uploaded by the IDE in a time period of 3/15/13/2020: 00, the server records and stores the time, the valid time limit set for the fast application resource in advance is 1 day, the time when the server receives the resource verification request sent by the electronic equipment is 10:36 in 3/16/2020, and further the server can compare the time in 3/16/10: 36 in 2020 with the time in 3/15/13 in 2020: 00, comparing, wherein the difference value between the two time points is 21 hours and 36 minutes, and the 21 hours and 36 minutes are less than the effective time limit for 1 day, so that the fast application resource corresponding to the resource identifier in the resource checking request can be determined to be not expired, the checking is passed, and the server sends the first page to the electronic equipment.
As another mode, the checking, in response to the resource checking request, the fast application resource corresponding to the resource identifier includes: responding to the resource checking request, and verifying whether the fast application resource corresponding to the resource identification is allowed to be downloaded; if the fast application resource is allowed to be downloaded, determining that the verification is passed, and sending a first page to the electronic equipment, wherein the first page comprises an identifier and a package name corresponding to the fast application resource; and if the fast application resource is not allowed to be downloaded, determining that the verification is not passed, and sending a second page to the electronic equipment.
Optionally, when the server receives a resource verification request sent by the electronic device, it may be detected whether the fast application resource corresponding to the resource identifier carried in the resource verification request has a download right, and then it may be determined whether the verification passes.
Specifically, when the server receives the fast application resource sent by the IDE, the download authority may be set for the fast application resource in advance, specifically, identifiers "0" and "1" may be used to indicate whether the fast application resource has the download authority, where "0" indicates that the fast application resource is not allowed to be downloaded, and "1" indicates that the fast application resource is allowed to be downloaded. When the server receives a resource checking request sent by the electronic equipment, the corresponding fast application resource can be searched from the server according to the resource identifier, the identifier of the fast application resource can be further obtained and identified, when the server identifies that the identifier of the fast application resource is '1', the fast application resource is determined to be allowed to be downloaded, the checking is determined to be passed, and the server sends a first page to the electronic equipment.
Furthermore, different time limits of allowed downloading and not allowed downloading can be set for different fast application resources, when the server stores the fast application resources, the time limit corresponding to the fast application resources can be stored, and when the server detects that the storage time of the fast application resources reaches the preset time limit, the server can automatically modify the downloading permission of the fast application. Further, when the server receives a resource check request sent by the electronic device in different time periods, the detected identifiers of the fast applications corresponding to the resource identifications may be different.
S430: and sending a resource checking result to the electronic equipment so that the electronic equipment calls a resource downloading interface to open the fast application corresponding to the resource identifier.
As a manner, the server may send the resource verification result to the electronic device at regular time, and may set different verification result sending times for different fast application resources in advance, for example, for a game-class fast application, since the occupied memory is usually large, the resource verification result may be sent to the electronic device immediately after the verification is finished.
By setting different sending times of the verification result for different fast application resources, the occupation of the memory of the server can be effectively adjusted.
When the server sends a resource verification request to the electronic equipment, an interface calling instruction can be sent to the electronic equipment, and then when the electronic equipment receives the interface calling instruction sent by the server, a fast application engine in the electronic equipment is triggered to call a resource downloading interface to open a fast application corresponding to the resource identifier.
In the fast application preview method provided by this embodiment, a resource verification request carrying a resource identifier sent by an electronic device is obtained, where the resource identifier is obtained by the electronic device through two-dimensional code information, and in response to the resource verification request, a fast application resource corresponding to the resource identifier is verified, and a resource verification result is sent to the electronic device, so that the electronic device calls a resource download interface to open a fast application corresponding to the resource identifier. By the method, the quick application can be opened directly by scanning the two-dimension code information without installing any other application, so that all complex links and operations can be avoided, and the quick application can be used after scanning.
Referring to fig. 6, the present application provides a fast application preview system 500, where the system 500 includes an electronic device 510 and a server 520:
the electronic device 510 is configured to obtain two-dimension code information, obtain a resource identifier based on the two-dimension code information, and send a resource verification request to the server 520.
The server 520 is configured to receive the resource check request sent by the electronic device 510, and check the fast application resource corresponding to the resource identifier.
The server 520 is further configured to send a resource check result to the electronic device.
The electronic device 510 is further configured to receive the resource checking result sent by the server 520, and if the page returned by the server 520 and received by the electronic device 510 is the first page, it is determined that the checking is passed.
The electronic device 510 is further configured to call a designated code corresponding to the first page, and obtain an identifier and a package name of a fast application corresponding to the resource identifier; and calling a resource downloading interface to open the fast application corresponding to the identifier and the package name.
In the fast application preview system provided by this embodiment, the electronic device is configured to obtain two-dimensional code information, obtain a resource identifier based on the two-dimensional code information, and send a resource verification request to the server, the server is configured to receive the resource verification request sent by the electronic device, verify a fast application resource corresponding to the resource identifier, and send a resource verification result to the electronic device, the electronic device is further configured to receive the resource verification result sent by the server, if a page returned by the server received by the electronic device is a first page, it is determined that the verification is passed, the electronic device is further configured to call a specific code corresponding to the first page, obtain an identifier and a package name of a fast application corresponding to the resource identifier, and then call a resource download interface to open the fast application corresponding to the identifier and the package name. By the method, the quick application can be opened directly by scanning the two-dimension code information without installing any other application, so that all complex links and operations can be avoided, and the quick application can be used after scanning.
Referring to fig. 7, the present application provides a fast application preview apparatus 600, where the apparatus 600 includes:
an information obtaining unit 610 is used for obtaining the two-dimension code information.
A request sending unit 620, configured to obtain a resource identifier based on the two-dimensional code information, and send a resource verification request to the server.
And the processing unit 630 is configured to, if the verification is passed, invoke a resource download interface to open a fast application corresponding to the resource identifier.
Optionally, the processing unit 630 is further configured to obtain a first page returned by the server; opening the first page, and calling a designated code corresponding to the first page; acquiring an identifier and a packet name of a fast application resource corresponding to the resource identifier based on the specified code; and calling a resource downloading interface, and opening the fast application corresponding to the identifier and the package name.
Further, the processing unit 630 is further configured to send a resource check request to the server; and acquiring the fast application resource packet corresponding to the identifier returned by the server after the verification is passed.
As one mode, as shown in fig. 8, the apparatus 600 further includes:
the page receiving unit 640 is configured to determine that the verification passes if the received page returned by the server is a first page, where the first page includes an identifier and a packet name corresponding to the fast application resource; and if the received page returned by the server is the second page, determining that the verification is not passed.
Referring to fig. 9, the present application provides a fast application preview apparatus 700, where the apparatus 700 includes:
the request obtaining unit 710 is configured to obtain a resource verification request that is sent by an electronic device and carries a resource identifier, where the resource identifier is obtained by the electronic device through two-dimensional code information.
A verifying unit 720, configured to verify, in response to the resource verification request, the fast application resource corresponding to the resource identifier.
By way of example, the verifying unit 720 is configured to verify, in response to the resource checking request, whether the fast application resource corresponding to the resource identifier is allowed to be downloaded; if the fast application resource is allowed to be downloaded, determining that the verification is passed, and sending a first page to the electronic equipment, wherein the first page comprises an identifier and a package name corresponding to the fast application resource; and if the fast application resource is not allowed to be downloaded, determining that the verification is not passed, and sending a second page to the electronic equipment.
As another way, the verifying unit 720 is configured to verify whether the fast application resource corresponding to the resource identifier is expired in response to the resource checking request; if the fast application resource is not expired, determining that the verification is passed, and sending a first page to the electronic equipment, wherein the first page comprises an identifier and a package name corresponding to the fast application resource; and if the fast application resource is expired, determining that the verification is not passed, and sending a second page to the electronic equipment.
A result sending unit 730, configured to send a resource verification result to the electronic device, so that the electronic device invokes a resource downloading interface to open a fast application corresponding to the resource identifier.
It should be noted that the device embodiment and the method embodiment in the present application correspond to each other, and specific principles in the device embodiment may refer to the contents in the method embodiment, which is not described herein again.
An electronic device provided by the present application will be described with reference to fig. 10.
Referring to fig. 10, based on the fast application preview method and apparatus, another electronic device 100 capable of executing the fast application preview method is further provided in the embodiment of the present application. The electronic device 100 includes one or more processors 102 (only one shown), a memory 104, and a network module 106 coupled to each other. The memory 104 stores programs that can execute the content of the foregoing embodiments, and the processor 102 can execute the programs stored in the memory 104.
The Memory 104 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 104 may be used to store instructions, programs, code sets, or instruction sets. The memory 104 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal 100 in use, such as a phonebook, audio-video data, chat log data, and the like.
The network module 106 is configured to receive and transmit electromagnetic waves, and implement interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices, for example, an audio playing device. The network module 106 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The network module 106 may communicate with various networks, such as the internet, an intranet, a wireless network, or with other devices via a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. For example, the network module 106 may interact with a base station.
Referring to fig. 11, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 800 has stored therein a program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 800 includes a non-volatile computer-readable storage medium. The computer readable storage medium 800 has storage space for program code 810 to perform any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 810 may be compressed, for example, in a suitable form.
According to the fast application preview method, the fast application preview device, the fast application preview system, the electronic device and the storage medium, firstly, two-dimension code information is obtained, a resource identifier is obtained based on the two-dimension code information, a resource verification request is sent to a server, and if verification is passed, a resource download interface is called to open a fast application corresponding to the resource identifier. By the method, the quick application can be opened directly by scanning the two-dimension code information without installing any other application, so that all complex links and operations can be avoided, and the quick application can be used after scanning.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.
Claims (11)
1. A fast application preview method is applied to an electronic device, and the method comprises the following steps:
acquiring two-dimension code information;
acquiring a resource identifier based on the two-dimension code information, and sending a resource verification request to a server;
and if the verification is passed, calling a resource downloading interface to open the fast application corresponding to the resource identifier.
2. The method of claim 1, wherein after obtaining the resource identifier based on the two-dimensional code information and sending the resource verification request to the server, the method further comprises:
if the received page returned by the server is a first page, determining that the verification is passed, wherein the first page comprises an identification and a packet name corresponding to the fast application resource;
and if the received page returned by the server is the second page, determining that the verification is not passed.
3. The method of claim 2, wherein if the check is passed, invoking a resource download interface to open a fast application corresponding to the resource identifier comprises:
acquiring a first page returned by the server;
opening the first page, and calling a designated code corresponding to the first page;
acquiring an identifier and a packet name of a fast application resource corresponding to the resource identifier based on the specified code;
and calling a resource downloading interface, and opening the fast application corresponding to the identifier and the package name.
4. The method of claim 3, wherein the obtaining the identifier and the package name of the fast application resource corresponding to the resource identifier based on the code further comprises:
sending a resource checking request to the server;
and acquiring the fast application resource packet corresponding to the identifier returned by the server after the verification is passed.
5. A fast application preview method is applied to a server, and the method comprises the following steps:
acquiring a resource verification request which is sent by electronic equipment and carries a resource identifier, wherein the resource identifier is acquired by the electronic equipment through two-dimensional code information;
responding to the resource checking request, and checking the fast application resource corresponding to the resource identifier;
and sending a resource checking result to the electronic equipment so that the electronic equipment calls a resource downloading interface to open the fast application corresponding to the resource identifier.
6. The method of claim 5, wherein the checking fast application resources corresponding to the resource identifier in response to the resource check request comprises:
responding to the resource checking request, and verifying whether the fast application resource corresponding to the resource identification is expired;
if the fast application resource is not expired, determining that the verification is passed, and sending a first page to the electronic equipment, wherein the first page comprises an identifier and a package name corresponding to the fast application resource;
and if the fast application resource is expired, determining that the verification is not passed, and sending a second page to the electronic equipment.
7. The method of claim 5, wherein the checking fast application resources corresponding to the resource identifier in response to the resource check request comprises:
responding to the resource checking request, and verifying whether the fast application resource corresponding to the resource identification is allowed to be downloaded;
if the fast application resource is allowed to be downloaded, determining that the verification is passed, and sending a first page to the electronic equipment, wherein the first page comprises an identifier and a package name corresponding to the fast application resource;
and if the fast application resource is not allowed to be downloaded, determining that the verification is not passed, and sending a second page to the electronic equipment.
8. A fast application preview apparatus, the apparatus comprising:
the information acquisition unit is used for acquiring two-dimension code information;
the request sending unit is used for obtaining a resource identifier based on the two-dimension code information and sending a resource verification request to the server;
and the processing unit is used for calling the resource downloading interface to open the fast application corresponding to the resource identifier if the verification is passed.
9. A fast application preview apparatus, the apparatus comprising:
the request acquisition unit is used for acquiring a resource verification request which is sent by electronic equipment and carries a resource identifier, wherein the resource identifier is acquired by the electronic equipment through two-dimensional code information;
the verification unit is used for responding to the resource verification request and verifying the fast application resource corresponding to the resource identifier;
and the result sending unit is used for sending the resource checking result to the electronic equipment so that the electronic equipment calls a resource downloading interface to open the fast application corresponding to the resource identifier.
10. An electronic device comprising one or more processors and memory; one or more programs stored in the memory and configured to be executed by the one or more processors to perform the method of any of claims 1-4 or the method of any of claims 5-7.
11. A computer-readable storage medium, having a program code stored therein, wherein the program code when executed by a processor performs the method of any of claims 1-4 or the method of any of claims 5-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011005155.6A CN112069430B (en) | 2020-09-22 | 2020-09-22 | Quick application preview method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011005155.6A CN112069430B (en) | 2020-09-22 | 2020-09-22 | Quick application preview method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112069430A true CN112069430A (en) | 2020-12-11 |
CN112069430B CN112069430B (en) | 2023-01-06 |
Family
ID=73682411
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011005155.6A Active CN112069430B (en) | 2020-09-22 | 2020-09-22 | Quick application preview method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112069430B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112887411A (en) * | 2021-01-29 | 2021-06-01 | 广州优谷信息技术有限公司 | Local area network data transmission system, method, computer device and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109542463A (en) * | 2018-10-26 | 2019-03-29 | 深圳壹账通智能科技有限公司 | Compiling file packet transmission method, device, computer equipment and storage medium |
CN110869907A (en) * | 2018-03-28 | 2020-03-06 | 华为技术有限公司 | Method and terminal for browsing application page |
-
2020
- 2020-09-22 CN CN202011005155.6A patent/CN112069430B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110869907A (en) * | 2018-03-28 | 2020-03-06 | 华为技术有限公司 | Method and terminal for browsing application page |
CN109542463A (en) * | 2018-10-26 | 2019-03-29 | 深圳壹账通智能科技有限公司 | Compiling file packet transmission method, device, computer equipment and storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112887411A (en) * | 2021-01-29 | 2021-06-01 | 广州优谷信息技术有限公司 | Local area network data transmission system, method, computer device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112069430B (en) | 2023-01-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110609937B (en) | Crawler identification method and device | |
CN108353462A (en) | A kind of configuration file method for down loading and relevant device, system | |
CN103595774A (en) | System application uninstalling method and device with terminal based on server side | |
CN102437998B (en) | Application store system and the method using this application store system to develop | |
KR20110128632A (en) | Method and device for detecting malicious action of application program for smartphone | |
CN104462478A (en) | Mobile browser client and webpage interacting method, device and client | |
CN113641940B (en) | Page jump method, device, system, equipment and storage medium | |
CN103777967A (en) | Page returning method and page generating method and device | |
CN107197462B (en) | Wireless network type detection method and device and electronic equipment | |
CN112232794A (en) | Payment method and device, storage medium and electronic equipment | |
CN108399119B (en) | Method and device for data processing and automatic testing of browsing service kernel engine | |
CN112699034B (en) | Virtual login user construction method, device, equipment and storage medium | |
CN112650689A (en) | Test method, test device, electronic equipment and storage medium | |
CN112069430B (en) | Quick application preview method and device, electronic equipment and storage medium | |
CN112631694B (en) | API (application program interface) encapsulation calling method and system | |
CN111078437B (en) | Remote calling method and device for verification codes, electronic equipment and readable storage medium | |
KR101083229B1 (en) | Method, apparatus, system, and recording medium for downloading necessary application of mobile terminal | |
CN104182331A (en) | Browser performance test method, browser performance test system and terminal | |
WO2017149159A1 (en) | Counterfeit electronic device detection | |
CN112929321B (en) | Authentication method, device and terminal equipment | |
CN111064675A (en) | Access flow control method, device, network equipment and storage medium | |
CN110674380B (en) | Data query method, system, readable storage medium and intelligent device | |
CN117062038B (en) | Equipment automatic binding method and device based on near field communication technology | |
CN112887411B (en) | Local area network data transmission system, method, computer device and storage medium | |
CN111078209B (en) | Development processing method, device and equipment for business page |
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 |