CN109067818A - A kind of business access method and device - Google Patents

A kind of business access method and device Download PDF

Info

Publication number
CN109067818A
CN109067818A CN201810564378.2A CN201810564378A CN109067818A CN 109067818 A CN109067818 A CN 109067818A CN 201810564378 A CN201810564378 A CN 201810564378A CN 109067818 A CN109067818 A CN 109067818A
Authority
CN
China
Prior art keywords
interface
business
access
mixing
service identification
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
CN201810564378.2A
Other languages
Chinese (zh)
Other versions
CN109067818B (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.)
Hangzhou Dt Dream Technology Co Ltd
Original Assignee
Hangzhou Dt Dream 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 Hangzhou Dt Dream Technology Co Ltd filed Critical Hangzhou Dt Dream Technology Co Ltd
Priority to CN201810564378.2A priority Critical patent/CN109067818B/en
Publication of CN109067818A publication Critical patent/CN109067818A/en
Application granted granted Critical
Publication of CN109067818B publication Critical patent/CN109067818B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a kind of business access method and device, method is applied to be equipped with the mobile terminal of mixing application, access has preset item-function in mixing application, by item-function be able to access that mixing application comprising business, and mixing application accesses business by browser module, method includes: the business access request for receiving and being generated by triggering preset term function;Through browser module in the corresponding relationship list of preconfigured service identification and interface, the corresponding interface of service identification that business access request carries is searched, and utilize the corresponding business module of interface access service identification found.Since browser module can be realized by the corresponding relationship list of preconfigured service identification and interface, access of the preset term function to the business of mixing application, without increasing the compatibility code of the mixing application of access preset term function in browser module, so as to reduce the maintenance difficulties of browser module, the applicability of browser module is promoted.

Description

A kind of business access method and device
Technical field
This application involves field of communication technology more particularly to a kind of business access method and devices.
Background technique
Due to HTML5 (Hypertext Markup Language, hypertext markup language) relatively other Web programming languages Speech have many advantages, therefore currently based on the browser of HTML5 it is multi-platform (such as Windows, MaxOS, IOS, The platforms such as Android, Linux) on applied.At the same time, (Hybrid APP) is applied in the various mixing based on HTML5 It can also be run in multi-platform upper realization, such as the mixing application such as Alipay, nail nail, wechat.It follows that for HTML5's Mixing application is equivalent in mixing application and has embedded a browser, and is passing through mixing application access business (such as access wheat The business such as gram wind, camera, encryption software keyboard) when, it needs through HTML5 module accesses.
In the related art, the JSSDK that the HTML5 module of usual mobile terminal is provided by mixing application (JavaScript Software Development Kit, the Software Development Tools based on JavaScript) realizes each business Access.However, if access a certain item-function in mixing application, and by item-function access mixing apply in it is each When business, since the used JSSDK of each mixing application is different, it is therefore desirable to be accessed in HTML5 module for item-function Mixing application increases compatibility code, to realize access of the item-function to the business in mixing application, as item-function accesses Mixing number of applications increase, HTML5 module needs continuous to increase compatibility code.So as to cause the Maintenance Difficulty of HTML5 module Spend increasing, applicability is lower and lower.
Summary of the invention
In view of this, the application provides a kind of business access method and device, will lead to solving existing implementation The maintenance difficulties of HTML5 module are big, the low problem of applicability.
According to the embodiment of the present application in a first aspect, providing a kind of business access method, the method is applied to be equipped with The mobile terminal of application is mixed, access has preset item-function in the mixing application, can visit by the item-function Ask it is described mixing application comprising business, and the mixing application by browser module access business, and the mixing application In be mounted with the corresponding relationship list of service identification and interface for the item-function in advance, which comprises
Receive the business access request generated by triggering the preset term function;
Through the browser module in the corresponding relationship list of the service identification and interface, searches the business and visit It asks the corresponding interface of service identification that request carries, and accesses the corresponding business mould of the service identification using the interface found Block.
According to the second aspect of the embodiment of the present application, a kind of business access device is provided, described device is applied to be equipped with The mobile terminal of application is mixed, access has preset item-function in the mixing application, can visit by the item-function Ask it is described mixing application comprising business, and the mixing application by browser module access business, and the mixing application In be mounted with the corresponding relationship list of service identification and interface for the item-function in advance, described device includes:
Receiving module, for receiving the business access request for passing through and triggering the item-function and generating;
Business access module, for by the browser module the service identification and interface corresponding relationship list In, the corresponding interface of service identification that the business access request carries is searched, and access the industry using the interface found Business identifies corresponding business module.
Using the embodiment of the present application, mobile terminal starting mixing application, and after accessing preset item-function, it can receive The business access request generated by triggering item-function, and pass through browser module in the service identification and interface of preparatory carry Corresponding relationship list in, search the corresponding interface of service identification that business access request carries, and utilize the interface that finds Access the corresponding business module of service identification.It follows that since the industry for item-function is mounted in mixing application in advance The corresponding relationship list of business mark and interface, therefore browser module can be arranged by the corresponding relationship of the service identification and interface The access of business can be realized in table, if browser module is HTML5 module, compares with the prior art, and the application is not necessarily to Increase the compatibility code of the mixing application for access item-function in HTML5 module, so as to reduce the dimension of HTML5 module Difficulty is protected, the applicability of HTML5 module is improved.
Detailed description of the invention
Figure 1A is a kind of the application embodiment flow chart of business access method shown according to an exemplary embodiment;
Figure 1B to Fig. 1 D is the application according to a kind of access preset term function in wechat shown in Figure 1A illustrated embodiment Business procedure schematic diagram can be accessed;
Fig. 1 E to Fig. 1 G is the application according to a kind of access preset term function in nail nail shown in Figure 1A illustrated embodiment Business procedure schematic diagram can be accessed;
Fig. 1 H to Fig. 1 J accesses preset term according to one kind shown in Figure 1A illustrated embodiment for the application in Alipay Function accesses business procedure schematic diagram;
Fig. 2 is a kind of the application hardware structure diagram of mobile terminal shown according to an exemplary embodiment;
Fig. 3 is a kind of the application example structure figure of business access device shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application. It is also intended in the application and the "an" of singular used in the attached claims, " described " and "the" including majority Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from In the case where the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
Since mixing application refers to having both native applications between Web application, the application of native applications between the two The advantage of good user-interaction experience and the advantage of Web application cross-platform exploitation.For example, Taobao's client, wechat, Alipay etc. It is mixing application.That is, mixing application is equivalent on the basis of native applications and has embedded a browser, show The page be HTML5 webpage, it is therefore desirable to pass through HTML5 module realize business access.In addition, provided by mixing application Interface of the supported business of this application, such as access microphone services, access camera business etc. are encapsulated in JSSDK, without Same mixing is different using provided JSSDK, i.e. the interface of the business encapsulated in JSSDK is different.
In the prior art, if a certain item-function needs to access different mixing applications, since different mixing are applied JSSDK it is different, it is therefore desirable to each mixing in HTML5 module for item-function access, which is applied, increases separately corresponding compatibility Code, the interface that the compatibility code business that the item-function is accessed for identification encapsulates in JSSDK.To start After some mixing application, if the business in the item-function access application that user passes through access, mobile terminal need first to lead to The interface that corresponding compatibility code identification access business encapsulates in JSSDK in HTML5 module is crossed, is then gone again by the interface Access the business of mixing application.
It follows that as the mixing number of applications that item-function accesses increases, the increased compatibility generation in HTML5 module Code also increases therewith, so that the maintenance difficulties of HTML5 module are increasing, applicability is lower and lower.
Based on this, mobile terminal in the application is starting a certain mixing application, and after accessing preset item-function, elder generation Business packed interface in the JSSDK applied using interface driver predetermined to the mixing is updated processing, to obtain The corresponding relationship list of the service identification and interface of mixing application.To in through item-function access mixing application Business when, can be by the corresponding relationship list for the service identification and interface being obtained ahead of time, it is corresponding that lookup will access business Interface, and pass through the business in interface access mixing application.
Technical scheme is described in detail with specific embodiment below.
Figure 1A is a kind of the application embodiment flow chart of business access method shown according to an exemplary embodiment, should Embodiment can using on mobile terminals, the platform of the running of mobile terminal can be Windows, MaxOS, IOS, Any platform such as Android, Linux, and the embodiment can be realized by the mixing application installed on mobile terminal.The application In embodiment, when accessing preset item-function in mixing application, user passes through in item-function access mixing application When business, need to realize the access of business by browser module, and mix and be mounted in advance in application for the item-function Service identification and interface corresponding relationship list, which can be HTML5 module.Those skilled in the art can be with Understand, preset item-function can be designed according to actual needs, needed to access mixing by the item-function and answered Business.
As shown in Figure 1A, which includes the following steps:
Step 101: receiving the business access request generated by triggering item-function.
In one embodiment, mobile terminal, can be by mixing application access preset address chain after starting mixing application It connects, to load and show that preset address links the page of corresponding item-function, or one can also be swept by mixing application It sweeps functionality scan and presets two dimensional code, to load and show the page of the default corresponding item-function of two dimensional code.If user touches After sending out a certain business in the page, mobile terminal can receive the business access request generated based on the triggering.
Wherein, the page of the item-function of mixing application display can be the HTML5 page.
Step 102: through browser module in the corresponding relationship list of service identification and interface, searching business access and ask The corresponding interface of the service identification of carrying is sought, and utilizes the corresponding business module of interface access service identification found.
Before executing step 102, mobile terminal needs business of the carry for item-function in mixing application in advance The corresponding relationship list of mark and interface.I.e. mobile terminal can first pass through mixing application and send default page request, and connect Narrow to the page resource of the page request, mixing then obtained according to page resource and applies corresponding interface driver, finally plus Carry the JSSDK of mixing application, and using the interface driver of acquisition to the access interface of the business module encapsulated in the JSSDK into Row updates, and the mark of business module is saved in the corresponding relationship list of service identification and interface with updated interface.
Wherein, it is preset described in 101 through the above steps by mixing to can be using the default page request sent What address link or the triggering of default two dimensional code were sent.The various businesses of this application are encapsulated in the JSSDK applied due to mixing Interface, and the encapsulation that the service provider that the interface is mixing application carries out according to the design of oneself, therefore difference JSSDK, for The interface of same business packed may be not identical, and then mobile terminal needs (to determine in advance using the interface driver obtained The interface driver of justice) unified update is carried out to the interface encapsulated in JSSDK in advance, for the updated interface access of later use Business module in mixing application, the item-function without in browser module being mixing application access increase compatibility Code, the interface of identification JSSDK encapsulation.
In one embodiment, mobile whole for the process for obtaining the corresponding interface driver of mixing application according to page resource Then the default script that end can include by executing page resource recycles page money to extract the feature of mixing application The driving configured list that source includes obtains the corresponding interface driver of feature of mixing application, can remember in the driving configured list The corresponding relationship of the address of the feature and interface driver of record mixing application.
Wherein, the page resource received is in addition to that can also include above-mentioned step comprising default script and driving configured list The content of pages of item-function described in rapid 101.Default script in page resource can be JavaScript script, execute In default scenario process, the feature of mixing application can be extracted by executing userAgent (user agent), specific instruction can be with It is window.navigator.userAgent, the feature for mixing application may include mixing and apply used type, screen The features such as the version number of resolution ratio and JSSDK.The corresponding interface of feature of mixing application is got from driving configured list After the address of driving, corresponding interface driver can be downloaded by the address of the interface driver.
It should be noted that the address of the corresponding interface driver of feature of the mixing application recorded in driving configured list refers to To interface driver, refer to the JSSDK of the interface driver of business module supported in mixing application namely mixing application In the packaged corresponding interface driver of business module.It is not propped up in addition, mixing application can also be recorded in driving configured list The address of the interface driver for the business held, i.e. item-function need to access the interface driver for the business that mixing application is not supported, because This may be used also while access interface of the interface driver using acquisition to the business module encapsulated in the JSSDK is updated To install the interface driver of business that mixing application is not supported, and the mark for the business module that mixing application is not supported with Corresponding interface is saved in the corresponding relationship list of service identification and interface, thus, it also can be realized by browser module The access for the business module that mixing application is not supported.
Wherein, driving configured list can be recorded by key:value mode, wherein Key refers to the spy of mixing application Sign, value refer to the address of interface driver.The driving configured list can be pre-configured in page resource, if default Item-function needs to access other mixing applications, can increase the feature for needing to access application and interface in driving configured list The corresponding relationship of driving.
In one example, driving can also be comprising the load of the corresponding JSSDK of feature of mixing application in configured list Address, so that mobile terminal can use adding for the corresponding JSSDK of feature of the mixing application recorded in driving configured list Set address loads the JSSDK of mixing application;Or the feature that mobile terminal can also be applied according to the mixing, it is answered from the mixing Corresponding JSSDK is loaded in the server that service provider provides.
It should be further noted that when the mark of business module and updated interface are saved in business by mobile terminal After in the corresponding relationship list of mark and interface, service identification can be mounted to mix with the corresponding relationship list of interface and answered It is sent completely event notice on the default object of offer, and to browser module, thus, browser module can be based on receiving Completion event notice, execute step 102 process.
Wherein, default object can be windows object, and the completion event notice that mobile terminal is sent can pass through DOM Event is realized.
It needs further to illustrate, if not finding business mark in service identification and the list of interface corresponding relationship Know corresponding interface, then can export the prompt information that do not support.
For the process of above-mentioned steps 101 to step 102, in an exemplary scene, in conjunction with shown in Figure 1B to Fig. 1 D, it is The application accesses preset term function according to one kind shown in Figure 1A illustrated embodiment in wechat and accesses business procedure schematic diagram, Figure 1B sweeps function by sweeping for wechat for mobile terminal, scans the default default page request of two dimensional code triggering transmission, and Fig. 1 C is After the page resource for default page request that mobile terminal receives, the page of the item-function of display, Fig. 1 D is to use After " resetting navigation bar " button is clicked at family in the page of item-function, trigger after being directed to the business of resetting navigation bar in wechat, " resetting navigation bar pattern " page of display.
In another exemplary scene, in conjunction with shown in Fig. 1 E to Fig. 1 G, shown for the application according to Figure 1A illustrated embodiment A kind of access preset term function in nail nail access business procedure schematic diagram, Fig. 1 E is that mobile terminal by nail nail sweeps one Function is swept, scanning presets two dimensional code triggering and sends default page request, and Fig. 1 F is directed to the default page for what mobile terminal received After the page resource of request, the page of the item-function of display, Fig. 1 G is that user clicks " resetting in the page of item-function After navigation bar " button, after being directed to the business of resetting navigation bar in triggering nail nail, " resetting navigation bar pattern " page of display.
In another exemplary scene, in conjunction with shown in Fig. 1 H to Fig. 1 J, shown for the application according to Figure 1A illustrated embodiment One kind access preset term function in Alipay and access business procedure schematic diagram, Fig. 1 H is mobile terminal by Alipay Sweep and sweep function, scan default two dimensional code triggering and send default page request, Fig. 1 I be mobile terminal receive for default After the page resource of page request, the page of the item-function of display, Fig. 1 J is that user clicks in the page of item-function It after " resetting navigation bar " button, triggers after being directed to the business of resetting navigation bar in Alipay, " the resetting navigation bar pattern " of display The page.
It will be appreciated by persons skilled in the art that technical scheme can be adapted for various mixing applications, if Preset item-function needs to access other mixing applications, as long as answering then increasing in driving configured list and needing to access mixing Feature and corresponding interface driver can be realized, without modifying the code for accessing the browser module of business, because This can achieve the effect of browser module code reuse, can reduce development cost.
As can be seen from the above embodiments, using the embodiment of the present application, mobile terminal starting mixing application, and preset item is accessed After mesh function, the business access request generated by triggering item-function can receive, and hang in advance by browser module In the corresponding relationship list of the service identification and interface of load, the corresponding interface of service identification that business access request carries is searched, And utilize the corresponding business module of interface access service identification found.It follows that due to preparatory carry in mixing application There is the corresponding relationship list of the service identification and interface for item-function, therefore browser module can pass through the service identification The access of business can be realized with the corresponding relationship list of interface, if browser module is HTML5 module, with prior art phase Comparison, compatibility code of the application without increasing the mixing application for access item-function in HTML5 module, so as to The maintenance difficulties for reducing HTML5 module, improve the applicability of HTML5 module.
Corresponding with the embodiment of aforementioned business access method, present invention also provides the embodiments of business access device.
The embodiment of the application business access device can be using on mobile terminals.Installation practice can pass through software It realizes, can also be realized by way of hardware or software and hardware combining.Taking software implementation as an example, as on a logical meaning Device, be in being read computer program instructions corresponding in nonvolatile memory by the processor of equipment where it Deposit what middle operation was formed.For hardware view, as shown in Fig. 2, implementing exemplify one according to an embodiment for the application The hardware structure diagram of kind of mobile terminal, in addition to processor shown in Fig. 2, memory, network interface and nonvolatile memory it Outside, the equipment in embodiment where device can also include other hardware, no longer to this generally according to the actual functional capability of the equipment It repeats.
Fig. 3 is a kind of the application example structure figure of business access device shown according to an exemplary embodiment, should Business access device can be applied on the mobile terminal for being equipped with mixing application, and access has preset item in the mixing application Mesh function, by the item-function be able to access that it is described mixing application comprising business, and the mixing apply pass through browsing Device module accesses business, and pair of the service identification and interface for the item-function is mounted in the mixing application in advance Relation list is answered, which includes:
Receiving module 310, for receiving the business access request for passing through and triggering the item-function and generating;
Business access module 320, for by the browser module the service identification and interface corresponding relationship In list, the corresponding interface of service identification that the business access request carries is searched, and utilize the interface access institute found State the corresponding business module of service identification.
In an optional implementation, described device further includes (being not shown in Fig. 3):
List block is obtained, is specifically used for sending default page request by mixing application, and receive for described The page resource of page request;The mixing, which is obtained, according to the page resource applies corresponding interface driver;It loads described mixed The Software Development Tools JSSDK based on JavaScript of application is closed, and the JSSDK is encapsulated using the interface driver obtained The access interface of business module be updated;The mark of business module is saved in service identification and connect with updated interface In the corresponding relationship list of mouth.
In an optional implementation, the acquisition list block is obtained also particularly useful for according to the page resource During taking the corresponding interface driver of the mixing application, the default script for including by executing the page resource, to extract The feature of the mixing application;The driving configured list for including using the page resource obtains the feature pair of the mixing application The interface driver answered, it is described to drive the feature pass corresponding with the address of interface driver that record has mixing to apply in configured list System.
In an optional implementation, described device further includes (being not shown in Fig. 3):
Notification module, specifically for saving the mark of business module and updated interface in the acquisition list block After into the corresponding relationship list of service identification and interface, the corresponding relationship list of the service identification and interface is mounted to On the default object that the mixing application provides;Event notice is sent completely to the browser module;Wherein, the browser The step of module is notified based on received completion event, executes the business access module.
In an optional implementation, described device further includes (being not shown in Fig. 3):
Cue module, if for not found in the preconfigured service identification and interface corresponding relationship list The corresponding interface of the service identification, then export the prompt information that do not support.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual The purpose for needing to select some or all of the modules therein to realize application scheme.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the application Its embodiment.This application is intended to cover any variations, uses, or adaptations of the application, these modifications, purposes or Person's adaptive change follows the general principle of the application and including the undocumented common knowledge in the art of the application Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the application are by following Claim is pointed out.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method of element, commodity or equipment.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.

Claims (10)

1. a kind of business access method, the method is applied to be equipped with the mobile terminal of mixing application, which is characterized in that described Mixing application in access have preset item-function, by the item-function be able to access that it is described mixing application comprising industry Business, and mixing application accesses business by browser module, and is mounted in advance in mixing application for the item The corresponding relationship list of the service identification and interface of mesh function, which comprises
Receive the business access request generated by triggering the item-function;
Through the browser module in the corresponding relationship list of the service identification and interface, searches the business access and ask The corresponding interface of the service identification of carrying is sought, and accesses the corresponding business module of the service identification using the interface found.
2. the method according to claim 1, wherein it is corresponding with interface to obtain service identification in the following way Relation list:
Default page request is sent by mixing application, and receives the page resource for being directed to the page request;
The mixing, which is obtained, according to the page resource applies corresponding interface driver;
The Software Development Tools JSSDK based on JavaScript of the mixing application is loaded, and utilizes the interface driver obtained The access interface of the business module of JSSDK encapsulation is updated;
The mark of business module is saved in the corresponding relationship list of service identification and interface with updated interface.
3. according to the method described in claim 2, being corresponded to it is characterized in that, obtaining the mixing application according to the page resource Interface driver, comprising:
The default script for including by executing the page resource, to extract the feature of the mixing application;
The driving configured list for including using the page resource obtains the corresponding interface driver of feature of the mixing application, institute State the corresponding relationship of the address of record has mixing to apply in driving configured list feature and interface driver.
4. according to the method described in claim 2, it is characterized in that, the mark of business module and updated interface are saved in After in the corresponding relationship list of service identification and interface, the method also includes:
The service identification is mounted to described mix using on the default object provided with the corresponding relationship list of interface;
Event notice is sent completely to the browser module;Wherein, the browser module is logical based on received completion event Know, execute in the corresponding relationship list of the service identification and interface, searches the business mark that the business access request carries The step of knowing corresponding interface.
5. the method according to claim 1, wherein the method also includes:
It is defeated if not finding the corresponding interface of the service identification in the service identification and interface corresponding relationship list The prompt information that do not support out.
6. a kind of business access device, described device is applied to be equipped with the mobile terminal of mixing application, which is characterized in that described Mixing application in access have preset item-function, by the item-function be able to access that it is described mixing application comprising industry Business, and mixing application accesses business by browser module, and is mounted in advance in mixing application for the item The corresponding relationship list of the service identification and interface of mesh function, described device include:
Receiving module, for receiving the business access request for passing through and triggering the item-function and generating;
Business access module, for by the browser module in the corresponding relationship list of the service identification and interface, The corresponding interface of service identification that the business access request carries is searched, and accesses the business mark using the interface found Know corresponding business module.
7. device according to claim 6, which is characterized in that described device further include:
List block is obtained, is specifically used for sending default page request by mixing application, and receive and be directed to the page The page resource of request;The mixing, which is obtained, according to the page resource applies corresponding interface driver;The mixing is loaded to answer Software Development Tools JSSDK based on JavaScript, and the industry that the JSSDK is encapsulated using the interface driver obtained The access interface of business module is updated;The mark of business module is saved in service identification and interface with updated interface In corresponding relationship list.
8. device according to claim 7, which is characterized in that the acquisition list block, also particularly useful for according to institute It states page resource and obtains the mixing using during corresponding interface driver, preset by what the execution page resource included Script, to extract the feature of the mixing application;The mixing is obtained using the driving configured list that the page resource includes The corresponding interface driver of the feature of application, it is described that record in configured list is driven to have the ground for mixing the feature and interface driver applied The corresponding relationship of location.
9. device according to claim 7, which is characterized in that described device further include:
Notification module, specifically for the mark of business module and updated interface are saved in industry in the acquisition list block After in the corresponding relationship list of business mark and interface, the corresponding relationship list of the service identification and interface is mounted to described On the default object that mixing application provides;Event notice is sent completely to the browser module;Wherein, the browser module The step of being notified based on received completion event, executing the business access module.
10. device according to claim 6, which is characterized in that described device further include:
Cue module, if described for not found in the preconfigured service identification and the list of interface corresponding relationship The corresponding interface of service identification, then export the prompt information that do not support.
CN201810564378.2A 2018-06-04 2018-06-04 A kind of business access method and device Active CN109067818B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810564378.2A CN109067818B (en) 2018-06-04 2018-06-04 A kind of business access method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810564378.2A CN109067818B (en) 2018-06-04 2018-06-04 A kind of business access method and device

Publications (2)

Publication Number Publication Date
CN109067818A true CN109067818A (en) 2018-12-21
CN109067818B CN109067818B (en) 2019-08-20

Family

ID=64820346

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810564378.2A Active CN109067818B (en) 2018-06-04 2018-06-04 A kind of business access method and device

Country Status (1)

Country Link
CN (1) CN109067818B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110673970A (en) * 2019-09-29 2020-01-10 郑州信大捷安信息技术股份有限公司 Cross-process calling system and method based on web application
CN112367302A (en) * 2020-10-20 2021-02-12 北京空间飞行器总体设计部 Identity authentication method and system suitable for chrome browser
CN113761430A (en) * 2020-07-17 2021-12-07 北京京东尚科信息技术有限公司 Service access method, device, equipment and computer readable storage medium
CN113971257A (en) * 2021-10-28 2022-01-25 中国银行股份有限公司 Function menu access method and device for hybrid application

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101072116A (en) * 2007-04-28 2007-11-14 华为技术有限公司 Service selecting method, device, system and client end application server
CN101499904A (en) * 2008-02-01 2009-08-05 华为技术有限公司 Method, apparatus and system for safe interface call
CN103095479A (en) * 2011-11-04 2013-05-08 华为技术有限公司 Method and device of business configuration
CN104283841A (en) * 2013-07-02 2015-01-14 阿里巴巴集团控股有限公司 Method, device and system for carrying out service access control on third-party application
US20150096011A1 (en) * 2013-10-01 2015-04-02 Racemi, Inc. Migration of complex applications within a hybrid cloud environment
CN105471931A (en) * 2014-08-06 2016-04-06 腾讯科技(北京)有限公司 Method, device and system for querying service data
CN106599045A (en) * 2016-11-09 2017-04-26 上海艾融软件股份有限公司 Request sending method and apparatus
CN106716368A (en) * 2014-09-25 2017-05-24 微软技术许可有限责任公司 Network classification for applications
CN106790206A (en) * 2017-01-05 2017-05-31 厦门中控生物识别信息技术有限公司 The protocol analysis method and device of operation system
CN107679061A (en) * 2017-07-26 2018-02-09 上海壹账通金融科技有限公司 Mix APP page navigation method, device, terminal and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101072116A (en) * 2007-04-28 2007-11-14 华为技术有限公司 Service selecting method, device, system and client end application server
CN101499904A (en) * 2008-02-01 2009-08-05 华为技术有限公司 Method, apparatus and system for safe interface call
CN103095479A (en) * 2011-11-04 2013-05-08 华为技术有限公司 Method and device of business configuration
CN104283841A (en) * 2013-07-02 2015-01-14 阿里巴巴集团控股有限公司 Method, device and system for carrying out service access control on third-party application
US20150096011A1 (en) * 2013-10-01 2015-04-02 Racemi, Inc. Migration of complex applications within a hybrid cloud environment
CN105471931A (en) * 2014-08-06 2016-04-06 腾讯科技(北京)有限公司 Method, device and system for querying service data
CN106716368A (en) * 2014-09-25 2017-05-24 微软技术许可有限责任公司 Network classification for applications
CN106599045A (en) * 2016-11-09 2017-04-26 上海艾融软件股份有限公司 Request sending method and apparatus
CN106790206A (en) * 2017-01-05 2017-05-31 厦门中控生物识别信息技术有限公司 The protocol analysis method and device of operation system
CN107679061A (en) * 2017-07-26 2018-02-09 上海壹账通金融科技有限公司 Mix APP page navigation method, device, terminal and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110673970A (en) * 2019-09-29 2020-01-10 郑州信大捷安信息技术股份有限公司 Cross-process calling system and method based on web application
CN110673970B (en) * 2019-09-29 2022-12-23 郑州信大捷安信息技术股份有限公司 Cross-process calling system and method based on web application
CN113761430A (en) * 2020-07-17 2021-12-07 北京京东尚科信息技术有限公司 Service access method, device, equipment and computer readable storage medium
CN112367302A (en) * 2020-10-20 2021-02-12 北京空间飞行器总体设计部 Identity authentication method and system suitable for chrome browser
CN112367302B (en) * 2020-10-20 2023-07-18 北京空间飞行器总体设计部 Identity authentication method and system suitable for chrome browser
CN113971257A (en) * 2021-10-28 2022-01-25 中国银行股份有限公司 Function menu access method and device for hybrid application

Also Published As

Publication number Publication date
CN109067818B (en) 2019-08-20

Similar Documents

Publication Publication Date Title
CN109067818B (en) A kind of business access method and device
US8396939B2 (en) Content distribution management device, terminal, program, and content distribution system
US9077770B2 (en) Mobile web app infrastructure
CN105389222B (en) A kind of methods, devices and systems of dynamic call native interface
US9697353B2 (en) Method and device for intercepting call for service by application
US7779408B1 (en) Method and system for downloading and managing portable applications on a mobile device
US8806019B1 (en) Installer-free applications using native code modules and persistent local storage
US20160269433A1 (en) Method and system for checking security of url for mobile terminal
CN102929638A (en) Method and system for expanding Web application (App) functions
CN108874922B (en) Client device, webpage rendering method based on single page application and storage medium
US11553035B2 (en) Cross-platform module for loading across a plurality of device types
CN106406961A (en) Method and device for loading and providing application based on browser
CN106357817A (en) Application installation method and server and client
CN105635284B (en) A kind of page display method and terminal
CN102932469B (en) Method for achieving client browser and client browser
CN103237083A (en) Mobile information service resource aggregation system and mobile information service resource aggregation method
CN102917074A (en) Server-side browser realization method and server
CN111355720B (en) Method, system and equipment for accessing intranet by application and computer storage medium
CN112818270B (en) Data cross-domain transfer method and device and computer equipment
JP2004152022A (en) Communication device, program, and storage medium
WO2023005163A1 (en) Method for loading application page, storage medium and related device thereof
CN112416458A (en) Preloading method and device based on ReactNative, computer equipment and storage medium
CN105653448A (en) Application debugging method, application debugging device and terminal
CN111880789A (en) Page rendering method, device, server and computer-readable storage medium
CN114385124A (en) Independent page jumping method, device and equipment based on Vue framework

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