CN108897800B - Method, device and system for managing log information - Google Patents

Method, device and system for managing log information Download PDF

Info

Publication number
CN108897800B
CN108897800B CN201810609648.7A CN201810609648A CN108897800B CN 108897800 B CN108897800 B CN 108897800B CN 201810609648 A CN201810609648 A CN 201810609648A CN 108897800 B CN108897800 B CN 108897800B
Authority
CN
China
Prior art keywords
log
pos terminal
information
order
content
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810609648.7A
Other languages
Chinese (zh)
Other versions
CN108897800A (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.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN201810609648.7A priority Critical patent/CN108897800B/en
Publication of CN108897800A publication Critical patent/CN108897800A/en
Application granted granted Critical
Publication of CN108897800B publication Critical patent/CN108897800B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G1/00Cash registers
    • G07G1/12Cash registers electronically operated
    • G07G1/14Systems including one or more distant stations co-operating with a central processing unit

Abstract

The application provides a method, a device and a system for managing log information, wherein the method comprises the following steps: receiving log update data transmitted from a point-of-sale (POS) terminal; determining order identification and log updating content according to the log updating data; and updating the content of the log information corresponding to the order identification based on the log updating content to obtain updated log information. According to the method and the device, complete log information of the master POS terminal and the slave POS terminal can be collected for each order, the operation paths of the master POS terminal and the slave POS terminal which operate the order can be determined according to the log information, and a basis can be provided for solving the possibly occurring order abnormity problem in the follow-up process.

Description

Method, device and system for managing log information
Technical Field
The present application relates to the field of information processing technologies, and in particular, to a method, an apparatus, and a system for managing log information.
Background
In order processing in an existing POS system including a master POS (Point of Sales) terminal and a plurality of slave POS terminals, the master POS terminal and the slave POS terminals may process the same order information. In this case, if the order is abnormal, the server only acquires the log information of the master POS terminal, but does not acquire the log information of the slave POS terminal, so that the acquired log information is incomplete, and thus the operation path of the slave POS terminal cannot be determined according to the log information, which may affect the solution of the order abnormality problem.
Disclosure of Invention
In view of this, the present application provides a method, an apparatus, and a system for managing log information, which can collect complete log information for each order and provide a basis for subsequently solving the problem of abnormal orders.
Specifically, the method is realized through the following technical scheme:
according to a first aspect of the present application, a method for managing log information is provided, including:
receiving log update data transmitted from a point-of-sale (POS) terminal;
determining order identification and log updating content according to the log updating data;
and updating the content of the log information corresponding to the order identification based on the log updating content to obtain updated log information.
In one embodiment, the log update data includes a timestamp;
the updating the content of the log information corresponding to the order identifier based on the log updating content includes:
and adding the log updating content to the log information corresponding to the order identification according to the timestamp.
In an embodiment, the determining the log update content according to the log update data includes:
extracting identification information of the slave POS terminal and at least one operation service information from the log updating data;
and generating log updating content according to the corresponding relation between the identification information of the slave POS terminal and each operation service information.
In an embodiment, the operation service information includes an operation service identifier and operation service content;
generating log update content according to the corresponding relationship between the identification information of the slave POS terminal and each operation service information comprises the following steps:
and generating log updating content according to the identification information of the slave POS terminal, the corresponding relation between the operation service identification and the operation service content.
In an embodiment, the method further comprises:
responding to a Socket long connection establishment request sent by a server, and establishing Socket long connection with the server;
and sending the updated log information to the server based on the Socket long connection.
In an embodiment, the method further comprises:
receiving a log acquisition request sent by a server, wherein the log acquisition request comprises at least one of a target order identification, identification information of a target POS terminal and a target operation service identification;
the sending the updated log information to the server based on the Socket long connection includes:
if the log obtaining request contains a target order mark, responding to the log obtaining request, and sending log information corresponding to the target order mark to the server side based on the Socket long connection;
if the log obtaining request contains identification information of a target POS terminal, responding to the log obtaining request, and sending log information corresponding to the identification information of the target POS terminal to the server side based on the Socket long connection;
and if the log obtaining request contains a target operation service identifier, responding to the log obtaining request, and sending the log information corresponding to the target operation service identifier to the server based on the Socket long connection.
According to a second aspect of the present application, there is provided an apparatus for managing log information, applied to a POS terminal at a main point of sale, comprising:
the update data receiving module is used for receiving log update data sent from the POS terminal of the point of sale;
the identification content determining module is used for determining order identification and log updating content according to the log updating data;
and the log information updating module is used for updating the content of the log information corresponding to the order identification based on the log updating content to obtain updated log information.
In one embodiment, the identifying content determining module includes:
an operation service extraction unit for extracting the identification information of the slave POS terminal and at least one operation service information from the log update data;
and the updating content generating unit is used for generating log updating content according to the corresponding relation between the identification information of the slave POS terminal and each piece of operation business information.
According to a third aspect of the present application, there is provided a system for managing log information, comprising: a master point-of-sale (POS) terminal and at least one slave POS terminal;
wherein the master POS terminal is configured to perform any one of the above-described methods of managing log information.
In one embodiment, the system further comprises:
and the server is used for establishing Socket long connection with the main POS terminal and acquiring updated log information from the main POS terminal based on the Socket long connection.
According to a fourth aspect of the present application, a computer-readable storage medium is provided, wherein the storage medium stores a computer program for executing any one of the above methods for managing log information.
According to the technical scheme, the method, the device and the system for managing the log information, provided by the application, can be used for collecting the complete log information of the master POS terminal and the slave POS terminal for each order by receiving the log updating data sent by the POS terminal of the point of sale, determining the order identification and the log updating content according to the log updating data and then updating the content of the log information corresponding to the order identification based on the log updating content to obtain the updated log information, can be used for determining the operation path of the master POS terminal and the slave POS terminal which operate the order according to the log information, and can provide a basis for solving the possible order abnormity problem in the follow-up process.
Drawings
FIG. 1 is a flow chart illustrating a method of managing log information in accordance with an exemplary embodiment of the present application;
FIG. 2 is a flow chart illustrating how log update content is determined from the log update data according to an exemplary embodiment of the present application;
FIG. 3 is a flow chart illustrating a method of managing log information in accordance with yet another exemplary embodiment of the present application;
FIG. 4 is a flowchart illustrating how to deliver the updated log information to the server according to an exemplary embodiment of the present application;
fig. 5 is a block diagram illustrating an apparatus for managing log information according to an exemplary embodiment of the present application;
fig. 6 is a block diagram illustrating an apparatus for managing log information according to still another exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
FIG. 1 is a flow chart illustrating a method of managing log information in accordance with an exemplary embodiment of the present application; the embodiment may be used for a master POS terminal (e.g., a handheld cash register, a smart phone, a tablet, a desktop, a notebook, etc.) in a POS (Point of sale) system. As shown in fig. 1, the method comprises steps S101-S103:
s101: log update data transmitted from a point-of-sale POS terminal is received.
In an embodiment, the master POS terminal may receive a log update request sent from the POS terminal, where the log update request carries log update data.
In one embodiment, when a user performs an order update operation (e.g., adding a product to a shopping cart, settling an order, etc.) from a POS terminal, a log update request may be generated from log update data corresponding to the order update operation from the POS terminal. In one embodiment, each order update operation may correspond to a piece of log update data, and a log update request may be generated according to the log update data, and the log update request may be sent to the master POS terminal.
It should be noted that the manner of obtaining the log update data from the POS terminal may refer to the explanation in the prior art, for example, a preset module is used to perform log salvage, and the specific manner of log salvage is not particularly limited in this embodiment.
In an embodiment, the type of the order may be set by a developer according to actual needs, such as a bill, an order, a receipt, an invoice, and the like, which is not limited in this embodiment.
In one embodiment, the master POS terminal may be configured to aggregate, manage, update, or record log update data sent from the POS terminals in the POS system.
S102: and determining order identification and log updating content according to the log updating data.
In an embodiment, after the master POS terminal receives the log update request, the master POS terminal may parse the log update request to obtain the log update data.
In an embodiment, after the master POS terminal obtains the log update data, the order identifier and the log update content may be extracted from the log update data.
In an embodiment, the order identifier uniquely corresponds to the order information, such as an order number, and the like, which is not limited in this embodiment.
In an embodiment, the log update content may be set by a developer according to actual business needs, for example, the log update content may be set to add a certain commodity to a shopping cart (for example, a name, a quantity, an amount, and the like of the purchased commodity), and to settle an order result, or may be set to a number of order operations (i.e., an order version), and the like, which may be one or a combination of the above, and this is not limited in this embodiment.
S103: and updating the content of the log information corresponding to the order identification based on the log updating content to obtain updated log information.
In an embodiment, when each order is generated, a blank log information may be constructed for the order, where the log information is used to store log information related to each POS terminal that has subsequently operated the order (i.e., log information related to the order, such as specific operation information for the order), and then after log update data is subsequently obtained from the POS terminal, the content of the log information may be updated based on the obtained log update data, for example, the log update data is added to the log information.
In an embodiment, after the main POS terminal extracts the order identifier and the log update content, the content of the log information corresponding to the order identifier may be updated based on the log update content, so that updated log information may be obtained.
For example, when the user operates an order (for example, makes a purchase of a commodity or settles the order) from the POS terminal, the slave POS terminal generates a log update request based on the operation of purchasing the commodity and transmits the log update request to the master POS terminal.
After receiving the log update request, the main POS terminal may extract an order number and log update content based on the log update request, and may further update the order corresponding to the order number, for example, add the operation of purchasing the commodity to the log information corresponding to the current order.
In an embodiment, the log update data described in step S101 may further include a timestamp. On this basis, the updating the content of the log information corresponding to the order identifier in step S103 based on the log update content may include:
and adding the log updating content to the log information corresponding to the order identification according to the timestamp.
For example, after the master POS terminal receives the log update data including the corresponding time stamp sent by each slave POS terminal, the log update content of each slave POS terminal may be added to the log information corresponding to the order identifier according to each time stamp to obtain updated log information.
As can be seen from the above description, in this embodiment, by receiving log update data sent from a POS terminal, determining an order identifier and log update content according to the log update data, and then updating the content of log information corresponding to the order identifier based on the log update content to obtain updated log information, complete log information of a master POS terminal and a slave POS terminal can be collected for each order, an operation path of the master POS terminal and the slave POS terminal that have operated the order can be determined according to the log information, and a basis can be provided for subsequently solving a possible abnormal order problem.
In an embodiment, the log update data sent from the POS terminal may be received in the following two ways in the step S101:
the first method comprises the following steps: receiving log update data transmitted from the point-of-sale POS terminal based on the TCP long connection established in advance.
In one embodiment, the master POS terminal may establish a TCP long connection with the slave POS terminal in advance, for example, when the slave POS terminal registers with the master POS terminal for the first time, a TCP connection establishment request may be sent to the master POS terminal. Further, for the information security of the store, the master POS terminal may perform validity verification on the slave POS terminal, and after the verification is passed, establish a TCP long connection with the slave POS terminal in response to the TCP long connection establishment request.
And the second method comprises the following steps: log update data transmitted in a broadcast manner from a point-of-sale POS terminal is received.
In one embodiment, the master POS terminal may receive the log update data transmitted in a broadcast manner from the point-of-sale POS terminal, i.e., may omit the process of previously establishing a connection with the slave POS terminal. For example, after the POS terminal operates any order, a log update request may be generated based on log update data corresponding to the operation content, where the log update request carries the log update data. Further, the slave POS terminal may broadcast the request to all POS terminals in the local area network so that the master POS terminal receives the broadcasted log update data.
It is worth noting that the above two types of receiving/sending modes of log update data each have different advantages and determinations. Specifically, compared with a mode of broadcasting the log to all the devices, a mode of sending the log updating data based on the long connection of the TCP can improve the pertinence of data sending from the POS terminal and avoid irrelevant terminal devices from receiving the log updating data; compared with the mode of sending log updating data based on TCP long connection, the mode of broadcasting the log to all the devices can save the step of establishing connection with the main POS terminal and save the memories of the main POS terminal and the slave POS terminal (the TCP long connection is established and needs to occupy a certain memory). Therefore, when implementing the present solution, a person skilled in the art can select one of the two manners according to actual service requirements. For example, if the memory is saved, the log update data may be sent to the main POS terminal based on a broadcast mode, otherwise, the log update data may be sent to the main POS terminal based on a TCP long connection mode. FIG. 2 is a flow chart illustrating how log update content is determined from the log update data according to an exemplary embodiment of the present application; on the basis of the above embodiments, the present embodiment takes an example of how to determine the log update content according to the log update data. As shown in fig. 2, the determining of the log update content according to the log update data in step S102 may include the following steps S201 to S202:
s201: and extracting the identification information of the slave POS terminal and at least one operation service information from the log updating data.
In an embodiment, when a user performs an order update operation (for example, adding a product to a shopping cart, settling an order, etc.) through a slave POS terminal, the slave POS terminal may acquire the order update operation through a pre-embedded data acquisition module, generate corresponding log update data based on its own identification information (i.e., the identification information of the slave POS terminal), and further generate a log update request according to the log update data, and further, may send the log update request to a master POS terminal.
In one embodiment, after the master POS terminal acquires the log update data sent from the POS terminal, the identification information of the slave POS terminal and the one or more service operation information may be extracted from the log update data.
In an embodiment, the identification information of the slave POS terminal may include information uniquely corresponding to the slave POS terminal, such as an ID number, a serial number, and a device serial number of the slave POS terminal, and the specific type of the identification information is not limited in this embodiment.
In an embodiment, the service operation information may include a name of an operation service for each order information. For example, the names of the above operation services may include: adding goods to a shopping cart, purchasing goods, settling an order, etc.
It should be noted that the above service operation information is only used for exemplary illustration, and in an actual embodiment, a developer may perform setting according to actual service needs, which is not limited in this embodiment.
S202: and generating log updating content according to the corresponding relation between the identification information of the slave POS terminal and each operation service information.
In an embodiment, after the master POS terminal extracts the identification information of the slave POS terminal and at least one operation service information from the log update data, the log update content may be generated according to a correspondence between the extracted identification information of the slave POS terminal and each of the operation service information.
In an embodiment, the operation service information may include an operation service identifier and an operation service content. On this basis, the generating of the log update content according to the corresponding relationship between the identification information of the slave POS terminal and each piece of the operation service information in step S202 may include:
and generating log updating content according to the identification information of the slave POS terminal, the corresponding relation between the operation service identification and the operation service content.
For example, the master POS terminal may determine correspondence between the extracted identification information of the slave POS terminal and each piece of the operation service information, and further determine each determined correspondence as a piece of log update content.
In an embodiment, the log update content may be as shown in the following table one:
watch 1
Serial number Identification information Operating service information
1 From POS terminal 1 An order A: and (3) purchasing commodities: commodity 001
2 From POS terminal 1 An order A: and (3) purchasing commodities: commercial product 002
…… …… ……
As shown in the first table, each action in the table is a piece of identification information and operation service information from the POS terminal, including a corresponding relationship between an operation service identification (e.g. purchasing goods) and an operation service content (e.g. goods 001), that is, a piece of log update content. The log information corresponding to the order information can be updated according to the log updating content, so that the master POS terminal can integrate the log information corresponding to the unified order identifications processed by the plurality of slave POS terminals based on the operation service identification or the operation service content, the flexibility of integrating the log information is improved, and the follow-up order problem investigation and solution are facilitated.
It should be noted that the content of the operation service information is only used for an exemplary illustration, and in actual implementation, a developer may add or delete related content according to actual service needs, for example, service operation time, an operator identifier, and the like may also be added, which is not particularly limited in this embodiment.
As can be seen from the above description, in this embodiment, by extracting the identification information of the slave POS terminal and at least one operation service information from the log update data, and generating the log update content according to the correspondence between the identification information of the slave POS terminal and each operation service information, it is possible to accurately generate the log update content in time, and further update the content of the log information corresponding to the order identification based on the log update content in the following step.
FIG. 3 is a flow chart illustrating a method of managing log information in accordance with yet another exemplary embodiment of the present application; the embodiment may be used for a master POS terminal (e.g., a handheld cash register, a smart phone, a tablet, a desktop, a notebook, etc.) in a POS (Point of sale) system. As shown in fig. 3, the method includes steps S301 to S304:
s301: log update data transmitted from a point-of-sale POS terminal is received.
S302: and determining order identification and log updating content according to the log updating data.
S303: and updating the content of the log information corresponding to the order identification based on the log updating content to obtain updated log information.
For the explanation and explanation of steps S301 to S304, reference may be made to the above embodiments, which are not described herein again.
S304: the updated log information is transmitted to a memory for storage; and/or transmitting the updated log information to the server.
In one embodiment, after obtaining the updated log information, the updated log information may be transmitted to a memory for storage for subsequent review or export.
For example, when an order is abnormal, in order to know each POS terminal (including one or more of the master and slave POS terminals) that has operated the order, the previously saved log information may be derived from the memory for analysis.
In an embodiment, the memory may be a memory of a cloud server or a local memory.
In another embodiment, after the updated log information is obtained, the updated log information can be transmitted to the server in real time, so as to save the local storage space.
As can be seen from the above description, the present embodiment saves the updated log information by transferring it to the memory; and/or the updated log information is transmitted to the server, so that electronic storage of the log update information can be realized, and account checking and problem troubleshooting can be performed according to the stored log update information subsequently.
FIG. 4 is a flowchart illustrating how to deliver the updated log information to the server according to an exemplary embodiment of the present application; on the basis of the foregoing embodiments, the present embodiment takes an example of how to transmit the updated log information to the server. As shown in fig. 4, the transmitting the updated log information to the server in step S304 may include the following steps S401 to S402:
s401: and responding to a Socket long connection establishment request sent by the server, and establishing Socket long connection with the server.
In an embodiment, when the host POS terminal registers with the server, a Socket long connection establishment request sent by the server may be received.
Further, the master POS terminal may establish a Socket long connection with the server in response to a Socket long connection establishment request sent by the server.
S402: and sending the updated log information to the server based on the Socket long connection.
In an embodiment, after a Socket long connection is established between a master POS terminal and the server, updated log information may be sent to the server based on the Socket long connection.
In an embodiment, the time for sending the updated log information to the server by the master POS terminal may be set by a developer according to actual service needs, for example, the time may be set to be sent at regular time, or may be set to be sent in real time, or may be sent in response to a log information acquisition request sent by the server.
In an embodiment, before step S402, the method may further include:
s401': and receiving a log acquisition request sent by a server. That is, the main POS terminal may actively send the updated log information to the server (that is, actively send the updated log information to the server in a case where the log acquisition request of the server is not received), or may send the updated log information to the server in response to the log acquisition request sent by the server.
In an embodiment, the log obtaining request may include at least one of a target order identifier, identification information of a target POS terminal, and a target operation service identifier.
On this basis, the sending the updated log information to the server based on the Socket long connection in step S402 may include:
if the log obtaining request contains a target order mark, responding to the log obtaining request, and sending log information corresponding to the target order mark to the server side based on the Socket long connection;
if the log obtaining request contains identification information of a target POS terminal, responding to the log obtaining request, and sending log information corresponding to the identification information of the target POS terminal to the server side based on the Socket long connection;
and if the log obtaining request contains a target operation service identifier, responding to the log obtaining request, and sending the log information corresponding to the target operation service identifier to the server based on the Socket long connection.
For example, the main POS terminal may send all locally stored log information to the server after receiving a log obtaining request sent by the server, or may send part of the log information (i.e., log information corresponding to a target order identifier) to the server based on information (e.g., the target order identifier) included in the log obtaining request.
As can be seen from the above description, in this embodiment, by responding to the Socket long connection establishment request sent by the server, establishing the Socket long connection with the server, and sending the updated log information to the server based on the Socket long connection, accurate and reliable transmission of the updated log information to the server can be achieved, electronic storage of the log update information can be achieved, and reconciliation and problem troubleshooting of the server based on the obtained log update information can be facilitated.
Fig. 5 is a block diagram illustrating an apparatus for managing log information according to an exemplary embodiment of the present application; as shown in fig. 5, the apparatus includes: an update data receiving module 110, an identification content determining module 120, and a log information updating module 130, wherein:
an update data receiving module 110 for receiving log update data transmitted from a point-of-sale POS terminal;
an identification content determining module 120, configured to determine an order identification and a log update content according to the log update data;
and a log information updating module 130, configured to update the content of the log information corresponding to the order identifier based on the log update content, so as to obtain updated log information.
As can be seen from the above description, in this embodiment, by receiving log update data sent from a POS terminal, determining an order identifier and log update content according to the log update data, and then updating the content of log information corresponding to the order identifier based on the log update content to obtain updated log information, complete log information of a master POS terminal and a slave POS terminal can be collected for each order, an operation path of the master POS terminal and the slave POS terminal that have operated the order can be determined according to the log information, and a basis can be provided for subsequently solving a possible abnormal order problem.
Fig. 6 is a block diagram illustrating an apparatus for managing log information according to still another exemplary embodiment of the present application; the functions of the update data receiving module 210, the identification content determining module 220, and the log information updating module 240 are the same as the functions of the update data receiving module 110, the identification content determining module 120, and the log information updating module 130 in the foregoing embodiment shown in fig. 5, and are not described herein again. As illustrated in fig. 6, the update data receiving module 210 may further include:
a first receiving unit 211 for receiving log update data transmitted from the point-of-sale POS terminal based on a TCP long connection established in advance; or the like, or, alternatively,
a second receiving unit 212 for receiving the log update data transmitted in a broadcast manner from the point-of-sale POS terminal.
In an embodiment, the identifying the content determination module 220 may include:
an operation service extraction unit 221 for extracting the identification information of the slave POS terminal and at least one operation service information from the log update data;
an update content generating unit 222, configured to generate log update content according to a correspondence between the identification information of the slave POS terminal and each piece of operation service information.
In an embodiment, the apparatus may further include: a log information delivery module 240;
the log information delivery module 240 may include:
a first output unit 241, configured to transmit the updated log information to a memory for saving; and/or the presence of a gas in the gas,
the second output unit 242 transmits the updated log information to the server.
In an embodiment, the second output unit 242 may further be configured to:
responding to a Socket long connection establishment request sent by a server, and establishing Socket long connection with the server;
and sending the updated log information to the server based on the Socket long connection.
In another aspect, the present application further provides a system for managing log information, including: a master point-of-sale (POS) terminal and at least one slave POS terminal;
wherein, the master POS terminal is configured to execute the method for managing log information provided in the embodiments shown in fig. 1 to 4.
In an embodiment, the system may further include:
and the server is used for establishing Socket long connection with the main POS terminal and acquiring updated log information from the main POS terminal based on the Socket long connection.
On the other hand, the present application also provides a computer-readable storage medium, which stores a computer program for executing the method for managing log information provided by the embodiments shown in fig. 1 to 4.
It should be noted that, all the above-mentioned optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described in detail herein.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (9)

1. A method of managing log information, comprising:
the method comprises the steps that a main point-of-sale (POS) terminal receives log updating data sent by a slave POS terminal, wherein the log updating data are generated by the slave POS terminal according to obtained order updating operation;
according to the log updating data, extracting order identification, identification information of the slave POS terminal and at least one type of operation service information, and generating log updating content according to the corresponding relation between the extracted identification information of the slave POS terminal and the operation service information, wherein the operation service information comprises the name of an operation service corresponding to the order updating operation;
and updating the content of the log information corresponding to the order identification based on the log updating content so as to integrate a plurality of log information corresponding to the same order identification processed from the POS terminal of the point of sale to obtain updated log information.
2. The method of claim 1, wherein the log update data includes a timestamp;
the updating the content of the log information corresponding to the order identifier based on the log updating content includes:
and adding the log updating content to the log information corresponding to the order identification according to the timestamp.
3. The method of claim 1, wherein the operation service information comprises an operation service identifier and operation service content;
generating log update content according to the corresponding relationship between the identification information of the slave point-of-sale (POS) terminal and each operation service information, comprising the following steps:
and generating log updating content according to the corresponding relation among the identification information of the slave POS terminal, the operation service identification and the operation service content.
4. The method of claim 1, further comprising:
responding to a Socket long connection establishment request sent by a server, and establishing Socket long connection with the server;
and sending the updated log information to the server based on the Socket long connection.
5. The method of claim 4, further comprising:
receiving a log acquisition request sent by a server, wherein the log acquisition request comprises at least one of a target order identification, identification information of a target POS terminal and a target operation service identification;
the sending the updated log information to the server based on the Socket long connection includes:
if the log obtaining request contains a target order mark, responding to the log obtaining request, and sending log information corresponding to the target order mark to the server side based on the Socket long connection;
if the log obtaining request contains identification information of a target POS terminal, responding to the log obtaining request, and sending log information corresponding to the identification information of the target POS terminal to the server side based on the Socket long connection;
and if the log obtaining request contains a target operation service identifier, responding to the log obtaining request, and sending the log information corresponding to the target operation service identifier to the server based on the Socket long connection.
6. An apparatus for managing log information, applied to a POS terminal at a master point of sale, comprising:
the system comprises an update data receiving module, a data processing module and a data processing module, wherein the update data receiving module is used for receiving log update data sent by a POS terminal of a slave point of sale, and the log update data is generated by the POS terminal of the slave point of sale according to the obtained order update operation;
an identified content determination module comprising:
an operation service extraction unit, configured to extract an order identifier, the identifier information of the slave POS terminal, and at least one operation service information according to the log update data;
an update content generating unit, configured to generate log update content according to the correspondence between the extracted identification information of the slave POS terminal and the operation service information, where the operation service information includes a name of an operation service corresponding to the order update operation;
and the log information updating module is used for updating the content of the log information corresponding to the order identifier based on the log updating content so as to integrate a plurality of log information corresponding to the same order identifier processed by the POS terminal of the point of sale and obtain updated log information.
7. A system for managing log information, comprising: a master point-of-sale POS terminal and at least one slave point-of-sale POS terminal;
wherein the master point-of-sale POS terminal is configured to perform the method of managing log information of any of claims 1-5.
8. The system of claim 7, further comprising:
and the server is used for establishing Socket long connection with the POS terminal of the master selling point and acquiring updated log information from the POS terminal of the master selling point based on the Socket long connection.
9. A computer-readable storage medium, characterized in that the storage medium stores a computer program for executing the method of managing log information of any one of claims 1 to 5.
CN201810609648.7A 2018-06-13 2018-06-13 Method, device and system for managing log information Active CN108897800B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810609648.7A CN108897800B (en) 2018-06-13 2018-06-13 Method, device and system for managing log information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810609648.7A CN108897800B (en) 2018-06-13 2018-06-13 Method, device and system for managing log information

Publications (2)

Publication Number Publication Date
CN108897800A CN108897800A (en) 2018-11-27
CN108897800B true CN108897800B (en) 2020-12-25

Family

ID=64344890

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810609648.7A Active CN108897800B (en) 2018-06-13 2018-06-13 Method, device and system for managing log information

Country Status (1)

Country Link
CN (1) CN108897800B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109816897A (en) * 2019-02-27 2019-05-28 北京三快在线科技有限公司 A kind of method, apparatus, equipment and storage medium accessing data
CN112887351B (en) * 2019-11-29 2023-01-03 阿里巴巴(深圳)技术有限公司 Log information collection system, method and device and electronic equipment
CN112202873B (en) * 2020-09-28 2022-05-10 浪潮通用软件有限公司 Data issuing method and device, computer and computer readable medium
CN112632030B (en) * 2020-12-04 2023-04-14 贝壳技术有限公司 Data abnormity positioning method and device
CN114785871A (en) * 2022-04-20 2022-07-22 中国银行股份有限公司 Log query method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1858814A (en) * 2005-04-29 2006-11-08 邓斌涛 Quick paying method and system
CN102867377A (en) * 2012-09-20 2013-01-09 中国农业银行股份有限公司 Method and system for realizing services on point-of-sale (POS) terminal machine and POS terminal machine
CN103312728A (en) * 2012-03-06 2013-09-18 腾讯科技(深圳)有限公司 Method, system and device for data synchronization among storage systems
CN103593926A (en) * 2012-08-16 2014-02-19 国际商业机器公司 Method and system for intelligent point of sale system
CN106301884A (en) * 2015-06-26 2017-01-04 精工爱普生株式会社 control device, network system and server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1858814A (en) * 2005-04-29 2006-11-08 邓斌涛 Quick paying method and system
CN103312728A (en) * 2012-03-06 2013-09-18 腾讯科技(深圳)有限公司 Method, system and device for data synchronization among storage systems
CN103593926A (en) * 2012-08-16 2014-02-19 国际商业机器公司 Method and system for intelligent point of sale system
CN102867377A (en) * 2012-09-20 2013-01-09 中国农业银行股份有限公司 Method and system for realizing services on point-of-sale (POS) terminal machine and POS terminal machine
CN106301884A (en) * 2015-06-26 2017-01-04 精工爱普生株式会社 control device, network system and server

Also Published As

Publication number Publication date
CN108897800A (en) 2018-11-27

Similar Documents

Publication Publication Date Title
CN108897800B (en) Method, device and system for managing log information
US20160350709A1 (en) System and method for inventory management
CN110148014B (en) Information processing method, information processing device, blockchain node equipment and storage medium
CN105763581A (en) Method for pushing exhibition information, equipment and system
US20150242879A1 (en) Method for providing digitalized cumulative coupon service and system for same
CN103856564A (en) Method for reminding user of commodities to be purchased and shopping reminding server
CN110751480A (en) Information query method, device, equipment and computer readable storage medium
CN105357269A (en) Data processing method and device
JP2013246608A (en) Point application system in electronic settlement
US20150120424A1 (en) Mobile point saving system and method
CN111476638A (en) System for processing orders
CN110599170B (en) Transaction information processing method and system based on block chain and storage medium
US10007924B2 (en) Method for providing stamp service based on beacon signal
US20230410216A1 (en) Method and system for handling and storing purchase transactions
US20210073764A1 (en) Data management device, data management system, and data management method
KR20130089007A (en) System and method for managing store using face recognition information
US10755534B2 (en) Monitoring method and system for offline payment machine
CN106326270A (en) Data interaction processing method, device and system
JP2018200591A (en) Application automatic launching system
JP6704614B2 (en) Customer purchasing trend detection system
US20150348100A1 (en) Search engine server that searches data based on criteria included in an electronic record received from a computing device
KR20130033501A (en) System and method for providing mobile membership service
JP2009301211A (en) Sales promotion cost dynamic management system, token management server, mobile terminal, and sales promotion cost dynamic management method
JP2015069327A (en) Investigation system, investigation method, server, user terminal, program, and recording medium
JP6899647B2 (en) Data provision system, data provision method, and data provision program

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