WO2015043405A1 - Service processing method, apparatus, and electronic device - Google Patents

Service processing method, apparatus, and electronic device Download PDF

Info

Publication number
WO2015043405A1
WO2015043405A1 PCT/CN2014/086732 CN2014086732W WO2015043405A1 WO 2015043405 A1 WO2015043405 A1 WO 2015043405A1 CN 2014086732 W CN2014086732 W CN 2014086732W WO 2015043405 A1 WO2015043405 A1 WO 2015043405A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
webpage
application
processing
request
Prior art date
Application number
PCT/CN2014/086732
Other languages
English (en)
French (fr)
Inventor
Kunfeng RONG
Pinlin CHEN
Yang Liu
Original Assignee
Tencent Technology (Shenzhen) Company Limited
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 Tencent Technology (Shenzhen) Company Limited filed Critical Tencent Technology (Shenzhen) Company Limited
Publication of WO2015043405A1 publication Critical patent/WO2015043405A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • G06F16/1834Distributed file systems implemented based on peer-to-peer networks, e.g. gnutella
    • G06F16/1837Management specially adapted to peer-to-peer storage networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system

Definitions

  • the present application relates to the field of computer technologies, and more particularly to a service processing method and apparatus, and an electronic device.
  • a built-in browser in general includes a webpage display module, a predetermined interface, and a processing core module.
  • the built-in browser detects whether the opened webpage invokes a predetermined interface that corresponds to the designated service, and uses the predetermined interface to generate a request to process the designated service if the opened webpage invokes the predetermined interface.
  • the processing core module of the built-in browser further sends the request to process the designated service to a server.
  • the server Upon receiving the request, the server pushes a prompt box related to the designated service to the current webpage. In this way, the user can operate the prompt box displayed on the current webpage to complete the service processing.
  • the present application is implemented in a service processing system that has one or more processors, memory and one or more modules, programs or sets of instructions stored in the memory for performing multiple functions. Instructions for performing these functions may be included in a computer program product configured for execution by one or more processors.
  • the computer-implemented method includes: opening a webpage in a built-in browser of an application; detecting whether the webpage invokes a predetermined interface that corresponds to a designated service of the application; generating a request to process the designated service, if the webpage invokes the predetermined interface; determining whether the webpage is configured with permission to process the designated service of the application; forwarding the request to process the designated service to a service processing module of the application, if the webpage is configured with permission to process the designated service; and processing the designated service using the service processing module of the application.
  • determining whether the webpage is configured with permission to process the designated service of the application further comprises retrieving an application programming interface (API) permission list of the webpage from a remote server; and detecting whether the API permission list of the webpage includes the predetermined interface.
  • API application programming interface
  • the service processing method further comprises sending the request to process the designated service to a queue through the predetermined interface; sending a notification of the request being added into the queue to a processing core module; and retrieving the request to process the designated service from the queue through the processing core module.
  • processing the designated service using the service processing module of the application further comprises generating a prompt box using the service processing module; receiving user input from the prompt box; and processing the designated service based on the user input using the service processing module of the application.
  • the service processing method further comprises receiving a processing result of the request to process the designated service from the service processing module of the application; and returning the processing result to the webpage.
  • the service processing system includes memory, one or more processors, and one or more programs stored in the memory and configured for execution by the one or more processors.
  • the one or more programs include: opening a webpage in a built-in browser of an application; detecting whether the webpage invokes a predetermined interface that corresponds to a designated service of the application; generating a request to process the designated service, if the webpage invokes the predetermined interface; determining whether the webpage is configured with permission to process the designated service of the application; forwarding the request to process the designated service to a service processing module of the application, if the webpage is configured with permission to process the designated service; and processing the designated service using the service processing module of the application.
  • Another aspect of the present application involves a non-transitory computer readable storage medium having stored therein one or more programs for execution by one or more processors of a service processing system, the one or more programs including instructions for: opening a webpage in a built-in browser of an application; detecting whether the webpage invokes a predetermined interface that corresponds to a designated service of the application; generating a request to process the designated service, if the webpage invokes the predetermined interface; determining whether the webpage is configured with permission to process the designated service of the application; forwarding the request to process the designated service to a service processing module of the application, if the webpage is configured with permission to process the designated service; and processing the designated service using the service processing module of the application.
  • FIG. 1 is a method flowchart of a service processing method according to an embodiment of the present application
  • FIG. 2 is a method flowchart of a service processing method according to another embodiment of the present application.
  • FIG. 3 is a schematic diagram of code interchange according to some embodiments of the present application.
  • FIG. 4A is a schematic diagram of a service processing procedure according to some embodiments of the present application.
  • FIG. 4B is a schematic diagram of a user operating a service control according to a part of embodiments of the present application.
  • FIG. 4C is a schematic diagram of a user operating a service control according to another part of the embodiments of the present application.
  • FIG. 4D is a schematic diagram of a prompt box according to some embodiments of the present application.
  • FIG. 4E is a schematic diagram of displaying a sharing result on a webpage according to some embodiments of the present application.
  • FIG. 5 is a schematic structural diagram of a service processing apparatus according to an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a service processing apparatus according to another embodiment of the present application.
  • FIG. 7 is a structural block diagram of an electronic device according to some embodiments of the present application.
  • the "electronic device” herein may include a smart phone, a tablet computer, a smart TV, an e-book reader, a Moving Picture Experts Group Audio Layer III (MP3) player, a Moving Picture Experts Group Audio Layer IV (MP4) player, a portable laptop computer, a desktop computer, and the like.
  • MP3 Moving Picture Experts Group Audio Layer III
  • MP4 Moving Picture Experts Group Audio Layer IV
  • a user of the instant messaging application may directly open a webpage using the built-in browser after logging into the application.
  • the user may download and archive a publication and/or an image from the webpage into his/her account associated with the application, and share such contents with his/her friends.
  • a method and system of service processing in an instant messaging application installed on an electronic device are described below in view of the various embodiments.
  • FIG. 1 is a method flowchart of a service processing method according to an embodiment of the present application.
  • the service processing method is applicable to an electronic device installed with an application, and the application herein may be an instant messaging application configured with a built-in webpage browsing function.
  • the service processing method may include the steps discussed below.
  • a step 101 a webpage in a built-in browser of an application may be opened.
  • the application run by the electronic device may detect whether the webpage invokes a predetermined interface that corresponds to a designated service of the application.
  • the instant messaging application having a webpage browsing function may be configured with a built-in browser.
  • the built-in browser can detect whether an opened webpage in the instant messaging application invokes a predetermined interface that corresponds to a designated service.
  • the built-in browser may include a webpage display module, a predetermined interface, and a processing core module.
  • the webpage display module may then display the webpage in the application using the built-in browser.
  • URL Uniform Resource Locator
  • the predetermined interface may correspond to a designated service, for example, a transmitting service, a sharing service or an archiving service.
  • the predetermined interface may be an Application Programming Interface (API) that can be invoked when a service request is generated.
  • API Application Programming Interface
  • a request to process the designated service is generated, if the webpage invokes the predetermined interface.
  • the predetermined interface may acquire information related to the designated service, for example, content related to the designated service or a webpage related to the designated service or the like.
  • the predetermined interface of the built-in browser may generate a request to process the designated service based on the acquired information related to the designated service.
  • the request to process the designated service may be forwarded to a service processing module of the application, and the designated service may be processed using the service processing module of the application.
  • existing applications having an instant messaging function may be configured with one or more service processing modules, and the one or more service processing modules may perform various functions respectively, such as sharing a selected content with a friend circle in the application, sending the selected content to one or more friends specified by a user, or archiving a specified content to the user account.
  • a sharing processing module for sharing a content with a friend circle
  • a sending processing module for sending the content to a friend
  • an archiving processing module for archiving a specified content as a favorite
  • an email processing module for sending a specified content to an email address, etc.
  • the service processing module may call a prompt box template in regards to a service type, add service-related information to the prompt box template, and display the prompt box with supplemented information in the instant messaging application. Further, the user may complete the service processing by operating the prompt box.
  • Contents of the prompt box templates vary according to different services.
  • a prompt box template in regards to a sharing service may include an edit box, a sharing subject or a brief content, and/or a sharing circle of friends etc.
  • a prompt box template in regards to a sending service may include an edit box, a sending subject, a sending webpage address, and/or a sending circle of friends etc.
  • the service processing module may process a service request in other manners.
  • the service processing module is a function, i. e. , originally implemented by the application, the actual implementation process of service processing through the service processing module in the application can be implemented by persons skilled in the art, and all the implementation processes are not described in detail herein.
  • the request to process the designated service is forwarded to the service processing module to process. Because the service process module is preset in the instant messaging application, the request to process the designated service can be directly processed through the service process module without communicating with a remote server, thus improves the processing speed and efficiency.
  • the service processing method further includes determining whether the webpage is configured with permission to process the designated service of the application; and forwarding the request to process the designated service to a service processing module of the application, if the webpage is configured with permission to process the designated service.
  • determining whether the webpage is configured with permission to process the designated service of the application further comprises retrieving an application programming interface (API) permission list of the webpage from a remote server; and detecting whether the API permission list of the webpage includes the predetermined interface.
  • API application programming interface
  • the service processing method before determining whether the webpage is configured with permission to process the designated service of the application, the service processing method further includes sending the request to process the designated service to a queue through the predetermined interface; sending a notification of the request being added into the queue to a processing core unit; and retrieving the request to process the designated service from the queue through the processing core unit.
  • processing the designated service using the service processing module of the application further comprises generating a prompt box using the service processing module; receiving user input from the prompt box; and processing the designated service based on the user input using the service processing module of the application.
  • the service processing method further includes receiving a processing result of the request to process the designated service from the service processing module of the application; and returning the processing result to the webpage.
  • the service processing method invokes a predetermined interface of an instant messaging application, generates a service request, forwards the service request to a service processing module of the application, and processes the request using the service processing module of the application.
  • the present application eliminates the requirement of retrieving a prompt box from a remote server, and therefore, improves the service processing speed and efficiency.
  • FIG. 2 is a method flowchart of a service processing method according to an embodiment of the present application.
  • the service processing method is applicable to an electronic device installed with an application, and the application herein may be an instant messaging application having a webpage browsing function.
  • the service processing method may include the following steps.
  • Step 201 involves detecting whether the webpage invokes a predetermined interface that corresponds to a designated service of the application.
  • the instant messaging application having a webpage browsing function may be configured with a built-in browser that can detect whether a webpage opened in an application invokes a predetermined interface that corresponds to a designated service.
  • the built-in browser may include a webpage display module, a predetermined interface, and a processing core unit.
  • the webpage display module may display a webpage from a message received in the application after the user logs in. For example, if a user receives a message from a friend after logging into the application, where the message includes a URL, the user may choose to open the URL, and the application may display a webpage that corresponds to the URL using the webpage display module.
  • the predetermined interface may correspond to a certain service, such as a sending service, a sharing service or an archiving service, etc.
  • the predetermined interfaces may be APIs that can be invoked during service processing.
  • the selected control module may invoke a predetermined interface that corresponds to a service. For example, when a send control module is selected, a predetermined sending interface that corresponds to a sending service is invoked; when a share control module is selected, a predetermined sharing interface that corresponds to a sharing service is invoked; etc.
  • the user may select a service processing control module provided for the webpage by the application, and the selected control module may also invoke a predetermined interface that corresponds to a service.
  • a request to process the designated service is generated, if the webpage invokes the predetermined interface.
  • the built-in browser acquires information in regards to the designated service through the predetermined interface, for example, content in regards to the designated service, or a webpage in regards to the designated service etc.
  • the built-in browser may generate a request for processing the designated service according to the information of the designated service that may be acquired through the predetermined interface.
  • different designated services may invoke different predetermined interfaces (i. e. , APIs) .
  • the API to be invoked for processing "share a piece of text” is an API having a sharing function
  • the API to be invoked for processing "add a piece of text to favorite” is an API having an add-to-favorite function.
  • FIG. 3 is a schematic diagram of code interchange according to some embodiments of the present application.
  • a webpage opened in a built-in browser of an application is configured with service processing functions such as “send to a friend” , “share to a friend circle” , “add to favorite” and “pay. "
  • the application installed on a client terminal may also have service processing functions of "send to a friend” , “share to a friend circle” , “add to favorite” and “pay. " In this way, a service to be processed in the webpage may be transferred to a corresponding processing module of the application installed on a client terminal.
  • the predetermined interface of the built-in browser may notify a processing core unit of the built-in browser of the request, so that the processing core unit of the built-in browser can retrieve the request and process the request.
  • multiple processing requests may exist at the same time, for example, requests generated from multiple webpages, or multiple requests generated from a single webpage.
  • a predetermined interface needs to be invoked, and the processing core unit will be notified.
  • a set of interactive processing procedures between the predetermined interfaces and the processing core unit is configured in reference to steps 203–205.
  • Step 203 involves sending the request to process the designated service to a queue through the predetermined interface.
  • the queue may be used for storing service requests.
  • the queue may have a first-in first-out structure, which enables that a service request that arrives early to be processed early; while a service request that arrives late will be processed only after all preceding service requests have been processed.
  • the queue may be configured with other structures such as a last-in, first-out stack, etc.
  • the manner in which the processing core unit acquires the service requests depends on the structure of the queue. For example, when it is a queue structure, the processing core unit may acquire the service requests from the head of the queue sequentially, and when it is a stack structure, the processing core unit may acquire the service request from the top of the stack sequentially.
  • the service request may be first sent to a queue, i. e. , the service request is sent to the tail of the queue or the top of the stack.
  • Step 204 involves sending a notification of the request being added into the queue to a processing core unit.
  • the predetermined interface of the built-in browser After the predetermined interface of the built-in browser sends the service request to the queue, the predetermined interface of the built-in browser needs to notify the processing core unit of the built-in browser that a new service request exists in the queue. To avoid false notification when the service request fails to be sent to the queue, the processing core unit may be notified after the service request is successfully sent to the requesting queue.
  • Step 205 involves retrieving the request to process the designated service from the queue through the processing core unit. After the processing core unit receives the notification, the built-in browser acquires the service request in the queue through the processing core unit.
  • each invoked predetermined interface may generate at least one service request, for example, multiple sending services invoke the same predetermined interface, and multiple service requests may be generated from the same predetermined interface.
  • the processing core unit may retrieve the same service request multiple times. To avoid such redundant operation of the processing core unit, the queue is cleared each time all service requests are retrieved.
  • the earliest service request may have to wait a long time to get processed.
  • the process core unit may retrieve all service requests in the stack, and clear the stack to avoid redundant operation on the same service requests.
  • the processing core unit may retrieve the next service request from the queue after completing the current request. For example, when the queue is a queue structure, after completing one processing request, the processing core unit may acquire a first service request from the head of the queue and process the request, and upon completion of processing, acquire the next first service request from the head of the queue. In such embodiment, it may be unnecessary to acquire all the requests from the queue at one time; and it may also be unnecessary for the predetermined interface to notify the processing core unit that a new service request exists; or the like.
  • step 206 it is determined whether the webpage is configured with permission to process the designated service of the application.
  • the built-in browser detects whether the webpage has permission to process the designated service.
  • an API permission list may be first acquired from a related server, all APIs that the current webpage has permission to invoke are stored in the API permission list. For example, in an online payment, some APIs for payment have been legally filed in the server, and it is necessary to detect whether APIs that are carried in the service request and to be invoked are in the API permission list. If the APIs are in the API permission list, it indicates that the current webpage has permission to process the designated service, and on the contrary, if all or a part of the APIs are not in the API permission list, it indicates that the current webpage does not have permission to process the designated service.
  • Step 207 involves forwarding the request to process the designated service to a service processing module of the application, if the webpage is configured with permission to process the designated service; and processing the designated service using the service processing module of the application.
  • the built-in browser sends the service request to a service processing module that corresponds to the designated service in the application, where the service processing module processes the designated service.
  • the application having an instant messaging function has a service processing module that corresponds to the designated service.
  • a webpage in the built-in browser of the application has service processing functions of "send to a friend” , “share to a friend circle” , “add to favorite” , and “pay”
  • a client of the application usually has the same service processing functions of "send to a friend” , "share to a friend circle” , “add to favorite” , and “pay” .
  • a service to be processed in the webpage may be transferred to a related service processing module of the client of the application to process.
  • processing the designated service using the service processing module of the application may further include generating a prompt box using the service processing module; receiving user input from the prompt box; and processing the designated service based on the user input using the service processing module of the application.
  • the service processing module has preset a prompt box template in regards to a service type that can be invoked for service processing in the application.
  • the service processing module directly adds service-related information to the prompt box template, and display the information supplemented prompt box in the application.
  • the user may complete the service by operating on the prompt box.
  • the service processing module may directly invoke a prompt box template that corresponds to the designated service stored in the application, add related information of the designated service to the prompt box template, and display the prompt box with supplemented service information in the application to a user.
  • the user further operates content in the prompt box to process the designated service.
  • service processing on webpage content may be completed through corresponding codes in the application.
  • Step 208 involves receiving a processing result of the request to process the designated service from the service processing module of the application.
  • the built-in browser may receive a processing result of processing the designated service returned by the service processing module.
  • the service processing module in the application completes processing, if the current webpage can acquire a processing result, for example, "Successfully sent" or "Added to favorite” , it is necessary to feed back the processing result to the current webpage, and the built-in browser further needs to acquire the processing result.
  • Step 209 involves returning the processing result to the webpage.
  • the built-in browser may return the processing result to the current webpage after acquiring the processing result.
  • each service request may correspond to a current webpage or correspond to a designated service on a webpage, and after processing of the service request is completed, a processing result may be fed back to the current webpage or a location of a designated service on the current webpage.
  • the service request may also carry an identifier of a webpage, or an identifier of a designated service. After processing of the service request is completed, a processing result may be fed back to the webpage or a location of the designated service on the webpage according to the identifier of the webpage or the identifier of the designated service.
  • the service request may also include an identifier of a current webpage, or an identifier of a designated service, so that a processing result can be returned to the correct webpage after the processing result is acquired.
  • the predetermined interface may register a callback function after generating a processing request, where parameters in the callback function may include an identifier of the processing request, an identifier of the current webpage carried in the service requestor, and an identifier of the designated service carried in the processing request, and the like.
  • the processing core unit instructs the predetermined interface to retrieve and unregister the callback function after receiving a processing result, acquire identifiers previously registered in the callback function to locate the correct webpage or the designated service so as to feed back the processing result to the correct webpage or the designated service.
  • a service of sharing the piece of text may invoke a related predetermined interface, so as to send information that carries the piece of text to the predetermined interface.
  • the predetermined interface transfers the service request to a service processing module to process sharing of the piece of text in the application, and later feedback a processing result to the current webpage.
  • FIG. 4A is a schematic diagram of a service processing procedure according to some embodiments of the present application.
  • the service processing procedure may include the steps described below.
  • a current webpage invokes a predetermined interface.
  • the current webpage may be displayed by a webpage display module of a built-in browser and may initiate invoking of an API a designated service is requested, i. e. , invoking a predetermined interface that corresponds to the designated service.
  • FIG. 4B is a schematic diagram of a user operating a service control according to a part of embodiments of the present application. It should be noted that, when a share control 41 is a control element of the webpage, it indicates that the share control 41 is a part of the webpage. To ensure that a service processing module of the application can be utilized to process a sharing service after the share control 41 is clicked, an interface in connection with the share control 41 may be set as a predetermined sharing interface that corresponds to the sharing service during the initial stage of webpage setting-up.
  • FIG. 4C is a schematic diagram of a user operating a service control according to another part of the embodiments of the present application.
  • the control list 42 includes a share control 42a and multiple other controls. After the user selects the share control 42a, the webpage may invoke a predetermined sharing interface that corresponds to the sharing service.
  • the user may also click a control of sending to a friend set on a webpage, or click a control of sending to a friend in an application list.
  • a predetermined interface that corresponds to a sending interface may be invoked.
  • the implementation process is also similar for other services, which is not repeated herein.
  • the predetermined interface registers a callback function.
  • the predetermined interface first registers a callback function, where the callback function may include parameter information such as an identifier of the processing request, an identifier of the current webpage, or an identifier of the designated service.
  • the predetermined interface adds a service request to a requesting queue.
  • the predetermined interface notifies a processing core that there is a new processing request.
  • the processing core upon receipt of the notification, acquires all processing requests in the requesting queue, and clears the queue.
  • the processing core checks whether the current webpage has permission to process the designated service.
  • the processing core sends the service request to a corresponding service processing module in an application.
  • FIG. 4D is a schematic diagram of a prompt box according to some embodiments of the present application.
  • a template of the prompt box 43 may include an edit box 43a, a sharing content subject 43b, a sharing friend range 43c, and some other additional services, for example, a "remind whom to view” service 43d, a service 43e that can "display the city” and the like.
  • the user may click a send control 43f in the prompt box to complete service processing on sharing of the webpage content.
  • content in the prompt box may be preset in the prompt box template according to actual requirements.
  • different applications may use different prompt box templates, and content in the prompt box templates may be different.
  • the content of the prompt box herein cannot be taken as a limitation to the actual protection scope of the present application.
  • a specific process that the service processing module generates a prompt box according to the service request can be implemented by persons of ordinary skill in the art, which is not described in detail herein.
  • the processing core acquires a processing result.
  • the processing core notifies the predetermined interface of the processing result, and the predetermined interface retrieves and unregisters parameters in the callback function.
  • the predetermined interface returns the processing result to a webpage that corresponds to the parameters in the callback function.
  • FIG. 4E is a schematic diagram of displaying a sharing result on a webpage according to some embodiments of the present application.
  • FIG. 4E displays a processing result of "Successfully shared” on the webpage.
  • the sharing service cannot be performed, the processing result returned to the webpage is that “sharing cannot be performed” or “sharing fails. ”
  • the predetermined interface when a predetermined interface that corresponds to a designated service is invoked through a current webpage displayed by a webpage display module in an application, the predetermined interface generates a service request for processing the designated service, and the service request is sent to a service processing module that corresponds to the designated service in the application, where the service processing module processes the designated service; the problem in the prior art that service processing is performed at a relatively low speed and low efficiency is solved.
  • the service processing module in the application is a preset module that may be used for processing a service, and can directly generate a prompt box in regards to the service available for a user to operate.
  • FIG. 5 is a schematic structural diagram of a service processing apparatus according to an embodiment of the present application.
  • the service processing apparatus is applicable to an electronic device installed with an application, and the application herein may be an instant messaging application having a webpage browsing function.
  • the service processing apparatus may include: an invocation detection module 520, a request generation module 540, and a service processing module 560.
  • the invocation detection module 520 is used for detecting whether a current webpage displayed by a webpage display module in an application invokes a predetermined interface that corresponds to a designated service.
  • the request generation module 540 is used for generating a service request for processing the designated service through the predetermined interface if the current webpage displayed by the webpage display module invokes the predetermined interface that corresponds to the designated service.
  • the service processing module 560 is used for sending the service request generated by the request generation module 540 to a service processing module that corresponds to the designated service in the application, where the service processing module processes the designated service.
  • a service request for processing the designated service is generated and forwarded to a service processing module in an application, where the service processing module processes the designated service.
  • the problem in the prior art that service processing is performed at a relatively low speed and has low efficiency is solved by the present application.
  • the service processing module in the application is a preset module that may be used for processing a service, and it is unnecessary to acquire a related prompt box from a server; and therefore, the speed for service processing is improved, and the service processing has more efficiency than those in prior art.
  • FIG. 6 is a schematic structural diagram of a service processing apparatus according to an embodiment of the present application.
  • the service processing apparatus is applicable to an electronic device installed with an application, and the application herein may be an instant messaging application having a webpage browsing function.
  • the service processing apparatus may include: an invocation detection module 601, a request generation module 602, and a service processing module 603.
  • the invocation detection module 601 is used for detecting whether a current webpage displayed by a webpage display module in an application invokes a predetermined interface that corresponds to a designated service.
  • the request generation module 602 is used for generating a service request for processing the designated service through the predetermined interface if the current webpage displayed by the webpage display module invokes the predetermined interface that corresponds to the designated service, where the predetermined interface is an interface set in a built-in browser, and the built-in browser is a browser built in the application.
  • the service processing module 603 is used for sending the service request generated by the request generation module 602 to a service processing module that corresponds to the designated service in the application, where the service processing module processes the designated service.
  • the service processing apparatus may further include a permission detection module 604.
  • the permission detection module 604 is used for detecting whether the current webpage has permission to process the designated service.
  • the service processing module 603 is used for performing the step of sending the service request to a service processing module that corresponds to the designated service in the application if the current webpage has permission to process the designated service.
  • the permission detection module 604 may be used for detecting whether a pre-stored API permission list that corresponds to the current webpage has an API that corresponds to the designated service, where the API permission list includes stored APIs that the current webpage has permission to invoke and is retrieved from a server when the current webpage is opened.
  • the service processing apparatus may further include: a first sending module 605, a second sending module 606, and a request acquisition module 607.
  • the first sending module 605 may be used for sending the service request to a requesting queue through the predetermined interface.
  • the second sending module 606 may be used for sending, through the predetermined interface to a processing core, a notification for indicating that a new service request exists.
  • the request acquisition module 607 may be used for acquiring the service request in the queue through the processing core after the processing core receives the notification.
  • the service processing module 603 may include: a prompt generating module 603a, an operation receiving module 603b, and a service completing module 603c.
  • the prompt generating module 603a may be used for generating a prompt box that corresponds to the designated service through the service processing module.
  • the operation receiving module 603b may be used for receiving an operation for the prompt box through the service processing module.
  • the service completing module 603c may be used for completing processing on the designated service according to the received operation through the service processing module.
  • the service processing apparatus may further include a result receiving module 608 and a result returning module 609.
  • the result receiving module 608 may be used for receiving a result of processing the designated service that corresponds to the processing request and returned by the service processing module.
  • the result returning module 609 may be used for returning the processing result received by the result receiving module 608 to the current webpage.
  • a service request for processing the designated service is generated according to the predetermined interface, and the service request is sent to a service processing module that corresponds to the designated service in an application, where the service processing module processes the designated service; the problem in the prior art that service processing is performed at a relatively low speed and has low efficiency is solved.
  • the service processing module in the application is a preset module that may be used for processing a service, and the service processing module can directly generate a prompt box in regards to the service available for a user to operate; therefore, it is only necessary to generate a prompt box locally in a terminal when the service processing module processes the designated service, and it is unnecessary to acquire the related prompt box from a server. Accordingly, the speed for service processing is improved, and the service processing has more efficiency than those in prior art.
  • the service processing apparatus provided in the above embodiments, the division of the functional modules is only used for illustration, and in actual applications, the above functions may be assigned to and accomplished by different functional modules based on requirements, e. g. , the internal structure of the electronic device and/or software may be divided into different functional modules to accomplish all or a part of the functions described above.
  • the service processing apparatus in the above embodiment and the embodiment of the service processing method belong to the same concept, and reference should be made to the method embodiments for details of the specific implementation process thereof, which are not repeated herein.
  • FIG. 7 is a structural block diagram of an electronic device according to some embodiments of the present application.
  • the electronic device 700 is used for implementing the service processing method provided in the above embodiments.
  • the electronic device 700 in the present application may include one or more of the following parts: a processor for executing a computer program instruction to complete various processes and methods, a random access memory (RAM) and a read only memory (ROM) for storing information and program instructions, a memory for storing data and information, an I/O device, an interface, an antenna, and the like.
  • the electronic device 700 may include a Radio Frequency (RF) circuit 710, a memory 720, an input module 730, a display module 740, a sensor 750, an audio circuit 760, a wireless fidelity (WiFi) module 770, a processor 780, a power source 782, and a camera 790, among other components.
  • RF Radio Frequency
  • the RF circuit 710 may be used for receiving and sending signals during receiving and sending of information or a call, and particularly, switching the downlink information to the processor 780 for processing after downlink information of a base station is received. In addition, it is designed to send uplink data to the base station.
  • the RF circuit includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA) , a duplexer, and the like.
  • the RF circuit 710 may also communicate with other devices by using wireless communication and a network.
  • the wireless communication may use any communication standard or protocol, which includes, but is not limited to, Global System of Mobile communication (GSM) , General Packet Radio Service (GPRS) , Code Division Multiple Access (CDMA) , Wideband Code Division Multiple Access (WCDMA) , Long Term Evolution (LTE) , e-mail, Short Messaging Service (SMS) , and the like.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • SMS Short Messaging Service
  • the memory 720 may be used for storing software programs and modules.
  • the processor 780 executes various functional applications and data processing of the electronic device 700 by running the software programs and modules stored in the memory 720.
  • the memory 720 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system and an application required by at least one function (such as an audio playback function, or an image playback function) .
  • the data storage area may store data (such as audio data or a phone book) created according to the use of the electronic device 700.
  • the memory 720 may include a high-speed random access memory, and may further include a nonvolatile memory, for example, at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the input module 730 may be used for receiving input numerical information or character information, and generating key signal input in regards to user setting and function control of the electronic device 700.
  • the input module 730 may include a touch panel 731 and another input device 732.
  • the touch panel 731 also called a touch screen, may collect a touch operation of the user on or near the touch panel 731 (for example, an operation of the user on the touch panel 731 or near the touch panel 731 with a finger, a stylus, and any other suitable object or accessory) , and drive a that corresponds connection device according to a preset program.
  • the touch panel 731 may include a touch detection device and a touch controller.
  • the touch detection device detects a position touched by the user, detects a signal brought about by the touch operation, and transmits the signal to the touch controller.
  • the touch controller receives touch information from the touch detection device, converts the touch information into a contact coordinate, and then sends the contact coordinate to the processor 780, and may receive a command sent by the processor 780 and execute the command.
  • the touch panel 731 may be implemented with multiple types such as resistive, capacitive, infrared, and surface acoustic wave types.
  • the input module 730 may also include another input device 732.
  • the other input device 732 may include, but is not limited to, one or more of a physical keyboard, a function key (such as a volume control key or a switch key) , a trackball, a mouse, and a joystick.
  • the display module 740 may be used for displaying information input by the user or information provided for the user and various menus of the electronic device 700.
  • the display module 740 may include a display panel 741, and optionally, the display panel 741 may be configured in forms such as a Liquid Crystal Display (LCD) or an Organic Light-Emitting Diode (OLED) .
  • the touch panel 731 may cover the display panel 741. After detecting a touch operation on or near the touch panel 731, the touch panel 731 transmits the touch operation to the processor 780 to determine the type of a touch event, and then the processor 780 provides that corresponds to visual output on the display panel 741 according to the type of the touch event.
  • the touch panel 731 and the display panel 741 implement input and input functions as two separate members, in some embodiments, the touch panel 731 and the display panel 741 may be integrated to implement input and output functions of the electronic device 700.
  • the electronic device 700 may further include at least one sensor 750, for example, a gyro sensor, a magnetic induction sensor, an optical sensor, a motion sensor, and other sensors.
  • the optical sensor may include an ambient light sensor and a proximity sensor.
  • the ambient light sensor may adjust brightness of the display panel 741 according to brightness of ambient light.
  • the proximity sensor may turn off the display panel 741 and/or backlight when the electronic device 700 is moved near the ear.
  • an accelerometer may detect the magnitude of acceleration in various directions (such as triaxial) , may detect the magnitude and direction of gravity in the stationary state, and may be used for applications identifying a posture of an electronic device (such as switching between landscape and portrait screen orientation, related games, or magnetometer posture calibration) , may vibrate to identify related functions (for example, a pedometer, or tapping) and the like.
  • Other sensors such as a barometer, a hygrometer, a thermometer, and an infrared sensor that may be configured on the electronic device 700 are not repeated herein.
  • the audio circuit 760, a loudspeaker 761, and a microphone 762 may provide an audio interface between the user and the electronic device 700.
  • the audio circuit 760 may convert received audio data into an electric signal, and then transmit the electric signal to the loudspeaker 761, and the loudspeaker 761 converts the electric signal into a sound signal for output.
  • the microphone 762 converts the collected sound signal into an electric signal
  • the audio circuit 760 receives the electric signal and then converts the electric signal into audio data, and after being output to the processor 780 for processing, the audio data is sent to, for example, another terminal by using the RF circuit 710, or the audio data is output to the memory 720 for further processing.
  • WiFi is a short-range wireless transmission technology
  • the electronic device 700 may help a user to send and receive an e-mail, browse a webpage, and access streaming media through the WiFi module 770, which provides wireless broadband Internet access for the user.
  • FIG. 7 shows the WiFi module 770, but it may be understood that, the WiFi module 770 is not an essential component of the electronic device 700, and may be completely saved without changing the essential scope of the disclosure as required.
  • the processor 780 is a control center of the electronic device 700, connects various parts of the whole electronic device by using various interfaces and lines, and executes various functions of the electronic device 700 and processes data by running or executing software programs and/or modules stored in the memory 720, and invoking data stored in the memory 720, thereby monitoring the electronic device as a whole.
  • the processor 780 may include one or more processing modules.
  • the processor 780 may integrate an application processor and a modem processor.
  • the application processor mainly processes the operating system, user interfaces and applications, and the modem processor mainly processes wireless communication. It may be understood that, the modem processor may be not integrated into the processor 780.
  • the electronic device 700 may further include a power source 782 (for example, a battery) supplying power for various parts, and preferably, the power source may be logically connected to the processor 780 through a power management system, so as to achieve functions such as charging management, discharging management, and power consumption management through the power management system.
  • a power source 782 for example, a battery
  • the power source may be logically connected to the processor 780 through a power management system, so as to achieve functions such as charging management, discharging management, and power consumption management through the power management system.
  • the camera 790 usually includes a lens, an image sensor, an interface, a digital signal processor, a CPU, a display screen, and the like.
  • the lens is fastened above the image sensor, and may be adjusted manually to change the focus.
  • the image sensor is equivalent to the "film" of the traditional camera, and is the heart of the camera to capture images.
  • the interface is used for connecting the camera and the motherboard of the electronic device by means of a ribbon cable, a board to board connector, or spring-type connection, so as to send the captured images to the memory 720.
  • the digital signal processor processes the captured images through mathematical operation, converts a captured analog image into a digital image, and sends the digital image to the memory 720 through the interface.
  • the electronic device 700 may also include a Bluetooth module and the like, which is not repeated herein.
  • the electronic device 700 may further include a memory, and one or more programs.
  • the one or more programs are stored in the memory, and are configured to be executed by the one or more processors.
  • the one or more programs have the following functions: (1) detecting whether a current webpage displayed by a webpage display module in an application invokes a predetermined interface that corresponds to a designated service; (2) generating a service request for processing the designated service through the predetermined interface if a detection result is that the current webpage displayed by the webpage display module invokes the predetermined interface that corresponds to the designated service; and sending the service request to a service processing module that corresponds to the designated service in the application, where the service processing module processes the designated service.
  • the one or more programs further have the following functions. After the generating a service request for processing the designated service through the predetermined interface, the functions further include: (1) detecting whether the current webpage has permission to process the designated service; and (2) performing the step of sending the service request to a service processing module that corresponds to the designated service in the application if a detection result is that the current webpage has permission to process the designated service.
  • detecting whether the current webpage has permission to process the designated service may include detecting whether a pre-stored API permission list that corresponds to the current webpage has the predetermined interface, where the API permission list includes all stored APIs, that the current webpage has permission to invoke, sent by the server when the current webpage is opened.
  • the one or more programs may send the service request to a requesting queue through the predetermined interface; send, through the predetermined interface to a processing core, a notification for indicating that a new service request exists; and acquire the service request in the requesting queue through the processing core after the processing core receives the notification.
  • the service processing module processes the designated service, including generating, by the service processing module, a prompt box that corresponds to the designated service; receiving, by the service processing module, an operation for the prompt box; and completing, by the service processing module, processing on the designated service according to the received operation.
  • the one or more programs may perform the following: receiving a processing result, of processing the designated service that corresponds to the processing request, returned by the service processing module; and returning the processing result to the current webpage.
  • the term “if” may be construed to mean “when” or “upon” or “in response to determining” or “in accordance with a determination” or “in response to detecting” , that a stated condition precedent is true, depending on the context.
  • the phrase “if it is determined [that a stated condition precedent is true] “ or “if [a stated condition precedent is true] “ or “when [a stated condition precedent is true]” may be construed to mean “upon determining” or “in response to determining” or “in accordance with a determination” or “upon detecting” or “in response to detecting” that the stated condition precedent is true, depending on the context.
  • stages that are not order dependent may be reordered and other stages may be combined or broken out. While some reordering or other groupings are specifically mentioned, others will be obvious to those of ordinary skill in the art and so do not present an exhaustive list of alternatives. Moreover, it should be recognized that the stages could be implemented in hardware, firmware, software or any combination thereof.

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)
PCT/CN2014/086732 2013-09-27 2014-09-17 Service processing method, apparatus, and electronic device WO2015043405A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310452436.X 2013-09-27
CN201310452436.XA CN104516890B (zh) 2013-09-27 2013-09-27 业务处理方法、装置及电子设备

Publications (1)

Publication Number Publication Date
WO2015043405A1 true WO2015043405A1 (en) 2015-04-02

Family

ID=52742034

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/086732 WO2015043405A1 (en) 2013-09-27 2014-09-17 Service processing method, apparatus, and electronic device

Country Status (2)

Country Link
CN (1) CN104516890B (zh)
WO (1) WO2015043405A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107168960B (zh) * 2016-03-07 2021-06-25 创新先进技术有限公司 一种业务执行方法及装置
CN106776723A (zh) * 2016-11-17 2017-05-31 福建中金在线信息科技有限公司 一种弹出层显示方法及装置
CN106603528B (zh) * 2016-12-13 2019-09-10 北京小米移动软件有限公司 网页调用终端本地功能的方法及装置
CN107656762A (zh) * 2017-10-13 2018-02-02 上海酷屏信息技术有限公司 一种在app中实现第三方功能的方法及系统
CN109614562B (zh) * 2018-11-27 2024-05-14 平安科技(深圳)有限公司 邮件显示方法、装置、计算机设备以及存储介质
CN112256449B (zh) * 2020-10-16 2024-05-17 Vidaa美国公司 网页应用程序的接口调用方法、显示设备及服务器

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101106774A (zh) * 2007-08-10 2008-01-16 腾讯科技(深圳)有限公司 具有浏览器功能的手机即时通信系统及其实现方法
WO2010135896A1 (zh) * 2009-05-26 2010-12-02 腾讯科技(深圳)有限公司 一种网页游戏的实现方法、系统及装置
CN102289895A (zh) * 2011-06-21 2011-12-21 上海北大方正科技电脑系统有限公司 一种网络票据处理终端及网络票据处理方法
US20120258823A1 (en) * 2011-04-08 2012-10-11 Desender David J Table tennis apparatus
CN102831206A (zh) * 2012-08-06 2012-12-19 吴迪 基于浏览器的微博社交方法及装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7269833B2 (en) * 2001-12-12 2007-09-11 Sun Microsystems, Inc. Scriptable plug-in application programming interface
CN102819451B (zh) * 2011-06-09 2015-08-19 财付通支付科技有限公司 一种浏览器插件调用方法及系统
CN103294748A (zh) * 2013-01-22 2013-09-11 北京旭宁信息技术有限公司 摘录并编辑互联网内容的方法
CN103198130B (zh) * 2013-04-11 2016-12-28 心动网络股份有限公司 在客户端处实现与网页统一的登录的方法和装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101106774A (zh) * 2007-08-10 2008-01-16 腾讯科技(深圳)有限公司 具有浏览器功能的手机即时通信系统及其实现方法
WO2010135896A1 (zh) * 2009-05-26 2010-12-02 腾讯科技(深圳)有限公司 一种网页游戏的实现方法、系统及装置
US20120258823A1 (en) * 2011-04-08 2012-10-11 Desender David J Table tennis apparatus
CN102289895A (zh) * 2011-06-21 2011-12-21 上海北大方正科技电脑系统有限公司 一种网络票据处理终端及网络票据处理方法
CN102831206A (zh) * 2012-08-06 2012-12-19 吴迪 基于浏览器的微博社交方法及装置

Also Published As

Publication number Publication date
CN104516890B (zh) 2018-12-28
CN104516890A (zh) 2015-04-15

Similar Documents

Publication Publication Date Title
US9565247B2 (en) Method and system of sharing information in a social networking application
AU2014288039B2 (en) Remote operation of applications using received data
US11347685B2 (en) File management method and apparatus
WO2015043405A1 (en) Service processing method, apparatus, and electronic device
US10643021B2 (en) Method and device for processing web page content
JP7098757B2 (ja) アプリケーション機能の実施方法及び電子装置
US20210204127A1 (en) Image Sharing Method and System, and Electronic Device
US11785304B2 (en) Video preview method and electronic device
US20140365892A1 (en) Method, apparatus and computer readable storage medium for displaying video preview picture
WO2018223558A1 (zh) 数据处理方法及电子设备
WO2018196588A1 (zh) 一种信息分享方法、装置和系统
WO2013074102A1 (en) System and method for wirelessly sharing data amongst user devices
WO2015185018A1 (en) Item transfer apparatus, system and method
US10863338B2 (en) Copy and paste between devices
US9282178B2 (en) Method for providing call log and electronic device thereof
US11481357B2 (en) Album display method, electronic device, and storage medium
US9921735B2 (en) Apparatuses and methods for inputting a uniform resource locator
US11314703B2 (en) Method and apparatus for processing timedly-published data
WO2017193496A1 (zh) 应用数据的处理方法、装置和终端设备
WO2015000430A1 (zh) 智能选词的方法和装置
WO2017161994A1 (zh) 一种显示页面的方法及装置、计算机存储介质
CN111316618B (zh) 一种网络页面保存方法及终端
CN108780400B (zh) 数据处理方法及电子设备
KR101876394B1 (ko) 단말기에 미디어 데이터를 재생하는 방법 및 장치
WO2014026581A1 (zh) 信息管理的方法、客户端及移动终端

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14847835

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase
32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 23.08.2016)

122 Ep: pct application non-entry in european phase

Ref document number: 14847835

Country of ref document: EP

Kind code of ref document: A1