Ticket processing
Embodiments of this specification provide a ticket processing method and apparatus. The ticket processing method includes: obtaining a business payment bill obtained after an institution member makes a business payment, and storing the business payment bill in a member account of the institution member; synchronizing the business payment bill from the member account to a co-managed account that is of an institution to which the institution member belongs and that is associated with the member account, to add the business payment bill to a bill list in the co-managed account; obtaining, based on a ticket addition request submitted by the institution member for the business payment bill, a ticket associated with the business payment bill; and returning the ticket to the co-managed account based on an account association relationship between the member account and the co-managed account, to associate the ticket with the business payment bill in the bill list.
1 . A ticket processing method, comprising:
mounting, by a computer file system, a co-managed account of an institution to a fund account, the mounting comprising making files of fund account on the computer file system accessible by a member account of an institution member using the co-managed account;
obtaining a business payment bill obtained after the institution member makes a business payment using funds in the fund account, and storing the business payment bill in the member account of the institution member;
synchronizing the business payment bill from the member account to a co-managed account that is of an institution to which the institution member belongs and that is associated with the member account, to add the business payment bill to a bill list in the co-managed account;
performing optical character recognition (OCR) on a ticket image based on a ticket addition request submitted by the institution member for the business payment bill to obtain a ticket associated with the business payment bill; and
returning the ticket to the co-managed account based on an account association relationship between the member account and the co-managed account, to associate the ticket with the business payment bill in the bill list.
2 . The method according to claim 1 , further comprising:
obtaining a confirmation request for making the business payment by the institution member, wherein the confirmation request carries a member account identifier of the member account of the institution member and a fund account identifier of the fund account of the institution, and the member account and the fund account are associated with the co-managed account; and
obtaining the business payment bill obtained after the business payment is made based on the member account identifier and the fund account identifier.
3 . The method according to claim 1 , further comprising:
obtaining configuration data of an associated ticket upload page based on an associated ticket upload request submitted by the institution member for the business payment bill, to generate an associated ticket upload page corresponding to the business payment bill; and
obtaining the ticket image of a paper ticket uploaded by the institution member on the ticket upload page.
4 . The method according to claim 1 , further comprising:
generating a ticket request message based on an electronic ticket obtaining request submitted by the institution member for the business payment bill, and sending the ticket request message to a merchant corresponding to the business payment bill, wherein the electronic ticket obtaining request carries a member account identifier and a bill identifier of the business payment bill;
obtaining an electronic ticket sent by the merchant based on the member account identifier, wherein the electronic ticket is issued by the merchant based on the bill identifier; and
associating the electronic ticket with the business payment bill.
5 . The method according to claim 1 , further comprising:
determining, based on a bill selection operation performed by the institution member, a plurality of business payment bills selected by the institution member; and
obtaining, based on a combined ticket addition request, tickets associated with the plurality of business payment bills.
6 . The method according to claim 1 , further comprising:
obtaining ticket issuance information of a merchant corresponding to the business payment bill;
determining, based on the ticket issuance information, whether the merchant supports issuance of an electronic ticket; and
upon determining that the merchant supports issuance of an electronic ticket, obtaining first control configuration data of an electronic ticket request control; and
configuring a ticket obtaining manner of the business payment bill based on the first control configuration data.
7 . The method according to claim 6 , wherein if an execution result obtained after the step of determining, based on the ticket issuance information, whether the merchant supports issuance of an electronic ticket is no, the following operations are performed:
determining, based on the ticket issuance information, whether the merchant supports issuance of a paper ticket; and
upon determining that the merchant supports issuance of a paper ticket, obtaining second control configuration data of a paper ticket request control and third control configuration data of a paper ticket upload control, and configuring the ticket obtaining manner of the business payment bill based on the second control configuration data and the third control configuration data; or
upon determining that the merchant does not support issuance of a paper ticket, obtaining third control configuration data, and configuring the ticket obtaining manner of the business payment bill based on the third control configuration data.
8 . The method according to claim 1 , further comprising:
creating the co-managed account based on a co-managed account establishment request of a ticket manager;
associating an institution account and a fund account of the ticket manager with the co-managed account based on an institution role preset for the co-managed account; and
associating a member account of each institution member with the co-managed account based on a member role preset for the co-managed account.
9 . The method according to claim 1 , further comprising:
obtaining, based on a bill access request of the institution member, a member bill list that is in the member account and that comprises each business payment bill;
querying a ticket status of any business payment bill in the member bill list; and
upon determining that the ticket status is “not returned”, obtaining addition control configuration data of a ticket addition control; and
rendering and generating a display page of the member bill list based on the member bill list and the addition control configuration data.
10 . The method according to claim 8 , further comprising:
obtaining a bill access condition submitted by the ticket manager by using the institution account;
obtaining a target bill list that meets the bill access condition from the bill list based on an association relationship between the institution account and the co-managed account; and
processing, based on an associated ticket processing request submitted by the ticket manager for a target bill in the target bill list, a ticket associated with the target bill.
11 . The method according to claim 10 , wherein the processing, based on an associated ticket processing request submitted by the ticket manager for a target bill in the target bill list, a ticket associated with the target bill comprises:
obtaining, based on a ticket view request submitted by the ticket manager for the target bill, a target ticket associated with the target bill and configuration data of a ticket display page, to render and generate a ticket display page of the target ticket.
12 . The method according to claim 10 , wherein the processing, based on an associated ticket processing request submitted by the ticket manager for a target bill in the target bill list, a ticket associated with the target bill comprises:
sending, based on a ticket return prompt request submitted by the ticket manager for the target bill, ticket return prompt information to a member account that returns the target bill.
13 . An electronic device, comprising:
a memory and a processor, wherein the memory stores executable instructions that, in response to execution by the processor, cause the processor to:
mount, by a computer file system, a co-managed account of an institution to a fund account, the mounting comprising making files of fund account on the computer file system accessible by a member account of an institution member using the co-managed account;
obtain a business payment bill obtained after the institution member makes a business payment using funds in the fund account, and storing the business payment bill in the member account of the institution member;
synchronize the business payment bill from the member account to a co-managed account that is of an institution to which the institution member belongs and that is associated with the member account, to add the business payment bill to a bill list in the co-managed account;
perform optical character recognition (OCR) on a ticket image based on a ticket addition request submitted by the institution member for the business payment bill to obtain a ticket associated with the business payment bill; and
return the ticket to the co-managed account based on an account association relationship between the member account and the co-managed account, to associate the ticket with the business payment bill in the bill list.
14 . A non-transitory computer-readable storage medium, comprising instructions stored therein that, when executed by a processor of a computer device, cause the processor to:
mount, by a computer file system, a co-managed account of an institution to a fund account, the mounting comprising making files of fund account on the computer file system accessible by a member account of an institution member using the co-managed account;
obtain a business payment bill obtained after the institution member makes a business payment using funds in the fund account, and storing the business payment bill in the member account of the institution member;
synchronize the business payment bill from the member account to a co-managed account that is of an institution to which the institution member belongs and that is associated with the member account, to add the business payment bill to a bill list in the co-managed account;
performing optical character recognition (OCR) on a ticket image based on a ticket addition request submitted by the institution member for the business payment bill to obtain a ticket associated with the business payment bill; and
return the ticket to the co-managed account based on an account association relationship between the member account and the co-managed account, to associate the ticket with the business payment bill in the bill list.