CN110516172A - Resource transfer method, apparatus, computer equipment and storage medium - Google Patents

Resource transfer method, apparatus, computer equipment and storage medium Download PDF

Info

Publication number
CN110516172A
CN110516172A CN201910704531.1A CN201910704531A CN110516172A CN 110516172 A CN110516172 A CN 110516172A CN 201910704531 A CN201910704531 A CN 201910704531A CN 110516172 A CN110516172 A CN 110516172A
Authority
CN
China
Prior art keywords
finger url
parameter
specific resources
web application
resource
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910704531.1A
Other languages
Chinese (zh)
Other versions
CN110516172B (en
Inventor
张帆
郭小龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Mingshu Information Co Ltd
Original Assignee
Shenzhen Suishou Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Suishou Technology Co Ltd filed Critical Shenzhen Suishou Technology Co Ltd
Priority to CN201910704531.1A priority Critical patent/CN110516172B/en
Publication of CN110516172A publication Critical patent/CN110516172A/en
Application granted granted Critical
Publication of CN110516172B publication Critical patent/CN110516172B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

This application involves a kind of resource transfer method, apparatus, computer equipment and storage mediums.The described method includes: obtaining the resource transfer task generated by web application, specific resources finger URL and the corresponding version identifier of the specific resources finger URL are carried in the resource transfer task;The specific resources finger URL is verified;When verifying successfully, the expansion parameter and interface identifier in the specific resources finger URL are obtained;The intrinsic parameter type in the specific resources finger URL is determined according to the version identifier, obtains intrinsic parameter corresponding with the intrinsic parameter type;By the corresponding client application interface of the interface identifier, resource corresponding with the intrinsic parameter and the expansion parameter is called.The safety of resource can be effectively improved using this method, and improves the efficiency of resource transfer.

Description

Resource transfer method, apparatus, computer equipment and storage medium
Technical field
This application involves field of computer technology, more particularly to a kind of resource transfer method, apparatus, computer equipment and Storage medium.
Background technique
With the development of computer technology, the exploitation demand and rhythm of application are getting faster.Traditional client application Development cycle is longer, in order to adapt to allegro exploitation demand, mixed mode mobile application occurs.Mixed mode mobile application It is a kind of a kind of application between page end application and client application.Mixed mode mobile application at runtime, mixes Motion of defect modes apply comprising web application may need to call the resource of client application.
In conventional manner, web application can be carried out in the resource for needing to call client application with client application Communication.Traditional, web application can send URL to client application, and (Uniform Resource Locator, unified resource are fixed Position symbol), client application needs all number of parameters for including in statistics URL, and successively judge in URL each of include After the parameter type of parameter, it is just capable of calling corresponding resource.Web application can call directly corresponding resource, the peace of resource Full property is lower.Moreover, the process of entire resource transfer is more complicated, the efficiency of resource transfer is lower.
Summary of the invention
Based on this, it is necessary to which in view of the above technical problems, providing one kind can be improved resource transfer efficiency and resource security Resource transfer method, apparatus, computer equipment and the storage medium of property.
A kind of resource transfer method, which comprises
The resource transfer task generated by web application is obtained, it is fixed that specific resources are carried in the resource transfer task Position symbol and the corresponding version identifier of the specific resources finger URL;
The specific resources finger URL is verified;
When verifying successfully, the expansion parameter and interface identifier in the specific resources finger URL are obtained;
The intrinsic parameter type in the specific resources finger URL is determined according to the version identifier, is obtained and described intrinsic The corresponding intrinsic parameter of parameter type;
By the corresponding client application interface of the interface identifier, call and the intrinsic parameter and the expansion parameter Corresponding resource.
In one of the embodiments, the method also includes:
Web application authentication request is generated according to the resource transfer task, is carried in the web application authentication request The corresponding signature of the web application;
The web application authentication request is sent to authentication server;
Receive the grant column list returned after the authentication server authenticates the web application according to the signature;
The interface identifier is verified according to the grant column list;
When verifying failure, abnormal prompt information is generated.
In one of the embodiments, the method also includes:
It obtains and task is generated by the specific resources finger URL that the web application triggers, the specific resources finger URL is raw At carrying expansion parameter in task;
Uniform resource locators are called, the uniform resource locators and the expansion parameter are packaged, institute is obtained State specific resources finger URL.
The calling uniform resource locators include: in one of the embodiments,
Task is generated according to the specific resources finger URL, and corresponding version identifier is obtained from the grant column list;
Uniform resource locators corresponding with the version identifier are called, include the version identifier in the grant column list Mapping relations between uniform resource locators.
In one of the embodiments, the method also includes:
Uniform resource locators test assignment is obtained, corresponding mark is obtained according to the uniform resource locators test assignment Quasi- Resource Locator;
The uniform resource locators are parsed, the corresponding standard parameter type of the uniform resource locators is obtained;
Test parameter corresponding with the standard parameter type is obtained according to the standard parameter type;
The uniform resource locators are tested using the test parameter.
A kind of resource transfer device, described device include:
Task acquisition module, for obtaining the resource transfer task generated by web application, the resource transfer task In carry specific resources finger URL and the corresponding version identifier of the specific resources finger URL;
Finger URL correction verification module, for being verified to the specific resources finger URL;When verifying successfully, described in acquisition Expansion parameter and interface identifier in specific resources finger URL;
Parameter acquisition module, for determining the intrinsic parameter class in the specific resources finger URL according to the version identifier Type obtains intrinsic parameter corresponding with the intrinsic parameter type;
Resource transfer module is used to call and described intrinsic by the corresponding client application interface of the interface identifier Parameter and the corresponding resource of the expansion parameter.
Described device further includes authentication module in one of the embodiments, for raw according to the resource transfer task It is requested at webpage weight discriminating, carries the corresponding signature of the web application in the web application authentication request;To authentication Server sends the web application authentication request;Receive the authentication server according to it is described signature to the web application into The grant column list returned after row authentication;The interface identifier is verified according to the grant column list;It is raw when verifying failure At abnormal prompt information.
Described device further includes finger URL generation module in one of the embodiments, passes through the webpage for obtaining The specific resources finger URL of applications trigger generates task, carries expansion parameter in the specific resources finger URL generation task; Uniform resource locators are called, the uniform resource locators and the expansion parameter are packaged, the specific money is obtained Source finger URL.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing The step of device realizes above-mentioned resource transfer method when executing the computer program.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor The step of above-mentioned resource transfer method is realized when row.
Above-mentioned resource transfer method, apparatus, computer equipment and storage medium, by carrying in resource transfer task Specific resources finger URL is verified, and the expansion parameter in specific resources finger URL is obtained after verifying successfully.According to specific money Finger URL corresponding version identifier in source determines the intrinsic parameter type in specific resources finger URL, obtains and intrinsic parameter type pair The intrinsic parameter answered calls money corresponding with intrinsic parameter and expansion parameter by the corresponding client application interface of interface identifier Source.Compared to traditional approach, after obtaining the specific resources finger URL in resource transfer task, specific resources finger URL is carried out Verification just utilizes the intrinsic parameter in specific resources finger URL and expands parameter and call corresponding resource, effectively when verifying successfully The safety for improving resource.And all number of parameters in statistics specific resources finger URL are not needed, and are successively sentenced The corresponding parameter type of each parameter of breaking.The overall process that corresponding resource is called according to specific resources finger URL is simplified, effectively The efficiency for improving resource transfer.
Detailed description of the invention
Fig. 1 is the applied environment figure of resource transfer method in one embodiment;
Fig. 2 is the flow diagram of resource transfer method in one embodiment;
Fig. 3 is the flow diagram of resource transfer method in another embodiment;
Fig. 4 is the structural block diagram of resource transfer device in one embodiment;
Fig. 5 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not For limiting the application.
Resource transfer method provided by the present application, can be applied in terminal, also can be applied to application as shown in Figure 1 In environment.Here for being applied in application environment as shown in Figure 1.Wherein, terminal 102 passes through network and server 104 It is communicated.Terminal 102 uploads resource transfer request to server 104 by web application.Server 104 is according to resource transfer Request generates resource transfer task, and specific resources finger URL is carried in resource transfer task and specific resources finger URL is corresponding Version identifier.Server 104 verifies specific resources finger URL.When verifying successfully, specific resources finger URL is obtained In expansion parameter and interface identifier.It is determined in specific resources finger URL according to the corresponding version identifier of specific resources finger URL Intrinsic parameter type obtains intrinsic parameter corresponding with intrinsic parameter type.Server 104 passes through the corresponding client of interface identifier Application interface is held to call resource corresponding with intrinsic parameter and expansion parameter.The resource of calling can be back to by server 104 Terminal 102.Wherein, terminal 102 can be, but not limited to be various personal computers, laptop, smart phone, tablet computer With portable wearable device, server 104 can use the server set of the either multiple server compositions of independent server Group realizes.
In one embodiment, as shown in Fig. 2, providing a kind of resource transfer method, it is applied to terminal in this way Example is illustrated, comprising the following steps:
Step 202, the resource transfer task generated by web application is obtained, carries specific money in resource transfer task Source finger URL and the corresponding version identifier of specific resources finger URL.
Wherein, what is run in terminal can be mixed mode mobile application, and a mixed mode mobile application can correspond to One client and multiple web applications.Client application can directly be run in the operating system of terminal, be web application Realization provide environment.Under the premise of client application operation, web application is not needed to download and be installed, so that it may in terminal Client application on run and use.Web application is the application program realized in the environment that client application provides.Fortune Web application of the row in client application can call the corresponding multiple resources of client application.For example, web application can be with Data, the information in client application are called, the corresponding function of client application can also be called.
The available resource transfer task generated by web application of terminal, executes the resource transfer task tune got With corresponding resource.Specifically, web application can generate resource transfer task in several ways.For example, web application can To generate resource transfer task in response to the resource transfer control triggered by display interface.Resource transfer control can be in net The display interface of page application is shown.Web application can also be directly generated according to practical application request in the process of running Resource transfer task, to call the resource of client application.
Specific resources finger URL and the corresponding version identifier of specific resources finger URL are carried in resource transfer task. Wherein, specific resources finger URL is specific uniform resource locator (Uniform Resource Locator, URL), specific Resource Locator is to encapsulate expansion parameter on the constant uniform resource locators of communication protocol.It can in specific resources finger URL With include specified between web application and client application the corresponding parameter of the transport protocol that uses, resource to be called, path and Interface identifier etc..There are mapping relations with corresponding version identifier for the specific resources finger URL of each version.Version identifier can be with It is one of a variety of marks for marking specific resources finger URL version.Determine for example, version identifier can be specific resources The corresponding version number of version of position symbol, is also possible to the corresponding version name of version.
Step 204, specific resources finger URL is verified.
Step 206, when verifying successfully, the expansion parameter and interface identifier in specific resources finger URL are obtained.
Terminal executes the resource transfer task got, according to what is carried in resource transfer task acquisition resource transfer task Specific resources finger URL.Terminal can verify the specific resources finger URL got.Specifically, the available spy of terminal Determine the transport protocol for including in Resource Locator, the transport protocol that web application uses is verified using grant column list, is sentenced Whether transport protocol used in disconnected specific resources finger URL is usable transport protocol in web application extent of competence.Work as net Page using transport protocol be extent of competence in transport protocol when, then verify success.Otherwise, then failure is verified.At it In middle one embodiment, when specific resources finger URL verifies failure, terminal then unsuccessfully prompts to believe to web application back-checking Breath.Wherein, grant column list is after terminal carries out authorization check to the corresponding signature of web application using authentication server, by authenticating Extent of competence corresponding to the web application that server returns, within the scope of in grant column list including web application corresponding authority Transport protocol, the corresponding version identifier of transport protocol and interface identifier etc..Terminal can be fixed to the specific resources got Position symbol is verified, when verify successfully, then using the intrinsic parameter for including in the successful specific resources finger URL of verification with open up It opens up parameter and calls corresponding resource, the safety of resource is effectively raised with this.
After verifying successfully to specific resources finger URL, terminal can parse the specific resources finger URL got.Specifically , terminal can use SDK (Software Development Kit, Software Development Kit) to specific resources finger URL into Row parsing obtains expansion parameter and interface identifier in specific resources finger URL.Wherein, interface identifier is for marking money to be called The corresponding client application interface in source, terminal can call corresponding money by the corresponding client application interface of interface identifier Source.
Parameter in specific resources finger URL may include expanding parameter and intrinsic parameter.Opening up in specific resources finger URL Exhibition parameter can be Json (JavaScript Object Notation, JS object numbered musical notation) character string, and expanding parameter can root Factually border business demand is configured.During upgrading service, parameter can be expanded by setting and increased to required resource It is required that.For example, the expansion parameter of compression of images size can be increased on the basis of obtaining the Resource Locator of image resource.Pass through Parameter is expanded in setting in specific resources finger URL, in upgrading, it is only necessary to increased parameter is set to expand parameter, it is specific Intrinsic parameter type in Resource Locator can not have to change.It is not needed after upgrading to entire specific resources finger URL weight It is newly tested, effectively reduces testing cost.Terminal, can be by Json word when parsing to specific resources finger URL Symbol string resolves to Json object.In one of the embodiments, when Json character string parsing fails, then generates malloc failure malloc and mention Show information, is shown by the corresponding display page of web application.
Step 208, the intrinsic parameter type in specific resources finger URL is determined according to version identifier, obtained and intrinsic parameter The corresponding intrinsic parameter of type.
Parameter in specific resources finger URL includes intrinsic parameter and expansion parameter.Intrinsic parameter describes called resource Basic parameter.For example, being described in intrinsic parameter when web application needs to call the corresponding image resource of client application The basic parameter of image resource, such as size, the resolution ratio of image.Intrinsic parameter is same there are corresponding intrinsic parameter type The intrinsic parameter type and intrinsic number of parameters for including in the specific resources finger URL of a version are constant.Same version The value of the corresponding intrinsic parameter of different specific resources finger URLs can be all identical, can also part it is identical, can also all not Together.Terminal can determine specific resources by the corresponding version identifier of specific resources finger URL carried in resource transfer task Intrinsic parameter type in finger URL obtains multiple intrinsic parameters corresponding with intrinsic parameter type.
Step 210, it by the corresponding client application interface of interface identifier, calls corresponding with intrinsic parameter and expansion parameter Resource.
Due in specific resources finger URL the corresponding intrinsic parameter type of intrinsic parameter and intrinsic number of parameters be it is determining, Terminal does not need to read the corresponding intrinsic parameter type of intrinsic parameter that specific resources finger URL includes.Terminal joins expansion After number is parsed, corresponding resource directly can be called according to expansion parameter.The intrinsic ginseng that terminal can directly will acquire Number is forwarded to the corresponding client application interface of interface identifier with parameter is expanded, and passes through client application interface and calls and intrinsic ginseng The resource of number client application corresponding with parameter is expanded, simplifies the process of resource transfer, effectively raises resource transfer Efficiency.
In the present embodiment, it by being verified to the specific resources finger URL carried in resource transfer task, is verifying The expansion parameter in specific resources finger URL is obtained after success.It is determined according to the corresponding version identifier of specific resources finger URL specific Intrinsic parameter type in Resource Locator obtains intrinsic parameter corresponding with intrinsic parameter type, corresponding by interface identifier Client application interface call and intrinsic parameter and the corresponding resource of expansion parameter.Compared to traditional approach, resource is being obtained After specific resources finger URL in calling task, specific resources finger URL is verified, specific money is just utilized when verifying successfully Intrinsic parameter and expansion parameter in the finger URL of source call corresponding resource, effectively raise the safety of resource.And this Expansion parameter in embodiment is general Json character string, and terminal does not need the parameter type sum number that identification statistics expands parameter Amount.The corresponding intrinsic parameter type of each version identifier be also it is certain, intrinsic parameter can be read directly in terminal, does not need to know Parameter type and quantity other and that count intrinsic parameter.Obtained intrinsic parameter and expansion parameter can be directly forwarded to by terminal Client application interface calls corresponding resource.The overall process that corresponding resource is called according to specific resources finger URL is simplified, Effectively raise the efficiency of resource transfer.
In one embodiment, as shown in figure 3, above-mentioned resource transfer method further include:
Step 302, web application authentication request is generated according to resource transfer task, is carried in web application authentication request The corresponding token of web application.
Step 304, web application authentication request is sent to authentication server.
Step 306, the grant column list returned after authentication server authenticates web application according to signature is received.
Step 308, interface identifier is verified according to grant column list.
Step 310, when verifying failure, then abnormal prompt information is generated.
In the resource transfer task that web application generates, the corresponding signature of web application is also carried.Web application is corresponding Signature can be web application when generating resource transfer task, web application server is generated according to effective token, And it is issued to web application front end.Terminal generates webpage according to the corresponding signature of the web application carried in resource transfer task and answers The corresponding signature of web application is carried with authentication request, in web application authentication request.
Web application authentication request is uploaded to authentication server by terminal, so that authentication server is corresponding according to web application Signature determine the permission that possesses of the web application.Specifically, authentication server is in the web application mirror for receiving terminal upload After power request, web application authentication request is parsed, the signature carried in web application authentication request is obtained.Authentication service Device determines the extent of competence of web application using corresponding sign of web application, and generates net according to the extent of competence of web application Page applies corresponding grant column list.Including the transport protocol within the scope of web application corresponding authority, transmission association in grant column list Discuss corresponding version identifier and interface identifier etc..
Terminal can also be by the web application corresponding authority range that includes in grant column list in one of the embodiments, Within communication protocol specific resources finger URL is verified.When the communication protocol that web application uses is not in web application pair When within the extent of competence answered, then abnormal prompt information is generated.In the case where communication protocol unauthorized, terminal do not need followed by It is continuous to execute resource transfer task.
The grant column list of generation is back to counterpart terminal by authentication server, and terminal receives authentication server according to signature pair The grant column list that web application returns after being authenticated.Terminal is according to grant column list to the interface identifier in specific resources finger URL It is verified.
Specifically, terminal will parse the interface mark for including in the interface identifier and grant column list that specific resources finger URL obtains Whether knowledge is compared, judge interface identifier in grant column list.When the interface identifier for including in specific resources finger URL is being awarded When weighing in list, then success is verified.Indicate that corresponding web application has permission through the corresponding client application of the interface identifier Interface calls corresponding resource, and the intrinsic parameter in specific resources finger URL is then forwarded to the interface identifier with parameter is expanded by terminal Corresponding client application interface, to call intrinsic parameter resource corresponding with parameter is expanded.It is wrapped when in specific resources finger URL When the interface identifier contained is not in grant column list, then failure is verified.Indicate that corresponding web application does not have permission to pass through the interface It identifies corresponding client application interface and calls corresponding resource, intrinsic parameter and expansion parameter are not then forwarded to client by terminal Application interface, and generate abnormal prompt information.Terminal can show the abnormal prompt by the corresponding display interface of web application Information applies the permission without accessing corresponding client application interface, resource transfer failure with prompting webpage.
In the present embodiment, terminal utilizes the corresponding signature of web application, sends web application authentication to authentication server Request receives the corresponding grant column list of web application.The interface identifier in specific resources finger URL is carried out according to grant column list Verification, judges whether web application has permission calling interface and identify corresponding client application interface.Prevent web application random The client application interface for calling not permission, effectively raises the safety of the resource of client application.
In one embodiment, web application, can be in authentication service before the resource for calling client application for the first time It is registered in device, and applies obtaining the corresponding application identities of the web application and using key.Web application server can To be issued to web application by obtaining corresponding token using key, and according to the obtained corresponding signature of token generation.Eventually End generates the resource transfer task for carrying corresponding signature by web application, is carried out using extent of competence of the signature to web application Confirmation.
The web application token that also available server issues in one of the embodiments, terminal are taken by generating Web application authentication request with corresponding token confirms the corresponding grant column list of web application to authentication server.Web application clothes Business device can also judge whether token is effective.When token is no longer valid, then the effective token that please look for novelty to authentication server.
In the present embodiment, it is all call client applications resources web application require in authentication server into Row registration avoids un-trusted web application access client application.The web application of access is calling client application Before resource, it is also necessary to obtain effective token, there is no the web application of permission that client is called to answer when preventing using Key Exposure Resource effectively raises the safety of the resource of client application.
In one embodiment, above-mentioned resource transfer method further include: obtain the specific resources triggered by web application Finger URL generates task, carries expansion parameter in specific resources finger URL generation task;Uniform resource locators are called, will be marked Quasi- Resource Locator is packaged with parameter is expanded, and obtains specific resources finger URL.
Specific resources finger URL can be generated in the resource for needing to call client application in web application, and utilization is specific Resource Locator is communicated with client application.The available specific resources finger URL triggered by web application of terminal is raw At task.Web application can trigger specific resources finger URL in several ways and generate task.For example, web application can be rung The resource transfer control that Ying Yu is triggered by display interface, triggering specific resources finger URL generate task.Web application can be with In the process of running, task is generated according to the actual demand for the resource for calling client application triggering specific resources finger URL.
Expansion parameter is carried in specific resources finger URL generation task, expands the money that parameter and web application need to call The actual demand in source is corresponding.When calling the actual demand difference of resource, different expansion parameters can be corresponded to.Expanding parameter is General Json character string.Terminal generates task call uniform resource locators according to specific resources finger URL, using SDK by standard Resource Locator is packaged with parameter is expanded, and obtains specific resources finger URL.
In the present embodiment, it is packaged by the way that parameter will be expanded with uniform resource locators, specific resources can be obtained Finger URL.Simplify the generating process of Resource Locator.Moreover, the uniform resource locator newly-generated with traditional test needs to survey The mode of examination communication protocol itself is compared, when generating specific resources finger URL to the mode in the present embodiment and testing, mark Quasi- Resource Locator be it is certain, i.e., communication protocol itself is to ensure that the consistency of communication protocol there is no variation.In After for the first time testing the communication protocol of uniform resource locators, only need to join newly-increased expansion in upgrading test Number is tested, and is not needed to test the communication protocol itself in specific resources finger URL, is effectively reduced specific money The testing cost of source finger URL.
In one embodiment, call the step of uniform resource locators includes: to be generated to appoint according to specific resources finger URL Business obtains corresponding version identifier from grant column list;Call uniform resource locators corresponding with version identifier, grant column list In include mapping relations between version identifier and uniform resource locators.
For different marks when being communicated there are web application from client application in specific resources finger URL generation task The demand of quasi- Resource Locator, terminal can obtain corresponding version according to the specific resources finger URL got from grant column list This mark guarantees the uniform resource locators called in the extent of competence of the web application with this.It include version in grant column list Mapping relations between this mark and uniform resource locators.Terminal can be called corresponding with version identifier by version identifier The uniform resource locators of calling are packaged with parameter is expanded using SDK, it is fixed to obtain specific resources by uniform resource locators Position symbol.
In the present embodiment, terminal ensure that the standard of calling by obtaining corresponding version identifier from grant column list The validity of Resource Locator.Moreover, terminal calls directly uniform resource locators from grant column list, standard resource is concealed Specific communication protocol in finger URL.Even if front-end code is revealed, authorized list can only be also analyzed, can not be obtained specific Communication protocol effectively prevents and forges communication protocol calling resource, improves the safety of the resource of client application.
In one embodiment, above-mentioned resource transfer method further include: uniform resource locators test assignment is obtained, according to Uniform resource locators test assignment obtains corresponding uniform resource locators;Uniform resource locators are parsed, standard money is obtained The corresponding standard parameter type of source finger URL;Test parameter corresponding with standard parameter type is obtained according to standard parameter type; Uniform resource locators are tested using test parameter.
Terminal obtains uniform resource locators test assignment, obtains corresponding mark according to uniform resource locators test assignment Quasi- Resource Locator.A uniform resource locators are only included in each uniform resource locators test assignment.Standard resource is fixed It include the communication protocol between web application and client application in the symbol of position.Different communication protocol can correspond to different parameters Type and number of parameters.
Terminal parses uniform resource locators, obtains uniform resource locators Plays parameter corresponding at least one Kind parameter type.Terminal can extract each corresponding test parameter of standard parameter type from database.Test parameter can To store in the database.The mapping relations being also stored in database between test parameter and standard parameter type, test ginseng Mapping relations between several and standard parameter type can be stored in the database in the form of tables of data.Terminal can use survey Examination parameter tests uniform resource locators.Specifically, terminal can use test parameter to corresponding standard parameter class Type carries out unit testing, obtains and by terminal display showing interface test result.
In the present embodiment, when generating specific resources finger URL according to uniform resource locators, standard can only be modified The parameter of Resource Locator does not change the corresponding parameter type of parameter and number of parameters.Terminal is by executing mark Resource orientation Test assignment is accorded with, the parameter that can include to uniform resource locators is tested, it is determined that the parameter of uniform resource locators The scope of application reduces the testing cost of the specific resources finger URL for generation.
It should be understood that although each step in the flow chart of Fig. 2-3 is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-3 Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately It executes.
In one embodiment, as shown in figure 4, providing a kind of resource transfer device, comprising: task acquisition module 402, Finger URL parsing module 404, parameter acquisition module 406 and resource transfer module 408, in which:
Task acquisition module 402, for obtaining the resource transfer task generated by web application, in resource transfer task Carry specific resources finger URL and the corresponding version identifier of specific resources finger URL.
Finger URL correction verification module 404, for being verified to specific resources finger URL;When verifying successfully, obtain specific Expansion parameter and interface identifier in Resource Locator.
Parameter acquisition module 406 is obtained for determining the intrinsic parameter type in specific resources finger URL according to version identifier Take intrinsic parameter corresponding with intrinsic parameter type.
Resource transfer module 408, for by the corresponding client application interface of interface identifier, call with intrinsic parameter and Expand the corresponding resource of parameter.
In one embodiment, above-mentioned resource transfer device further includes authentication module, for raw according to resource transfer task It is requested at webpage weight discriminating, carries the corresponding signature of web application in web application authentication request;It is sent out to authentication server Send web application authentication request;Receive the grant column list returned after authentication server authenticates web application according to signature; Interface identifier is verified according to grant column list;When verifying failure, abnormal prompt information is generated.
In one embodiment, above-mentioned resource transfer device further includes finger URL generation module, passes through webpage for obtaining The specific resources finger URL of applications trigger generates task, carries expansion parameter in specific resources finger URL generation task;It calls Uniform resource locators are packaged with parameter is expanded, obtain specific resources finger URL by uniform resource locators.
In one embodiment, finger URL generation module is also used to generate task according to specific resources finger URL and arrange from authorization Corresponding version identifier is obtained in table;Uniform resource locators corresponding with version identifier are called, include version in grant column list Mapping relations between mark and uniform resource locators.
In one embodiment, above-mentioned resource transfer device further includes parametric testing module, fixed for obtaining standard resource Position symbol test assignment, obtains corresponding uniform resource locators according to uniform resource locators test assignment;Parse standard resource Finger URL obtains the corresponding standard parameter type of uniform resource locators;It is obtained and standard parameter class according to standard parameter type The corresponding test parameter of type;Uniform resource locators are tested using test parameter.
Specific about resource transfer device limits the restriction that may refer to above for resource transfer method, herein not It repeats again.Modules in above-mentioned resource transfer device can be realized fully or partially through software, hardware and combinations thereof.On Stating each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also store in a software form In memory in computer equipment, the corresponding operation of the above modules is executed in order to which processor calls.
In one embodiment, a kind of computer equipment is provided, which can be terminal, internal structure Figure can be as shown in Figure 5.The computer equipment includes processor, the memory, network interface, display connected by system bus Screen and input unit.Wherein, the processor of the computer equipment is for providing calculating and control ability.The computer equipment is deposited Reservoir includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system and computer journey Sequence.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating The network interface of machine equipment is used to communicate with external terminal by network connection.When the computer program is executed by processor with Realize a kind of resource transfer method.The display screen of the computer equipment can be liquid crystal display or electric ink display screen, The input unit of the computer equipment can be the touch layer covered on display screen, be also possible to be arranged on computer equipment shell Key, trace ball or Trackpad, can also be external keyboard, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Fig. 5, only part relevant to application scheme is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, is stored in memory Computer program, the processor realize the step in above-mentioned resource transfer embodiment of the method when executing computer program.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program realizes the step in above-mentioned resource transfer embodiment of the method when being executed by processor.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of resource transfer method, which comprises
The resource transfer task generated by web application is obtained, carries specific resources finger URL in the resource transfer task And the corresponding version identifier of the specific resources finger URL;
The specific resources finger URL is verified;
When verifying successfully, the expansion parameter and interface identifier in the specific resources finger URL are obtained;
The intrinsic parameter type in the specific resources finger URL is determined according to the version identifier, is obtained and the intrinsic parameter The corresponding intrinsic parameter of type;
By the corresponding client application interface of the interface identifier, call corresponding with the intrinsic parameter and the expansion parameter Resource.
2. the method according to claim 1, wherein the method also includes:
Web application authentication request is generated according to the resource transfer task, is carried in the web application authentication request described The corresponding signature of web application;
The web application authentication request is sent to authentication server;
Receive the grant column list returned after the authentication server authenticates the web application according to the signature;
The interface identifier is verified according to the grant column list;
When verifying failure, abnormal prompt information is generated.
3. the method according to claim 1, wherein the method also includes:
It obtains and task is generated by the specific resources finger URL that the web application triggers, the specific resources finger URL, which generates, appoints Expansion parameter is carried in business;
Uniform resource locators are called, the uniform resource locators and the expansion parameter are packaged, the spy is obtained Determine Resource Locator.
4. according to the method described in claim 3, it is characterized in that, the calling uniform resource locators include:
Task is generated according to the specific resources finger URL, and corresponding version identifier is obtained from the grant column list;
Uniform resource locators corresponding with the version identifier are called, include the version identifier and mark in the grant column list Mapping relations between quasi- Resource Locator.
5. according to the method described in claim 3, it is characterized in that, the method also includes:
Uniform resource locators test assignment is obtained, corresponding standard is obtained according to the uniform resource locators test assignment and is provided Source finger URL;
The uniform resource locators are parsed, the corresponding standard parameter type of the uniform resource locators is obtained;
Test parameter corresponding with the standard parameter type is obtained according to the standard parameter type;
The uniform resource locators are tested using the test parameter.
6. a kind of resource transfer device, which is characterized in that described device includes:
Task acquisition module is taken in the resource transfer task for obtaining the resource transfer task generated by web application With specific resources finger URL and the corresponding version identifier of the specific resources finger URL;
Finger URL correction verification module, for being verified to the specific resources finger URL;When verifying successfully, obtain described specific Expansion parameter and interface identifier in Resource Locator;
Parameter acquisition module, for determining the intrinsic parameter type in the specific resources finger URL according to the version identifier, Obtain intrinsic parameter corresponding with the intrinsic parameter type;
Resource transfer module, for calling and the intrinsic parameter by the corresponding client application interface of the interface identifier Resource corresponding with the expansion parameter.
7. device according to claim 6, which is characterized in that described device further includes authentication module, for according to Resource transfer task generates web application authentication request, and it is corresponding that the web application is carried in the web application authentication request Signature;The web application authentication request is sent to authentication server;The authentication server is received according to the signature pair The grant column list that the web application returns after being authenticated;The interface identifier is verified according to the grant column list; When verifying failure, abnormal prompt information is generated.
8. device according to claim 6, which is characterized in that described device further includes finger URL generation module, for obtaining It takes and task is generated by the specific resources finger URL that the web application triggers, taken in the specific resources finger URL generation task With expansion parameter;Uniform resource locators are called, the uniform resource locators and the expansion parameter are packaged, are obtained To the specific resources finger URL.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In the step of processor realizes any one of claims 1 to 5 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any one of claims 1 to 5 is realized when being executed by processor.
CN201910704531.1A 2019-07-31 2019-07-31 Resource calling method and device, computer equipment and storage medium Active CN110516172B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910704531.1A CN110516172B (en) 2019-07-31 2019-07-31 Resource calling method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910704531.1A CN110516172B (en) 2019-07-31 2019-07-31 Resource calling method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110516172A true CN110516172A (en) 2019-11-29
CN110516172B CN110516172B (en) 2022-06-03

Family

ID=68624397

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910704531.1A Active CN110516172B (en) 2019-07-31 2019-07-31 Resource calling method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110516172B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111415146A (en) * 2020-06-08 2020-07-14 浙江口碑网络技术有限公司 Resource data processing method, device and equipment
CN113835717A (en) * 2020-06-23 2021-12-24 武汉斗鱼鱼乐网络科技有限公司 Installation package obtaining method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102156697A (en) * 2010-02-11 2011-08-17 北京易路联动技术有限公司 Method and terminal equipment for realizing webpage application through widget
CN102156696A (en) * 2010-02-11 2011-08-17 北京易路联动技术有限公司 Web application oriented local widget management method and terminal equipment
CN104735066A (en) * 2015-03-18 2015-06-24 百度在线网络技术(北京)有限公司 Single sign-on method, device and system oriented to web page applications
CN104767775A (en) * 2014-01-06 2015-07-08 腾讯科技(深圳)有限公司 Webpage application information push method and webpage application information push system
US9118634B2 (en) * 2003-04-03 2015-08-25 International Business Machines Corporation Dynamic encryption of a universal resource locator
CN106095598A (en) * 2016-05-31 2016-11-09 腾讯科技(深圳)有限公司 A kind of data processing method and client
CN109067728A (en) * 2018-07-25 2018-12-21 苏州科达科技股份有限公司 Access control method, device, server and the storage medium of application programming interfaces

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9118634B2 (en) * 2003-04-03 2015-08-25 International Business Machines Corporation Dynamic encryption of a universal resource locator
CN102156697A (en) * 2010-02-11 2011-08-17 北京易路联动技术有限公司 Method and terminal equipment for realizing webpage application through widget
CN102156696A (en) * 2010-02-11 2011-08-17 北京易路联动技术有限公司 Web application oriented local widget management method and terminal equipment
CN104767775A (en) * 2014-01-06 2015-07-08 腾讯科技(深圳)有限公司 Webpage application information push method and webpage application information push system
CN104735066A (en) * 2015-03-18 2015-06-24 百度在线网络技术(北京)有限公司 Single sign-on method, device and system oriented to web page applications
CN106095598A (en) * 2016-05-31 2016-11-09 腾讯科技(深圳)有限公司 A kind of data processing method and client
CN109067728A (en) * 2018-07-25 2018-12-21 苏州科达科技股份有限公司 Access control method, device, server and the storage medium of application programming interfaces

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111415146A (en) * 2020-06-08 2020-07-14 浙江口碑网络技术有限公司 Resource data processing method, device and equipment
CN113835717A (en) * 2020-06-23 2021-12-24 武汉斗鱼鱼乐网络科技有限公司 Installation package obtaining method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN110516172B (en) 2022-06-03

Similar Documents

Publication Publication Date Title
CN108769041A (en) Login method, system, computer equipment and storage medium
CN110244987A (en) Configuration data processing method, device, readable storage medium storing program for executing and computer equipment
CN105119722B (en) A kind of auth method, equipment and system
CN108306876A (en) Client identity verification method, device, computer equipment and storage medium
CN104219196B (en) Business locking means, business unlocking method, apparatus and system
CN111090581B (en) Intelligent contract testing method, intelligent contract testing device, computer equipment and storage medium
CN111241555B (en) Access method and device for simulating user login, computer equipment and storage medium
US10148440B2 (en) Binary code authentication
CN111367821B (en) Software testing method and system
CN109829277A (en) Terminal unlock method, device, computer equipment and storage medium
CN109886810B (en) Crowdsourcing transaction method and system, readable storage medium and terminal
CN110516172A (en) Resource transfer method, apparatus, computer equipment and storage medium
US10749860B2 (en) Systems and methods for authenticating devices using single factor dynamic authentication
KR101482700B1 (en) Method For Verifying Integrity of Program Using Hash
CN110445791A (en) Plug-in authentication method and device, the storage method of plug-in authentication information and device
CN104200247A (en) Method, device and terminal for processing personalized data
CN108229127A (en) Verification data are generated in advance to distinguish the system and method for client
CN112788017A (en) Safety verification method, device, equipment and medium
CN109561093A (en) Ultra vires act detection method, device, computer equipment and storage medium
CN116032621B (en) Front-end login method and device, electronic equipment and medium
CN109669859A (en) Service test method, device, computer equipment and storage medium
CN112929391B (en) Method for realizing cross-platform identity authentication based on single sign-on
CN114978675B (en) Access authentication method and device, electronic equipment and storage medium
CN114039873A (en) Auditing method and operation and maintenance safety auditing system for client type
CN112783759A (en) White box test task execution method and device, storage medium and computer equipment

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200605

Address after: 518000 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A (located in Shenzhen Qianhai business secretary Co. Ltd.)

Applicant after: Shenzhen Mingshu Information Co., Ltd

Address before: 518000 8th floors Nan Zuo801 chambers, science and technology Nan Shi bis-B, JinDie Software garden, road, Southern Hi-Tech Zone, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: SHENZHEN READILY TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant