CN104516890B - Method for processing business, device and electronic equipment - Google Patents
Method for processing business, device and electronic equipment Download PDFInfo
- Publication number
- CN104516890B CN104516890B CN201310452436.XA CN201310452436A CN104516890B CN 104516890 B CN104516890 B CN 104516890B CN 201310452436 A CN201310452436 A CN 201310452436A CN 104516890 B CN104516890 B CN 104516890B
- Authority
- CN
- China
- Prior art keywords
- processing
- specified services
- business
- web page
- request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000012545 processing Methods 0.000 title abstract description 365
- 238000000034 method Methods 0.000 title abstract description 82
- 238000001514 detection method Methods 0.000 abstract description 25
- 230000000694 effects Effects 0.000 abstract description 6
- 238000005516 engineering process Methods 0.000 abstract description 4
- 230000008569 process Effects 0.000 description 54
- 230000006870 function Effects 0.000 description 43
- 238000010586 diagram Methods 0.000 description 18
- 230000005540 biological transmission Effects 0.000 description 16
- 238000012360 testing method Methods 0.000 description 11
- 230000006854 communication Effects 0.000 description 8
- 238000004891 communication Methods 0.000 description 7
- 230000008901 benefit Effects 0.000 description 3
- 238000003384 imaging method Methods 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 230000001419 dependent effect Effects 0.000 description 2
- 235000013399 edible fruits Nutrition 0.000 description 2
- 238000012905 input function Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000006073 displacement reaction Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000006698 induction Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 210000003127 knee Anatomy 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000009527 percussion Methods 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000004083 survival effect Effects 0.000 description 1
- 238000004148 unit process Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- 238000004804 winding Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
- H04L51/046—Interoperability with other network applications or services
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Computer Security & Cryptography (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
Abstract
The invention discloses a kind of method for processing business, device and electronic equipments, belong to field of computer technology.The described method includes: whether the current web page that detection web displaying unit is shown calls predetermined interface corresponding with specified services, when calling, the processing for handling specified services is generated by the predetermined interface and is requested;Processing request is sent to Service Processing Unit corresponding with the specified services in the application program, the specified services are handled by the Service Processing Unit.When the present invention calls predetermined interface by the current web page shown in web displaying unit, the processing for handling specified services is generated by the predetermined interface to request, processing request is sent in application program Service Processing Unit corresponding with specified services, specified services are handled by Service Processing Unit;The speed solved in the prior art in business processing is slow, the lower problem of efficiency;Achieve the effect that business processing efficiency can be improved.
Description
Technical field
The present invention relates to field of computer technology, in particular to a kind of method for processing business, device and electronic equipment.
Background technique
As the function of application program in terminal is enriched constantly, it is built-in with browser in many application programs, the browser
Commonly referred to as built-in browser, user can browse relevant webpage by the built-in browser in application program, and can grasp
Make the content on webpage to realize related service, for example realize at the business such as transmission, sharing, collection or network payment on webpage
Reason.
Built-in browser has generally included web displaying unit, predetermined interface and process kernel.When realizing business processing,
Whether the current web page that built-in browser detection web displaying unit is shown calls predetermined interface corresponding with specified services, works as inspection
It measures the current web page that web displaying unit is shown and calls predetermined interface corresponding with specified services, then it is raw using the predetermined interface
It is requested at processing corresponding with the specified services, the process kernel of built-in browser can request the processing to be sent to server,
The current web page is given by server push prompting frame relevant to the specified services, in this way, user can then operate current web page
The prompting frame of upper display is handled with finishing service.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems: built-in browser exists
During realizing business processing, needs to obtain prompting frame from server by network, the processing to business could be completed, and eventually
End is usually slow by the speed that network obtains data from server, therefore the method for existing business processing is in business processing
When speed it is slow, efficiency is lower.
Summary of the invention
For slow, the lower problem of efficiency that solves speed in the prior art in business processing, the present invention is implemented
Example provides a kind of method for processing business, device and electronic equipment.The technical solution is as follows:
In a first aspect, providing a kind of method for processing business, which comprises
It is corresponding with specified services pre- whether the current web page that the web displaying unit in detection application program is shown calls
Stationary interface;
If testing result is that the current web page that web displaying unit is shown calls predetermined interface corresponding with specified services,
The processing for handling specified services is generated by the predetermined interface to request;
Processing request is sent to Service Processing Unit corresponding with the specified services in the application program, by
The Service Processing Unit handles the specified services.
Second aspect, provides a kind of business processing device, and described device includes:
Call detection module, the current web page that the web displaying unit for detecting in application program show whether call and
The corresponding predetermined interface of specified services;
Request generation module, for it is described call detection module testing result be web displaying unit show it is current
When webpage calls predetermined interface corresponding with specified services, the processing for handling specified services is generated by the predetermined interface
Request;
Service Processing Module, the processing request for generating the request generation module are sent in application program
Service Processing Unit corresponding with the specified services is handled the specified services by the Service Processing Unit.
The third aspect, provides a kind of electronic equipment, and the electronic equipment includes the business processing as described in second aspect
Device.
Technical solution provided in an embodiment of the present invention has the benefit that
The current web page calling shown by the web displaying unit in application program is corresponding with specified services to be made a reservation for connect
When mouth, the processing for handling specified services is generated according to the predetermined interface and is requested, processing request is sent in application program
Service Processing Unit corresponding with specified services is handled specified services by Service Processing Unit;Solves the prior art
In speed in business processing it is slow, the lower problem of efficiency;Since the Service Processing Unit in application program is preparatory
What is set can be used for the unit of processing business, and no longer need to obtain relevant prompting frame from server, therefore business
The speed ratio of processing is very fast, has achieved the effect that business processing efficiency can be improved.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is the method flow diagram of the method for processing business provided in one embodiment of the invention;
Fig. 2 is the method flow diagram of the method for processing business provided in another embodiment of the present invention;
Fig. 3 is the schematic diagram of the code intermodulation provided in section Example of the present invention;
Fig. 4 A is the schematic diagram of business procession in section Example of the present invention;
Fig. 4 B is the schematic diagram of the user's operation business control provided in a part of the embodiment of the present invention;
Fig. 4 C is the schematic diagram of the user's operation business control provided in another part embodiment of the present invention;
Fig. 4 D is the schematic diagram of the prompting frame provided in section Example of the present invention;
Fig. 4 E be provided in section Example of the present invention shown on webpage share result schematic diagram;
Fig. 5 is the structural schematic diagram of the business processing device provided in one embodiment of the invention;
Fig. 6 is the structural schematic diagram of the business processing device provided in another embodiment of the present invention;
Fig. 7 is the structural block diagram of the electronic equipment provided in section Example of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail." electronic equipment " said in text may include smart phone, tablet computer, smart television,
E-book reader, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image
Expert's compression standard audio level 3), MP4(Moving Picture Experts Group Audio Layer IV, dynamic shadow
As expert's compression standard audio level 4) player, pocket computer on knee and desktop computer etc..
In order to improve the experience of user, many instant messaging application programs installed in electronic equipment at present are provided with interior
Browser is set, user directly can browse webpage using its built-in browser in the case where opening and logging in the application program.
Since the application program of instant messaging has the characteristics that instant messaging, when user view in webpage a certain piece article or certain
When one picture is relatively good, it may be desirable to by these content shares to the good friend of oneself or the application program account for being collected in oneself
In family.It is then taught how in detail through the Service Processing Unit in application program by several embodiments to built-in browser below
The process that the web page contents of display are handled.
Shown in Figure 1, it illustrates the method flows of the method for processing business provided in one embodiment of the invention
Figure.The method for processing business can be applied to be equipped in the electronic equipment of application program, and application program said here can be with
For the instant messaging application program with browsing webpage function.The method for processing business may include:
101, detect the current web page that shows of web displaying unit in application program whether call it is corresponding with specified services
Predetermined interface;
Generally, there is the instant messaging application program of browsing webpage function would generally be provided with browsing built in one
Whether device, built-in browser can detecte the current web page that the web displaying unit in application program is shown and call and specified services
Corresponding predetermined interface.The built-in browser usually may include web displaying unit, predetermined interface and process kernel.
Web displaying unit said here can show webpage, for example, receiving when user opens the application program
The information that good friend sends includes a URL(Uniform Resource Locator, unified resource in this information
Finger URL), user, which can choose, at this time opens the URL, and corresponding, which can then be shown by web displaying unit
Webpage corresponding with the URL.
Predetermined interface said here is usually corresponding with business, for example, with the corresponding predetermined interface of the business of transmission, with
The corresponding predetermined interface of sharing business or predetermined interface corresponding with collection business etc..Specifically, these predetermined interfaces can be with
For the API(Application Programming Interface for needing to call in processing business, application programming is connect
Mouthful).
102, if testing result is that the current web page that show of web displaying unit calls and corresponding with specified services makes a reservation for connect
Mouthful, then the processing for handling specified services is generated by predetermined interface and requested;
When current web page calls predetermined interface corresponding with specified services, the predetermined interface is then available all and should
The relevant information of specified services, such as interior webpage perhaps relevant with the specified services relevant to the specified services etc..It is built-in
Predetermined interface in browser can be generated according to the information relevant to the specified services of acquisition for handling the specified services
Processing request.
103, processing request is sent in application program Service Processing Unit corresponding with specified services, by business processing
Unit handles specified services.
Processing request is sent in application program Service Processing Unit corresponding with specified services by built-in browser, by industry
Business processing unit handles specified services.
One or more business processing lists can be provided in existing most of application programs with instant communication function
Member, these Service Processing Units can be respectively provided with such as in the application program chosen content can be shared to friend circle,
Or the specified content of some or certain some good friends or collection that chosen content is sent to that user specifies is to industry such as user accounts
The function of business processing.It would generally include for by content share in X letter so that existing X believes instant messaging application program as an example
To the sharing Service Processing Unit of circle of friends, also includes the transmission Service Processing Unit for sending content to good friend, also include
There is the collection Service Processing Unit for collecting specified content, also includes the Service Processing Unit that specified content is sent to mailbox
Deng.
Generally, Service Processing Unit needed in processing business call be set in advance in the application program with
The relevant prompt frame template of type of service directly adds the relevant information of business when Service Processing Unit needs processing business
It adds in the prompt frame template, so that it may which realization shows prompting frame relevant to business, user's operation in the application program
The prompting frame can then complete the processing to business.It generally for different business, prompts the content of frame template also different, illustrates
For, prompt frame template relevant to sharing business may include edit box, the theme of sharing or brief introduction content and/or sharing
Good friend's range etc.;Again for example, prompt frame template relevant to transmission business may include edit box, the theme of transmission, hair
The web page address sent and/or good friend's range of transmission etc..
When processing request is sent to Service Processing Unit corresponding with specified services in application program by built-in browser,
The Service Processing Unit prestores prompting frame corresponding with the specified services in the application required for then calling directly
Template, and the relevant information with the specified services is added in the prompt frame template to generate the phase that can show specified services
The prompting frame for closing information, is then shown to user for the prompting frame, so as in the user's operation prompting frame in the application
Content completes the processing to the specified services.It can realize and be completed by the respective code in application program to webpage in this way
The business processing of content.
Certainly, in practical applications, Service Processing Unit can also realize the processing to business by other means, due to
Service Processing Unit is the function that application program just has been carried out originally, and the Service Processing Unit in application program is in processing business
Practical realization process be that those skilled in the art can realize, just no longer all realization processes are retouched one by one here
It states.
From the foregoing, it will be observed that working as corresponding with specified services pre- in the webpage calling and built-in browser that web displaying unit is shown
When stationary interface, demonstrate the need for handling specified services, it at this time then can be by step 102 and step 103 by business processing
The Service Processing Unit for handing to application program goes to realize, since the Service Processing Unit of application program is to be set in advance in application
The processing unit that can be used for handling related service in program, therefore can be directly by Service Processing Unit to the specified services
It is handled.
In the first possible implementation of the present embodiment, generate by predetermined interface for handling specified services
Processing request after, further includes:
Whether detection current web page has the permission of processing specified services;
If testing result is the permission that current web page has processing specified services, executes and processing request is sent to application
In program the step of Service Processing Unit corresponding with specified services.
In second of possible implementation of the present embodiment, whether detection current web page has processing specified services
Permission, comprising:
It detects and whether there is predetermined interface in the application programming interface permissions list corresponding with current web page prestored,
Application programming interface permissions list is to be had permission when current web page is opened by the current web page of preserving that server issues
All application programming interfaces called.
In whether there is the specified industry of processing in detection current web page in the third possible implementation of the present embodiment
Before the permission of business, further includes:
Processing request is sent to request queue by predetermined interface;
The notice being used to indicate in the presence of new processing request is sent to process kernel by predetermined interface;
After process kernel receives notice, requested by the processing in process kernel acquisition request queue.
In the 4th kind of possible implementation of the present embodiment, it is described by the Service Processing Unit to the specified industry
Business is handled, comprising:
Prompting frame corresponding with the specified services is generated by the Service Processing Unit;
Operation to the prompting frame is received by the Service Processing Unit;
Processing by the Service Processing Unit according to the operation completion received to the specified services.
In the 5th kind of possible implementation of the present embodiment, it is sent in application program and specifies request will be handled
The corresponding Service Processing Unit of business, after being handled by Service Processing Unit specified services, further includes:
Receive the processing result that the specified services corresponding to processing request that Service Processing Unit returns are handled;
Processing result is returned into current web page.
In conclusion the method for processing business provided in the embodiment of the present invention, passes through web displaying in the application
When the current web page that unit is shown calls predetermined interface corresponding with specified services, is generated using the predetermined interface and referred to for handling
Processing request is sent in application program Service Processing Unit corresponding with specified services, by industry by the processing request for determining business
Business processing unit handles specified services;The speed solved in the prior art in business processing is slow, efficiency compared with
Low problem;Since the Service Processing Unit in application program is the pre-set unit that can be used for processing business, and
No longer need to obtain relevant prompting frame from server, therefore the speed ratio of business processing is very fast, has reached and industry can be improved
The effect of business treatment effeciency.
Shown in Figure 2, it illustrates the method flows of the method for processing business provided in one embodiment of the invention
Figure.The method for processing business can be applied to be equipped in the electronic equipment of application program, and application program said here can be with
For the instant messaging application program with browsing webpage function.The method for processing business may include:
201, detect the current web page that shows of web displaying unit in application program whether call it is corresponding with specified services
Predetermined interface;
Generally, there is the instant messaging application program of browsing webpage function a built-in browser can be set,
Whether the built-in browser can detecte the current web page that the web displaying unit in application program is shown and calls and specified services
Corresponding predetermined interface, the built-in browser may include web displaying unit, predetermined interface and process kernel.
Web displaying unit said here can show webpage, for example, when opening the application program, if received
The information that good friend sends includes a URL in this information, and user, which can choose, at this time opens the URL, corresponding,
The application program can then show webpage corresponding with the URL by web displaying unit.
Predetermined interface said here is usually corresponding with business, for example, with the corresponding predetermined interface of the business of transmission, with
The corresponding predetermined interface of sharing business or predetermined interface corresponding with collection business etc..Specifically, these predetermined interfaces can be with
For the API for needing to call in processing business.
In practical applications, it when the business processing control in webpage that web displaying unit is shown is selected, is selected
Control would generally call predetermined interface corresponding with business.For example, it when user selects the transmission control on webpage, is chosen
The control selected can then call predetermined transmission interface corresponding with transmission business, when user selects the sharing control on webpage, quilt
The control of selection can then call predetermined sharing interface corresponding with sharing business etc..In alternatively possible implementation, use
It is the business processing control that provides of webpage that family, which can choose application program, likewise, the control selected can generally also call with
The corresponding predetermined interface of business.
202, if the current web page that testing result is web displaying unit calls predetermined interface corresponding with specified services,
The processing for handling specified services is generated by the predetermined interface to request;
When current web page calls predetermined interface corresponding with specified services, built-in browser is obtained by the predetermined interface
All information relevant to the specified services, such as interior webpage perhaps relevant with the specified services relevant to the specified services
Deng.Built-in browser is generated specified for handling this by the available information relevant to the specified services of the predetermined interface
The processing of business is requested.
Generally, different specified services, the predetermined interface (API for needing to call) of required calling are also different.
For example when specified services are " sharing a certain section of text ", it is then with sharing that the API called is needed when handling the specified services
The API of function, and when specified services are " a certain section of text of collection ", the API that needs call when handling the specified services is then
API with collection function.
In general, the API typically JavaScript API for needing to call when handling the specified services, and apply
Needs call when API in program may generally be expressed as realization business processing in Client API namely application program
API.Shown in Figure 3, it illustrates the schematic diagrames of the code intermodulation provided in section Example of the present invention.Wherein apply journey
Industry on the webpage in built-in browser in sequence with " being sent to good friend ", " sharing to friend circle ", " collection " and " payment "
It is engaged in processing function, usually similarly there is in the client of application program " being sent to good friend ", " sharing to friend circle ", " collection "
Business to be treated in webpage can then be gone to the client of application program by the service processing function of " payment " in this way
Dependent processing unit handles the business.
In general, being requested during a business processing when predetermined interface generates the processing for handling specified services
Later, the predetermined interface of built-in browser needs the process kernel by processing request notice to built-in browsing, so as to built-in clear
The process kernel look at handles processing request.In practical applications, multiple processing requests may be existed simultaneously, such as more
When needing to handle related service in the webpage of a display or in the same webpage, when each business needs to handle, can it adjust
With predetermined interface corresponding with business, each predetermined interface is required to receive processing request notice in processing at this time
Core.It is requested to guarantee that process kernel is available to all processing, avoids the omission to processing request, and guarantee processing is asked
Succession when asking, usually there is the process of one group of interaction process between predetermined interface and process kernel, specifically may refer to 203 to
205。
203, processing request is sent to by request queue by the predetermined interface;
Processing request is sent to request queue by the predetermined interface by built-in browser.
For storing processing request in request queue, in general, the structure of the request queue can be a queue, queue
Feature is first in first out, can guarantee that processing request earlier can be handled previously in this way, and processing a little later is asked
It asks, needs all processing in front to request after handling, just will be dealt with, certainly, in practical applications, request queue
Structure can also be other structures, for example can also be stack etc..The mode that process kernel obtains processing request is that basis is asked
The structure of queue is asked to determine, for example, process kernel then can be successively from the team when the result of request queue is a queue
Team's head in column obtains processing request, and when the result of request queue is a stack, process kernel then needs the successively stack from stack
Top obtains processing request.
Processing request can be sent to request queue first, i.e., by the processing after obtaining processing request by predetermined interface
Request is sent to the tail of the queue or stack top of request queue.
204, the notice being used to indicate in the presence of new processing request is sent to process kernel by the predetermined interface;
Built-in browser sends the notice being used to indicate in the presence of new processing request by the predetermined interface to process kernel,
I.e. after processing request is sent to request queue by the predetermined interface of built-in browser, then the predetermined interface of built-in browser needs
Notify the process kernel of built-in browser that there are new processing requests.In order to avoid predetermined interface will handle request be sent to
It goes wrong when request queue, for example processing request is not successfully sent to queue, it will usually be sent request will be handled
To request queue success and then removes notifier processes kernel there are new processing requests.
205, after the process kernel receives notice, requested by the processing in process kernel acquisition request queue;
After the process kernel receives notice, built-in browser passes through the processing in the queue of process kernel acquisition request
Request.
Since each called predetermined interface can generate at least one processing request (for example, multiple transmission business
Predetermined transmission interface is called, which, which can then correspond to, generates multiple processing requests), and need generating processing request
It is rear to process kernel send one notice, and process kernel every time receive notice after can know from request queue
Processing request, therefore the same processing request, process kernel are obtained in order to avoid process kernel is repeated as many times from request queue
Upon receipt of the notification, the request queue can be emptied after all processing requests present in acquisition request queue.
In this way, when the structure of above-mentioned request queue is a stack, since the characteristics of stack is first in first out, if only obtained
When taking one of processing request, the processing request being stored at first may wait very long ability processed, therefore in order to guarantee
Handle as soon as possible get processing request, process kernel would generally obtain all processing in stack request, then in order to avoid
Identical processing request is repeatedly obtained from request queue, it is also necessary to empty the request queue when obtaining processing request.
It will be apparent that in practical applications, process kernel can also request completing a processing and then from request queue
Middle to obtain next processing request, for example, when the structure of request queue is a queue, process kernel completes one
After processing request, first processing request can be obtained from team's head of the queue, and handle processing request, work as place
It has managed and then the secondary team from the queue obtains first new processing request, in this case, it is also not necessary to one
Secondary property obtains out all processing requests from request queue, and also no need to reserve interface notification process kernel, there are new processing
Request etc..
206, whether detection current web page has the permission of processing specified services;
Whether built-in browser detection current web page has the permission of processing specified services.Under normal conditions, in order to avoid
Current web page be fishing webpage or in which risk of business information when being tampered and leading to business processing, request will handled
It is sent to before the Service Processing Unit of application program, it is also necessary to which Authority Verification is carried out to current web page.Namely the current net of detection
Whether page has the permission of processing specified services.
In practical applications, after a webpage is opened, an application can be obtained from relevant server first
Program Interfaces API permissions list preserves all API that current web page has permission calling in the API permissions list, than
Such as when carrying out network payment, some API for payment carried out in the server it is legal put on record, just need to examine here
The API for needing to call when handling specified services carried in processing request is surveyed whether in the API permissions list, if this
A little API then show that the current web page has the permission for handling the specified services in the API permissions list, whereas if these
All or part API is not present in API permissions list, then shows that the current web page does not have the power for handling the specified services
Limit.
207, if testing result is the permission that current web page has processing specified services, processing request is sent to using journey
Service Processing Unit corresponding with specified services in sequence, is handled specified services by Service Processing Unit;
When current web page has the permission of processing specified services, processing request is sent to application program by built-in browser
In Service Processing Unit corresponding with specified services, specified services are handled by Service Processing Unit.Under normal conditions, have
Have and there is Service Processing Unit corresponding with specified services in the application program of instant communication function, such as in Fig. 3, when using journey
Industry on the webpage in built-in browser in sequence with " being sent to good friend ", " sharing to friend circle ", " collection " and " payment "
It is engaged in processing function, usually similarly there is in the client of application program " being sent to good friend ", " sharing to friend circle ", " collection "
Business to be treated in webpage can then be gone to the client of application program by the service processing function of " payment " in this way
The related service processing unit processes business.
In general, being handled by Service Processing Unit specified services, may include:
First, prompting frame corresponding with the specified services is generated by the Service Processing Unit;
Second, the operation to the prompting frame is received by the Service Processing Unit;
Third, the processing by the Service Processing Unit according to the operation completion received to the specified services.
For example, Service Processing Unit has needed the prompt frame template relevant to type of service that calls in processing business
It is set in advance in the application program, when Service Processing Unit needs processing business, is directly added the relevant information of business
It adds in the prompt frame template, so that it may which realization shows prompting frame relevant to business, user's operation in the application program
The prompting frame can then complete the processing to business.
When processing request is sent to Service Processing Unit corresponding with specified services in application program by built-in browser,
The Service Processing Unit prestores prompting frame corresponding with the specified services in the application required for then calling directly
Template, and the relevant information with the specified services is added in the prompt frame template to generate the phase that can show specified services
The prompting frame for closing information, is then shown to user for the prompting frame, so as in the user's operation prompting frame in the application
Content completes the processing to the specified services.It can realize and be completed by the respective code in application program to webpage in this way
The business processing of content.
208, receive the processing knot that the specified services corresponding to processing request that Service Processing Unit returns are handled
Fruit;
The specified services corresponding to processing request that built-in browser can receive Service Processing Unit return carry out
The processing result of processing.In practical applications, when the Service Processing Unit in application program is completed at processing request
After reason, if making the current web page available to processing as a result, such as " being sent completely " or " collecting successfully ", also need
The processing result is fed back into the current web page, therefore built-in browser also needs to obtain the processing result.
209, processing result is returned into current web page.
After built-in browser gets the processing result, then the processing result can be returned into current web page.One
As, each processing request can correspond to the specified services on a current web page or a corresponding webpage, when the processing is requested
After processing is completed, processing result can be fed back to the position on current web page or current web page where specified services.Citing comes
It says, the mark of webpage or the mark of specified services can also be carried in processing request, when processing request has been processed into
Later, then processing result can be fed back to by being somebody's turn to do on the webpage or webpage according to the mark of the webpage or the mark of specified services
At position where specified services.
In practical applications, processing request can also comprising current web page mark or specified services mark, so as to
After finally getting processing result, which can correctly be returned to the current web page.For example, predetermined interface
After generating processing request, a call back function can be registered, the parameter in the call back function may include what the processing was requested
The mark of specified services etc. carried in the mark or processing request of the current web page carried in mark, processing request, when
Processing complete after, after process kernel receives processing result, notice predetermined interface take out and it is counter register the call back function, obtain
The mark registered before getting in the call back function finds above-mentioned current web page or specified services, which is fed back
To current web page or the specified services.
From the foregoing, it will be observed that the sharing control under a certain section of text on the current web page shown in built-in browser when the user clicks
When part, the business that this section of text is shared can be called into relevant predetermined interface, so that the information such as this section of text will be carried
Be sent to the predetermined interface, by the predetermined interface by the processing request pass in application program may be implemented share business
Processing unit realizes the processing shared to this section of text by Service Processing Unit, and processing result is finally fed back to this
Current web page.
The process that lower business processing will be told about by a possible concrete implementation mode below, refers to Fig. 4 A institute
Show, it illustrates the schematic diagrames of business procession in section Example of the present invention.The business procession may include:
401, current web page calls predetermined interface;
The current web page that the web displaying unit of built-in browser is shown can be initiated when needing to handle a specified services
API Calls call predetermined interface corresponding with the specified services.
For example, by taking specified services are that web page contents are shared with good friend as an example, when user is in viewer applications
When some webpage of display, if it is desired to by the content share of the webpage to good friend, can then click on the webpage at this time
The sharing control of setting, as shown in Figure 4 B, it illustrates the user's operation business controls provided in a part of the embodiment of the present invention
Schematic diagram, what needs to be explained here is that, when share control 41 be a control element in webpage when, show the sharing control
41 be a part of webpage, at the Service Processing Unit in order to guarantee to can use application program after the sharing control 41 is clicked
Sharing business is managed, then usually when webpage is arranged, the interface called when can will click on the sharing control 41 is set as and shares industry
It is engaged in corresponding predetermined sharing interface, then executes following each steps.
Again for example, still by taking specified services are that web page contents are shared with good friend as an example, when user is in browse application journey
When some webpage shown in sequence, if it is desired to by the content share of the webpage to good friend, can then open using journey at this time
The list of controls that sequence provides, selects the sharing control in the list of controls, as shown in Figure 4 C, it illustrates another part embodiments
The schematic diagram of the user's operation business control of middle offer, includes wherein sharing control 42a in list of controls 42 and other are more
A control.After user selects to share control 42a, which can call predetermined sharing interface corresponding with sharing business.
Above-mentioned is only schematic example, and in practical applications, user can be sent to good friend with what is be arranged in webpage clicking
Control or click and be sent to the control of good friend in the application list, can call predetermined connect corresponding with transmission business at this time
Mouthful, it is also similar realization process for other business, just repeats no more here.
402, predetermined interface registers call back function;
In order to guarantee that final processing result can correctly return to current web page, predetermined interface registers a readjustment first
Function may include mark, the mark of the current web page or the mark of specified services etc. of processing request in the call back function
Parameter information.
403, predetermined interface requests processing request queue is added;
404, predetermined interface notifier processes kernel has new processing request;
405, process kernel obtains processing request all in the request queue after receiving the notice, and empties team
Column;
406, process kernel checks whether the current web page has the permission for handling the specified services;
407, processing request is sent to the corresponding Service Processing Unit of application program by process kernel;
After processing request is sent to corresponding Service Processing Unit in application program by process kernel, the business processing
Unit obtains prompt frame template corresponding with the type of specified services first, then believes the corresponding related service of processing request
Breath is added in the prompt frame template, and user can be showed and allow the prompting frame of user's operation by generating one.Such as Fig. 4 D institute
Show, it illustrates the schematic diagrames of the prompting frame provided in section Example of the present invention.It may include in the template of the prompting frame 43
There are edit box 43a, the theme 43b of sharing contents, good friend's range 43c of sharing and other some additional services, for example schemes
The service 43d of " whom is reminded see " in 4D, the service 43e that " can show place city " etc..When user is in the prompting frame 43
After editor completes, the transmission control 43f in the prompting frame can be clicked, is completed at the business shared to the web page contents
Reason.
It should be added that Service Processing Unit according to processing when requesting to generate prompting frame, it is interior in prompting frame
Appearance can be set in advance according to actual needs in prompt frame template, for example different application programs may use different mention
Show frame template, the content in these prompt frame templates may be different, and the content of prompting frame can not be as the present invention here
The restriction of real protection scope, and Service Processing Unit requests to generate the detailed process of prompting frame to be this field according to processing
What those of ordinary skill can realize, it is just no longer described in detail here.
408, after processing is complete, process kernel obtains processing result;
409, process kernel notifies the processing result to predetermined interface, which takes out and counter register the readjustment letter
Parameter in number;
410, which is returned to webpage corresponding to the parameter in the call back function by predetermined interface.
For example, can show sharing successfully prompt on the webpage after sharing successfully, as shown in Figure 4 E, show
The schematic diagram for showing sharing result on webpage provided has been provided in section Example of the present invention, has been shown on webpage in Fig. 4 E
The processing result " shared successfully " out.Certainly, if can not be shared, this is nothing if returning to the processing result of webpage
Failure is shared or shared to method.
In conclusion the method for processing business provided in the embodiment of the present invention, passes through the web displaying list in application program
When the current web page of member display calls predetermined interface corresponding with specified services, which is generated for handling specified services
Processing request, will processing request be sent in application program Service Processing Unit corresponding with specified services, by business processing
Unit handles specified services;The speed solved in the prior art in business processing is slow, and efficiency is lower to ask
Topic;Since the Service Processing Unit in application program is the pre-set unit that can be used for processing business, at the business
Reason unit can directly generate the prompting frame relevant to business for user's operation, therefore handle by Service Processing Unit
It only needs that prompting frame can be generated in terminal local when specified services, and no longer needs to obtain relevant prompt from server
Frame, therefore the speed ratio of business processing is very fast, has achieved the effect that business processing efficiency can be improved.
Shown in Figure 5, it illustrates the structural representations of the business processing device provided in one embodiment of the invention
Figure.The business processing device can be applied to be equipped in the electronic equipment of application program, and application program said here can be
Instant messaging application program with browsing webpage function.The business processing device may include: to call detection module 520, ask
Ask generation module 540 and Service Processing Module 560.
Detection module 520 is called, whether the current web page that the web displaying unit for detecting in application program is shown is adjusted
With predetermined interface corresponding with specified services;
Generation module 540 is requested, for calling the testing result of detection module 520 to work as what web displaying unit was shown
Preceding webpage calls predetermined interface corresponding with specified services, then the place for handling specified services is generated by the predetermined interface
Reason request;
Service Processing Module 560, the processing request for generating the request generation module 540 are sent to application
Service Processing Unit corresponding with the specified services in program carries out the specified services by the Service Processing Unit
Reason.
In conclusion the business processing device provided in the embodiment of the present invention, is worked as by what is shown in web displaying unit
When preceding webpage calls predetermined interface corresponding with specified services, the processing for handling specified services is generated according to the predetermined interface
Processing request is sent in application program Service Processing Unit corresponding with specified services, by Service Processing Unit pair by request
Specified services are handled;The speed solved in the prior art in business processing is slow, the lower problem of efficiency;Due to
Service Processing Unit in application program be it is pre-set can be used for the unit of processing business, and no longer need from service
Relevant prompting frame is obtained in device, therefore the speed ratio of business processing is very fast, reached the effect that business processing efficiency can be improved
Fruit.
Shown in Figure 6, it illustrates the structural representations of the business processing device provided in one embodiment of the invention
Figure.The business processing device can be applied in the application program in electronic equipment, application program said here can for
Browse the instant messaging application program of webpage function.The business processing device may include: to call detection module 601, please seek survival
At module 602 and Service Processing Module 603.
Detection module 601 is called, whether the current web page that the web displaying unit for detecting in application program is shown is adjusted
With predetermined interface corresponding with specified services;
Generation module 602 is requested, for calling the testing result of detection module 601 to work as what web displaying unit was shown
Preceding webpage calls predetermined interface corresponding with specified services, then the place for handling specified services is generated by the predetermined interface
Reason request, the predetermined interface are the interface being arranged in the built-in browser, and the built-in browser is to be built in application
Browser in program;
Service Processing Module 603, the processing request for generating the request generation module 602 are sent to described
Service Processing Unit corresponding with the specified services in application program, by the Service Processing Unit to the specified services into
Row processing.
In the first possible implementation of the present embodiment, the business processing device can also include that permission detects
Module 604.
Permission detection module 604, for detecting whether the current web page has the permission for handling the specified services;
Service Processing Module 603 is that the current web page has for the testing result in the permission detection module 604
When handling the permission of the specified services, executes described processing request is sent in the application program and specified with described
The step of business corresponding Service Processing Unit.
In second of possible implementation of the present embodiment, the permission detection module 604 can be used for:
It detects in the application programming interface permissions list corresponding with the current web page prestored with the presence or absence of described
Application programming interface, the application programming interface permissions list be the current web page open when by server under
The application programming interface of hair preserved the current web page and there is permission to call
In the third possible implementation of the present embodiment, the business processing device can also include: the first hair
Send module 605, the second sending module 606 and request module 607.
First sending module 605, for processing request to be sent to request queue by the predetermined interface;
Second sending module 606, for being used to indicate by the predetermined interface to process kernel transmission, there are new places
Manage the notice of request;
Request module 607, for passing through the process kernel after the process kernel receives the notice
Obtain the processing request in the request queue.
In the 4th kind of possible implementation of the present embodiment, the Service Processing Module 603 may include: prompt
Generation unit 603a, operation receiving unit 603b and business complete unit 603c.
Generation unit 603a is prompted, for generating prompt corresponding with the specified services by the Service Processing Unit
Frame;
Receiving unit 603b is operated, for receiving the operation to the prompting frame by the Service Processing Unit;
Business completes unit 603c, for being completed according to the operation received to described by the Service Processing Unit
The processing of specified services.
In the 5th kind of possible implementation of the present embodiment, the business processing device can also include: that result connects
Receive module 608 and result return module 609.
As a result receiving module 608, for receiving handling corresponding to request described for the Service Processing Unit return
The processing result that the specified services are handled;
Result return module 609, the processing result for receiving the result receiving module 608 return to described work as
Preceding webpage.
In conclusion the business processing device provided in the embodiment of the present invention, is worked as by what is shown in web displaying unit
When preceding webpage calls predetermined interface corresponding with specified services, the processing for handling specified services is generated according to the predetermined interface
Processing request is sent in application program Service Processing Unit corresponding with specified services, by Service Processing Unit pair by request
Specified services are handled;The speed solved in the prior art in business processing is slow, the lower problem of efficiency;Due to
Service Processing Unit in application program is the pre-set unit that can be used for processing business, which can
To directly generate the prompting frame relevant to business for user's operation, therefore specified services are being handled by Service Processing Unit
When only need that prompting frame can be generated in terminal local, and no longer need to obtain relevant prompting frame from server, therefore
The speed ratio of business processing is very fast, has achieved the effect that business processing efficiency can be improved.
It should be understood that the business processing device provided in above-described embodiment is in processing business, only with above-mentioned each function
Can module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different functions
Module is completed, i.e., the internal structure of electronic equipment is divided into different functional modules, with complete it is described above whole or
Partial function.In addition, business processing device provided by the above embodiment and method for processing business embodiment belong to same design,
Specific implementation process is detailed in embodiment of the method, and which is not described herein again.
Shown in Figure 7, it illustrates the structural block diagrams of the electronic equipment provided in section Example of the present invention.It should
Electronic equipment 700 is for implementing method for processing business provided by the above embodiment.Electronic equipment 700 in the present invention may include
One or more following component parts: completing the processor of various processes and method for executing computer program instructions, uses
In information and storage program instruction random access memory (RAM) and read-only memory (ROM), for storing data with information
Memory, I/O equipment, interface, antenna etc..Specifically:
Electronic equipment 700 may include RF(Radio Frequency, radio frequency) circuit 710, memory 720, input unit
730, display unit 740, sensor 750, voicefrequency circuit 760, WiFi (wireless fidelity, Wireless Fidelity) module
770, the components such as processor 780, power supply 782, camera 790.It will be understood by those skilled in the art that electronics shown in Fig. 7
The restriction of device structure not structure paired terminal, may include than illustrating more or fewer components, or the certain components of combination,
Or different component layout.
It is specifically introduced below with reference to each component parts of the Fig. 7 to electronic equipment 700:
RF circuit 710 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station
After downlink information receives, handled to processor 780;In addition, the data for designing uplink are sent to base station.In general, RF circuit packet
Include but be not limited to antenna, at least one amplifier, transceiver, coupler, LNA(Low Noise Amplifier, low noise
Amplifier), duplexer etc..In addition, RF circuit 710 can also be communicated with network and other equipment by wireless communication.The nothing
Any communication standard or agreement, including but not limited to GSM (Global System of Mobile can be used in line communication
Communication, global system for mobile communications), GPRS (General Packet Radio Service, general packet without
Line service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code
Division Multiple Access, wideband code division multiple access), LTE (Long Term Evolution, long term evolution), electronics
Mail, SMS (Short Messaging Service, short message service) etc..
Memory 720 can be used for storing software program and module, and processor 780 is stored in memory 720 by operation
Software program and module, thereby executing the various function application and data processing of electronic equipment 700.Memory 720 can
It mainly include storing program area and storage data area, wherein storing program area can be needed for storage program area, at least one function
Application program (such as sound-playing function, image player function etc.) etc.;Storage data area can be stored according to electronic equipment 700
Use created data (such as audio data, phone directory etc.) etc..In addition, memory 720 may include that high speed is deposited at random
Access to memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or other easily
The property lost solid-state memory.
Input unit 730 can be used for receiving the number or character information of input, and generate the user with electronic equipment 700
Setting and the related key signals input of function control.Specifically, input unit 730 may include touch panel 731 and other
Input equipment 732.Touch panel 731, also referred to as touch screen collect the touch operation of user on it or nearby and (for example use
Family uses the behaviour of any suitable object or attachment on touch panel 731 or near touch panel 731 such as finger, stylus
Make), and corresponding attachment device is driven according to preset formula.Optionally, touch panel 731 may include touch detection dress
It sets and two parts of touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation and bring
Signal, transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and it is turned
It changes contact coordinate into, then gives processor 780, and order that processor 780 is sent can be received and executed.Furthermore, it is possible to
Touch panel 731 is realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel
731, input unit 730 can also include other input equipments 732.Specifically, other input equipments 732 may include but unlimited
In one of physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. or
It is a variety of.
Display unit 740 can be used for showing information input by user or the information and electronic equipment that are supplied to user
700 various menus.Display unit 740 may include display panel 741, optionally, can use LCD (Liquid Crystal
Display, liquid crystal display), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) come
Configure display panel 741.Further, touch panel 731 can cover display panel 741, when touch panel 731 is detected at it
On or near touch operation after, send processor 780 to determine the type of touch event, be followed by subsequent processing device 780 according to touching
The type for touching event provides corresponding visual output on display panel 741.Although in Fig. 7, touch panel 731 and display surface
Plate 741 is the input and input function for realizing electronic equipment 700 as two independent components, but in some embodiments
In, can be integrated by touch panel 731 and display panel 741 and that realizes electronic equipment 700 output and input function.
Electronic equipment 700 may also include at least one sensor 750, such as gyro sensor, magnetic induction sensor, light
Sensor, motion sensor and other sensors.Specifically, optical sensor may include ambient light sensor and close sensing
Device, wherein ambient light sensor can adjust the brightness of display panel 741 according to the light and shade of ambient light, and proximity sensor can
When electronic equipment 700 is moved in one's ear, display panel 741 and/or backlight are closed.As a kind of motion sensor, accelerate
Spending sensor can detect the size of (generally three axis) acceleration in all directions, can detect that size and the side of gravity when static
To, can be used to identify electronic equipment posture application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), vibration
Identify correlation function (such as pedometer, percussion) etc.;Barometer, the hygrometer, temperature that can also configure as electronic equipment 700
The other sensors such as meter, infrared sensor, details are not described herein.
Voicefrequency circuit 760, loudspeaker 761, microphone 762 can provide the audio interface between user and electronic equipment 700.
Electric signal after the audio data received conversion can be transferred to loudspeaker 761, be converted by loudspeaker 761 by voicefrequency circuit 760
For voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 762, is connect by voicefrequency circuit 760
Audio data is converted to after receipts, then by after the processing of audio data output processor 780, is sent to through RF circuit 710 such as another
One terminal, or audio data is exported to memory 720 to be further processed.
WiFi belongs to short range wireless transmission technology, and electronic equipment 700 can help user to receive and dispatch by WiFi module 770
Email, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 7
WiFi module 770 is shown, but it is understood that, and it is not belonging to must be configured into for electronic equipment 700, it completely can root
It is omitted according in the range for needing the essence disclosed in not changing.
Processor 780 is the control centre of electronic equipment 700, utilizes various interfaces and the entire electronic equipment of connection
Various pieces by running or execute the software program and/or module that are stored in memory 720, and are called and are stored in
Data in reservoir 720 execute the various functions and processing data of electronic equipment 700, to carry out whole prison to electronic equipment
Control.Optionally, processor 780 may include one or more processing units;Preferably, processor 780 can integrate application processor
And modem processor, wherein the main processing operation system of application processor, user interface and application program etc., modulatedemodulate
Processor is adjusted mainly to handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor
In 780.
Electronic equipment 700 further includes the power supply 782(such as battery powered to all parts), it is preferred that power supply can lead to
Cross power-supply management system and processor 782 be logically contiguous, thus by power-supply management system realize management charging, electric discharge and
The functions such as power managed.
Camera 790 is generally by groups such as camera lens, imaging sensor, interface, digital signal processor, CPU, display screens
At.Wherein, camera lens is fixed on the top of imaging sensor, can change focusing by manually adjusting camera lens;Imaging sensor
It is equivalent to " film " of traditional camera, is the heart of camera collection image;Interface is used for camera using winding displacement, plate to plate
Connector, spring connection type are connect with electronic equipment mainboard, and the image of acquisition is sent to the memory 720;Number
Signal processor is handled by image of the mathematical operation to acquisition, and the analog image of acquisition is converted to digital picture and is led to
It crosses interface and is sent to memory 720.
Although being not shown, electronic equipment 700 can also be including bluetooth module etc., and details are not described herein.
Electronic equipment 700 in addition to including one or more processor 780, further include have memory and one or
Multiple programs, one or more program are stored in memory, and are configured to be held by one or more processor
Row.Said one or multiple programs have following function:
It is corresponding with specified services pre- whether the current web page that the web displaying unit in detection application program is shown calls
Stationary interface;
If testing result is that the current web page that web displaying unit is shown calls predetermined interface corresponding with specified services,
The processing for handling the specified services is generated by the predetermined interface to request;
Processing request is sent to Service Processing Unit corresponding with the specified services in the application program, by
The Service Processing Unit handles the specified services.
In the first possible implementation of the present embodiment, said one or multiple programs also have following function
Can:
After the processing request by predetermined interface generation for handling the specified services, further includes:
Detect whether the current web page has the permission for handling the specified services;
If testing result is that the current web page has the permission for handling the specified services, execute described by the place
The step of reason request is sent in application program Service Processing Unit corresponding with the specified services.
In second of possible implementation of the present embodiment, said one or multiple programs also have following function
Can:
Whether the detection current web page has the permission for handling the specified services, comprising:
It detects in the application programming interface permissions list corresponding with the current web page prestored with the presence or absence of described
Predetermined interface, the application programming interface permissions list are the preservations issued when the current web page is opened by server
There is the current web page to have permission all application programming interfaces of calling.
In said one or multiple programs also have following function in the third possible implementation of the present embodiment
Can:
Before whether the detection current web page has the permission for handling the specified services, further includes:
Processing request is sent to request queue by the predetermined interface;
The notice being used to indicate in the presence of new processing request is sent to process kernel by the predetermined interface;
After the process kernel receives the notice, obtained in the request queue by the process kernel
The processing request.
In the 4th kind of possible implementation of the present embodiment, said one or multiple programs also have following function
Can:
It is described that the specified services are handled by the Service Processing Unit, comprising:
Prompting frame corresponding with the specified services is generated by the Service Processing Unit;
Operation to the prompting frame is received by the Service Processing Unit;
Processing by the Service Processing Unit according to the operation completion received to the specified services.
In the 5th kind of possible implementation of the present embodiment, said one or multiple programs also have following function
Can:
After being handled by the Service Processing Unit the specified services, further includes:
The specified services corresponding to the processing request that the Service Processing Unit returns are received to handle
Processing result;
The processing result is returned into the current web page.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (12)
1. a kind of method for processing business, which is characterized in that the described method includes:
Whether the current web page that show of web displaying unit in detection application program, which calls, corresponding with specified services makes a reservation for connect
Mouthful;
If testing result is that the current web page that web displaying unit is shown calls predetermined interface corresponding with specified services, pass through
The predetermined interface generates the processing for handling the specified services and requests;
Processing request is sent to Service Processing Unit corresponding with the specified services in the application program;
Prompting frame corresponding with the specified services is generated by the Service Processing Unit, the prompting frame is by the specified industry
The relevant information of business is added in prompt frame template corresponding with the specified services and generates, and the prompt frame template is pre-stored in
In the application program;
Operation to the prompting frame is received by the Service Processing Unit;
Processing by the Service Processing Unit according to the operation completion received to the specified services.
2. the method according to claim 1, wherein being generated by the predetermined interface for handling described
After the processing request for stating specified services, further includes:
Detect whether the current web page has the permission for handling the specified services;
If testing result is that the current web page has the permission for handling the specified services, executes and described ask the processing
Ask the step of Service Processing Unit corresponding with the specified services is sent in application program.
3. according to the method described in claim 2, it is characterized in that, whether the detection current web page has described in processing
The permission of specified services, comprising:
It detects in the application programming interface permissions list corresponding with the current web page prestored with the presence or absence of described predetermined
Interface, the application programming interface permissions list be the preservation that is issued when the current web page is opened by server
State all application programming interfaces that current web page has permission calling.
4. according to the method described in claim 2, it is characterized in that, whether there is processing institute in the detection current web page
Before the permission for stating specified services, further includes:
Processing request is sent to request queue by the predetermined interface;
The notice being used to indicate in the presence of new processing request is sent to process kernel by the predetermined interface;
After the process kernel receives the notice, obtained in the request queue by the process kernel described in
Processing request.
5. according to claim 1 to any method in 4, which is characterized in that be sent to processing request described
In application program after Service Processing Unit corresponding with the specified services, further includes:
Receive the place that the specified services corresponding to the processing request that the Service Processing Unit returns are handled
Manage result;
The processing result is returned into the current web page.
6. a kind of business processing device, which is characterized in that described device includes:
Detection module is called, whether the current web page that the web displaying unit for detecting in application program is shown calls and specify
The corresponding predetermined interface of business;
Generation module is requested, for being the current web page that web displaying unit is shown in the testing result for calling detection module
When calling predetermined interface corresponding with specified services, is generated by the predetermined interface and asked for handling the processing of specified services
It asks;
Service Processing Module, the processing request for generating the request generation module are sent in the application program
Service Processing Unit corresponding with the specified services is handled the specified services by the Service Processing Unit;
The Service Processing Module, comprising:
Generation unit is prompted, for generating prompting frame corresponding with the specified services by the Service Processing Unit;
Receiving unit is operated, for receiving the operation to the prompting frame by the Service Processing Unit;
Business completes unit, for being completed according to the operation received to the specified services by the Service Processing Unit
Processing.
7. device according to claim 6, which is characterized in that described device further include:
Permission detection module, for detecting whether the current web page has the permission for handling the specified services;
Service Processing Module is that the current web page has the processing finger for the testing result in the permission detection module
When determining the permission of business, execution is described to be sent in application program business corresponding with the specified services for processing request
The step of processing unit.
8. device according to claim 7, which is characterized in that the permission detection module is used for:
It detects in the application programming interface permissions list corresponding with the current web page prestored with the presence or absence of the application
Program Interfaces, the application programming interface permissions list are to be issued when the current web page is opened by server
Preserve all application programming interfaces that the current web page has permission calling.
9. device according to claim 7, which is characterized in that described device further include:
First sending module, for processing request to be sent to request queue by the predetermined interface;
Second sending module is used to indicate for being sent by the predetermined interface to process kernel in the presence of new processing request
Notice;
Request module, for obtaining institute by the process kernel after the process kernel receives the notice
State the processing request in request queue.
10. according to the device any in claim 6 to 9, which is characterized in that described device further include:
As a result receiving module, for receiving specifying to described corresponding to the processing request for the Service Processing Unit return
The processing result that business is handled;
Result return module, the processing result for receiving the result receiving module return to the current web page.
11. a kind of electronic equipment, which is characterized in that the electronic equipment includes the industry as described in any in claim 6 to 10
Business processing unit.
12. a kind of computer readable storage medium, which is characterized in that it is stored with program in the computer readable storage medium,
Described program is for realizing method for processing business such as described in any one of claim 1 to 5.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310452436.XA CN104516890B (en) | 2013-09-27 | 2013-09-27 | Method for processing business, device and electronic equipment |
PCT/CN2014/086732 WO2015043405A1 (en) | 2013-09-27 | 2014-09-17 | Service processing method, apparatus, and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310452436.XA CN104516890B (en) | 2013-09-27 | 2013-09-27 | Method for processing business, device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104516890A CN104516890A (en) | 2015-04-15 |
CN104516890B true CN104516890B (en) | 2018-12-28 |
Family
ID=52742034
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310452436.XA Active CN104516890B (en) | 2013-09-27 | 2013-09-27 | Method for processing business, device and electronic equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104516890B (en) |
WO (1) | WO2015043405A1 (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107168960B (en) * | 2016-03-07 | 2021-06-25 | 创新先进技术有限公司 | A business execution method and device |
CN106776723A (en) * | 2016-11-17 | 2017-05-31 | 福建中金在线信息科技有限公司 | A kind of ejection layer display methods and device |
CN106603528B (en) * | 2016-12-13 | 2019-09-10 | 北京小米移动软件有限公司 | The method and device of webpage calling terminal local function |
CN107656762A (en) * | 2017-10-13 | 2018-02-02 | 上海酷屏信息技术有限公司 | A kind of method and system that third party's function is realized in APP |
CN109614562B (en) * | 2018-11-27 | 2024-05-14 | 平安科技(深圳)有限公司 | Mail display method, mail display device, computer equipment and storage medium |
CN112256449B (en) * | 2020-10-16 | 2024-05-17 | Vidaa美国公司 | Interface calling method of webpage application program, display equipment and server |
EP4229527A4 (en) | 2020-10-14 | 2024-04-17 | Vidaa USA, Inc. | Page loading method and display apparatus |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030149801A1 (en) * | 2001-12-12 | 2003-08-07 | Kushnirskiy Igor Davidovich | Scriptable plug-in application programming interface |
CN102819451A (en) * | 2011-06-09 | 2012-12-12 | 深圳市财付通科技有限公司 | Method and system for calling browser plug-in |
CN103198130A (en) * | 2013-04-11 | 2013-07-10 | 上海心动企业发展有限公司 | Method and device for realizing login unified with webpage on client side |
CN103294748A (en) * | 2013-01-22 | 2013-09-11 | 北京旭宁信息技术有限公司 | Method for excerpting and editing Internet contents |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101106774B (en) * | 2007-08-10 | 2010-09-15 | 腾讯科技(深圳)有限公司 | Instant messaging system and of mobile phone with browser function and its implementation method |
CN101562581B (en) * | 2009-05-26 | 2013-01-09 | 腾讯科技(深圳)有限公司 | Method and system for achieving web page game |
US8771109B2 (en) * | 2011-04-08 | 2014-07-08 | David J. Desender | Table tennis apparatus |
CN102289895A (en) * | 2011-06-21 | 2011-12-21 | 上海北大方正科技电脑系统有限公司 | Terminal and method for processing network note |
CN102831206B (en) * | 2012-08-06 | 2016-05-18 | 泉州市德威软件开发有限公司 | Microblogging social contact method and device based on browser |
-
2013
- 2013-09-27 CN CN201310452436.XA patent/CN104516890B/en active Active
-
2014
- 2014-09-17 WO PCT/CN2014/086732 patent/WO2015043405A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030149801A1 (en) * | 2001-12-12 | 2003-08-07 | Kushnirskiy Igor Davidovich | Scriptable plug-in application programming interface |
CN102819451A (en) * | 2011-06-09 | 2012-12-12 | 深圳市财付通科技有限公司 | Method and system for calling browser plug-in |
CN103294748A (en) * | 2013-01-22 | 2013-09-11 | 北京旭宁信息技术有限公司 | Method for excerpting and editing Internet contents |
CN103198130A (en) * | 2013-04-11 | 2013-07-10 | 上海心动企业发展有限公司 | Method and device for realizing login unified with webpage on client side |
Also Published As
Publication number | Publication date |
---|---|
CN104516890A (en) | 2015-04-15 |
WO2015043405A1 (en) | 2015-04-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104516890B (en) | Method for processing business, device and electronic equipment | |
CN104618217B (en) | Share method, terminal, server and the system of resource | |
CN105187930B (en) | Interactive approach and device based on net cast | |
CN106453053B (en) | Group message display methods and device | |
CN103702297B (en) | Short message enhancement, apparatus and system | |
CN104462128B (en) | The method, apparatus and terminal device of multimedia file processing | |
CN105828145B (en) | Interactive approach and device | |
CN104519404B (en) | The player method and device of graphic interchange format file | |
CN104519262B (en) | Obtain the method, apparatus and terminal of video data | |
CN109347722A (en) | Interactive system, method, client and background server | |
CN106547844B (en) | A kind for the treatment of method and apparatus of user interface | |
CN104219617A (en) | Service acquiring method and device | |
CN109741115A (en) | Link promotion method, terminal and computer readable storage medium based on red packet | |
CN104699501B (en) | A kind of method and device for running application program | |
CN104965642B (en) | Drop-down list generation method and device | |
CN108551519A (en) | A kind of information processing method, device, storage medium and system | |
CN108153778A (en) | Webpage store method, webpage read method and device | |
CN109309696A (en) | Folder sending method, sender, receiver, and storage medium | |
CN109697008A (en) | A kind of content share method, terminal and computer readable storage medium | |
CN109728918A (en) | Virtual objects sending method, virtual objects method of reseptance, device and storage medium | |
CN109491632A (en) | A kind of resource sharing method and terminal | |
CN108012029A (en) | A kind of information processing method, equipment and computer-readable recording medium | |
CN105787982B (en) | A kind of method and apparatus making e-book | |
CN109725819A (en) | Interface display method, device, double screen dual system termi-nal and readable storage medium storing program for executing | |
CN109710338A (en) | A kind of searching method of mobile terminal, mobile terminal and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |