CN114546683A - Service processing method, device, electronic equipment and storage medium - Google Patents

Service processing method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114546683A
CN114546683A CN202210172273.9A CN202210172273A CN114546683A CN 114546683 A CN114546683 A CN 114546683A CN 202210172273 A CN202210172273 A CN 202210172273A CN 114546683 A CN114546683 A CN 114546683A
Authority
CN
China
Prior art keywords
service
layer
user interface
system platform
target service
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.)
Pending
Application number
CN202210172273.9A
Other languages
Chinese (zh)
Inventor
唐耀红
成鹏
肖莉
周杰
陈曾泽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202210172273.9A priority Critical patent/CN114546683A/en
Publication of CN114546683A publication Critical patent/CN114546683A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication

Abstract

The embodiment of the invention discloses a service processing method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: receiving a service request instruction through a user interface layer and transmitting the service request instruction to an application program layer; analyzing the service request instruction through an application program layer to determine service requirement information; forwarding the service requirement information to the system platform, so that the system platform provides a target service according to the service requirement information; and feeding back the target service to the user interface layer through the application program layer, and displaying the target service by using the user interface layer. The embodiment of the invention designs the service processing program in a layered mode, and the service processing program is divided into the user interface layer and the application program layer, thereby solving the problem of low efficiency of processing the target service by the service processing program, realizing the aim of decoupling among the user interface layer, the application program layer and the system platform, and improving the multiplexing rate, flexibility and stability of the service processing program, so that the service processing program can quickly respond to the target service processing request.

Description

Service processing method, device, electronic equipment and storage medium
Technical Field
Embodiments of the present invention relate to computer technologies, and in particular, to a method and an apparatus for processing a service, an electronic device, and a storage medium.
Background
In the field of service processing, a service Application (APP) is strongly bound with service terminal devices and a system platform and is in a deep coupling state, which may cause a problem of low reuse rate of the service APP among different terminal devices.
At present, developers realize the purpose of multiplexing business APP among different devices by deploying a unified platform on terminal devices.
Although the multiplexing of the service APP can be realized through a unified platform, the mode can lead to the condition that the service APP, the system platform and the service APP are highly coupled, the function modification of the system platform can cause the reconstruction of all the APPs, the system stability of the service terminal equipment is reduced, the service processing requirement is difficult to respond quickly, the safety and the stability of the system are difficult to guarantee, and the development and maintenance cost is also high.
Disclosure of Invention
Embodiments of the present invention provide a service processing method, an apparatus, an electronic device, and a storage medium, which achieve the purpose of decoupling between a user interface layer, an application layer, and a system platform, and improve the reuse rate, flexibility, and stability of a service processing program, so that the service processing program can quickly respond to a target service processing request.
In a first aspect, an embodiment of the present invention provides a service processing method applied to an electronic device, where the electronic device has a system platform, and a service processing program is installed in the electronic device, where the service processing program includes a user interface layer and an application layer, and the method includes:
receiving a service request instruction through the user interface layer and transmitting the service request instruction to the application program layer;
analyzing the service request instruction through the application program layer to determine service requirement information;
forwarding the service requirement information to the system platform so that the system platform provides a target service according to the service requirement information;
and feeding back the target service to the user interface layer through the application program layer, and displaying the target service by utilizing the user interface layer.
In a second aspect, an embodiment of the present invention provides a service processing apparatus, where the control apparatus includes:
the instruction transmission module is used for receiving a service request instruction through the user interface layer and transmitting the service request instruction to the application program layer;
the requirement information determining module is used for analyzing the service request instruction through the application program layer to determine service requirement information;
the target service providing module is used for forwarding the service requirement information to the system platform so that the system platform provides a target service according to the service requirement information;
and the target service display module is used for feeding back the target service to the user interface layer through the application program layer and displaying the target service by utilizing the user interface layer.
In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the service processing method according to any one of the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the service processing method according to any one of the embodiments of the present invention.
In the embodiment of the invention, the electronic equipment is provided with a system platform, the electronic equipment is provided with a service processing program, the service processing program comprises a user interface layer and an application program layer, and can receive a service request instruction through the user interface layer and transmit the service request instruction to the application program layer; analyzing the service request instruction through an application program layer to determine service requirement information; forwarding the service requirement information to the system platform so that the system platform provides a target service according to the service requirement information; and feeding back the target service to the user interface layer through the application program layer, and displaying the target service by using the user interface layer. The embodiment of the invention designs the service processing program in a layered mode, and the service processing program is divided into the user interface layer and the application program layer, thereby solving the problem of low efficiency of processing the target service by the service processing program, realizing the aim of decoupling among the user interface layer, the application program layer and the system platform, and improving the multiplexing rate, flexibility and stability of the service processing program, so that the service processing program can quickly respond to the target service processing request.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic structural diagram of a service processing system according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a service processing method according to an embodiment of the present invention;
fig. 3 is another schematic flow chart of a service processing method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a service processing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
At present, most of service processing terminal equipment systems mainly include an APP layer, a system platform layer, an equipment middleware layer and an equipment driver layer, wherein the APP layer is a whole and is not layered any more, and the APP layer and the system platform layer are mutually quoted and depended, and although the multiplexing purpose of service APP is realized, the structural design of the coupling can cause two problems: (1) the APP is highly coupled with the system platform, and the modification of the system platform function may cause the reconstruction of all the business APPs; when a single service APP is abnormal or wrong, the whole system can be influenced, so that the system stability is poor; (2) the APP layer is taken as a whole, the development and communication cost of the business APP is high, and the maintenance is difficult.
For the problems caused by the above-mentioned coupled structure design, the embodiment of the present invention, on the premise of ensuring the stability of the service processing system, by using a development method of a protocol-Oriented Programming (POP), where the POP is developed from an inherited parent class to a compliant protocol, may reduce unnecessary coupling by using the development method of the POP, hierarchically design the service processing program, where the service processing program is divided into a User Interface (UI) layer and an Application (AP) layer, fig. 1 is a schematic structural diagram of a service processing system provided by the embodiment of the present invention, as shown in fig. 1, including the service processing program 11 and a system platform 12 in the service processing system, where the service processing program 11 includes an AP layer 101 and a UI layer 102, where the AP layer 101 may include a client/server architecture Application (C/S Application) 1011 and a browser/server architecture Application (B/S Application) 1012, make between AP layer, UI layer and the system platform layer do not quote each other and do not rely on, realize between system platform and the business APP, all the complete decoupling's purpose between UI layer and the AP layer to can realize plug-in management, fast reading development and quick iteration to business APP, reduce development cost, improve business APP's rate of reuse, flexibility and stability, and then improve business processing system's system stability.
Fig. 2 is a schematic flow chart of a service processing method according to an embodiment of the present invention, where the present embodiment is applicable to a case of improving service processing efficiency, and the method may be executed by a service processing apparatus according to an embodiment of the present invention, and the apparatus may be implemented in a software and/or hardware manner. In a particular embodiment, the apparatus may be integrated in an electronic device, which may be, for example, a computer or a server. The following embodiments will be described by taking as an example that the apparatus is integrated in an electronic device, and referring to fig. 2, the method may specifically include the following steps:
step 201, receiving a service request command through a user interface layer, and transmitting the service request command to an application program layer.
The service request instruction can be understood as service operation information triggered by a user at a UI layer.
Specifically, the operation information triggered by the user at the UI layer can be monitored through the display process in the UI layer to receive the service request instruction; and transmitting the service request instruction to the AP layer, wherein the service request instruction can be transmitted to the AP layer through an instruction transmitting protocol interface.
Illustratively, the operation information of the user for clicking and triggering balance inquiry through the UI layer can be monitored through a display process in the UI layer; the UI layer can determine the service request instruction as a balance inquiry instruction according to the operation instruction of balance inquiry, and can transmit the balance inquiry instruction to the application program layer through an interface of an instruction sending protocol.
Step 202, analyzing the service request command through the application layer to determine the service requirement information.
The service requirement information can be understood as corresponding service data requirement information and service authority requirement information determined according to the service request instruction.
Specifically, the service request instruction may be received through an interface of an instruction protocol between the AP layer and the UI layer, and then the AP layer analyzes the service request instruction to determine service requirement information corresponding to the service request instruction.
Illustratively, the balance inquiry instruction may be received through an interface of an instruction protocol between the AP layer and the UI layer, and then the AP layer analyzes the balance inquiry instruction, and determines that the service requirement information corresponding to the balance inquiry instruction may be service data requirement information (balance data requirement information).
Step 203, forwarding the service requirement information to the system platform, so that the system platform provides the target service according to the service requirement information.
The target service can be understood as target data information corresponding to the service request instruction.
Specifically, the service requirement information can be forwarded to the system platform through the APP, so that the system platform provides the target service according to the service requirement information; the system platform provides a target service according to the service demand information, the corresponding target service can be determined according to the received service demand information through the system platform, and the target service is sent to an AP layer of the APP.
Exemplarily, service data requirement information (balance data requirement information) can be forwarded to the system platform through the APP; and the system platform provides a target service (balance data information) according to the service data requirement information (balance data requirement information), and sends the target service (balance data information) to the AP layer of the APP.
And step 204, feeding back the target service to the user interface layer through the application program layer, and displaying the target service by using the user interface layer.
Specifically, after the AP layer receives the target service, the AP layer sends the target service to the UI layer through a socket interface of a communication protocol between the UI layer and the AP layer; after the UI layer receives the target service, the user interface corresponding to the target service can be displayed through a display process in the UI layer.
Illustratively, after the AP layer receives the target traffic (balance data information), the AP layer may send the target traffic (balance data information) to the UI layer through a socket interface of a communication protocol between the UI layer and the AP layer; after receiving the target service (balance data information), the UI layer may display a balance query result interface corresponding to the target service (balance data information) through a display process in the UI layer.
In the embodiment of the invention, a service request instruction is received through a user interface layer and is transmitted to an application program layer; analyzing the service request instruction through an application program layer to determine service requirement information; forwarding the service requirement information to the system platform, so that the system platform provides a target service according to the service requirement information; and feeding back the target service to the user interface layer through the application program layer, and displaying the target service by using the user interface layer. The embodiment of the invention designs the service processing program in a layered mode, and the service processing program is divided into the user interface layer and the application program layer, thereby solving the problem of low efficiency of processing the target service by the service processing program, realizing the aim of decoupling among the user interface layer, the application program layer and the system platform, and improving the multiplexing rate, flexibility and stability of the service processing program, so that the service processing program can quickly respond to the target service processing request.
In some embodiments, the user interface layer and the application layer have a communication protocol in agreement, and the user interface layer and the application layer communicate with each other through a socket interface of the communication protocol.
A Socket (Socket) is understood to be an abstraction of an endpoint for two-way communication between application processes on different hosts in a network. One socket is one end of process communication on the network, and provides a mechanism for the application layer process to exchange data by using a network protocol; the socket upper connection application process and the lower connection network protocol stack are interfaces for the application program to communicate through the network protocol, and are interfaces for the application program to interact with the network protocol stack. The communication protocol is also called as communication protocol, and can be understood as an agreement of two communication parties for data transmission control; the convention may include making unified rules for data format, synchronization mode, transmission speed, transmission step, error detection and correction mode, control character definition, etc. the two parties of communication must comply together.
Specifically, an application programming interface package of the UI layer may be introduced into the AP layer, and developed according to the communication protocol specification, so that the UI layer and the AP layer may communicate with each other through a socket interface of the communication protocol.
For example, assuming that a communication protocol agreed between the UI layer and the AP layer is an instruction sending protocol, the instruction sending protocol may be a sendCommand protocol, and after determining that a service request instruction is a balance query instruction according to operation information of a user clicking balance query on a user interface layer, the UI layer sends an instruction sending protocol interface to the AP layer: send Command function (cmd, param, cb), delivers the balance query instruction to the application layer.
In the embodiment of the invention, the communication between the UI layer and the AP layer can be completed through the communication protocol agreed between the UI layer and the AP layer and the socket interface of the communication protocol, so that the communication efficiency between the UI layer and the AP layer can be improved, and the decoupling purpose between the UI layer and the AP layer can be realized; on the other hand, the AP layer can realize independent development without paying attention to specific implementation details of the UI. When a single APP facing the protocol is abnormal or wrong, the whole service processing system is not influenced.
In some embodiments, the communication protocols include navigation protocols, notification protocols, tab operation protocols, and command delivery protocols.
In particular, the navigation protocol may include a navigator protocol; the notification protocol may be a notify protocol; the Tab operation protocol may include a select Tab (select Tab) protocol, a Delete Tab (Delete Tab) protocol, a Rename Tab (Rename Tab) protocol, and so forth.
Illustratively, this may be done by using the statement "void navigation (String url, ViewTab tab) in the navigation protocol; "display page and specific tab commands; by utilizing the statement "void navigation (Stringurl) in the navigation protocol; "display page; can be determined by using the statement "void select tab (ViewTab tab) in the tab protocol; ", switch tabs; may be signaled by the statement "void notify (String eventName, String arg, String reqId) in the protocol; "send asynchronous instructions to page.
In the embodiment of the invention, the communication between the UI layer and the AP layer can be ensured through the navigation protocol, the notification protocol, the tab operation protocol and the instruction sending protocol which are included in the communication protocol.
The service processing method provided by the embodiment of the present invention is further described below, and fig. 3 is another flow diagram of the service processing method provided by the embodiment of the present invention, as shown in fig. 3, specifically including the following steps:
step 301, monitoring the operation information of the user interface layer.
The operation information may be understood as request information triggered by a user clicking on the UI layer.
Specifically, the operation information of the UI layer may be monitored through a display process of the UI layer.
For example, assuming that the user clicks a payment button of the UI layer, the operation information of the UI layer may be monitored as payment request information through the display process of the UI layer.
Step 302, determining a service request instruction according to the operation information.
Illustratively, the UI layer may be utilized to determine the service request instruction as a payment processing instruction from the operation information (payment request information).
Step 303, invoking the browser component by using the script software development tool to transmit the service request command to the application layer through the socket interface of the command transmission protocol.
Wherein, the script software development tool can be understood as js-sdk, and js-sdk can provide basic application programming interface functions, including submitting transactions, account operation, deploying and calling contracts, various query operations, transaction simulation execution, monitoring events and the like.
Specifically, the browser component may be written by using a chrome kernel, and may have the following functions:
(1) support for js instruction: monitoring a page instruction, uploading a node instruction, analyzing an instruction result and executing a default script;
(2) processing system platform instructions: network monitoring service, message processing, parameter conversion and message distribution;
(3) support for multi-tab browsers: supporting a multi-label browser to allow a new browser to be loaded;
(4) setting and acquiring a creation browser: in a multi-tag browser, providing a browser interface for creating, acquiring and setting through names;
(5) flexible configuration page: the whole interface is divided into an address bar, a browsing button, a label bar, a title bar and the like. Whether all the display parts are displayed or not and the size of the display area can be configured;
(6) simulating an interface: the simulation interface and the real interface can be automatically switched according to the configuration, and various types of interface configurations can be supported. In the simulation interface, the related functions supporting the interaction of the system platform are also needed.
Chrome is a web browser developed by google, is an engine behind the Chrome browser of google, and can be used for creating a safe, stable and fast general browser.
Furthermore, a script software development tool can be defined in advance between the UI layer and the AP layer, the corresponding script software development tool and the browser component can be determined according to the service request instruction, and the browser component corresponding to the service request instruction can be obtained by writing through a chrome kernel.
Illustratively, the corresponding js-sdk and browser component can be determined according to the service request instruction (payment processing instruction), and then the browser component (payment browser component) corresponding to the service request instruction (payment processing instruction) is obtained by writing using the chrome kernel, so that the display process calls the browser component to transmit the service request instruction to the application layer through the socket interface of the instruction sending protocol.
In the embodiment of the invention, the operation information of the user interface layer is monitored; determining a service request instruction according to the operation information; the script software development tool is utilized to call the browser component to transmit the service request instruction to the application program layer through the socket interface of the instruction sending protocol, so that the UI layer and the AP layer are communicated through the appointed communication protocol and the socket interface of the communication protocol, the change of service processing requirements can be solved by expanding the communication protocol, the existing codes are not modified, the expansion is opened, and the modification is closed, so that the decoupling purpose of the UI layer and the AP layer is realized, and the processing efficiency of the service processing method is improved.
Step 304, analyzing the service request command by the application layer to determine the service requirement information.
Illustratively, the service request instruction (payment processing instruction) may be analyzed by the AP layer to determine the service requirement information as: and calling the payment APP authority requirement information and the payment service processing related data requirement information.
Step 305, forwarding the service requirement information to the system platform so that the system platform determines whether the system platform can provide the target service according to the calling authority information and/or the service processing information; when the system platform can not provide the target service, executing step 306; when the system platform is capable of providing the target service, step 307 is performed.
The calling authority information can be understood as APP calling authority information corresponding to the service request instruction; the service processing information can be understood as service data processing related information corresponding to the service request instruction.
Specifically, after receiving the service requirement information, the system platform may determine whether the call authority information and/or the service processing information in the service requirement information can be provided according to the service requirement information.
Illustratively, the service requirement information (calling payment APP authority requirement information and payment service processing related data requirement information) can be forwarded to the system platform through the APP, so that the system platform determines whether the system platform can provide the target service according to the service requirement information.
And step 306, calling the auxiliary service program through the system platform to acquire the target service provided by the auxiliary service program.
After step 306 is performed, step 307 is performed.
Wherein, the auxiliary service program can be understood as other APPs required for completing the service request instruction.
Specifically, if the system platform cannot provide the target service, the corresponding auxiliary APP may be determined according to the call flow command in the call permission information, so as to call the auxiliary APP to provide the target service.
Further, the service requirement information sent to the system platform by the AP layer can be forwarded through the APP; when the system platform determines that the target service cannot be provided, the called auxiliary APP can be determined according to the called payment APP permission information in the received service demand information so as to obtain the target service provided by the auxiliary APP.
For example, when the system platform determines that the target service cannot be provided according to the service requirement information (calling payment APP permission requirement information and payment service processing related data requirement information), the called auxiliary APP may be determined according to a call flow command (callFlow command) in the received service requirement information, so that the system platform calls the auxiliary APP (auxiliary payment APP) to obtain the target service provided by the auxiliary service program.
And 307, acquiring the target service provided by the system platform.
Specifically, the target service provided by the system platform can be forwarded to the AP layer through the APP.
In the embodiment of the invention, the service requirement information is forwarded to the system platform, so that the system platform determines whether the system platform can provide the target service according to the calling authority information and/or the service processing information; when the system platform can provide the target service, acquiring the target service provided by the system platform; when the system platform can not provide the target service, calling the auxiliary service program through the system platform to acquire the target service provided by the auxiliary service program; the aim of calling the auxiliary service program to provide the target service can be achieved, the capability of the system platform for providing the target service is enhanced, and the processing efficiency of the service processing method is further improved.
And 308, feeding back the target service to the user interface layer through a socket interface of a navigation protocol, a notification protocol or a tab operation protocol.
Specifically, after the AP layer obtains the target service and completes the target service, the AP layer may feed back the target service to the user interface layer through a socket interface of a navigation protocol, a notification protocol, or a tab operation protocol.
Illustratively, the AP layer may be utilized to feed back the target traffic to the UI layer through a Socket interface of the navigator protocol.
Step 309, using the display process to call the browser component to display the target service.
Exemplarily, a browser component corresponding to the target service can be called by using a display process to display the target service; the browser component corresponding to the target service can be understood as a browser component determined by the UI layer according to the target service, and the browser component corresponding to the target service can be written by using the chrome kernel.
In the embodiment of the invention, a target service is fed back to a user interface layer through a socket interface of a navigation protocol, a notification protocol or a tab operation protocol; and the display process is utilized to call the browser component to display the target service, so that the browser is more intelligent, the independent development of a UI layer can be realized, and the function of the browser is enhanced.
In the embodiment of the invention, the operation information of the user interface layer is monitored, the service request instruction is determined according to the operation information, the script software development tool is utilized to call the browser component to transmit the service request instruction to the application program layer through the socket interface of the instruction sending protocol, and the service requirement information is forwarded to the system platform, so that the system platform determines whether the system platform can provide the target service according to the call authority information and/or the service processing information; when the system platform can not provide the target service, calling the auxiliary service program through the system platform to acquire the target service provided by the auxiliary service program; when the system platform can provide the target service, the target service provided by the system platform is obtained, the target service is fed back to the user interface layer through a socket interface of a navigation protocol, a notification protocol or a tab operation protocol, and a browser component is called by using a display process to display the target service. The embodiment of the invention designs the service processing program in a layered mode, and the service processing program is divided into the user interface layer and the application program layer, thereby solving the problem of low efficiency of processing the target service by the service processing program, realizing the purposes of the user interface layer, the application program layer and the system platform, and improving the reusability, flexibility and stability of the service processing program, so that the service processing program can quickly respond to the target service processing request.
Fig. 4 is a schematic structural diagram of a service processing apparatus according to an embodiment of the present invention, where the apparatus is adapted to execute a service processing method according to an embodiment of the present invention. As shown in fig. 4, the apparatus may specifically include:
an instruction transmission module 401, configured to receive a service request instruction through the user interface layer, and transmit the service request instruction to the application layer;
a requirement information determining module 402, configured to analyze the service request instruction through the application layer to determine service requirement information;
a target service providing module 403, configured to forward the service requirement information to the system platform, so that the system platform provides a target service according to the service requirement information;
and a target service presentation module 404, configured to feed back the target service to the user interface layer through the application layer, and present the target service by using the user interface layer.
In one embodiment, a communication protocol is agreed between the user interface layer and the application layer, and the user interface layer and the application layer communicate with each other through a socket interface of the communication protocol.
In one embodiment, the communication protocol includes a navigation protocol, a notification protocol, a tab operation protocol, and a command transmission protocol.
In an embodiment, the instruction transmitting module 401 is specifically configured to:
monitoring the operation information of the user interface layer;
determining the service request instruction according to the operation information;
and calling a browser component by using a script software development tool to transmit the service request instruction to the application program layer through a socket interface of the instruction transmission protocol.
In an embodiment, the target service displaying module 404 is specifically configured to:
feeding back the target service to the user interface layer through a socket interface of the navigation protocol, the notification protocol or the tab operation protocol;
and calling a browser component by utilizing the display process to display the target service.
In one embodiment, the service requirement information includes calling authority information and/or service processing information;
the target service providing module 403 is specifically configured to:
forwarding the service requirement information to the system platform so that the system platform determines whether the system platform can provide the target service according to the calling authority information and/or the service processing information;
and when the system platform can provide the target service, acquiring the target service provided by the system platform.
In an embodiment, the target service providing module 403 is specifically configured to:
and calling an auxiliary service program through the system platform to acquire the target service provided by the auxiliary service program.
It is obvious to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working process of the functional module, reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
The device of the embodiment of the invention can receive the service request instruction through the user interface layer and transmit the service request instruction to the application program layer; analyzing the service request instruction through an application program layer to determine service requirement information; forwarding the service requirement information to the system platform so that the system platform provides a target service according to the service requirement information; and feeding back the target service to the user interface layer through the application program layer, and displaying the target service by using the user interface layer. The embodiment of the invention designs the service processing program in a layered mode, and the service processing program is divided into the user interface layer and the application program layer, thereby solving the problem of low efficiency of processing the target service by the service processing program, realizing the aim of decoupling among the user interface layer, the application program layer and the system platform, and improving the multiplexing rate, flexibility and stability of the service processing program, so that the service processing program can quickly respond to the target service processing request.
The embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program that is stored in the memory and can be run on the processor, and when the processor executes the program, the service processing method provided in any of the above embodiments is implemented.
The embodiment of the present invention further provides a computer readable medium, on which a computer program is stored, where the computer program is executed by a processor to implement the service processing method provided in any of the above embodiments.
Referring now to FIG. 5, shown is a block diagram of a computer system 500 suitable for use in implementing an electronic device of an embodiment of the present invention. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 5, the computer system 500 includes a Central Processing Unit (CPU)501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the system 500 are also stored. The CPU 501, ROM 502, and RAM 503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. A drive 510 is also connected to the I/O interface 505 as needed. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 501.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules and/or units described in the embodiments of the present invention may be implemented by software, and may also be implemented by hardware. The described modules and/or units may also be provided in a processor, which may be described as: a processor comprises an instruction transmission module, a demand information determination module, a target service providing module and a target service display module. Wherein the names of the modules do not in some cases constitute a limitation of the module itself.
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not assembled into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise:
receiving a service request instruction through the user interface layer and transmitting the service request instruction to the application program layer; analyzing the service request instruction through the application program layer to determine service requirement information; forwarding the service requirement information to the system platform so that the system platform provides a target service according to the service requirement information; and feeding back the target service to the user interface layer through the application program layer, and displaying the target service by utilizing the user interface layer.
According to the technical scheme of the embodiment of the invention, the service request instruction can be received through the user interface layer and transmitted to the application program layer; analyzing the service request instruction through an application program layer to determine service requirement information; forwarding the service requirement information to the system platform so that the system platform provides a target service according to the service requirement information; and feeding back the target service to the user interface layer through the application program layer, and displaying the target service by using the user interface layer. The embodiment of the invention designs the service processing program in a layered mode, and the service processing program is divided into the user interface layer and the application program layer, thereby solving the problem of low efficiency of processing the target service by the service processing program, realizing the aim of decoupling among the user interface layer, the application program layer and the system platform, and improving the multiplexing rate, flexibility and stability of the service processing program, so that the service processing program can quickly respond to the target service processing request.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A service processing method is applied to an electronic device, the electronic device is provided with a system platform, a service processing program is installed in the electronic device, the service processing program comprises a user interface layer and an application program layer, and the method comprises the following steps:
receiving a service request instruction through the user interface layer and transmitting the service request instruction to the application program layer;
analyzing the service request instruction through the application program layer to determine service requirement information;
forwarding the service requirement information to the system platform so that the system platform provides a target service according to the service requirement information;
and feeding back the target service to the user interface layer through the application program layer, and displaying the target service by utilizing the user interface layer.
2. The method as claimed in claim 1, wherein a communication protocol is agreed between the user interface layer and the application layer, and the user interface layer and the application layer communicate with each other through a socket interface of the communication protocol.
3. The method of claim 2, wherein the communication protocols include a navigation protocol, a notification protocol, a tab operation protocol, and an instruction delivery protocol.
4. The method of claim 3, wherein receiving a service request command via the user interface layer and transmitting the service request command to the application layer comprises:
monitoring the operation information of the user interface layer;
determining the service request instruction according to the operation information;
and calling a browser component by using a script software development tool to transmit the service request instruction to the application program layer through a socket interface of the instruction transmission protocol.
5. The method of claim 3, wherein the user interface layer has a display process, and the feeding back the target service to the user interface layer through the application layer and the displaying the target service by using the user interface layer comprises:
feeding back the target service to the user interface layer through a socket interface of the navigation protocol, the notification protocol or the tab operation protocol;
and calling a browser component by utilizing the display process to display the target service.
6. The method according to claim 1, wherein the service requirement information includes invocation authority information and/or service processing information, and the forwarding of the service requirement information to the system platform to enable the system platform to provide a target service according to the service requirement information includes:
forwarding the service requirement information to the system platform so that the system platform determines whether the system platform can provide the target service according to the calling authority information and/or the service processing information;
and providing the target service on the system platform, and acquiring the target service provided by the system platform.
7. The method of claim 6, wherein when the system platform is unable to provide the target service, the method further comprises:
and calling an auxiliary service program through the system platform to acquire the target service provided by the auxiliary service program.
8. A traffic processing apparatus, characterized in that the apparatus comprises:
the instruction transmission module is used for receiving a service request instruction through the user interface layer and transmitting the service request instruction to the application program layer;
the requirement information determining module is used for analyzing the service request instruction through the application program layer to determine service requirement information;
the target service providing module is used for forwarding the service requirement information to the system platform so that the system platform provides a target service according to the service requirement information;
and the target service display module is used for feeding back the target service to the user interface layer through the application program layer and displaying the target service by utilizing the user interface layer.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the business process method of any of claims 1 to 7 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a service processing method according to any one of claims 1 to 7.
CN202210172273.9A 2022-02-24 2022-02-24 Service processing method, device, electronic equipment and storage medium Pending CN114546683A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210172273.9A CN114546683A (en) 2022-02-24 2022-02-24 Service processing method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210172273.9A CN114546683A (en) 2022-02-24 2022-02-24 Service processing method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114546683A true CN114546683A (en) 2022-05-27

Family

ID=81676627

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210172273.9A Pending CN114546683A (en) 2022-02-24 2022-02-24 Service processing method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114546683A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174517A (en) * 2022-09-05 2022-10-11 北京仁科互动网络技术有限公司 Service processing method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174517A (en) * 2022-09-05 2022-10-11 北京仁科互动网络技术有限公司 Service processing method and system
CN115174517B (en) * 2022-09-05 2022-11-15 北京仁科互动网络技术有限公司 Service processing method and system

Similar Documents

Publication Publication Date Title
CN111279320B (en) API repository implementing microservice configuration and management
CN108449418B (en) Hybrid cloud platform management system and method
KR100807651B1 (en) System and method of creating and communicating with component based wireless applications
US20120110093A1 (en) Service oriented architecture version and dependency control
KR20180038539A (en) A method and system for implementing data tracking with a software development kit
US8539514B2 (en) Workflow integration and portal systems and methods
JP7097958B2 (en) Systems and methods for integrating cloud applications into cloud service broker platforms using the Automatic Universal Connector Package
US20110252147A1 (en) Method and apparatus for accessing an enterprise resource planning system via a mobile device
WO2020135245A1 (en) Hosting application processing method and device, and computer-readable storage medium
CN113934464A (en) Method and device for starting android application in Linux system and electronic equipment
CN111177112A (en) Database blocking method and device based on operation and maintenance management system and electronic equipment
CN110505162A (en) Method for message transmission, device and electronic equipment
CN114077367A (en) Method and device for realizing shortcut of android application in Linux system
CN112612467A (en) Method and device for processing micro front-end architecture based on qiankun
CN112395098B (en) Application program interface calling method and device, storage medium and electronic equipment
CN114546683A (en) Service processing method, device, electronic equipment and storage medium
US10725744B2 (en) Method for adapting to blockchain and device, terminal and medium performing the same
CN113760278A (en) Page management method and device
CN111951040A (en) Information sending method and device, electronic equipment and storage medium
CN115794219A (en) Data source dynamic control method and device, electronic equipment and medium
CN114579334A (en) Communication method, communication device, electronic equipment and storage medium
CN113947169A (en) Hardware device operating method, apparatus, device, storage medium, and program product
CN113448578A (en) Page data processing method, processing system, electronic device and readable storage medium
CN113448960A (en) Method and device for importing form file
CN114202046B (en) Method, device, equipment and medium for generating two-dimension code based on SAP system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination