CN113194116A - Service data processing method and device, computer equipment and storage medium - Google Patents

Service data processing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113194116A
CN113194116A CN202110284274.8A CN202110284274A CN113194116A CN 113194116 A CN113194116 A CN 113194116A CN 202110284274 A CN202110284274 A CN 202110284274A CN 113194116 A CN113194116 A CN 113194116A
Authority
CN
China
Prior art keywords
service
service data
data
processed
mobile terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110284274.8A
Other languages
Chinese (zh)
Other versions
CN113194116B (en
Inventor
谢鸿锋
夏思立
韦嘉发
周耀宏
杜杰
李卫星
肖南燕
韦静文
何水
张建东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kingdee Deeking Cloud Computing Co ltd
Original Assignee
Kingdee Deeking Cloud Computing Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kingdee Deeking Cloud Computing Co ltd filed Critical Kingdee Deeking Cloud Computing Co ltd
Priority to CN202110284274.8A priority Critical patent/CN113194116B/en
Publication of CN113194116A publication Critical patent/CN113194116A/en
Application granted granted Critical
Publication of CN113194116B publication Critical patent/CN113194116B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G1/00Cash registers
    • G07G1/12Cash registers electronically operated

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to a business data processing method, a business data processing device, a computer device and a storage medium. The method comprises the following steps: acquiring service data generated by interface operation; and performing edge calculation processing on the service data to obtain processed service data, and displaying the processed service data on the mobile terminal. And when the mobile terminal is in a networking state, synchronizing the processed service data to a cloud server. By adopting the method, the normal use of the application program can be ensured, and the resource utilization rate is improved.

Description

Service data processing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for processing service data, a computer device, and a storage medium.
Background
Cloud services are application services based on internet application servers, and most of current application programs communicate with the cloud services through network connection and display obtained data. However, in the conventional manner, the application program and the like strongly depend on the cloud, and when no network exists, the application program cannot be normally used, so that resource waste is caused.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a business data processing method, apparatus, computer device and storage medium for solving the above technical problems.
A business data processing method is applied to local edge computing service contained in a mobile terminal, and the method comprises the following steps:
acquiring service data generated by interface operation;
performing edge calculation processing on the service data to obtain processed service data, and displaying the processed service data on the mobile terminal;
and when the mobile terminal is in a networking state, synchronizing the processed service data to a cloud server.
In one embodiment, the cloud server stores basic service data and flow service data;
the acquiring of the service data generated by the interface operation comprises:
acquiring target flow business data generated by operating an interface displaying the basic business data; the basic service data is acquired from a cloud server;
the performing edge calculation processing on the service data to obtain processed service data, and displaying the processed service data on the mobile terminal includes:
performing edge calculation processing on the target flow service data to obtain processed target flow service data, and displaying the processed target flow service data on the mobile terminal;
when the mobile terminal is in a networking state, synchronizing the processed service data to a cloud server, including:
and when the mobile terminal is in an unconnected state, storing the processed target flow business data, and synchronizing the processed target flow business data to a cloud service end until the mobile terminal is in a connected state, so that the cloud service end updates the flow business data stored in the cloud service end based on the processed target flow business data.
In one embodiment, the mobile terminal comprises a POS terminal;
the acquiring of the service data generated by the interface operation includes:
acquiring a user account and service settlement data generated by interface operation at a POS terminal;
the performing edge calculation processing on the service data to obtain processed service data, and displaying the processed service data on the mobile terminal includes:
performing edge calculation processing on the service settlement data to obtain processed service settlement data, and displaying the processed service settlement data on a POS terminal;
when the mobile terminal is in a networking state, synchronizing the processed service data to a cloud server, including:
and when the POS terminal is in a networking state, synchronizing the user account and the corresponding processed service settlement data to the cloud server, so that the cloud server updates the stored service data corresponding to the user account based on the user account and the corresponding processed service settlement data.
In one embodiment, the local edge computing service comprises a hypertext transfer protocol lightweight service; the hypertext transfer protocol lightweight service runs in a browser running environment; the service data is generated through a browser interface operation running in the browser running environment.
A business data processing device is applied to a mobile terminal and comprises a local edge computing service module, wherein the local edge computing service module is used for:
acquiring service data generated by interface operation;
performing edge calculation processing on the service data to obtain processed service data, and displaying the processed service data on the mobile terminal;
and when the mobile terminal is in a networking state, synchronizing the processed service data to a cloud server.
In one embodiment, the apparatus further comprises an interface display module; the cloud server stores basic service data and flow service data;
the local edge computing service module is used for acquiring basic service data from the cloud server;
the interface display module is used for displaying the basic service data on an interface, acquiring target flow service data generated by operating the interface displaying the basic service data, and transmitting the target flow service data to the local edge computing service through a data transmission protocol;
the local edge computing service module is used for carrying out edge computing processing on the target flow business data to obtain processed target flow business data;
the local edge computing service module is used for storing the processed target mobile service data when the mobile terminal is in an unconnected state, and synchronizing the processed target mobile service data to the cloud service end until the mobile terminal is in a connected state, so that the cloud service end updates the mobile service data stored in the cloud service end based on the processed target mobile service data.
In one embodiment, the mobile terminal comprises a POS terminal; the local edge computing service module is to:
receiving service settlement data generated by interface operation;
performing edge calculation processing on the service settlement data to obtain processed service settlement data;
and when the POS terminal is in a networking state, synchronizing the user account and the corresponding processed service settlement data to the cloud server, so that the cloud server updates the stored user account data corresponding to the user account based on the user account and the corresponding processed service settlement data.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the methods in the embodiments of the present application when the processor executes the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the respective method in the embodiments of the present application.
According to the service data processing method, the device, the computer equipment and the storage medium, the service data generated by interface operation is obtained, the edge calculation processing is carried out on the service data, the processed service data is obtained, the processed service data is displayed on the mobile terminal, the normal processing of the service data can be ensured under the condition that the network is poor or no network exists, the mobile terminal is prevented from being in a non-operation state all the time, the resource utilization rate is improved, and meanwhile, the service data can be quickly responded by the terminal, so that the user experience can be improved; when the mobile terminal is in a networking state, the service data after synchronous processing is carried out on the cloud server side, so that the accuracy of the service data can be ensured, and the terminal is prevented from storing excessive data.
Drawings
FIG. 1 is a diagram of an application environment of a method for processing service data in one embodiment;
FIG. 2 is a flow chart illustrating a method for processing service data according to an embodiment;
FIG. 3 is a diagram of a conventional browser architecture in one embodiment;
fig. 4 is a schematic diagram of an architecture corresponding to a service data processing method in an embodiment;
fig. 5 is a schematic diagram of an architecture corresponding to a service data processing method in another embodiment;
FIG. 6 is a block diagram of a business data processing apparatus in one embodiment;
FIG. 7 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The service data processing method provided by the application can be applied to the application environment shown in fig. 1. The mobile terminal 102 communicates with the cloud server 104 through a network. The mobile terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices. The cloud server 104 may be implemented by an independent server or a server cluster composed of a plurality of servers. The mobile terminal 102 includes a local edge computing service, which may be embedded directly in an operating system of the mobile terminal or in an application installed in the mobile terminal.
In an embodiment, as shown in fig. 2, a service data processing method is provided, which is described by taking an example that the method is applied to a local edge computing service included in the mobile terminal 102 in fig. 1, and includes the following steps:
step 202, acquiring service data generated by interface operation.
The local edge computing service refers to an edge computing service installed locally in the mobile terminal. And, the local edge computing service is deployed in an application execution environment. Edge computing means that an open platform integrating network, computing, storage and application core capabilities is adopted on one side close to an object or a data source to provide nearest-end services nearby. The service data may specifically be service data in a certain scenario. And the traffic data may be presented in different forms. Such as pictures, text, video, etc. The business data may be business transaction data and the business transaction data may include business settlement data.
The interface operation may be a touch operation on the interface, or an operation for making the interface respond through a key on the mobile terminal. For example, the operation through the interface may be an operation in which the user clicks a screen, or an operation in which the user touches a key of the mobile terminal.
Specifically, the local edge computing service acquires service data from the cloud server and displays the service data on an interface of the mobile terminal. And generating service data related to the displayed service data through interface operation by a user. The mobile terminal acquires service data generated through interface operation of the application program. The application program may be a light application, a native application, or the like.
And 204, performing edge calculation processing on the service data to obtain processed service data, and displaying the processed service data on the mobile terminal.
Specifically, when the mobile terminal is in an unconnected state, the local edge computing service performs edge computing processing on the service data generated on the interface of the application program to obtain processed service data, and displays the processed service data on the mobile terminal. The non-networking state may include a network connection failure state, a network transmission speed less than a preset threshold, a network strength less than a preset strength, and the like.
In this embodiment, when the mobile terminal is in a networking state, the mobile terminal uploads the service data generated through the interface operation to the cloud server, so that the cloud server processes the service data to obtain processed service data, returns the processed service data to the mobile terminal, and displays the processed service data on the mobile terminal.
And step 206, synchronizing the processed service data to the cloud server when the mobile terminal is in the networking state.
Specifically, when the submission instruction is obtained and the mobile terminal is in a networking state, the local edge computing service synchronizes the processed service data to the cloud server, so that the cloud server updates the corresponding stored service data based on the processed service data, and returns a processing result to the mobile terminal.
The service data processing method in the embodiment obtains the service data generated by the interface operation, performs edge calculation processing on the service data to obtain the processed service data, and displays the processed service data on the mobile terminal, so that the normal processing of the service data can be ensured under the condition of poor network or no network, the mobile terminal is prevented from being in a non-operation state all the time, the resource utilization rate is improved, and meanwhile, the service data can be quickly responded by the terminal, so that the user experience can be improved; when the mobile terminal is in a networking state, the service data after synchronous processing is carried out on the cloud server side, so that the accuracy of the service data can be ensured, and the terminal is prevented from storing excessive data.
In one embodiment, the cloud server stores basic service data and flow service data.
Acquiring business data generated by interface operation, comprising the following steps: and acquiring target flow business data generated by operating an interface displaying the basic business data.
Performing edge calculation processing on the service data to obtain processed service data, and displaying the processed service data on the mobile terminal, including: and performing edge calculation processing on the target flow service data to obtain processed target flow service data, and displaying the processed target flow service data on the mobile terminal.
When the mobile terminal is in a networking state, the service data synchronously processed to the cloud server side comprises the following steps: and when the mobile terminal is in an unconnected state, storing the processed target flow business data, and synchronizing the processed target flow business data to the cloud server when the mobile terminal is in a connected state, so that the cloud server updates the flow business data stored in the cloud server based on the processed target flow business data.
The basic service data is data of some basic data, such as various tables. The specific basic service data is some data that is not limited by time and location. Such as user account, user basic information, etc.
The streaming service data refers to data which is easy to change, and particularly may be data limited by time and location. Such as user credits, resources held by the user, etc.
Specifically, when the application program is started and the mobile terminal is in a networking state, the local edge computing service acquires basic service data from the cloud server and displays the basic service data on the mobile terminal. The local edge computing service acquires target flow business data generated by operating an interface displaying basic business data, wherein the basic business data is acquired from a cloud server. And the local edge computing service carries out edge computing processing on the target flow service data to obtain processed target flow service data, and displays the processed target flow service data on the mobile terminal.
In this embodiment, when the terminal is in a networking state in response to the start operation of the application program, the local edge computing service may further obtain the streaming service data stored by the cloud server. The local edge computing service carries out edge computing processing based on the streaming service data stored by the cloud server and the target streaming service data to obtain processed target streaming service data, and displays the processed target streaming service data on the mobile terminal. When the mobile terminal is in an unconnected state, the local edge computing service stores the processed target streaming service data, and when the mobile terminal is in a connected state, the processed target streaming service data is synchronized to the cloud server, so that the cloud server updates the streaming service data stored in the cloud server based on the processed target streaming service data.
In the service data processing method in this embodiment, the basic service data is acquired from the cloud server, the basic service data is displayed on the interface, the target streaming service data generated by operating the interface displaying the basic service data is acquired, the target streaming service data is subjected to edge calculation processing, the processed target streaming service data is acquired, and the processed target streaming service data is displayed on the terminal, that is, the data occupying a large amount of memory is still stored in the cloud, and the local edge calculation service only needs to process the streaming service data, so that the operation load of the mobile terminal is reduced.
In one embodiment, the mobile terminal comprises a POS terminal. Acquiring service data generated by interface operation, comprising:
and acquiring a user account and service settlement data generated by corresponding interface operation at the POS terminal.
Performing edge calculation processing on the service data to obtain processed service data, and displaying the processed service data on the mobile terminal, including: and performing edge calculation processing on the service settlement data to obtain processed service settlement data, and displaying the processed service settlement data on the POS terminal.
When the mobile terminal is in a networking state, the service data synchronously processed to the cloud server side comprises the following steps: and when the POS terminal is in a networking state, synchronizing the user account and the corresponding processed service settlement data to the cloud service terminal, so that the cloud service terminal updates the stored user account data corresponding to the user account based on the user account and the corresponding processed service settlement data.
The POS (Point of sale) is a point of sale, is called as a point of sale information management system, is provided with a bar code or OCR code technology terminal reader, and has cash or barter deposit function. The main task is to provide data service and management function for commodity and media transaction and to perform cashless settlement. Among them, OCR (Optical Character Recognition) refers to a process in which an electronic device checks a Character printed on paper, determines its shape by detecting dark and light patterns, and then translates the shape into a computer text by a Character Recognition method.
The user account number is an identification used in the POS terminal to uniquely characterize the user. The user account may be composed of at least one of numbers, letters, words, and symbols. One user account uniquely corresponds to one user, and one user can correspond to a plurality of user accounts. The service data includes service settlement data, which is data generated when a call or a payment is made. For example, the service settlement data may be point settlement data, resource transfer settlement data, or the like.
Specifically, the local edge computing service obtains a user account through a card reader, and obtains service settlement data generated by interface operation at the POS terminal. And when the POS terminal is in an unconnected state, the local edge computing service performs receiving and payment computing processing on the service settlement data to obtain processed service settlement data, and the processed service settlement data is displayed on the POS terminal. And when the POS terminal is in a networking state, synchronizing the user account and the corresponding processed service settlement data to the corresponding cloud service terminal, so that the cloud service terminal updates the stored service data corresponding to the user account and returns a settlement result to the POS terminal on the basis of the user account and the corresponding processed service settlement data.
For example, the POS terminal reads the user account and the corresponding user point information on the point card through a card reader, or the POS terminal may read the user account and the corresponding user point information through an image code scanner, and the current point of the user is displayed on the POS terminal. And displays the settlement points obtained for the current exchange on the POS terminal. The local edge computing service obtains updated user points based on the user's current points and the settlement points obtained from the current exchange. When the POS terminal is in a networking state, the local edge computing service synchronizes the user account and the corresponding updated user point to the cloud service end, so that the cloud service end updates the service data corresponding to the user account stored by the cloud service end based on the user account and the corresponding updated user point, and returns an updating result to the POS terminal.
In the service data processing method in the embodiment, the user account and the service settlement data generated by the interface operation at the POS terminal are acquired, the edge calculation processing is performed on the service settlement data to acquire the processed service settlement data, and the processed service settlement data is displayed at the POS terminal, so that the processed service settlement data can be quickly processed by the local edge calculation service regardless of whether networking is performed, the resource utilization rate is improved, and the user experience is improved; when the POS terminal is in a networking state, the user account and the corresponding processed service settlement data are synchronized to the cloud server, and the accuracy of the data can be guaranteed.
In one embodiment, the local edge computing service comprises a hypertext transfer protocol (HTTP) lightweight service. The hypertext transfer protocol lightweight service runs in a browser running environment. The business data is generated through a browser interface operation running in a browser running environment.
The hypertext transfer protocol lightweight service is used for performing edge computing processing on business data generated by interface operation, and can be communicated with the cloud server side.
Specifically, the service data method in this embodiment is executed in a hypertext transfer protocol lightweight service, and the hypertext transfer protocol lightweight service is executed in a browser execution environment; acquiring service data generated by browser interface operation of a browser running environment; performing edge calculation processing on the service data in a browser running environment to obtain processed service data, and displaying the processed service data on the mobile terminal; and when the mobile terminal is in a networking state, synchronizing the processed service data to the cloud server.
In the service data processing method in this embodiment, because the mobile terminal belongs to a resource-limited device, that is, the mobile terminal cannot run a service with too much resource consumption, a hypertext transfer protocol lightweight service is used in this embodiment, and the hypertext transfer protocol lightweight service runs in a browser running environment, so that the entire framework is applicable to different operating systems of the mobile terminal, such as an android system, a windows system, an IOS system, and the like, thereby implementing multi-terminal multiplexing and improving the universality of service data processing.
In one embodiment, as shown in FIG. 3, a diagram of a conventional browser architecture in one embodiment is shown. For example, the drawing includes a browser running environment, the browser running environment includes an interface written by HTML5(Hyper Text Markup Language), and interacts with the cloud service end through H5. In a traditional mode, a browser strongly depends on a cloud, and when equipment is connected with the cloud and the network is good, an application program in the equipment can communicate with the cloud; when the network between the device and the cloud is poor, the application program of the device cannot communicate with the cloud. However, although the conventional browser includes a browser cache, the browser cache only ensures that the displayed page information is stored when the page is not refreshed because the browser memory is limited, and does not support further processing of data. In other modes, such as a mode of a JVM (Java Virtual Machine), the JVM boot consumes a large amount of resources, and is not suitable for the mobile terminal. Therefore, a service data processing method in the embodiment of the present application is provided.
Fig. 4 is a schematic diagram of an architecture corresponding to a service data processing method in an embodiment. Including a browser runtime environment that includes an interface written in HTML5(Hyper Text Markup Language), and a local edge computing service. Where the HTML5 interface may communicate with the local edge computing service via hypertext transfer protocol. The local edge computing service may communicate with the cloud server over a network. The local edge computing service can acquire the service data generated by the interface operation based on the data transmission protocol, perform edge computing processing on the service data to obtain the processed service data, and display the processed service data on the mobile terminal.
Fig. 5 is a schematic diagram of an architecture of a service data processing method in another embodiment. Fig. 5 is described by taking the application to a POS terminal as an example. FIG. 5(a) is a schematic diagram of an architecture applied in a windows system. Fig. 5(b) is a schematic diagram of an architecture applied in the android system. FIG. 5(c) is a block diagram of an IOS system. FIG. 5(a) includes a windows shell that includes a POS engine. The windows shell refers to a browser running environment running in a windows system. Fig. 5(b) includes an android shell that includes a POS engine. The android shell refers to a browser running environment running in an android system. FIG. 5(c) includes an IOS shell that includes a POS engine. The IOS shell refers to a browser execution environment running in the IOS system. The POS engines in fig. 5(a), 5(b), and 5(c) each include an interface H5 (i.e., an interface display module) and a POS kernel. The interface H5 and POS kernel communicate via hypertext transfer protocol and json (JavaScript Object Notation). JSON is a lightweight data exchange format. The POS kernel is the local edge computing service. The POS kernel can be used for managing data stream, storing data, operating service, synchronizing cloud, and providing at least one of http (Hyper Text Markup Language) service.
The Interface display module is used for managing Interface flow, is suitable for small screens, medium screens and large screens, and exchanges data with local edge computing services through an Application Programming Interface (API). The shell is used to manage external devices, such as printers, cashboxes, displays, etc., associated with native operating system drivers.
In the service data processing method in this embodiment, a POS engine (kernel + H5) is compiled across platforms, the kernel operates in Android, Windows, and iOS operating systems in the form of Http lightweight service, H5 presents a UI in a shell (browser operating environment), H5 exchanges data with the kernel through an Http protocol, and by using this operating mechanism, "three-terminal multiplexing" is perfectly achieved, so that a set of codes is realized, "three-terminal (Android, Windows, and iOS) is multiplexed across platforms, cost reduction and efficiency improvement are achieved, three-terminal sharing is achieved, and three-terminal experience is consistent," that is, the POS engine can be used in different operating systems, that is, multiplexed to multiple terminals, that is, a local edge computing service can be used in different operating systems, thereby solving "weak" cache of a conventional browser, solving "heavy" of a virtual machine, saving cost, and improving customer experience.
The embodiment of the application also provides another scene of the service data processing method: the method is applied to local edge computing service contained in a mobile terminal, and obtains service data generated through interface operation, and comprises the following steps:
obtaining ordering data generated through interface operation;
performing edge calculation processing on the service data to obtain processed service data, and displaying the processed service data on the mobile terminal, including:
storing and processing the ordering data to obtain service data stored in the local edge computing service, and displaying the ordering data stored in the local edge computing service on the mobile terminal;
when the mobile terminal is in a networking state, the service data synchronously processed to the cloud server side comprises the following steps:
and when the mobile terminal is in a networking state, synchronizing the ordering data to the cloud server, so that the cloud server performs service settlement based on the ordering data and deducts corresponding service settlement data from the user account.
According to the service data processing method in the embodiment, the ordering data generated by interface operation is acquired, the ordering data is stored and processed, the service data stored in the local edge computing service is acquired and displayed, and the ordering data is synchronized to the cloud server, so that the cloud server performs service settlement based on the ordering data and deducts corresponding service settlement data from a user account, the ordering service can be quickly responded by a terminal when a network is poor, the normal use of the ordering service is ensured, and the user experience is improved.
It should be understood that, although the steps in the flowchart of fig. 2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 2 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
In one embodiment, as shown in fig. 6, a service data processing apparatus applied to a mobile terminal is provided, which includes a local edge computing service module 602, where the local edge computing service module 602 is configured to:
acquiring service data generated by interface operation;
performing edge calculation processing on the service data to obtain processed service data;
and when the mobile terminal is in a networking state, synchronizing the processed service data to the cloud server.
The service data processing device in this embodiment obtains service data generated by interface operation, performs edge calculation processing on the service data to obtain processed service data, and displays the processed service data on the mobile terminal, so that normal processing of the service data can be ensured even in the case of a poor network or no network, the mobile terminal is prevented from being in a no-operation state all the time, the resource utilization rate is improved, and user experience can be improved because the service data can be quickly responded by the terminal; when the mobile terminal is in a networking state, the service data after synchronous processing is carried out on the cloud server side, so that the accuracy of the service data can be ensured, and the terminal is prevented from storing excessive data.
In one embodiment, the apparatus further comprises an interface display module; the cloud server stores basic service data and flow service data;
the local edge computing service module 602 is configured to obtain basic service data from a cloud server;
the interface display module is used for displaying basic service data on an interface, acquiring target flow service data generated by operating the interface displaying the basic service data, and transmitting the target flow service data to the local edge computing service through a data transmission protocol;
a local edge calculation service module 602, configured to perform edge calculation processing on the target streaming service data to obtain processed target streaming service data;
the local edge computing service module 602 is configured to store the processed target streaming service data when the mobile terminal is in an unconnected state, and synchronize the processed target streaming service data with the cloud service terminal until the mobile terminal is in a connected state, so that the cloud service terminal updates the streaming service data stored in the cloud service terminal based on the processed target streaming service data.
The service data processing device in this embodiment acquires basic service data from the cloud server, displays the basic service data on the interface, acquires target streaming service data generated by operating the interface displaying the basic service data, performs edge calculation processing on the target streaming service data, acquires the processed target streaming service data, and displays the processed target streaming service data on the terminal, that is, data occupying a large amount of memory is still stored in the cloud, and the local edge calculation service only needs to process the streaming service data, thereby reducing the operation burden of the mobile terminal.
In one embodiment, the service processing device further comprises an interface display module; the cloud server stores basic service data and flow service data;
the local edge computing service module 602 is configured to obtain basic service data from a cloud server;
the interface display module is used for displaying basic service data on an interface, acquiring target flow service data generated by operating the interface displaying the basic service data, and transmitting the target flow service data to the local edge computing service through a data transmission protocol;
a local edge calculation service module 602, configured to perform edge calculation processing on the target streaming service data to obtain processed target streaming service data;
the local edge computing service module 602 is configured to store the processed target streaming service data when the mobile terminal is in an unconnected state, and synchronize the processed target streaming service data with the cloud service terminal until the mobile terminal is in a connected state, so that the cloud service terminal updates the streaming service data stored in the cloud service terminal based on the processed target streaming service data.
The service data processing device in this embodiment acquires basic service data from the cloud server, displays the basic service data on the interface, acquires target streaming service data generated by operating the interface displaying the basic service data, performs edge calculation processing on the target streaming service data, acquires the processed target streaming service data, and displays the processed target streaming service data on the terminal, that is, data occupying a large amount of memory is still stored in the cloud, and the local edge calculation service only needs to process the streaming service data, thereby reducing the operation burden of the mobile terminal.
In one embodiment, the mobile terminal comprises a POS terminal; the local edge computing services module 602 is configured to:
acquiring a user account and receiving service settlement data generated by interface operation;
performing edge calculation processing on the service settlement data to obtain processed service settlement data;
and when the POS terminal is in a networking state, synchronizing the user account and the corresponding processed service settlement data to the cloud service terminal, so that the cloud service terminal updates the stored user account data corresponding to the user account based on the user account and the corresponding processed service settlement data.
The service data processing device in the embodiment acquires a user account and service settlement data generated by interface operation at the POS terminal, performs edge calculation processing on the service settlement data to obtain processed service settlement data, and displays the processed service settlement data at the POS terminal, so that whether networking is performed or not, the processing can be performed quickly by local edge calculation service, the resource utilization rate is improved, and the user experience is improved; when the POS terminal is in a networking state, the user account and the corresponding processed service settlement data are synchronized to the cloud server, and the accuracy of the data can be guaranteed.
In one embodiment, the local edge computing service comprises a hypertext transfer protocol lightweight service; the hypertext transfer protocol light-weight service runs in a browser running environment; the business data is generated through a browser interface operation running in a browser running environment.
In the service data processing apparatus in this embodiment, because the mobile terminal belongs to a resource-limited device, that is, the mobile terminal cannot run a service with too much resource consumption, a hypertext transfer protocol lightweight service is used in this embodiment, and the hypertext transfer protocol lightweight service runs in a browser running environment, so that the entire framework is applicable to different operating systems of the mobile terminal, such as an android system, a windows system, and an IOS system, thereby implementing multi-terminal multiplexing and improving the universality of service data processing.
For specific limitations of the service data processing apparatus, reference may be made to the above limitations of the service data processing method, which is not described herein again. The modules in the business data processing device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a mobile terminal, and its internal structure diagram may be as shown in fig. 7. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a business data processing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is further provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, in which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
In one embodiment, a computer program product or computer program is provided that includes computer instructions stored in a computer-readable storage medium. The computer instructions are read by a processor of a computer device from a computer-readable storage medium, and the computer instructions are executed by the processor to cause the computer device to perform the steps in the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A service data processing method is applied to a local edge computing service included in a mobile terminal, and the method comprises the following steps:
acquiring service data generated by interface operation;
performing edge calculation processing on the service data to obtain processed service data, and displaying the processed service data on the mobile terminal;
and when the mobile terminal is in a networking state, synchronizing the processed service data to a cloud server.
2. The method according to claim 1, wherein the cloud server stores basic service data and streaming service data;
the acquiring of the service data generated by the interface operation comprises:
acquiring target flow business data generated by operating an interface displaying the basic business data; the basic service data is acquired from a cloud server;
the performing edge calculation processing on the service data to obtain processed service data, and displaying the processed service data on the mobile terminal includes:
performing edge calculation processing on the target flow service data to obtain processed target flow service data, and displaying the processed target flow service data on the mobile terminal;
when the mobile terminal is in a networking state, synchronizing the processed service data to a cloud server, including:
and when the mobile terminal is in an unconnected state, storing the processed target flow business data, and synchronizing the processed target flow business data to a cloud service end until the mobile terminal is in a connected state, so that the cloud service end updates the flow business data stored in the cloud service end based on the processed target flow business data.
3. The method of claim 1, wherein the mobile terminal comprises a POS terminal;
the acquiring of the service data generated by the interface operation includes:
acquiring a user account and service settlement data generated by interface operation at a POS terminal;
the performing edge calculation processing on the service data to obtain processed service data, and displaying the processed service data on the mobile terminal includes:
performing edge calculation processing on the service settlement data to obtain processed service settlement data, and displaying the processed service settlement data on a POS terminal;
when the mobile terminal is in a networking state, synchronizing the processed service data to a cloud server, including:
and when the POS terminal is in a networking state, synchronizing the user account and the corresponding processed service settlement data to the cloud server, so that the cloud server updates the stored service data corresponding to the user account based on the user account and the corresponding processed service settlement data.
4. The method of any of claims 1 to 3, wherein the local edge computing service comprises a HyperText transfer protocol lightweight service; the hypertext transfer protocol lightweight service runs in a browser running environment; the service data is generated through a browser interface operation running in the browser running environment.
5. A service data processing device is applied to a mobile terminal and comprises a local edge computing service module, wherein the local edge computing service module is used for:
acquiring service data generated by interface operation;
performing edge calculation processing on the service data to obtain processed service data, and displaying the processed service data on the mobile terminal;
and when the mobile terminal is in a networking state, synchronizing the processed service data to a cloud server.
6. The apparatus of claim 5, further comprising an interface display module; the cloud server stores basic service data and flow service data;
the local edge computing service module is used for acquiring basic service data from the cloud server;
the interface display module is used for displaying the basic service data on an interface, acquiring target flow service data generated by operating the interface displaying the basic service data, and transmitting the target flow service data to the local edge computing service through a data transmission protocol;
the local edge computing service module is used for carrying out edge computing processing on the target flow business data to obtain processed target flow business data;
the local edge computing service module is used for storing the processed target mobile service data when the mobile terminal is in an unconnected state, and synchronizing the processed target mobile service data to the cloud service end until the mobile terminal is in a connected state, so that the cloud service end updates the mobile service data stored in the cloud service end based on the processed target mobile service data.
7. The apparatus of claim 5, wherein the mobile terminal comprises a POS terminal; the local edge computing service module is to:
acquiring a user account and receiving service settlement data generated by interface operation;
performing edge calculation processing on the service settlement data to obtain processed service settlement data;
and when the POS terminal is in a networking state, synchronizing the user account and the corresponding processed service settlement data to the cloud server, so that the cloud server updates the stored user account data corresponding to the user account based on the user account and the corresponding processed service settlement data.
8. The apparatus of any of claims 5 to 7, wherein the local edge computing service comprises a hypertext transfer protocol lightweight service; the hypertext transfer protocol lightweight service runs in a browser running environment; the service data is generated through a browser interface operation running in the browser running environment.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 4.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.
CN202110284274.8A 2021-03-17 2021-03-17 Service data processing method and device, computer equipment and storage medium Active CN113194116B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110284274.8A CN113194116B (en) 2021-03-17 2021-03-17 Service data processing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110284274.8A CN113194116B (en) 2021-03-17 2021-03-17 Service data processing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113194116A true CN113194116A (en) 2021-07-30
CN113194116B CN113194116B (en) 2023-02-17

Family

ID=76973360

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110284274.8A Active CN113194116B (en) 2021-03-17 2021-03-17 Service data processing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113194116B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102591943A (en) * 2011-12-27 2012-07-18 厦门雅迅网络股份有限公司 Page data processing method for mobile terminal
CN104346514A (en) * 2013-08-09 2015-02-11 聚游互动(北京)科技发展有限公司 Method and system capable of supporting off-line running of online game application
CN109753501A (en) * 2018-12-27 2019-05-14 广州市玄武无线科技股份有限公司 A kind of data display method of off-line state, device, equipment and storage medium
CN111314462A (en) * 2020-02-14 2020-06-19 京东数字科技控股有限公司 Resource processing method, device and storage medium
CN111382130A (en) * 2018-12-20 2020-07-07 鸿合科技股份有限公司 Content submission method and device and electronic equipment
CN111966651A (en) * 2020-09-21 2020-11-20 北京百度网讯科技有限公司 Data synchronization method and device, electronic equipment and storage medium
US20210012340A1 (en) * 2019-07-09 2021-01-14 Bank Of America Corporation Trusted pair authentication with edge-computing devices

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102591943A (en) * 2011-12-27 2012-07-18 厦门雅迅网络股份有限公司 Page data processing method for mobile terminal
CN104346514A (en) * 2013-08-09 2015-02-11 聚游互动(北京)科技发展有限公司 Method and system capable of supporting off-line running of online game application
CN111382130A (en) * 2018-12-20 2020-07-07 鸿合科技股份有限公司 Content submission method and device and electronic equipment
CN109753501A (en) * 2018-12-27 2019-05-14 广州市玄武无线科技股份有限公司 A kind of data display method of off-line state, device, equipment and storage medium
US20210012340A1 (en) * 2019-07-09 2021-01-14 Bank Of America Corporation Trusted pair authentication with edge-computing devices
CN111314462A (en) * 2020-02-14 2020-06-19 京东数字科技控股有限公司 Resource processing method, device and storage medium
CN111966651A (en) * 2020-09-21 2020-11-20 北京百度网讯科技有限公司 Data synchronization method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113194116B (en) 2023-02-17

Similar Documents

Publication Publication Date Title
US11423205B2 (en) Font personalization
CN109542427B (en) System customization method and device, electronic equipment and storage medium
CN112948035A (en) Method and device for controlling micro front-end page, terminal equipment and storage medium
CN105718313A (en) Application operation method and device
CN110533464B (en) Advertisement monitoring method, device and system and computing equipment
CN112800370A (en) Business document processing method and device, computer equipment and storage medium
KR20160027419A (en) Method for Providing Additional Functions based on information
US9842326B2 (en) Information providing system and information providing method using an automatic transaction apparatus
CN111124564A (en) Method and device for displaying user interface
CN111913920A (en) Electronic business card generating method, device, computer system and computer readable medium
CN110458646A (en) Page display method, device, computer equipment and storage medium
TWI686725B (en) Method and device for displaying sensitive information
CN109582890A (en) Page loading method, device, computer equipment and storage medium
EP2990968A1 (en) Method for selecting area on web page and electronic device thereof
CN111223155A (en) Image data processing method, image data processing device, computer equipment and storage medium
CN110505271A (en) Acquisition methods, device, computer equipment and the storage medium of electronics license
CN113194116B (en) Service data processing method and device, computer equipment and storage medium
CN111158777B (en) Component calling method, device and computer readable storage medium
CN111046265B (en) Card data display method, device, equipment and storage medium
CN112150156A (en) Commodity object processing method, commodity object processing device, client and medium
CN112115738A (en) Image identification method and device applied to browser end
CN115391582A (en) Card processing method, electronic device and system
JP5479517B2 (en) Information processing apparatus, method and system
CN115562662A (en) Application page creating method and device, computer equipment and storage medium
CN114090938A (en) Page processing method and equipment

Legal Events

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