Certificate collaborative generation method and device, electronic equipment and computer readable medium
Through the collaborative interaction of the service side of the value settlement service side, the certificate of the voucher, and the voucher generating the service side, the problem of highly paid coupling of the settlement server and the voucher generating the service terminal has been solved, the maintenance cost is reduced, and the safety and generating efficiency are improved.
Patent Information
- Application Number
- CN202411467357.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-21
- Publication Date
- 2025-01-28
AI Technical Summary
In the prior art, the settlement server and the credential generation server directly connect and interact, resulting in high coupling, increased maintenance costs, increased risk, and reduced security.
The server -based service terminal, voucher collaborative server and vouchers generate service terminals based on the collaborative interaction of scripts and document files to generate vouchers and reduce the direct interaction of the server.
Reduce the maintenance and update cost of the server, improve security, and enhance the generating efficiency and accuracy of the voucher.
Smart Images

Figure CN119379285A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to a method, device, electronic device, and computer-readable medium for collaboratively generating credentials. Background Art
[0002] A voucher is a legal document for transactions, accounting or tax payment. With the rapid development of economy and technology, how to quickly and accurately realize the collaborative invoicing between the settlement server that stores business data and the third-party voucher server, as well as the access after the server upgrade, has become an issue of increasing concern. For the generation of vouchers, the usual method is: the settlement server and the voucher generation server directly interact with each other to generate and store settlement vouchers.
[0003] However, it is found in practice that when the above method is used to generate vouchers, the following technical problems often occur: Since the settlement server and the voucher generation server are directly connected and interacted, the two servers are highly coupled. When a technology upgrade occurs on either server, the other server also requires corresponding technology upgrade development and adjustment. The increase in the maintenance cost of the server increases the risk of the server and reduces the security of the server.
[0004] The above information disclosed in this Background section is only for enhancement of understanding of the background of the present disclosure concept and therefore it may contain information that does not form the prior art that is already known in this country to a person of ordinary skill in the art. Summary of the invention
[0005] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.
[0006] Some embodiments of the present disclosure propose a credential collaborative generation method, apparatus, electronic device, and computer-readable medium to solve one or more of the technical problems mentioned in the above background technology section.
[0007] In a first aspect, some embodiments of the present disclosure provide a voucher collaborative generation method, comprising: in response to detecting an item detail settlement operation performed by a target user on a value settlement service end, obtaining an item information set to be settled corresponding to the item detail settlement operation, wherein the item information to be settled in the item information set to be settled includes at least one of the following: item name, item quantity, and item value information; performing local proxy data detection processing on the item information set to be settled to obtain the item information set to be settled after detection; calling a settlement service call interface that is communicatively connected to the voucher collaborative server end, and sending settlement interface call information through the settlement service call interface, wherein the settlement interface call information includes: the item information set to be settled and a settlement request path; receiving an item settlement document file and an item settlement script corresponding to the settlement interface call information; in response to detecting that a preset settlement ratio occurs Changes, re-receive the updated item settlement script sent by the above-mentioned voucher collaborative server; generate the data required for the voucher through the above-mentioned updated item settlement script according to the item settlement algorithm set included in the above-mentioned item settlement document file; control the voucher collaborative server to generate settlement voucher information according to the received data required for the above-mentioned voucher, the determined user personalized voucher generation document file and the user personalized voucher generation script, wherein the above-mentioned user personalized voucher generation document file and the above-mentioned user personalized voucher generation script are the document files and scripts stored by the above-mentioned voucher collaborative server; control the voucher generation server to generate a settlement voucher according to the above-mentioned settlement voucher information, perform voucher authenticity verification processing on the above-mentioned settlement voucher to obtain the authenticity verification result, and in response to determining that the above-mentioned authenticity verification result indicates that the verification is passed, generate voucher generation record information for the above-mentioned settlement voucher, and store the above-mentioned settlement voucher generation record information.
[0008] In a second aspect, some embodiments of the present disclosure provide a voucher collaborative generation device, comprising: an acquisition unit, configured to, in response to detecting an item detail settlement operation performed by a target user on a value settlement service end, acquire an item information set to be settled corresponding to the item detail settlement operation, wherein the item information to be settled in the item information set to be settled includes at least one of the following: item name, item quantity, and item value information; a local proxy data detection unit, configured to perform local proxy data detection processing on the item information set to be settled, and obtain the item information set to be settled after detection; a calling unit, configured to call a settlement service calling interface that is communicatively connected to the voucher collaborative server end, and to send settlement interface calling information through the settlement service calling interface, wherein the settlement interface calling information includes: the item information set to be settled and a settlement request path; a first receiving unit, configured to receive an item settlement document file and an item settlement script corresponding to the settlement interface calling information; a second receiving unit, configured to respond to Upon detecting that a change in the preset settlement ratio is detected, an updated item settlement script sent by the above-mentioned voucher collaborative server is received again; a generation unit is configured to generate data required for the voucher through the above-mentioned updated item settlement script according to the item settlement algorithm set included in the above-mentioned item settlement document file; a first control unit is configured to control the voucher collaborative server to generate settlement voucher information according to the received data required for the above-mentioned voucher, the determined user personalized voucher generation document file and the user personalized voucher generation script, wherein the above-mentioned user personalized voucher generation document file and the above-mentioned user personalized voucher generation script are document files and scripts stored by the above-mentioned voucher collaborative server; a second control unit is configured to control the voucher generation server to generate a settlement voucher according to the above-mentioned settlement voucher information, perform voucher authenticity verification processing on the above-mentioned settlement voucher to obtain an authenticity verification result, and in response to determining that the above-mentioned authenticity verification result indicates that the verification is passed, generate voucher generation record information for the above-mentioned settlement voucher, and store the above-mentioned settlement voucher generation record information.
[0009] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner in the first aspect.
[0010] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method described in any implementation manner in the first aspect is implemented.
[0011] The above-mentioned embodiments of the present disclosure have the following beneficial effects: the voucher collaborative generation method of some embodiments of the present disclosure can reduce the maintenance and update costs of the server, increase the security of the server, and improve the efficiency and accuracy of voucher generation through the collaborative interaction of the value settlement server, the voucher collaborative server and the voucher generation server based on scripts and document files. Specifically, the reason for the increase in the maintenance cost of the relevant server, the increase in the risk of the server and the reduction in the security of the server is that: due to the direct docking and interaction between the settlement server and the voucher generation server, the coupling of the two servers is high. When any server has a technical upgrade, the other server also needs corresponding technical upgrade development and adjustment. The increase in the maintenance cost of the server increases the risk of the server and reduces the security of the server. Based on this, the voucher collaborative generation method of some embodiments of the present disclosure, first, in response to detecting the item detailed settlement operation performed by the target user on the value settlement server, obtains the to-be-settled item information set corresponding to the above-mentioned item detailed settlement operation, wherein the to-be-settled item information in the above-mentioned to-be-settled item information set includes at least one of the following: item name, item quantity, and item value information. Here, the to-be-settled item information set is used for subsequent local proxy data detection and voucher generation. Secondly, the above-mentioned information set of items to be settled is subjected to local proxy data detection processing to obtain the information set of items to be settled after detection. Here, the local proxy data detection can reduce the amount of data remotely called, improve the response speed and stability of the value settlement service end, and improve the quality of the information set of items to be settled. Thirdly, the settlement service call interface connected to the above-mentioned voucher coordination service end is called, and the settlement interface call information is sent through the above-mentioned settlement service call interface, wherein the above-mentioned settlement interface call information includes: the above-mentioned information set of items to be settled and the settlement request path. Here, the interface call is used to interact with the server end, and to facilitate the acquisition of scripts and document files to achieve data synchronization. Next, the item settlement document file and the item settlement script corresponding to the above-mentioned settlement interface call information are received. Here, the item settlement document file and the item settlement script can avoid changing the item settlement script when the value settlement service end is upgraded, so as to reduce the update and maintenance scope and cost of the voucher coordination service end or the voucher generation service end. Subsequently, in response to detecting that the preset settlement ratio has changed, the updated item settlement script sent by the above-mentioned voucher coordination service end is re-received. Here, the decoupling of the value settlement service end, the voucher generation service end and the voucher coordination service end can be achieved. Afterwards, the updated item settlement script is used to generate the data required for the voucher according to the item settlement algorithm set included in the item settlement document file, thereby improving the data quality of the data required for the voucher.Then, the control voucher collaborative server generates settlement voucher information according to the received data required for the above-mentioned voucher, the determined user personalized voucher generation document file and the user personalized voucher generation script, wherein the above-mentioned user personalized voucher generation document file and the above-mentioned user personalized voucher generation script are document files and scripts stored by the above-mentioned voucher collaborative server. Here, the real-time synchronization of data between the value settlement server and the voucher collaborative server can be achieved, the efficiency and accuracy of generating settlement vouchers can be improved, and the specific requirements of different target users for vouchers can be flexibly realized, and the flexibility and scalability of the voucher collaborative server can be improved. Finally, the control voucher generation server generates a settlement voucher according to the above-mentioned settlement voucher information, verifies the authenticity of the voucher, obtains the authenticity verification result, and generates the voucher generation record information for the above-mentioned settlement voucher in response to determining that the above-mentioned authenticity verification result indicates that the verification has passed, and stores the above-mentioned settlement voucher generation record information. Here, the real-time synchronization of data between the value settlement server and the voucher collaborative server and the authenticity of the voucher can be achieved. It can be obtained that the image segmentation method can quickly and efficiently use the image experience database to segment the image, thereby reducing the time of loading the image and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.
[0013] Figure 1 is a flow chart of some embodiments of the credential collaborative generation method according to the present disclosure;
[0014] Figure 2 is a timing diagram of server-side interaction according to some embodiments of the credential collaborative generation method disclosed herein;
[0015] Figure 3 is a schematic diagram of the structure of some embodiments of the credential collaborative generation device according to the present disclosure;
[0016] Figure 4 is a schematic diagram of a structure of a device suitable for implementing some embodiments of the present disclosure;
[0017] Figure 5 It is a screenshot of an illustrative internal test operation page for generating data required for vouchers by a value settlement service end in some embodiments of the voucher collaborative generation method disclosed herein;
[0018] Figure 6It is a screenshot of an illustrative internal test operation page of generating settlement voucher information by a voucher generation server in some embodiments of the voucher collaborative generation method disclosed herein;
[0019] Figure 7 It is a screenshot of an illustrative internal test operation page for a value settlement service end to receive settlement voucher information in some embodiments of the voucher collaborative generation method disclosed herein;
[0020] Figure 8 It is a screenshot of a settlement voucher of an illustrative internal test operation page generated by a voucher generation server in some embodiments of the voucher collaborative generation method disclosed herein. DETAILED DESCRIPTION
[0021] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0022] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.
[0023] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0024] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0025] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0026] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.
[0027] Figure 1 The process 100 of some embodiments of the credential collaborative generation method according to the present disclosure is shown. The credential collaborative generation method includes the following steps:
[0028] Step 101, in response to detecting that a target user performs an item detail settlement operation on a value settlement service end, obtaining an information set of items to be settled corresponding to the item detail settlement operation.
[0029] In some embodiments, the execution subject (e.g., electronic device) of the above-mentioned voucher collaborative generation method may, in response to detecting the item detail settlement operation performed by the target user on the value settlement service end, obtain the to-be-settled item information set corresponding to the above-mentioned item detail settlement operation through a wired connection method or a wireless connection method, wherein the to-be-settled item information set includes at least one of the following: item name, item quantity, and item value information. Among them, the to-be-settled item information set may be the information of the items to be settled. The above-mentioned target user (supplier) may be a user who supplies items and provides a list of items to be settled. The above-mentioned value settlement service end may be a server that stores the above-mentioned to-be-settled item information and is used to calculate the added payment value value (value-added tax), the value attribute value (tax amount included) containing the payment value value, and the value attribute value containing the payment value value of the above-mentioned to-be-settled item information. The above-mentioned item value information may be the unit price information of the item to be settled. The above-mentioned item detail settlement operation may be the operation of the settlement identification button clicked by the above-mentioned target user.
[0030] Step 102: Perform local proxy data detection processing on the information set of items to be settled to obtain the information set of items to be settled after detection.
[0031] In some embodiments, the execution subject may perform local proxy data detection processing on the information set of items to be settled to obtain the detected information set of items to be settled. The local proxy data detection processing may be data detection processing performed locally by the value settlement server through a proxy in a local stub mode.
[0032] Step 103, calling the settlement service calling interface that is in communication connection with the voucher coordination server, and sending settlement interface calling information through the settlement service calling interface.
[0033] In some embodiments, the execution subject may call a settlement service call interface that is in communication connection with the voucher collaboration server, and send settlement interface call information through the settlement service call interface, wherein the settlement interface call information includes: the information set of items to be settled and the settlement request path. The voucher collaboration server may be a server for providing dynamic scripts and document files storing logical calculation algorithms. The dynamic script may be a Groovy script. The document file may be a JAR (Java Archive). The settlement service call interface may be an interface for communicating with the value settlement server and transmitting data. The settlement interface call information may be request information for the value settlement server to request scripts and document files stored in the voucher collaboration server. The settlement request path may be the path of the address where the script and document files of the voucher collaboration server are located requested by the value settlement server.
[0034] Step 104, receiving the item settlement document file and item settlement script corresponding to the settlement interface call information.
[0035] In some embodiments, the execution subject may receive an item settlement document file and an item settlement script corresponding to the settlement interface call information. The item settlement document file may be a JAR package for storing various logical calculation algorithms for calculating the added value (value-added tax). The item settlement script may be a Groovy script for calling the item settlement document file.
[0036] Step 105 , in response to detecting that the preset settlement ratio has changed, re-receive an updated item settlement script sent by the voucher coordination server.
[0037] In some embodiments, the execution subject may re-receive the updated item settlement script sent by the voucher collaboration server in response to detecting a change in the preset settlement ratio. The preset settlement ratio may be a tax rate prescribed by the state. The updated item settlement script may be a Groovy script corresponding to the changed preset settlement ratio. It should be noted that the item settlement script may include some settlement logic to decouple the settlement logic algorithm included in the item settlement document file, so as to reduce changes and maintenance of the value settlement server when changes occur in the voucher collaboration server, thereby improving the security and stability of the value settlement server.
[0038] Step 106, generating data required for the voucher through the updated item settlement script according to the item settlement algorithm set included in the item settlement document file.
[0039] In some embodiments, the execution subject may generate the data required for the voucher through the updated item settlement script according to the item settlement algorithm set included in the item settlement document file. The data required for the voucher may be the data required to generate the voucher. The data required for the voucher may include but is not limited to at least one of the following: increase in the payment value (value added tax), the value attribute value containing the payment value (tax amount included), the value attribute value containing the payment value, and the settlement number. Figure 5 , Figure 5 A screenshot of an internal test operation page showing the data required for the value settlement service to generate a voucher. The item settlement algorithm in the above-mentioned item settlement algorithm set may be an algorithm for settling information of items to be settled. For example, the above-mentioned item settlement algorithm may include but is not limited to at least one of the following: a positive and negative merging algorithm for items to be settled, and a negative number amortization algorithm for items to be settled.
[0040] As an example, the execution entity may input the to-be-settled item information set into the updated item settlement script to call the item settlement algorithm set included in the item settlement document file to obtain the data required for the voucher.
[0041] In some optional implementations of some embodiments, the above-mentioned generation of data required for the voucher through the above-mentioned updated item settlement script according to the item settlement algorithm set included in the above-mentioned item settlement document file may include the following steps:
[0042] The first step is to perform data verification processing on the to-be-settled item information set included in the settlement interface call information through the updated item settlement script to obtain a data verification result.
[0043] In the second step, in response to determining that the data verification result indicates that the verification has passed, at least one item settlement algorithm corresponding to the item information set to be settled in the item settlement document file is determined. The determination may be performed by the updated item settlement script calling the corresponding item settlement algorithm set in the item settlement document file.
[0044] The third step is to generate the data required for the voucher of the above-mentioned item information set according to the above-mentioned at least one item settlement algorithm.
[0045] As an example, the execution entity may input the information set of items to be settled into the at least one item settlement algorithm to obtain data required for the voucher.
[0046] In some optional implementations of some embodiments, generating the data required for the voucher for the to-be-settled item information set according to the at least one item settlement algorithm may include the following steps:
[0047] In the first step, the above-mentioned information set of items to be settled is grouped to obtain a first category information set of items to be settled and a second category information set of items to be settled. The first category of items to be settled in the above-mentioned information set of items to be settled may be items with a positive transaction amount, that is, information about purchased items to be settled. The second category of items to be settled in the above-mentioned information set of items to be settled may be items with a negative transaction amount, that is, information about returned items to be settled.
[0048] The second step is to generate a combined item information set for the first category of to-be-settled item information set and the second category of to-be-settled item information set according to the item merging settlement algorithm set included in the at least one item settlement algorithm. The combined item information in the combined item information set may be combined item information obtained by merging according to the merging logic of different item merging settlement algorithms.
[0049] As an example, the execution entity may input the first category of to-be-settled item information set and the second category of to-be-settled item information set into the item combined settlement algorithm set included in the at least one item settlement algorithm to obtain a combined item information set.
[0050] The third step is to perform item quantity merging processing on each combined item information group in the combined item information group set to generate a quantity-processed combined item information group, thereby obtaining a quantity-processed combined item information group set. The data-processed combined item information in the data-processed combined item information group may be item information in which the quantity of purchased items and the quantity of returned items are combined to obtain the total quantity of items.
[0051] As an example. The above-mentioned execution subject can perform the following combination steps for each combined item information group in the above-mentioned combined item information group set: First, at least one combined item information with the same item name is screened out from the above-mentioned combined item information group as the target combined item information group. Then, the target combined items whose item information is positive and negative in the above-mentioned target combined item information group are determined as the positive target combined item information group and the negative target combined item information group. Finally, in response to determining that the number of positive target combination information included in the above-mentioned positive target combined item information group is greater than the number of negative target combination information included in the above-mentioned negative target combined item information group, the above-mentioned negative target combined item information group is merged into the above-mentioned positive target combined item information group. In response to determining that the above-mentioned positive number is less than the above-mentioned negative number, the above-mentioned positive target combined item information group is merged into the above-mentioned negative target combined item information group. In response to determining that the above-mentioned positive number is equal to the above-mentioned negative number, the above-mentioned positive target combined item information group and the above-mentioned negative target combined item information group are positively and negatively offset. It is understandable that after combining the information of purchased items to be settled and the information of returned items to be settled in the combined item information group, the quantity and tax-inclusive amount of the items to be settled can be obtained, and then the details of the items to be settled can be obtained by combining the tax rate. That is, the untaxed amount of the items to be settled is first calculated according to the formula, which is untaxed amount = tax-inclusive amount / (1+tax rate); then, according to the untaxed amount of the items to be settled and the quantity of the items, the untaxed unit price of the target item is calculated, that is, the details of the target item are the untaxed amount, tax-inclusive amount and untaxed unit price.
[0052] The fourth step is to perform negative number amortization on the above-mentioned combined item information set after quantity processing to obtain the amortized combined item information set. The above-mentioned negative number amortization can be an amortization process that evenly distributes the information of the returned items to be settled to each of the combined item information sets after quantity processing in the above-mentioned combined item information set after quantity processing, so that the returned items to be settled are evenly combined.
[0053] The fifth step is to determine the voucher quantity for the above-mentioned amortized combined item information set and the item information set to be settled included in each settlement voucher according to the voucher quantity limitation algorithm included in the above-mentioned at least one item settlement algorithm, and obtain the voucher quantity and voucher item information set. Among them, the above-mentioned voucher quantity limitation algorithm can be an algorithm that splits and combines the above-mentioned amortized combined information set according to the transaction value limit (voucher limit) of the voucher and the limit on the number of details of the voucher, and calculates the untaxed amount, tax-inclusive amount and untaxed unit price of each item to be settled included in each voucher, and makes the tax-inclusive amount of each voucher not exceed the transaction value limit and the number of details of each voucher not exceed the maximum number of details, so as to obtain the invoicing details of each voucher. The above-mentioned limit on the number of details can be 100 for electronic vouchers and 2000 for paper vouchers.
[0054] As an example, the execution entity may input the amortized combined item information set into the voucher quantity limitation algorithm included in the at least one item settlement algorithm to obtain the voucher quantity and the voucher item information set.
[0055] The sixth step is to perform settlement processing on each voucher item information group in the voucher item information group set to generate an initial settlement value value and obtain an initial settlement value value set. The initial settlement value value may be the untaxed amount and the taxed amount of each voucher.
[0056] The seventh step is to reversely verify the initial settlement value value set to obtain a value verification result, wherein the value verification result may be a result indicating whether the value after verification of the initial settlement value value is the same as the initial settlement value value.
[0057] In the eighth step, in response to determining that the above value verification result indicates successful verification, the above initial settlement value value set is determined as the settlement value value set in the data required for the voucher.
[0058] The ninth step is to determine the above-mentioned voucher quantity, the above-mentioned voucher item information set and the above-mentioned settlement value numerical set as the data required for the voucher.
[0059] In some optional implementations of some embodiments, the generating of the combined item information set for the first category to-be-settled item information set and the second category to-be-settled item information set according to the item merging item settlement algorithm set included in the at least one item settlement algorithm may include the following steps:
[0060] In the first step, at least one first category of to-be-settled item information and at least one second category of to-be-settled item information that meet the first screening condition are screened out from the first category of to-be-settled item information group and the second category of to-be-settled item information group, and the two information are combined as the first combined item information group. The first screening condition may be a condition for combining the returned to-be-settled item information and the purchased to-be-settled item information with the same item name and tax rate. The first combined item information in the first combined item information group may be the item information obtained by merging the items with purchase records and return records and with the same item name and tax rate by offsetting the positive and negative values.
[0061] In the second step, at least one first category of to-be-settled item information and at least one second category of to-be-settled item information that meet the second screening condition are screened out from the first category of to-be-settled item information group and the second category of to-be-settled item information group, and the two are combined as the second combined item information group. The second screening condition may be a condition for combining the returned to-be-settled item information and the purchased to-be-settled item information with the same item name. The second combined item information in the second combined item information group may be the item information obtained by merging the items with the same item name and the purchased to-be-settled item information with both the purchased record and the returned record.
[0062] The third step is to select at least one first category of to-be-settled item information and at least one second category of to-be-settled item information that meet the third screening condition from the first category of to-be-settled item information group and the second category of to-be-settled item information group, and combine them as the third combined item information group. The third screening condition may be a condition for combining the returned to-be-settled item information and the purchased to-be-settled item information of the same tax rate. The third combined item information in the third combined item information group may be the item information obtained by merging the items that have both purchased and returned records and the same tax rate by offsetting the positive and negative values.
[0063] The fourth step is to determine the first combined object information group, the second combined object information group and the third combined object information group as a combined object information group set.
[0064] Step 107, controlling the voucher coordination server to generate settlement voucher information according to the received voucher required data, the determined user personalized voucher generation document file and the user personalized voucher generation script.
[0065] In some embodiments, the execution subject may control the voucher collaboration server to generate settlement voucher information according to the received data required for the voucher, the determined user personalized voucher generation document file and the user personalized voucher generation script, wherein the user personalized voucher generation document file and the user personalized voucher generation script are document files and scripts stored by the voucher collaboration server. The voucher collaboration server may be a server for storing document files and scripts. The user personalized voucher generation document file may be a JAR package customized by the retailer for the generated voucher. The user personalized voucher generation script may be a Groovy dynamic script customized by the retailer for the generated voucher. The settlement voucher information may be information of a settlement voucher for recording the details of the items to be settled, the amount including tax, and the amount excluding tax. Here, please refer to Figure 6 , Figure 6A screenshot of an internal test operation page showing the schematic of the voucher generation server generating settlement voucher information.
[0066] As an example, the execution entity may input the data required for the voucher into the user personalized voucher generation script to call the user personalized voucher generation document file to obtain the settlement voucher.
[0067] In some optional implementations of some embodiments, the control voucher collaboration server generates settlement voucher information according to the received data required for the voucher, the determined user personalized voucher generation document file and the user personalized voucher generation script, which may include the following steps:
[0068] The first step is to determine the user personalized credential generation document file and the user personalized credential generation script corresponding to the data required for the above credential.
[0069] The second step is to determine whether the user personalized credential generation script and the historical user personalized credential generation script are the same, wherein the historical user personalized credential generation script is a script stored before the user personalized credential generation script.
[0070] In the third step, in response to the user personalized credential generation script being different from the historical user personalized credential generation script, a credential generation request message is sent to the credential generation server, wherein the credential generation request message may be a request message for generating a credential.
[0071] In the fourth step, in response to receiving the voucher generation confirmation information sent by the voucher generation server in response to the voucher generation request information, the data required for the voucher is input into the user personalized voucher generation script to call the voucher generation algorithm set included in the user personalized voucher generation document file to obtain the settlement voucher information. The voucher generation confirmation information may be a reply message from the voucher generation server agreeing to generate the voucher.
[0072] Step 5: Send the above settlement voucher information to the above voucher generation server and the above value settlement server. Figure 7 A screenshot of an internal test operation page showing the schematic diagram of the voucher information received by the value settlement server and the settlement voucher information sent by the value settlement server.
[0073] Step 108, controlling the voucher generation server to generate a settlement voucher according to the settlement voucher information, performing voucher authenticity verification processing on the settlement voucher to obtain an authenticity verification result, and in response to determining that the authenticity verification result indicates that the verification is passed, generating voucher generation record information for the settlement voucher, and storing the settlement voucher generation record information.
[0074] In some embodiments, the execution subject may control the voucher generation server to generate a settlement voucher according to the settlement voucher information, perform a voucher authenticity verification process on the settlement voucher, obtain an authenticity verification result, and generate voucher generation record information for the settlement voucher in response to determining that the authenticity verification result indicates that the verification has passed, and store the settlement voucher generation record information. Among them, the voucher generation server may be a server for generating vouchers. The authenticity verification result may be the result of judging the authenticity of the generated settlement voucher. The settlement voucher may be a voucher for recording the settlement list corresponding to the information set of items to be settled. For example, the settlement voucher may be an invoice. The settlement voucher may be an electronic voucher or a paper voucher. The voucher generation record information may be log information recording the settlement voucher generation process. The voucher authenticity verification process may be a verification process using OCR (Optical Character Recognition). The settlement voucher corresponding to the settlement voucher information may be a voucher obtained by inputting the settlement voucher information into a preset settlement voucher model. The preset settlement voucher template may be a pre-set model. Here, please refer to Figure 8 , Figure 8 A screenshot of a settlement voucher corresponding to the settlement voucher information for an exemplary internal test generated by the voucher generation server is shown.
[0075] In the process of adopting technical solutions to solve the above-mentioned technical problem one, the following technical problem two is often accompanied: how to accurately identify the authenticity of the generated vouchers, improve the efficiency of voucher inspection, reduce the generation of false settlement vouchers and reduce the waste of storage resources. For the above-mentioned technical problem two, the conventional solution is generally: using the traditional dripping algorithm to segment and identify the character set in the settlement voucher to obtain the voucher character set. Then, the voucher character set is compared with the information of the items to be settled to verify the authenticity of the settlement voucher. However, the above-mentioned conventional solution still has the following problems: because the traditional dripping algorithm determines the initial dripping point through a preset initial point determination rule, and makes the initial dripping point drip vertically downward at the junction of the two characters, the characters are split, resulting in a low accuracy rate of character recognition, which in turn causes a low accuracy rate of voucher authenticity recognition, and increases the waste of storage resources and transmission resources. The inventors took into account the shortcomings, and combined with the advantages of voucher generation owned by the inventor's company, we decided to adopt the following solution:
[0076] In some optional implementations of some embodiments, the above-mentioned verification of the authenticity of the settlement voucher to obtain the authenticity verification result may include the following steps:
[0077] The first step is to perform color space conversion processing on the above settlement voucher to obtain a settlement voucher after color space conversion. The above settlement voucher after color space conversion can be a settlement voucher whose color space is located in the HSV (Hue Saturation Value) color space. The above color space conversion processing can be a conversion of a settlement voucher located in the RGB (Red Green Blue) color space into a settlement voucher located in the HSV color space.
[0078] The second step is to perform seal recognition and removal processing on the settlement voucher after the color space transformation to obtain the settlement voucher after the seal is removed. In practice, the execution subject may first input the settlement voucher after the color space transformation into the target detection model to obtain the seal information. Then, the seal information is matched with the seal data included in the preset seal database to obtain a matching result. Among them, the preset seal database may be a database for storing seals of the State Taxation Bureau. Finally, in response to determining that the matching result indicates a successful match, the seal information is removed from the settlement voucher after the color space transformation to obtain the settlement voucher after the seal is removed.
[0079] The third step is to locate the character area of the settlement voucher after the seal is removed, and obtain a voucher character area image set. The voucher character area in the voucher character area image set may be an area containing various types of characters in the settlement voucher after the seal is removed. For example, the voucher character area image set may include but is not limited to at least one of the following: a date area for generating the voucher, a name area for the target user, and a voucher number area.
[0080] Step 4: for each voucher character area image in the voucher character area image set, perform the following first character segmentation step:
[0081] Sub-step 1: binarize the above-mentioned voucher character area image to obtain a binarized voucher character area image.
[0082] Sub-step 2, using a vertical projection method, performs character segmentation processing on the above-mentioned binarized voucher character area image to obtain a segmented character area image set. The segmented character area image in the above-mentioned segmented character area image set can be an image of the projection of the binarized voucher character area image on the horizontal axis.
[0083] Sub-step 3, comparing the character segmentation area width corresponding to each segmented character area image in the segmented character area image set with a preset character width threshold to generate a width comparison result and obtain a width comparison result set. The character segmentation area width may be the width of the segmented character area. The preset character width threshold may be the maximum value of a single character width obtained by counting a large number of single self-reading and concatenated character widths.
[0084] Sub-step 4, selecting at least one segmented character region image whose corresponding width comparison result indicates that the width of the character segmentation region is greater than the preset character width threshold from the segmented character region image set, and determining it as the contiguous character region image set. The contiguous character region image in the contiguous character region image set may be an image of a character region consisting of at least two characters.
[0085] Sub-step 5, for each of the connected character area images in the connected character area image set, performing the following second character segmentation step:
[0086] The first sub-step is to perform character thinning processing on the above-mentioned adhesion character area image to obtain an adhesion character pixel skeleton image. The adhesion character pixel skeleton image can be an image that removes burrs and redundant information in the above-mentioned adhesion character area image and retains the topological information of the adhesion character. In practice, the above-mentioned execution subject can use the Zhang-Suen parallel thinning algorithm to perform character thinning processing on the above-mentioned adhesion character area image to obtain an adhesion character pixel skeleton image.
[0087] The second sub-step is to determine the set of adhesion segmentation feature points in the adhesion character pixel skeleton image. The adhesion segmentation feature points in the adhesion segmentation feature point set may be feature points of the foreground image of the adhesion character pixel skeleton image, of which at least three of the eight adjacent feature points corresponding to the feature points included in the adhesion character pixel skeleton image are feature points. The feature points of the foreground image may be the pixels set to white in the binarized voucher character area image.
[0088] The third sub-step is to input the above-mentioned adhesion segmentation feature point set into the self-organizing map clustering model to obtain the adhesion segmentation feature point cluster topology map. Among them, the above-mentioned adhesion segmentation feature point cluster topology map can be a graph structure that displays the mapping relationship between the cluster center set corresponding to the adhesion segmentation feature point cluster set and the adhesion segmentation feature point set in the form of a topology map. The above-mentioned mapping relationship can be a mapping relationship that maps the adhesion segmentation feature point set to a two-dimensional feature map. The above-mentioned self-organizing map clustering model can be a SOM (Self-Organizing Maps, self-organizing map network) model.
[0089] The fourth sub-step is to determine the initial drop point according to the above-mentioned adhesion segmentation feature point cluster topology map. The above-mentioned initial drop point can be the initial point for segmenting the adhesion characters.
[0090] As an example, the execution entity may first select at least one adhesion segmentation feature point cluster located in the adhesion area from the adhesion segmentation feature point cluster topology map as the target adhesion segmentation feature point cluster set. The adhesion area may be an overlapping area of at least two characters included in the adhesion character area image. Then, through the topological relationship of the upper and lower arrangement of the cluster centers corresponding to the target adhesion segmentation feature point cluster set, the target adhesion segmentation feature point cluster located at the top of the target adhesion segmentation feature point cluster set is determined as the initial adhesion segmentation point cluster. Finally, the adhesion segmentation feature point located at the boundary in the initial adhesion segmentation point cluster is determined as the initial drip point.
[0091] The fifth sub-step is to generate a water drop trajectory according to the initial drop point and the cluster topology of the adhesion segmentation feature point. The water drop trajectory may be a segmentation trajectory for performing character segmentation on the adhesion character region image.
[0092] As an example, the execution subject may first construct a clustering tilt guidance function of each target adhesion segmentation feature point cluster in the target adhesion segmentation feature point cluster set included in the adhesion segmentation feature point cluster topology map to obtain a clustering tilt guidance function set. The clustering tilt guidance function may characterize the skeleton tilt dripping direction of the next dripping position of the previous dripping point determined by the feature information of the spatial distribution of the multiple adhesion segmentation feature points included in the target adhesion segmentation feature point cluster. Then, the initial dripping point is input into the clustering tilt guidance function located at the initial position in the clustering tilt guidance function set to obtain the next dripping point, and the next dripping point is input into the clustering tilt guidance function located at the next position after the initial position, until the next dripping point output by the previous clustering tilt guidance function located at the termination position is input into the clustering tilt guidance function located at the termination position to obtain the termination dripping point and the next dripping point sequence. Finally, the dripping trajectory corresponding to the initial dripping point, the next dripping point sequence and the termination dripping point is determined as the dripping trajectory.
[0093] The sixth sub-step is to perform character segmentation processing on the above-mentioned adhesion character area image according to the above-mentioned water drop falling trajectory to obtain a segmented character group.
[0094] The fifth step is to input the obtained character groups and single character sets after segmentation into the character recognition model to obtain character recognition information. The above-mentioned character recognition model can be a deep neural network model that performs character recognition on the inputted segmented character groups. The above-mentioned character recognition model can include: 3 convolution layers with 7*7 convolution kernels, 2 maximum pooling layers with 2*2 convolution kernels and a step size of 2, the activation function is ReLu (Rectified Linear Unit, linear rectification function) function, and two fully connected neural network models. The above-mentioned convolution layer is connected to a BN (Batch Normalization, batch normalization processing layer) layer. The above-mentioned character recognition information can be the recognized character group obtained by performing model recognition on the above-mentioned character groups after segmentation. The single character in the above-mentioned single character set can be a character that only includes one character after character segmentation.
[0095] Step 6: Compare the character recognition information and the information set of items to be settled to obtain a character comparison result as an authenticity verification result. The character comparison result may be a comparison result for determining whether the character recognition information and the information set of items to be settled are the same.
[0096] The above technical scheme and its related contents, combined with "and in response to determining that the authenticity verification result indicates that the verification has passed, generating voucher generation record information for the settlement voucher, and storing the settlement voucher generation record information" in step 108, as an inventive point of an embodiment of the present disclosure, solves the second technical problem mentioned in the background technology "Because the traditional dripping algorithm determines the initial dripping point through a preset initial point determination rule, and makes the initial dripping point drip vertically downward at the junction of two characters, the characters are split, resulting in low character recognition accuracy, which in turn causes low accuracy in voucher authenticity recognition, and increases waste of storage resources and waste of transmission resources". The factors that lead to low accuracy of on-board data are often as follows: Because the traditional dripping algorithm determines the initial dripping point through a preset initial point determination rule, and makes the initial dripping point drip vertically downward at the junction of two characters, the characters are split. If the above factors are solved, the effect of improving the accuracy of character recognition and the accuracy of voucher authenticity recognition, and reducing the waste of storage resources and the waste of transmission resources can be achieved. In order to achieve this effect, the present invention discloses, firstly, the seal recognition and removal is performed on the settlement voucher after the color space transformation processing. Since the HSV color space can intuitively express the brightness, hue and vividness of the color, various colors can be better separated, and the effect of seal recognition and removal can be improved, so as to improve the accuracy of settlement voucher recognition through seal recognition. Secondly, the character area positioning of the settlement voucher after the seal is removed can distinguish different character areas, so that more detailed character recognition can be performed on different character areas later. Thirdly, by comparing with the preset character width threshold, the adhesion character area image set of each voucher character area is determined, and the character segmentation results in complex situations can be identified, so as to improve the accuracy of subsequent character segmentation. Subsequently, each adhesion character area image is refined, and the character skeleton burrs and redundant features can be removed, and the topological structure information of the character image can be retained. Next, the adhesion character pixel skeleton image is clustered to determine the initial drip point, which can avoid the initial drip point falling into the depression of the character stroke and improve the accuracy of the initial drip point position. Afterwards, the drop trajectory is determined by the above-mentioned initial drop point and the above-mentioned adhesion segmentation feature point cluster topology map, which can improve the integrity of the characters of the adhesion character segmentation and avoid the problem of character segmentation breakage to a certain extent. Then, through the character recognition model, character recognition is performed on each segmented character group set and single character set, which can improve the accuracy and comprehensiveness of character recognition of different categories. Finally, by comparing with the information set of the items to be settled to determine the authenticity verification result, and by further character recognition of the settlement voucher after seal recognition, the accuracy of authenticity recognition of the settlement voucher can be further improved, and the waste of storage resources and transmission resources caused by fake settlement vouchers can be reduced.
[0097] The above-mentioned embodiments of the present disclosure have the following beneficial effects: the voucher collaborative generation method of some embodiments of the present disclosure can reduce the maintenance and update costs of the server, increase the security of the server, and improve the efficiency and accuracy of voucher generation through the collaborative interaction of the value settlement server, the voucher collaborative server and the voucher generation server based on scripts and document files. Specifically, the reason for the increase in the maintenance cost of the relevant server, the increase in the risk of the server and the reduction in the security of the server is that: due to the direct docking and interaction between the settlement server and the voucher generation server, the coupling of the two servers is high. When any server has a technical upgrade, the other server also needs corresponding technical upgrade development and adjustment. The increase in the maintenance cost of the server increases the risk of the server and reduces the security of the server. Based on this, the voucher collaborative generation method of some embodiments of the present disclosure, first, in response to detecting the item detailed settlement operation performed by the target user on the value settlement server, obtains the to-be-settled item information set corresponding to the above-mentioned item detailed settlement operation, wherein the to-be-settled item information in the above-mentioned to-be-settled item information set includes at least one of the following: item name, item quantity, and item value information. Here, the to-be-settled item information set is used for subsequent local proxy data detection and voucher generation. Secondly, the above-mentioned information set of items to be settled is subjected to local proxy data detection processing to obtain the information set of items to be settled after detection. Here, the local proxy data detection can reduce the amount of data remotely called, improve the response speed and stability of the value settlement service end, and improve the quality of the information set of items to be settled. Thirdly, the settlement service call interface connected to the above-mentioned voucher coordination service end is called, and the settlement interface call information is sent through the above-mentioned settlement service call interface, wherein the above-mentioned settlement interface call information includes: the above-mentioned information set of items to be settled and the settlement request path. Here, the interface call is used to interact with the server end, and to facilitate the acquisition of scripts and document files to achieve data synchronization. Next, the item settlement document file and the item settlement script corresponding to the above-mentioned settlement interface call information are received. Here, the item settlement document file and the item settlement script can avoid changing the item settlement script when the value settlement service end is upgraded, so as to reduce the update and maintenance scope and cost of the voucher coordination service end or the voucher generation service end. Subsequently, in response to detecting that the preset settlement ratio has changed, the updated item settlement script sent by the above-mentioned voucher coordination service end is re-received. Here, the decoupling of the value settlement service end, the voucher generation service end and the voucher coordination service end can be achieved. Afterwards, the updated item settlement script is used to generate the data required for the voucher according to the item settlement algorithm set included in the item settlement document file, thereby improving the data quality of the data required for the voucher.Then, the control voucher collaborative server generates settlement voucher information according to the received data required for the above-mentioned voucher, the determined user personalized voucher generation document file and the user personalized voucher generation script, wherein the above-mentioned user personalized voucher generation document file and the above-mentioned user personalized voucher generation script are document files and scripts stored by the above-mentioned voucher collaborative server. Here, the real-time synchronization of data between the value settlement server and the voucher collaborative server can be achieved, the efficiency and accuracy of generating settlement vouchers can be improved, and the specific requirements of different target users for vouchers can be flexibly realized, and the flexibility and scalability of the voucher collaborative server can be improved. Finally, the control voucher generation server generates a settlement voucher according to the above-mentioned settlement voucher information, verifies the authenticity of the voucher, obtains the authenticity verification result, and generates the voucher generation record information for the above-mentioned settlement voucher in response to determining that the above-mentioned authenticity verification result indicates that the verification has passed, and stores the above-mentioned settlement voucher generation record information. Here, the real-time synchronization of data between the value settlement server and the voucher collaborative server and the authenticity of the voucher can be achieved. It can be obtained that the image segmentation method can quickly and efficiently use the image experience database to segment the image, thereby reducing the time of loading the image and improving the user experience.
[0098] Further references Figure 3 As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a credential collaborative generation device, and these device embodiments are Figure 1 Corresponding to the method embodiments shown, the credential collaborative generation device can be specifically applied to various electronic devices.
[0099] like Figure 3As shown, a voucher collaborative generation device 300 includes: an acquisition unit 301, a local proxy data detection unit 302, a calling unit 303, a first receiving unit 304, a second receiving unit 305, a generating unit 306, a first control unit 307 and a second control unit 308. The acquisition unit 301 is configured to: in response to detecting the item detail settlement operation performed by the target user on the value settlement service end, acquire the to-be-settled item information set corresponding to the above item detail settlement operation, wherein the to-be-settled item information in the above to-be-settled item information set includes at least one of the following: item name, item quantity, and item value information. The local proxy data detection unit 302 is configured to: perform local proxy data detection processing on the above to-be-settled item information set to obtain the detected to-be-settled item information set. The calling unit 303 is configured to: call the settlement service calling interface that is connected to the above voucher collaborative server end in communication, and send settlement interface calling information through the above settlement service calling interface, wherein the above settlement interface calling information includes: the above to-be-settled item information set and the settlement request path. The first receiving unit 304 is configured to receive the item settlement document file and the item settlement script corresponding to the settlement interface call information. The second receiving unit 305 is configured to receive the updated item settlement script sent by the voucher cooperative server again in response to detecting that the preset settlement ratio has changed. The generating unit 306 is configured to generate the data required for the voucher according to the item settlement algorithm set included in the item settlement document file through the updated item settlement script. The first control unit 307 is configured to control the voucher cooperative server to generate the settlement voucher information according to the received data required for the voucher, the determined user personalized voucher generation document file and the user personalized voucher generation script, wherein the user personalized voucher generation document file and the user personalized voucher generation script are the document files and scripts stored by the voucher cooperative server. The second control unit 308 is configured to control the voucher generation server to generate a settlement voucher according to the settlement voucher information, perform voucher authenticity verification processing on the settlement voucher to obtain an authenticity verification result, and generate voucher generation record information for the settlement voucher in response to determining that the authenticity verification result indicates that the verification is passed, and store the settlement voucher generation record information.
[0100] It is understandable that the units recorded in the credential collaborative generation device 300 and the reference Figure 1 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the credential collaborative generation device 300 and the units contained therein, and will not be repeated here.
[0101] Reference below Figure 4, which shows a structural schematic diagram of an electronic device (eg, an electronic device) 400 suitable for implementing some embodiments of the present disclosure. Figure 4 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0102] like Figure 4 As shown, the electronic device 400 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage device 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the electronic device 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0103] Typically, the following devices may be connected to the I / O interface 405: an input device 406 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 407 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 408 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 409. The communication device 409 may allow the electronic device 400 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 4 The electronic device 400 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 4 Each block shown in the figure may represent one device, or may represent multiple devices as required.
[0104] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 409, or installed from the storage device 408, or installed from the ROM 402. When the computer program is executed by the processing device 401, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.
[0105] It should be noted that the computer-readable medium in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, the computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0106] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (Hyper Text Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0107] The above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or it may exist independently without being assembled into the electronic device. The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: in response to detecting the item detailed settlement operation performed by the target user on the value settlement service end, obtains the to-be-settled item information set corresponding to the above-mentioned item detailed settlement operation, wherein the to-be-settled item information in the above-mentioned to-be-settled item information set includes at least one of the following: item name, item quantity, item value information; performs local proxy data detection processing on the above-mentioned to-be-settled item information set to obtain the to-be-settled item information set after detection; calls the settlement service call interface that is communicatively connected to the above-mentioned voucher collaboration server end, and sends settlement interface call information through the above-mentioned settlement service call interface, wherein the above-mentioned settlement interface call information includes: the above-mentioned to-be-settled item information set and the settlement request path; receives the item settlement document file and the item settlement script corresponding to the above-mentioned settlement interface call information; in response to the detection When it is detected that the preset settlement ratio has changed, the updated item settlement script sent by the above-mentioned voucher collaborative server is received again; through the above-mentioned updated item settlement script, according to the item settlement algorithm set included in the above-mentioned item settlement document file, the data required for the voucher is generated; the voucher collaborative server is controlled to generate settlement voucher information according to the received data required for the above-mentioned voucher, the determined user personalized voucher generation document file and the user personalized voucher generation script, wherein the above-mentioned user personalized voucher generation document file and the above-mentioned user personalized voucher generation script are the document files and scripts stored by the above-mentioned voucher collaborative server; the voucher generation server is controlled to generate a settlement voucher according to the above-mentioned settlement voucher information, perform voucher authenticity verification processing on the above-mentioned settlement voucher to obtain an authenticity verification result, and in response to determining that the above-mentioned authenticity verification result indicates that the verification is passed, generate voucher generation record information for the above-mentioned settlement voucher, and store the above-mentioned settlement voucher generation record information.
[0108] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0109] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0110] The units described in some embodiments of the present disclosure may be implemented by software or by hardware. The described units may also be arranged in a processor, for example, may be described as: a processor including an acquisition unit, a local proxy data detection unit, a calling unit, a first receiving unit, a second receiving unit, a generating unit, a first control unit, and a second control unit. The names of these units do not constitute limitations on the units themselves in certain circumstances. For example, the acquisition unit may also be described as "a unit that acquires a set of information on items to be settled corresponding to the item detail settlement operation performed by a target user on a value settlement service end in response to detecting the item detail settlement operation performed by the target user on the value settlement service end."
[0111] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0112] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.
Claims
1. A method for collaboratively generating a credential, comprising: In response to detecting an item detail settlement operation performed by the target user on the value settlement service end, obtaining an item information set to be settled corresponding to the item detail settlement operation, wherein the item information to be settled in the item information set to be settled includes at least one of the following: item name, item quantity, and item value information; Performing local proxy data detection processing on the information set of items to be settled to obtain the information set of items to be settled after detection; Calling a settlement service calling interface that is in communication with the voucher coordination server, and sending settlement interface calling information through the settlement service calling interface, wherein the settlement interface calling information includes: the information set of items to be settled and the settlement request path; Receiving an item settlement document file and an item settlement script corresponding to the settlement interface call information; In response to detecting a change in the preset settlement ratio, re-receiving an updated item settlement script sent by the voucher collaboration server; Generate data required for vouchers through the updated item settlement script according to the item settlement algorithm set included in the item settlement document file; Controlling the voucher collaboration server to generate settlement voucher information according to the received voucher required data, the determined user personalized voucher generation document file and the user personalized voucher generation script, wherein the user personalized voucher generation document file and the user personalized voucher generation script are the document file and script stored by the voucher collaboration server; The control voucher generation server generates a settlement voucher according to the settlement voucher information, performs voucher authenticity verification processing on the settlement voucher to obtain an authenticity verification result, and in response to determining that the authenticity verification result indicates that the verification is passed, generates voucher generation record information for the settlement voucher, and stores the settlement voucher generation record information.
2. The method according to claim 1, wherein: The control voucher collaborative server generates settlement voucher information according to the received voucher required data, the determined user personalized voucher generation document file and the user personalized voucher generation script, including: Determine a user personalized credential generation document file and a user personalized credential generation script corresponding to the data required for the credential; Determine whether the user personalized credential generation script and a historical user personalized credential generation script are the same, wherein the historical user personalized credential generation script is a script stored before the user personalized credential generation script; In response to the user personalized credential generation script being different from the historical user personalized credential generation script, sending credential generation request information to the credential generation server; In response to receiving the voucher generation confirmation information sent by the voucher generation server in response to the voucher generation request information, inputting the data required for the voucher into the user personalized voucher generation script to call the voucher generation algorithm set included in the user personalized voucher generation document file to obtain settlement voucher information; The settlement voucher information is sent to the voucher generation server and the value settlement server.
3. The method according to claim 1, wherein: The updated item settlement script generates data required for the voucher according to the item settlement algorithm set included in the item settlement document file, including: By means of the updated item settlement script, data verification processing is performed on the to-be-settled item information set included in the settlement interface call information to obtain a data verification result; In response to determining that the data verification result indicates that the verification is passed, determining at least one item settlement algorithm corresponding to the to-be-settled item information set in the item settlement document file; According to the at least one item settlement algorithm, the data required for the voucher of the to-be-settled item information set is generated.
4. The method according to claim 3, wherein: The step of generating data required for the voucher of the to-be-settled item information set according to the at least one item settlement algorithm comprises: Performing item grouping processing on the information set of items to be settled to obtain an information set of first-category items to be settled and an information set of second-category items to be settled; Generate a combined item information set for the first category of to-be-settled item information set and the second category of to-be-settled item information set according to the item combined settlement algorithm set included in the at least one item settlement algorithm; Performing item quantity merging processing on each combined item information group in the combined item information group set to generate a quantity-processed combined item information group, thereby obtaining a quantity-processed combined item information group set; Performing negative number amortization processing on the combined item information set after quantity processing to obtain the amortized combined item information set; According to the voucher quantity limiting algorithm included in the at least one item settlement algorithm, determine the voucher quantity for the amortized combined item information set and the to-be-settled item information set included in each settlement voucher, and obtain the voucher quantity and the voucher item information set; Performing settlement processing on each voucher item information group in the voucher item information group set to generate an initial settlement value value to obtain an initial settlement value value set; Reversely verify the initial settlement value set to obtain a value verification result; In response to determining that the value verification result indicates successful verification, determining the initial settlement value value set as the settlement value value set in the data required for the voucher; The voucher quantity, the voucher item information group set and the settlement value numerical value set are determined as the data required for the voucher.
5. The method according to claim 4, wherein: The generating, according to the item combined settlement algorithm set included in the at least one item settlement algorithm, a combined item information set for the first category of to-be-settled item information set and the second category of to-be-settled item information set comprises: Filter out at least one first category of to-be-settled item information and at least one second category of to-be-settled item information that meet a first filtering condition from the first category of to-be-settled item information group and the second category of to-be-settled item information group, and combine them as a first combined item information group; Filter out at least one first category of to-be-settled item information and at least one second category of to-be-settled item information that meet a second filtering condition from the first category of to-be-settled item information group and the second category of to-be-settled item information group, and combine them as a second combined item information group; Filter out at least one first category of to-be-settled item information and at least one second category of to-be-settled item information that meet a third filtering condition from the first category of to-be-settled item information group and the second category of to-be-settled item information group, and combine them as a third combined item information group; The first combined object information group, the second combined object information group and the third combined object information group are determined as a combined object information group set.
6. A credential collaborative generation device, comprising: The acquisition unit is configured to, in response to detecting an item detail settlement operation performed by a target user on a value settlement service end, acquire an item information set to be settled corresponding to the item detail settlement operation, wherein the item information to be settled in the item information set to be settled includes at least one of the following: item name, item quantity, and item value information; A local proxy data detection unit is configured to perform local proxy data detection processing on the to-be-settled item information set to obtain a detected to-be-settled item information set; A calling unit is configured to call a settlement service calling interface that is in communication connection with the voucher coordination server, and to send settlement interface calling information through the settlement service calling interface, wherein the settlement interface calling information includes: the information set of items to be settled and a settlement request path; A first receiving unit is configured to receive an item settlement document file and an item settlement script corresponding to the settlement interface call information; a second receiving unit configured to re-receive an updated item settlement script sent by the voucher coordination server in response to detecting a change in a preset settlement ratio; A generating unit configured to generate data required for a voucher according to the updated item settlement script and the item settlement algorithm set included in the item settlement document file; A first control unit is configured to control the voucher collaboration server to generate settlement voucher information according to the received data required for the voucher, the determined user personalized voucher generation document file and the user personalized voucher generation script, wherein the user personalized voucher generation document file and the user personalized voucher generation script are document files and scripts stored in the voucher collaboration server; The second control unit is configured to control the voucher generation server to generate a settlement voucher according to the settlement voucher information, perform voucher authenticity verification processing on the settlement voucher to obtain an authenticity verification result, and in response to determining that the authenticity verification result indicates that the verification is passed, generate voucher generation record information for the settlement voucher, and store the settlement voucher generation record information.
7. An electronic device comprising: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5.
8. A computer readable medium having a computer program stored thereon, wherein: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.