CN112925487A - Printing method and device of target content, storage medium and electronic device - Google Patents

Printing method and device of target content, storage medium and electronic device Download PDF

Info

Publication number
CN112925487A
CN112925487A CN202110161321.XA CN202110161321A CN112925487A CN 112925487 A CN112925487 A CN 112925487A CN 202110161321 A CN202110161321 A CN 202110161321A CN 112925487 A CN112925487 A CN 112925487A
Authority
CN
China
Prior art keywords
printed
point
target content
sale
printing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110161321.XA
Other languages
Chinese (zh)
Inventor
门赛
张学永
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Hujin Xinrong Technology Co ltd
Original Assignee
Beijing Hujin Xinrong 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 Hujin Xinrong Technology Co ltd filed Critical Beijing Hujin Xinrong Technology Co ltd
Priority to CN202110161321.XA priority Critical patent/CN112925487A/en
Publication of CN112925487A publication Critical patent/CN112925487A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1278Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
    • G06F3/1285Remote printer device, e.g. being remote from client or server
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1222Increasing security of the print job
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G1/00Cash registers
    • G07G1/0018Constructional details, e.g. of drawer, printing means, input means

Abstract

The invention discloses a printing method and a device of target content, a storage medium and an electronic device, wherein the method comprises the following steps: receiving target content uploaded by a target object, wherein the target content is used for indicating data to be printed and identification information of equipment to be printed, and the data to be printed comprises at least one of the following: character information edited by the target object and image information edited by the target object; and under the condition that the target content passes the verification, sending the data to be printed in the target content to the point-of-sale client corresponding to the identification information to indicate the point-of-sale client to print the data to be printed, namely verifying the target content uploaded by the target object, sending the target content to the corresponding point-of-sale client, and printing the target content through the point-of-sale equipment, so that the problems that the printing function of the point-of-sale equipment corresponding to the point-of-sale client cannot be fully utilized in the related technology and the like are solved.

Description

Printing method and device of target content, storage medium and electronic device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for printing target content, a storage medium, and an electronic apparatus.
Background
The printing function of a POS (point of sales terminal, POS for short) in the market at present is mainly used when the POS performs a transaction, and is bound with order information, the use scene is limited, and the printed style and content cannot be customized. In addition, because the POS machine itself has a simple printing device, and the printing device is idle when no transaction is performed, but the idle time of the POS machine cannot be fully utilized in the prior art, and a professional printing device needs to be purchased for printing, which undoubtedly increases the operating cost of the merchant.
Aiming at the problems that the printing function of the point-of-sale equipment corresponding to the point-of-sale client cannot be fully utilized in the related technology, and the like, an effective solution is not provided.
Disclosure of Invention
The embodiment of the invention provides a printing method and device of target content, a storage medium and an electronic device, which are used for at least solving the problems that in the related technology, the printing function of a point-of-sale device corresponding to a point-of-sale client cannot be fully utilized in the related technology and the like.
According to an aspect of an embodiment of the present invention, there is provided a method of printing target content, including: receiving target content uploaded by a target object, wherein the target content is used for indicating data to be printed and identification information of equipment to be printed, and the data to be printed comprises at least one of the following: character information edited by the target object and image information edited by the target object; and under the condition that the target content passes the verification, sending the data to be printed in the target content to a point-of-sale client corresponding to the identification information so as to instruct the point-of-sale client to print the data to be printed.
In an exemplary embodiment, in a case that the target content is verified, after sending the data to be printed in the target content to the point-of-sale client corresponding to the identification information to instruct the point-of-sale client to print the data to be printed, the method further includes: under the condition that the data to be printed is analyzed, obtaining a printing result of the point-of-sale client on the analyzed data to be printed; and determining whether the target content is successfully printed according to the printing result.
In one exemplary embodiment, determining whether the target content is successfully printed according to the printing result includes: when the printing result indicates that the target content is successfully printed, receiving operation information fed back by the point-of-sale client that the target content is successfully printed; when the printing result indicates that the target content fails to be printed, a point-of-sale client is instructed to send a failure prompt to the target object, wherein the printing failure contains information of at least one of the following: the point-of-sale equipment corresponding to the point-of-sale client lacks paper, and the point-of-sale equipment corresponding to the point-of-sale client fails.
In an exemplary embodiment, after the printing result indicates that the target content fails to be printed, and the point-of-sale client is instructed to send a failure prompt to the target object, the method further includes: determining a failure code of printing failure, wherein the failure code is used for indicating a specific reason of printing failure; searching a corresponding solution from a preset failure problem processing list according to the failure code; pushing the solution to a point of sale client.
In an exemplary embodiment, in a case that the target content is verified, sending data to be printed in the target content to a point-of-sale client corresponding to the identification information to instruct the point-of-sale client to print the data to be printed includes: acquiring an encryption and decryption rule of the point-of-sale client; verifying the target content uploaded by the target object according to the encryption and decryption rules to obtain a verification result of the target object; and under the condition that the verification result indicates that the target content passes the verification, sending the data to be printed in the target content to a point-of-sale client corresponding to the identification information so as to indicate the point-of-sale client to print the data to be printed.
In one exemplary embodiment, order information of a merchant side is obtained, wherein the order information is used for indicating an order to be printed, which does not contain target content; instructing a point-of-sale device corresponding to the point-of-sale client to print the order information; and printing the target content through the point-of-sale device in the time interval under the condition that the printing process of the point-of-sale device for printing the order information exists in the time interval and the target content is allowed to be printed in the time interval.
According to another aspect of the embodiments of the present invention, there is also provided a printing apparatus of target content, including: the receiving module is used for receiving target content uploaded by a target object, wherein the target content is used for indicating data to be printed and identification information of equipment to be printed, and the data to be printed comprises at least one of the following data: character information edited by the target object and image information edited by the target object; and the indicating module is used for sending the data to be printed in the target content to the point-of-sale client corresponding to the identification information under the condition that the target content passes the verification so as to indicate the point-of-sale client to print the data to be printed.
In an exemplary embodiment, the apparatus further includes: the acquisition module is used for acquiring the printing result of the point-of-sale client on the analyzed data to be printed under the condition that the data to be printed is analyzed; and determining whether the target content is successfully printed according to the printing result. In an exemplary embodiment, the obtaining module is further configured to receive, when the printing result indicates that the target content is successfully printed, operation information that the target content has been successfully printed and is fed back by the point-of-sale client; when the printing result indicates that the target content fails to be printed, a point-of-sale client is instructed to send a failure prompt to the target object, wherein the printing failure contains information of at least one of the following: the point-of-sale equipment corresponding to the point-of-sale client lacks paper, and the point-of-sale equipment corresponding to the point-of-sale client fails.
In an exemplary embodiment, the above solution module is further configured to determine a failure code of the printing failure, where the failure code is used to indicate a specific reason for the printing failure; searching a corresponding solution from a preset failure problem processing list according to the failure code; pushing the solution to a point of sale client.
In an exemplary embodiment, the indication module is further configured to obtain an encryption and decryption rule of the point-of-sale client; verifying the target content uploaded by the target object according to the encryption and decryption rules to obtain a verification result of the target object; and under the condition that the verification result indicates that the target content passes the verification, sending the data to be printed in the target content to a point-of-sale client corresponding to the identification information so as to indicate the point-of-sale client to print the data to be printed.
In an exemplary embodiment, the apparatus further includes: the order module is used for acquiring order information of a merchant terminal, wherein the order information is used for indicating an order to be printed, which does not contain target content; instructing a point-of-sale device corresponding to the point-of-sale client to print the order information; and printing the target content through the point-of-sale device in the time interval under the condition that the printing process of the point-of-sale device for printing the order information exists in the time interval and the target content is allowed to be printed in the time interval.
According to still another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to execute the method of printing the target content when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for printing the target content through the computer program.
In an embodiment of the present invention, target content uploaded by a target object is received, where the target content is used to indicate data to be printed and identification information of a device to be printed, and the data to be printed includes at least one of: character information edited by the target object and image information edited by the target object; under the condition that the target content passes the verification, the data to be printed in the target content is sent to the point-of-sale client corresponding to the identification information to indicate the point-of-sale client to print the data to be printed, namely, the target content uploaded by the target object is verified, the target content is sent to the corresponding point-of-sale client, and the target content is printed through the point-of-sale equipment.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a computer terminal of a printing method of target content according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of printing target content according to an embodiment of the present invention;
FIG. 3 is a flow chart of a method for implementing POS-based extended print services in accordance with an alternative embodiment of the present invention;
FIG. 4 is an identification schematic of a POS supporting extended print services in accordance with an alternative embodiment of the present invention;
fig. 5 is a block diagram of the structure of a printing apparatus of target content according to an embodiment of the present invention.
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method provided by the embodiment of the application can be executed in a mobile terminal, a computer terminal or a similar operation device. Taking the example of running on a computer terminal, fig. 1 is a hardware configuration block diagram of a computer terminal of a printing method of target content according to an embodiment of the present invention. As shown in fig. 1, the computer terminal may include one or more (only one shown in fig. 1) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and in an exemplary embodiment, may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the computer terminal. For example, the computer terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration with equivalent functionality to that shown in FIG. 1 or with more functionality than that shown in FIG. 1.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the printing method of the target content in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to a computer terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In the present embodiment, a method for printing target content is provided, and fig. 2 is a flowchart of a method for printing target content according to an embodiment of the present invention, where the flowchart includes the following steps:
step S202, receiving target content uploaded by a target object, wherein the target content is used for indicating data to be printed and identification information of equipment to be printed, and the data to be printed comprises at least one of the following: character information edited by the target object and image information edited by the target object;
step S204, under the condition that the target content passes the verification, sending the data to be printed in the target content to the point-of-sale client corresponding to the identification information so as to instruct the point-of-sale client to print the data to be printed.
Through the steps, target content uploaded by the target object is received, wherein the target content is used for indicating data to be printed and identification information of equipment to be printed, and the data to be printed comprises at least one of the following data: character information edited by the target object and image information edited by the target object; under the condition that the target content passes the verification, the data to be printed in the target content is sent to the point-of-sale client corresponding to the identification information to indicate the point-of-sale client to print the data to be printed, namely, the target content uploaded by the target object is verified, the target content is sent to the corresponding point-of-sale client, and the target content is printed through the point-of-sale equipment.
In an exemplary embodiment, in order to ensure the printing result of the target content, after step S204, the printing result of the pos client on the parsed data to be printed may also be acquired in a case where the data to be printed is parsed; and determining whether the target content is successfully printed according to the printing result.
It can be understood that it cannot be determined whether the target content is printed by the point-of-sale device corresponding to the point-of-sale client only by sending the target content to the point-of-sale client, and therefore, in order to ensure smooth operation of the whole printing process, after the point-of-sale client analyzes the target content and instructs the point-of-sale device to print according to the analyzed content, the printing result of the target content is uploaded to the point-of-sale back-end server, and the point-of-sale back-end server can determine the printing condition of the target content according to the printing result.
In one exemplary embodiment, determining whether the target content is successfully printed according to the printing result includes: when the printing result indicates that the target content is successfully printed, receiving operation information fed back by the point-of-sale client that the target content is successfully printed; when the printing result indicates that the target content fails to be printed, a point-of-sale client is instructed to send a failure prompt to the target object, wherein the printing failure contains information of at least one of the following: the point-of-sale equipment corresponding to the point-of-sale client lacks paper, and the point-of-sale equipment corresponding to the point-of-sale client fails.
Optionally, since the printing result may have multiple possibilities, in order to enable the pos backend server to collect corresponding data information according to the printing result, after the target content is successfully printed, receive operation information that is fed back by the pos client and is successfully printed, and perform data storage, when the target content with the same content appears, the printing process may be guided according to data corresponding to the historical operation information in the pos backend server. When printing the target content fails, the point-of-sale back-end server instructs the point-of-sale client to send a failure prompt to the target object.
In an exemplary embodiment, after the printing result indicates that the target content fails to be printed, and the point-of-sale client is instructed to send a failure prompt to the target object, the method further includes: determining a failure code of printing failure, wherein the failure code is used for indicating a specific reason of printing failure; searching a corresponding solution from a preset failure problem processing list according to the failure code; pushing the solution to a point of sale client.
That is to say, in order to improve the efficiency of processing the printing failure of the target object on the point-of-sale device corresponding to the point-of-sale client, the point-of-sale back-end server determines the failure code corresponding to the failure reason according to the failure reason corresponding to the printing result of the printing failure, further searches a solution corresponding to the failure code from a preset failure problem processing list, and pushes the searched final solution to the point-of-sale client, so as to provide a processing countermeasure of the printing failure for the target object.
In an exemplary embodiment, in a case that the target content is verified, sending data to be printed in the target content to a point-of-sale client corresponding to the identification information to instruct the point-of-sale client to print the data to be printed includes: acquiring an encryption and decryption rule of the point-of-sale client; verifying the target content uploaded by the target object according to the encryption and decryption rules to obtain a verification result of the target object; and under the condition that the verification result indicates that the target content passes the verification, sending the data to be printed in the target content to a point-of-sale client corresponding to the identification information so as to indicate the point-of-sale client to print the data to be printed.
The target content uploaded by the target object is verified through the encryption and decryption rules of the point-of-sale client, and because the target content can be encrypted and decrypted relatively through the encryption and decryption rules, the printing of the target content is executed under the condition that the target content is verified through the corresponding encryption and decryption rules, so that the safety problem of the point-of-sale client in expanding the printing service is avoided, and the information safety of a user is guaranteed.
In one exemplary embodiment, order information of a merchant side is obtained, wherein the order information is used for indicating an order to be printed, which does not contain target content; instructing a point-of-sale device corresponding to the point-of-sale client to print the order information; and printing the target content through the point-of-sale device in the time interval under the condition that the printing process of the point-of-sale device for printing the order information exists in the time interval and the target content is allowed to be printed in the time interval.
It can be understood that, in order to enable the printing of the target content not to affect the printing of the order normally made by the point-of-sale device on the merchant terminal, the point-of-sale back-end server instructs the point-of-sale device to print the target content if it is determined that there is a time interval when the point-of-sale device prints the order information and the target content is allowed to be printed within the time interval.
In order to better understand the technical solutions of the embodiments and the alternative embodiments of the present invention, the following explains the flow of the printing method of the target content with reference to the examples, but is not limited to the technical solutions of the embodiments of the present invention.
The optional embodiment of the invention provides a method for realizing extended printing service based on a POS machine, which only needs to provide two data through the extended printing service: the text or picture information in the custom format and the identification number of the POS machine (which is equivalent to the identification information in the embodiment of the invention) for specifying printing. After basic security verification is carried out by the back-end service, information to be printed is pushed to a corresponding POS machine client (equivalent to a point-of-sale client in the embodiment of the invention), and after the POS machine client judges that the information can be printed, the POS machine client uses printing equipment carried by the POS machine to print by calling a printing interface of the POS machine, so that the printing function of a user-defined format and content is realized.
As shown in fig. 3, the method mainly comprises the following steps:
step S302, the merchant requests a printing interface of the POS machine rear-end service, and provides the text or picture information in the custom format and the POS machine equipment identification number designated for printing.
Step S304, after the POS machine back-end service receives the request, basic security verification is firstly carried out, namely encryption and decryption verification is carried out in the transaction process of the POS machine. And after the verification is correct, pushing the content to be printed to the POS machine client to be printed.
Step S306, the POS machine client analyzes the printed content, and calls a printing interface of the POS equipment to print after judging that the content can be printed;
step S308, printing by the printing equipment of the POS machine, and returning a corresponding printing result to the POS machine client through the printing interface, wherein the printing result comprises successful printing, paper shortage of the printer, printer failure and the like;
step S310, the POS machine client returns the printing result to the POS machine back-end service;
and step S312, the POS machine back-end service returns the result to the merchant terminal, and the printing function is ended.
It should be noted that the use of the extended print service described above has the following advantages:
convenience is realized: a merchant can complete a printing function only by specifying the printing content and the printing equipment number without operating a POS machine; besides, a corresponding identifier is also set and marked on the POS machine body, as long as the identifier is present, it is indicated that the POS machine supports the extended printing service, and the identifier for the POS machine to support the extended printing service is shown in fig. 4.
Economy: the POS machine is provided with a simple printing device, and the printing device is idle under the condition of not carrying out transaction, so that after the function is used, the cost for purchasing a professional printing device can be saved for a merchant with basic printing requirement;
safety: safety certification is carried out, so that the safety problem of the extended printing service based on the POS machine is solved: optionally, the encryption and decryption functions: when a merchant requests the service of the rear end of the POS machine, basic encryption and decryption functions are ensured; and (3) authority control: the merchant requests the POS machine back-end service to be controlled by authority, and only the merchant with the function can use the printing function.
Through the embodiment, an extended printing service is developed on the basis of the POS machine, and custom printing of styles and contents can be realized. The problem that the printing function of the point-of-sale device corresponding to the point-of-sale client cannot be fully utilized in the related technology is solved, the printing cost of the target object is reduced, the operation mode of the printing function of the point-of-sale device is expanded, and the safety of the target content to be printed is ensured by combining the safety authentication function of the point-of-sale device.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a printing apparatus for target content is also provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and the description of the apparatus is omitted for brevity. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 5 is a block diagram of a structure of a printing apparatus of target content according to an embodiment of the present invention, as shown in fig. 5, the apparatus including:
a receiving module 52, configured to receive target content uploaded by a target object, where the target content is used to indicate data to be printed and identification information of a device to be printed, and the data to be printed includes at least one of: character information edited by the target object and image information edited by the target object;
and an indicating module 54, configured to send the data to be printed in the target content to a point-of-sale client corresponding to the identification information when the target content is verified, so as to instruct the point-of-sale client to print the data to be printed.
Through the technical scheme, the target content uploaded by the target object is received, wherein the target content is used for indicating the data to be printed and the identification information of the equipment to be printed, and the data to be printed comprises at least one of the following data: character information edited by the target object and image information edited by the target object; under the condition that the target content passes the verification, the data to be printed in the target content is sent to the point-of-sale client corresponding to the identification information to indicate the point-of-sale client to print the data to be printed, namely, the target content uploaded by the target object is verified, the target content is sent to the corresponding point-of-sale client, and the target content is printed through the point-of-sale equipment.
In an exemplary embodiment, the apparatus further includes: the acquisition module is used for acquiring the printing result of the point-of-sale client on the analyzed data to be printed under the condition that the data to be printed is analyzed; and determining whether the target content is successfully printed according to the printing result. It can be understood that it cannot be determined whether the target content is printed by the point-of-sale device corresponding to the point-of-sale client only by sending the target content to the point-of-sale client, and therefore, in order to ensure smooth operation of the whole printing process, after the point-of-sale client analyzes the target content and instructs the point-of-sale device to print according to the analyzed content, the printing result of the target content is uploaded to the point-of-sale back-end server, and the point-of-sale back-end server can determine the printing condition of the target content according to the printing result.
In an exemplary embodiment, the obtaining module is further configured to receive, when the printing result indicates that the target content is successfully printed, operation information that the target content has been successfully printed and is fed back by the point-of-sale client; when the printing result indicates that the target content fails to be printed, a point-of-sale client is instructed to send a failure prompt to the target object, wherein the printing failure contains information of at least one of the following: the point-of-sale equipment corresponding to the point-of-sale client lacks paper, and the point-of-sale equipment corresponding to the point-of-sale client fails.
Optionally, since the printing result may have multiple possibilities, in order to enable the pos backend server to collect corresponding data information according to the printing result, after the target content is successfully printed, receive operation information that is fed back by the pos client and is successfully printed, and perform data storage, when the target content with the same content appears, the printing process may be guided according to data corresponding to the historical operation information in the pos backend server. When printing the target content fails, the point-of-sale back-end server instructs the point-of-sale client to send a failure prompt to the target object.
In an exemplary embodiment, the above solution module is further configured to determine a failure code of the printing failure, where the failure code is used to indicate a specific reason for the printing failure; searching a corresponding solution from a preset failure problem processing list according to the failure code; pushing the solution to a point of sale client.
That is to say, in order to improve the efficiency of processing the printing failure of the target object on the point-of-sale device corresponding to the point-of-sale client, the point-of-sale back-end server determines the failure code corresponding to the failure reason according to the failure reason corresponding to the printing result of the printing failure, further searches a solution corresponding to the failure code from a preset failure problem processing list, and pushes the searched final solution to the point-of-sale client, so as to provide a processing countermeasure of the printing failure for the target object.
In an exemplary embodiment, the indication module is further configured to obtain an encryption and decryption rule of the point-of-sale client; verifying the target content uploaded by the target object according to the encryption and decryption rules to obtain a verification result of the target object; and under the condition that the verification result indicates that the target content passes the verification, sending the data to be printed in the target content to a point-of-sale client corresponding to the identification information so as to indicate the point-of-sale client to print the data to be printed.
The target content uploaded by the target object is verified through the encryption and decryption rules of the point-of-sale client, and because the target content can be encrypted and decrypted relatively through the encryption and decryption rules, the printing of the target content is executed under the condition that the target content is verified through the corresponding encryption and decryption rules, so that the safety problem of the point-of-sale client in expanding the printing service is avoided, and the information safety of a user is guaranteed.
In an exemplary embodiment, the apparatus further includes: the order module is used for acquiring order information of a merchant terminal, wherein the order information is used for indicating an order to be printed, which does not contain target content; instructing a point-of-sale device corresponding to the point-of-sale client to print the order information; and printing the target content through the point-of-sale device in the time interval under the condition that the printing process of the point-of-sale device for printing the order information exists in the time interval and the target content is allowed to be printed in the time interval.
It can be understood that, in order to enable the printing of the target content not to affect the printing of the order normally made by the point-of-sale device on the merchant terminal, the point-of-sale back-end server instructs the point-of-sale device to print the target content if it is determined that there is a time interval when the point-of-sale device prints the order information and the target content is allowed to be printed within the time interval.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, receiving target content uploaded by a target object, wherein the target content is used for indicating data to be printed and identification information of a device to be printed, and the data to be printed comprises at least one of the following: character information edited by the target object and image information edited by the target object;
and S2, sending the data to be printed in the target content to the point-of-sale client corresponding to the identification information under the condition that the target content passes the verification so as to instruct the point-of-sale client to print the data to be printed.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
In an exemplary embodiment, the processor may be configured to execute the following steps by a computer program:
s1, receiving target content uploaded by a target object, wherein the target content is used for indicating data to be printed and identification information of a device to be printed, and the data to be printed comprises at least one of the following: character information edited by the target object and image information edited by the target object;
and S2, sending the data to be printed in the target content to the point-of-sale client corresponding to the identification information under the condition that the target content passes the verification so as to instruct the point-of-sale client to print the data to be printed.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method of printing targeted content, comprising:
receiving target content uploaded by a target object, wherein the target content is used for indicating data to be printed and identification information of equipment to be printed, and the data to be printed comprises at least one of the following: character information edited by the target object and image information edited by the target object;
and under the condition that the target content passes the verification, sending the data to be printed in the target content to a point-of-sale client corresponding to the identification information so as to instruct the point-of-sale client to print the data to be printed.
2. The method according to claim 1, wherein in a case that the target content is verified, after sending data to be printed in the target content to a point-of-sale client corresponding to the identification information to instruct the point-of-sale client to print the data to be printed, the method further comprises:
under the condition that the data to be printed is analyzed, obtaining a printing result of the point-of-sale client on the analyzed data to be printed;
and determining whether the target content is successfully printed according to the printing result.
3. The method of claim 2, wherein determining whether the target content is successfully printed based on the printing result comprises:
when the printing result indicates that the target content is successfully printed, receiving operation information fed back by the point-of-sale client that the target content is successfully printed;
when the printing result indicates that the target content fails to be printed, a point-of-sale client is instructed to send a failure prompt to the target object, wherein the printing failure contains information of at least one of the following: the point-of-sale equipment corresponding to the point-of-sale client lacks paper, and the point-of-sale equipment corresponding to the point-of-sale client fails.
4. The method of claim 3, wherein when the printing result indicates that the target content failed to be printed, after instructing the point-of-sale client to send a failure prompt to the target object, the method further comprises:
determining a failure code of printing failure, wherein the failure code is used for indicating a specific reason of printing failure;
searching a corresponding solution from a preset failure problem processing list according to the failure code;
pushing the solution to a point of sale client.
5. The method according to claim 1, wherein in a case that the target content is verified, sending data to be printed in the target content to a point-of-sale client corresponding to the identification information to instruct the point-of-sale client to print the data to be printed comprises:
acquiring an encryption and decryption rule of the point-of-sale client;
verifying the target content uploaded by the target object according to the encryption and decryption rules to obtain a verification result of the target object;
and under the condition that the verification result indicates that the target content passes the verification, sending the data to be printed in the target content to a point-of-sale client corresponding to the identification information so as to indicate the point-of-sale client to print the data to be printed.
6. The method according to any one of claims 1 to 5, further comprising:
acquiring order information of a merchant terminal, wherein the order information is used for indicating an order to be printed, which does not contain target content;
instructing a point-of-sale device corresponding to the point-of-sale client to print the order information;
and printing the target content through the point-of-sale device in the time interval under the condition that the printing process of the point-of-sale device for printing the order information exists in the time interval and the target content is allowed to be printed in the time interval.
7. An apparatus for printing a target content, comprising:
the receiving module is used for receiving target content uploaded by a target object, wherein the target content is used for indicating data to be printed and identification information of equipment to be printed, and the data to be printed comprises at least one of the following data: character information edited by the target object and image information edited by the target object;
and the indicating module is used for sending the data to be printed in the target content to the point-of-sale client corresponding to the identification information under the condition that the target content passes the verification so as to indicate the point-of-sale client to print the data to be printed.
8. The apparatus of claim 7, further comprising: the acquisition module is used for acquiring the printing result of the point-of-sale client on the analyzed data to be printed under the condition that the data to be printed is analyzed; and determining whether the target content is successfully printed according to the printing result.
9. A computer-readable storage medium, comprising a stored program, wherein the program is operable to perform the method of any one of claims 1 to 6.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 6 by means of the computer program.
CN202110161321.XA 2021-02-05 2021-02-05 Printing method and device of target content, storage medium and electronic device Pending CN112925487A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110161321.XA CN112925487A (en) 2021-02-05 2021-02-05 Printing method and device of target content, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110161321.XA CN112925487A (en) 2021-02-05 2021-02-05 Printing method and device of target content, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN112925487A true CN112925487A (en) 2021-06-08

Family

ID=76170802

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110161321.XA Pending CN112925487A (en) 2021-02-05 2021-02-05 Printing method and device of target content, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN112925487A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1702695A (en) * 2004-04-08 2005-11-30 精工爱普生株式会社 Printing system, POS system, connection device, and control method and control program for printing system
CN101918987A (en) * 2007-10-17 2010-12-15 Ntf集团有限公司 Games system and method
CN103842956A (en) * 2011-09-30 2014-06-04 英特尔公司 Secure printing between printer and print client device
WO2016129226A1 (en) * 2015-02-12 2016-08-18 セイコーエプソン株式会社 Printer driver and pos system
CN106557285A (en) * 2015-09-25 2017-04-05 腾讯科技(深圳)有限公司 Method of printing and device
CN107256134A (en) * 2017-04-25 2017-10-17 百富计算机技术(深圳)有限公司 It is virtually method and apparatus, the POS terminal of computer printer by POS terminal
CN107274597A (en) * 2017-06-16 2017-10-20 福州汇思博信息技术有限公司 POS Method of printing and its system based on LAN
CN110347355A (en) * 2019-07-08 2019-10-18 武汉诚信卓远科技发展有限公司 Cloud Method of printing, equipment and computer readable storage medium
CN110503786A (en) * 2019-08-27 2019-11-26 深圳大趋智能科技有限公司 A kind of intelligence POS machine realizes the method and device of virtual bluetooth printer

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1702695A (en) * 2004-04-08 2005-11-30 精工爱普生株式会社 Printing system, POS system, connection device, and control method and control program for printing system
CN101918987A (en) * 2007-10-17 2010-12-15 Ntf集团有限公司 Games system and method
CN103842956A (en) * 2011-09-30 2014-06-04 英特尔公司 Secure printing between printer and print client device
WO2016129226A1 (en) * 2015-02-12 2016-08-18 セイコーエプソン株式会社 Printer driver and pos system
CN106557285A (en) * 2015-09-25 2017-04-05 腾讯科技(深圳)有限公司 Method of printing and device
CN107256134A (en) * 2017-04-25 2017-10-17 百富计算机技术(深圳)有限公司 It is virtually method and apparatus, the POS terminal of computer printer by POS terminal
CN107274597A (en) * 2017-06-16 2017-10-20 福州汇思博信息技术有限公司 POS Method of printing and its system based on LAN
CN110347355A (en) * 2019-07-08 2019-10-18 武汉诚信卓远科技发展有限公司 Cloud Method of printing, equipment and computer readable storage medium
CN110503786A (en) * 2019-08-27 2019-11-26 深圳大趋智能科技有限公司 A kind of intelligence POS machine realizes the method and device of virtual bluetooth printer

Similar Documents

Publication Publication Date Title
US20170161721A1 (en) Method and system for opening account based on euicc
CN110493184B (en) Method and device for processing login page in client and electronic device
CN102088691B (en) Mobile phone mobile Internet user application certification recognition system and method
US10096016B2 (en) Method of communicating and transmitting a message relating to a transaction of a contactless application, associated terminal, secure module and system
EP3905741A1 (en) Method and device for downloading profile of operator
KR20080021178A (en) Apparatus and method for downloading of sim data in mobile communication system
US20150339599A1 (en) System, mobile device and method for electronic ticket peer to peer secure transferring by near field communication (nfc) technology
US20100110453A1 (en) Image Formation Instruction Apparatus, Image Formation Instruction Program, Image Formation Instruction Method, Image Formation Server, Image Formation Server Program, Processing Method for Image Formation Server, Image Formation Control Apparatus, Program for Image Formation Control Apparatus, and Image-Forming Method
KR101168272B1 (en) The system of issuing nfc ticket and method thereof
CN101557585A (en) Intelligent card
CN111163467A (en) Method for 5G user terminal to access 5G network, user terminal equipment and medium
CN111279341B (en) System for access confirmation, mobile terminal device, server, program, and method
CN102843482B (en) Client apparatus, print data generation server and image forming apparatus
EP3582527B1 (en) Mobile subscription profile generation and provisioning
CN110022536A (en) Verification information processing method, communication equipment, business platform and storage medium
CN105072616A (en) Verification method of flash ROM and verification apparatus of flash ROM
US8867058B2 (en) Image forming apparatus and image forming system
CN112637221B (en) Equipment control method and device
CN109977126A (en) Replacing options, device, electronic equipment and the storage medium of identity
CN112925487A (en) Printing method and device of target content, storage medium and electronic device
CN111476598A (en) Information prompting method and device, storage medium and electronic device
CN113965463A (en) Network slice switching method and terminal, storage medium and electronic device
CN113709849A (en) Network access method and device of equipment to be accessed to network, storage medium and electronic device
CN109428965B (en) Method for data communication, related device and system and storage medium
CN101345915A (en) Method, device and system for handling communication service through terminal

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