CN110719222A - Method for revoking resources, method, apparatus and medium for refunding resources - Google Patents

Method for revoking resources, method, apparatus and medium for refunding resources Download PDF

Info

Publication number
CN110719222A
CN110719222A CN201910994764.XA CN201910994764A CN110719222A CN 110719222 A CN110719222 A CN 110719222A CN 201910994764 A CN201910994764 A CN 201910994764A CN 110719222 A CN110719222 A CN 110719222A
Authority
CN
China
Prior art keywords
resource
terminal
instant session
resources
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910994764.XA
Other languages
Chinese (zh)
Inventor
陈璐
王雨婷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Lianshang Network Technology Co Ltd
Original Assignee
Shanghai Lianshang Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Lianshang Network Technology Co Ltd filed Critical Shanghai Lianshang Network Technology Co Ltd
Priority to CN201910994764.XA priority Critical patent/CN110719222A/en
Publication of CN110719222A publication Critical patent/CN110719222A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/08Annexed information, e.g. attachments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/18Commands or executable codes

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Finance (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the application discloses a method for withdrawing resources, a method for returning resources, equipment and a medium. One embodiment of the method for revoking resources comprises: responding to a resource publishing request submitted by a first terminal and used for publishing resources in an instant session with a second terminal, transferring the resources requested to be published from a user account of the first terminal to an intermediate account, and pushing an instant session message for drawing the resources to the second terminal; in response to receiving a resource withdrawal request submitted by a first terminal, confirming whether the resource is picked up; if the resource is not picked up, the resource is transferred from the intermediate account back to the user account of the first terminal and a notification indicating that the withdrawal was successful is sent to the first terminal. The method and the device can withdraw the resource when the resource publishing user finds that the amount of the published resource is not right or the object is wrongly published, so that the resource loss of the resource publishing user is avoided.

Description

Method for revoking resources, method, apparatus and medium for refunding resources
Technical Field
The present application relates to the field of computer technology, and in particular, to a method for revoking resources, a method, apparatus, and medium for revoking resources.
Background
Instant Messaging (IM) is a real-time communication system that allows two or more people to communicate using a network to transmit text messages, files, voice, video, etc. in real time.
Most instant messaging applications integrate resource class (e.g., red envelope class) programs to enable publishing/retrieving resources (e.g., red envelopes) in the instant messaging application. For example, a red packet is sent in an instant conversation window with a correspondent buddy, or a red packet is sent/robbed in a group conversation window. And after the red envelope is released, the red envelope can be received by the user, and if the red envelope is not received within 24 hours, the money of the red envelope is automatically returned to the user releasing the red envelope. Such resource distribution and acquisition modes are widely used in life, become user habits, and become the design inertia in the field.
Disclosure of Invention
The embodiment of the application provides a method for withdrawing resources, equipment and a medium.
In a first aspect, some embodiments of the present application provide a method for revoking resources, which is applied to a server, and the method includes: responding to a resource publishing request submitted by a first terminal and used for publishing resources in an instant session with a second terminal, transferring the resources requested to be published from a user account of the first terminal to an intermediate account, and pushing an instant session message used for drawing the resources to the second terminal in the instant session with the first terminal so that the second terminal presents the instant session message in the instant session; in response to receiving a resource withdrawal request submitted by a first terminal, confirming whether the resource is picked up; if the resource is not picked up, transferring the resource from the intermediate account back to the user account of the first terminal, and after the resource is successfully transferred back to the user account of the first terminal, sending a notification for indicating that the withdrawal is successful to the first terminal so that the first terminal updates or withdraws the display of the instant session message in the instant session; and if the resource is picked up, sending a notice for indicating the resource revocation failure to the first terminal.
In a second aspect, some embodiments of the present application provide a method for revoking resources, applied to a first terminal, the method including: sending a resource publishing request for publishing resources in the instant session with the second terminal to the server, so that the server transfers the resources requested to be published from a user account of the first terminal to an intermediate account and pushes an instant session message for getting the resources to the second terminal in the instant session with the first terminal; presenting an instant session message in an instant session; sending a resource withdrawal request to the server to request the server to transfer the resource back to the user account of the first terminal when the resource is not picked up; and receiving and presenting a notice which is sent by the server end in response to the successful transfer of the resource back to the user account of the first terminal and used for indicating the success of the withdrawal and updating or withdrawing the display of the instant session message in the instant session, or receiving a notice which is sent by the server end in response to the resource being picked up and used for indicating the failure of the withdrawal of the resource.
In a third aspect, some embodiments of the present application provide a method for revoking resources, applied to a second terminal, the method including: receiving instant conversation information which is pushed by a server and used for getting resources issued by a first terminal which carries out instant conversation with a second terminal, and presenting the instant conversation information in the instant conversation; in response to receiving the notification indicating that the resource has been revoked, the display of the instant session message in the instant session is updated or revoked.
In a fourth aspect, some embodiments of the present application provide a method for refunding resources, which is applied to a server, and the method includes: responding to a resource publishing request submitted by a first terminal and used for publishing resources in an instant session with a second terminal, transferring the resources requested to be published from a user account of the first terminal to an intermediate account, and pushing an instant session message used for drawing the resources to the second terminal in the instant session with the first terminal so that the second terminal presents the instant session message in the instant session; receiving a resource refund request submitted by a second terminal and used for refunding at least part of the resources, wherein the refund amount indicated by the resource refund request is less than or equal to the total amount of the resources; a fallback operation is performed on at least part of the resource based on the resource fallback request.
In a fifth aspect, some embodiments of the present application provide a method for refunding resources, which is applied to a first terminal, and includes: receiving instant conversation information which is pushed by a server and used for getting resources issued by a first terminal which carries out instant conversation with a second terminal, and presenting the instant conversation information in the instant conversation; in response to detecting a resource refund operation for the resource, generating a resource refund request, wherein the refund amount indicated by the resource refund request is less than or equal to the total amount of the resource; sending a resource refund request to the server to request the server to perform a refund operation on at least part of the resource based on the resource refund request; in response to receiving the notification indicating that the at least partial fallback of the resource was successful, updating or revoking the display of the instant session message in the instant session.
In a sixth aspect, some embodiments of the present application provide a method for refunding resources, which is applied to a second terminal, and the method includes: sending a resource publishing request for publishing resources in the instant session with the second terminal to the server, so that the server transfers the resources requested to be published from a user account of the first terminal to an intermediate account, and pushing an instant session message for getting the resources to the second terminal in the instant session with the first terminal; presenting an instant session message in an instant session; in response to receiving the notification indicating that the resource is at least partially refunded, the display of the instant session message in the instant session is updated or revoked.
In a seventh aspect, some embodiments of the present application provide an electronic device, including: one or more processors; a storage device having one or more programs stored thereon which, when executed by one or more processors, cause the one or more processors to implement the method as described in any of the first to sixth aspects.
In an eighth aspect, some embodiments of the present application provide a computer readable medium having stored thereon a computer program which, when executed by a processor, implements the method as described in any of the first to sixth aspects.
The method, the device and the medium for revoking the resource provided by the above embodiments of the present application transfer the resource requested to be published from the user account of the first terminal to the intermediate account and push the instant session message for picking up the resource to the second terminal when receiving the resource publishing request submitted by the first terminal and used for publishing the resource in the instant session with the second terminal, and then transfer the resource from the intermediate account back to the user account of the first terminal and send a notification of successful revocation to the first terminal when receiving the resource revocation request of the first terminal and when the resource is not picked up. The scheme provided by the embodiment breaks through the thinking/design inertia in the field, so that the resource can be withdrawn in time when the resource publishing user finds that the amount of the published resource is not right or the published resource is wrongly published, and the resource loss of the resource publishing user is avoided.
In addition, according to the method, the device, and the medium for refunding the resource provided in the embodiments of the present application, when a resource publishing request submitted by the first terminal and used for publishing the resource in an instant session with the second terminal is received, the resource requested to be published is transferred from the user account of the first terminal to the intermediate account and an instant session message for getting the resource is pushed to the second terminal, and then a resource refund request submitted by the second terminal and used for refunding at least part of the resource is received, and a resource refund operation is performed on at least part of the resource based on the resource refund request. The scheme provided by the embodiment breaks through the thinking/design inertia in the field, so that the resources can be returned to the opposite side when the user does not want to obtain the resources published by the opposite side, or partial resources can be returned to the opposite side when the user does not want to completely obtain the resources, and partial resource obtaining is realized.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram to which some embodiments of the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a method for revoking resources according to the present application;
3A-3D are schematic diagrams of one application scenario of a method for revoking resources according to the present application;
FIG. 4 is a flow diagram of another embodiment of a method for revoking resources according to the present application;
FIG. 5 is a flow diagram of yet another embodiment of a method for revoking resources according to the present application;
FIG. 6 is a flow diagram for one embodiment of a method for refunding resources according to the present application;
FIGS. 7A-7D are schematic diagrams of an application scenario of a method for refunding resources according to the present application;
FIG. 8 is a flow diagram of another embodiment of a method for refunding resources according to the present application;
FIG. 9 is a flow diagram of yet another embodiment of a method for refunding resources according to the present application;
FIG. 10 is a schematic diagram of an electronic device suitable for use in implementing some embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
FIG. 1 illustrates an exemplary system architecture 100 to which embodiments of the method for revoking resources or the method for returning resources of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include terminals 101, 102, 103, a network 104, and a server 105. The network 104 serves to provide a medium for communication links between the terminals 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may use the terminals 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminals 101, 102, 103 may have installed thereon various communication client applications, such as an instant messenger, a social application, a browser application, a shopping-like application, a search-like application, a mailbox client, and the like.
The terminals 101, 102, 103 may be hardware or software. When the terminals 101, 102, 103 are hardware, they may be various electronic devices supporting instant messaging, including but not limited to smart phones, tablet computers, Personal Digital Assistants (PDAs), in-car terminals, laptop and desktop computers, and the like. When the terminals 101, 102, 103 are software, they can be installed in the electronic devices listed above. It may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The server 105 may be a server providing various services, such as a background server providing support for instant messaging applications running on the terminals 101, 102, 103. The backend server may process the received data of the resource publishing request, the resource revoking request, the resource returning request, and the like, and feed back the processing result to the terminal 101, 102, 103 (e.g., push an instant session message for getting up the resource to the terminal 101, 102, 103, or send a notification of success of resource revoking/returning to the terminal 101, 102, 103).
The server 105 may be hardware or software. When the server 105 is hardware, it may be implemented as a distributed server cluster composed of multiple servers, or may be implemented as a single server. When the server 105 is software, it may be implemented as multiple pieces of software or software modules (e.g., software or software modules for providing distributed services) or as a single piece of software or software module. And is not particularly limited herein.
It should be noted that the method for revoking resources provided in the embodiment of the present application may be executed by the terminals 101, 102, and 103, or may be executed by the server 105. The method for returning back the resource provided by the embodiment of the application can be executed by the terminals 101, 102, 103, or the server 105.
It should be understood that the number of terminals, networks and servers in fig. 1 is merely illustrative. There may be any suitable number of terminals, networks, and servers, as desired for an implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a method for revoking resources in accordance with the present application is shown. The method for withdrawing the resources can be applied to a server, and can comprise the following steps 201-204:
step 201, in response to receiving a resource publishing request submitted by a first terminal and used for publishing resources in an instant session with a second terminal, transferring the resources requested to be published from a user account of the first terminal to an intermediate account, and pushing an instant session message for retrieving the resources to the second terminal performing the instant session with the first terminal, so that the second terminal presents the instant session message in the instant session.
In this embodiment, an execution subject (e.g., the server 105 shown in fig. 1) of the method for revoking resources may receive a resource publishing request submitted by a first terminal (e.g., the terminals 101, 102, 103 shown in fig. 1) for publishing resources in an instant session with a second terminal (e.g., the terminals 101, 102, 103 shown in fig. 1). Wherein the first terminal and the second terminal may be two terminals that are conducting an instant session. Here, the first terminal may be described as a resource issuing side and the second terminal may be described as a resource receiving side. Wherein the resources may include virtual items that can be distributed over the internet. For example, resources may include, but are not limited to, red packs, coupons, vouchers, and the like.
After receiving the resource publishing request, the executing entity may transfer the resource requested to be published from the user account of the first terminal to an intermediate account (also referred to as a third party account). For example, a corresponding amount of resources is deducted from the user account and a corresponding amount of resources is added to the intermediate account.
When the resource transfer is completed (i.e. the resource requested to be published has been transferred from the user account of the first terminal to the intermediate account), the executing agent may push an instant session message (e.g. a red-envelope type instant session message) to the second terminal, where the instant session message is retrieved by the user, so that the second terminal may present the instant session message in an instant session with the first terminal.
In some optional implementation manners of this embodiment, the pushing the instant session message to the second terminal may specifically include the following steps:
first, the server sends a notification indicating completion of resource transfer to the first terminal. The first terminal may be configured to generate an instant session message for drawing the resource after receiving the notification indicating that the resource transfer is completed, and send the generated instant session message to the server (and present the instant session message in an instant session with the second terminal).
Then, the server receives the instant session message sent by the first terminal.
And finally, the server side pushes the received instant session message to the second terminal.
As can be seen from this implementation manner, the instant session message may be generated by the first terminal, but the present application is not limited thereto. For example, the instant session message may be generated by the server.
In some optional implementation manners of this embodiment, the pushing the instant session message to the second terminal may specifically include the following steps:
first, the server may generate an instant session message for retrieving the above resources.
Then, the server may push the generated instant session message to the first terminal and the second terminal, respectively.
In some optional implementations of the embodiment, the server may include an order server, a payment server, and a push server that are physically separated from each other.
Wherein the order server may be configured to: generating a resource order based on the resource publishing request and sending the generated resource order to a payment server; and, revoking the resource order based on the resource revocation request.
The payment server may be configured to: transferring the resource from the user account of the first terminal to an intermediate account based on the resource order; and transferring the resource from the intermediate account back to the user account of the first terminal based on the resource revocation request when the resource is not picked up.
And the push server may be configured to: an instant session message (e.g., an instant session message for drawing resources) is pushed to a terminal (the first terminal and/or the second terminal).
In this implementation, by generating the order, completing the payment, and pushing the message by different servers, respectively, the security and stability of the resource can be guaranteed.
In some optional implementations of the embodiment, the instant session may be a one-to-one session (for example, a one-to-one session performed between the user "zhangsan" of the first terminal and the user "liquad" of the second terminal), or may be a multi-person session composed of three or more members (for example, the user "zhangsan" of the first terminal and the user "liquad" of the second terminal are both group members of the multi-person session).
Step 202, in response to receiving the resource revocation request submitted by the first terminal, determining whether the resource has been picked up.
In this embodiment, after the user of the first terminal issues the resource, if it is found that the issued resource amount is not correct (for example, originally the user wants to issue an 8.8-tuple red packet, and as a result, a decimal point is missed and the user issues an 88-tuple red packet) or the object is wrongly issued (for example, originally the user "liquad" red packet is issued, but the user "wang wu" red packet is issued), a resource revoke request may be submitted to the server to request the server to revoke the resource issued in step 201.
An executing entity (for example, the server 105 shown in fig. 1) of the method for revoking resources may confirm whether the resource issued in step 201 has been picked up by the user of the second terminal after receiving the resource revocation request submitted by the first terminal. If the resource is not picked up, step 203 may be executed, otherwise step 204 may be executed.
And 203, if the resource is not picked up, transferring the resource from the intermediate account back to the user account of the first terminal, and after the resource is successfully transferred back to the user account of the first terminal, sending a notification indicating that the withdrawal is successful to the first terminal.
In this embodiment, if it is determined in step 202 that the resource is not picked up by the user of the second terminal, the executing entity (e.g., the server 105 shown in fig. 1) of the method for revoking the resource may first transfer the resource from the intermediate account back to the user account of the first terminal, and then send a notification indicating that the revocation was successful (e.g., a notification that the "red envelope was revoked") to the first terminal after the resource was successfully transferred back to the user account of the first terminal. Wherein the first terminal may be further configured to: updating or revoking the display of the instant session message for drawing resources in the instant session with the second terminal. For example, the instant session message is updated to "resource revoked" in the instant session between the first terminal and the second terminal, or the display of the instant session message in the instant session is revoked.
Optionally, the executing entity may further send a notification indicating that the revocation was successful (e.g., a notification that the "red envelope has been revoked") to the second terminal after the resource is successfully transferred back to the user account of the first terminal. Wherein the second terminal may be further configured to: updating or revoking the display of the instant session message for drawing resources in the instant session with the first terminal.
Step 204, if the resource is already picked up, sending a notification for indicating the resource withdrawal failure to the first terminal.
In this embodiment, if step 202 determines that the resource has been picked up by the user of the second terminal, that is, the resource has been transferred from the intermediate account to the user account of the second terminal, it means that the resource cannot be withdrawn. In this case, the execution subject of the method for revoking resources (e.g., the server 105 shown in fig. 1) may send a notification indicating that the revocation of resources failed (e.g., a notification of "red packet revocation failure") to the first terminal.
With continued reference to fig. 3A-3D, there is shown a schematic diagram of an application scenario of the method for revoking resources according to the present embodiment. In this application scenario, first, as shown in fig. 3A, a user "zhang san" sends a red envelope issue request to a server 302 through an IM application (not shown) using a handset 301. The server 302 transfers funds from the user account of the cell phone 301 (i.e., the user account of user "zhang san") to an intermediate account, generates an instant session message 306 for drawing a red envelope and pushes it to the cell phone 303. Thus, an instant session message 306 is displayed in both the instant session interface of the handset 301 and the instant session interface of the handset 303, as shown in fig. 3B. At this point, the user "zhang san" finds that the just issued red envelope is not in the correct amount, wants to withdraw the red envelope, and then long presses the instant session message 306 with the finger 304 and clicks the "withdraw" option 305, which pops up, to initiate a red envelope withdrawal request to the server 302. Next, as shown in fig. 3C, after receiving the red packet withdrawal request, the server 302 determines that the red packet has not been picked up by the user "lie four", and then transfers the funds from the intermediate account back to the user account of the user "zhang three", and sends a red packet withdrawal notification indicating that the red packet withdrawal is successful to the mobile phone 301 and the mobile phone 303, respectively. Finally, as shown in fig. 3D, after receiving the red packet revocation notification, the mobile phone 301 and the mobile phone 303 respectively update the instant session message 306 in the instant session interface to the display prompt 307 ("red packet revoked").
According to the method for withdrawing the resources provided by the embodiment of the application, when a resource issuing request which is submitted by a first terminal and used for issuing the resources in an instant session with a second terminal is received, the resources which are requested to be issued are transferred from a user account of the first terminal to an intermediate account and an instant session message for picking up the resources is pushed to the second terminal, and then when the resource withdrawing request of the first terminal is received and the resources are not picked, the resources are transferred from the intermediate account back to the user account of the first terminal and a notification of successful withdrawal is sent to the first terminal, so that the resources can be withdrawn in time when the resource issuing user finds that the amount of the issued resources is not correct or an object which is wrongly issued, and the resource loss of the resource issuing user is avoided.
With continued reference to FIG. 4, a flow 400 of another embodiment of a method for revoking resources in accordance with the present application is shown. The method for withdrawing resources can be applied to a first terminal, and can comprise the following steps 401-404:
step 401, sending a resource publishing request for publishing resources in the instant session with the second terminal to the server.
In this embodiment, the execution subject (e.g., the terminal 101, 102, 103 shown in fig. 1) of the method for revoking resources may send a resource publishing request for publishing resources in an instant session with a second terminal (e.g., the terminal 101, 102, 103 shown in fig. 1) to a server (e.g., the server 105 shown in fig. 1). Wherein the second terminal may be a terminal in an instant session with the first terminal. The resources may include virtual goods that can be distributed over the internet. For example, resources may include, but are not limited to, red packs, coupons, vouchers, and the like.
Wherein the server may be configured to: and transferring the resource requested to be issued from the user account of the first terminal to an intermediate account, and pushing an instant session message for picking up the resource to a second terminal which carries out instant session with the first terminal.
Here, the instant session message may be generated by the server after completing the resource transfer, or may be generated by the first terminal after completing the resource transfer by the server.
Step 402, presenting the instant session message in the instant session.
In this embodiment, the executing entity of the method for revoking resources (e.g., the terminals 101, 102, 103 shown in fig. 1) may present the instant session message in an instant session with the second terminal. As an example, the first terminal may first receive an instant session message generated by the server after completing the resource transfer and used for retrieving the resource, and then present the instant session message directly in an instant session with the second terminal.
In some optional implementation manners of this embodiment, when the instant session message is generated by the first terminal, step 402 may specifically include the following steps:
first, in response to receiving a notification sent by a server and used for indicating the completion of resource transfer from a user account of a first terminal to an intermediate account, an instant session message for drawing the resources is generated.
And then, presenting the generated instant session message in the instant session, and sending the instant session message to the server, so that the server pushes the instant session message to the second terminal (so that the instant session message can be presented in the instant session between the second terminal and the first terminal).
Step 403, sending a resource withdrawal request to the server, so as to request the server to transfer the resource back to the user account of the first terminal when the resource is not picked up.
In this embodiment, after the user of the first terminal issues the resource, if it is found that the issued resource amount is not correct (for example, originally the user wants to issue an 8.8-tuple red packet, and as a result, a decimal point is missed and the user issues an 88-tuple red packet) or the user has wrongly issued the resource (for example, originally the user "lie four" emits a red packet, and then the user "wang five" emits a red packet), the resource withdrawal operation may be triggered. The resource withdrawal operation may include: and presetting operation of the instant conversation message by the user. For example, the resource revocation operations described above may include, but are not limited to: and selecting an option for indicating rejection from the popped options after clicking/long pressing the instant session message, pressing the instant session message to execute a sliding operation, sliding for a distance exceeding a preset distance and the like.
If a user-triggered resource revocation operation is detected, an executing entity (e.g., the terminals 101, 102, 103 shown in fig. 1) of the method for revoking resources may send a resource revocation request to the server to request the server to transfer the resources back to the user account of the first terminal when the resources are not picked up by the user of the second terminal.
And step 404, receiving and presenting a notification which is sent by the server end in response to the successful transfer of the resource back to the user account of the first terminal and used for indicating the success of the withdrawal, and updating or withdrawing the display of the instant session message in the instant session, or receiving and presenting a notification which is sent by the server end in response to the resource being picked up and used for indicating the failure of the withdrawal of the resource.
In this embodiment, an executing entity (e.g., the terminals 101, 102, 103 shown in fig. 1) of the method for revoking resources may receive a notification sent by a server to indicate whether the revocation of resources is successful.
If the resource is not yet picked up by the user of the second terminal, the executing agent may receive a notification indicating that the revocation is successful, which is sent by the server in response to the successful transfer of the resource back to the user account of the first terminal, and update or revoke the display of the instant session message in the instant session after receiving the notification. For example, the instant session message is updated to "resource revoked" in the instant session between the first terminal and the second terminal, or the display of the instant session message in the instant session is revoked.
If the resource has been picked up by the user of the second terminal, i.e. the resource has been transferred from the intermediate account to the user account of the second terminal, this means that the resource cannot be revoked. In this case, the execution agent may receive a notification sent by the server to indicate the resource revocation failure, and present the notification content or the prompt information corresponding to the notification in the instant session.
According to the method for withdrawing the resources, the resource issuing request for issuing the resources in the instant session with the second terminal is sent to the server, the instant session message for the other side to pick up the resources is presented in the instant session, then the resource withdrawing request is sent to the server to request the server to transfer the resources from the intermediate account back to the user account of the first terminal when the resources are not picked up, and finally the notification which is sent by the server and used for indicating the success of the resource withdrawing is received and the display of the instant session message is updated or withdrawn in the instant session, so that the resources can be withdrawn in time when the resource issuing user finds that the issued resource amount is not right or an object which is wrongly issued, and the resource loss of the resource issuing user is avoided.
With continued reference to FIG. 5, a flow 500 of yet another embodiment of a method for revoking resources in accordance with the present application is shown. The method for withdrawing resources can be applied to a second terminal, and can comprise the following steps 501-502:
step 501, receiving an instant session message pushed by a server and used for retrieving a resource issued by a first terminal performing an instant session with a second terminal, and presenting the instant session message in the instant session.
In this embodiment, the executing entity (e.g., the terminals 101, 102, 103 shown in fig. 1) of the method for revoking resources may first receive an instant session message pushed by a server (e.g., the server 105 shown in fig. 1) for retrieving resources published by a first terminal (e.g., the terminals 101, 102, 103 shown in fig. 1) in an instant session with a second terminal, and then present the instant session message in the instant session with the first terminal.
The instant session message may be pushed by the server to the second terminal after the server transfers the resource requested to be published from the user account of the first terminal to the intermediate account in response to receiving the resource publishing request submitted by the first terminal.
Here, the first terminal may be a terminal that performs an instant session with the second terminal. The resources may include virtual goods that can be distributed over the internet. For example, resources may include, but are not limited to, red packs, coupons, vouchers, and the like.
Step 502, in response to receiving a notification indicating that the resource has been revoked, updates or revokes the display of the instant session message in the instant session.
In this embodiment, the executing entity (e.g., the terminals 101, 102, 103 shown in fig. 1) of the method for revoking resources may update or revoke the display of the instant session message in the instant session with the first terminal when receiving the notification indicating that the resource has been revoked. For example, the instant session message is updated to "the resource is withdrawn" in the instant session between the second terminal and the first terminal, or the display of the instant session message in the instant session is withdrawn.
The notification may be sent by the server to the second terminal after the server transfers the resource from the intermediate account back to the user account of the first terminal when the resource is not received by the user of the second terminal in response to receiving the resource revocation request submitted by the first terminal.
According to the method for withdrawing the resources provided by the embodiment of the application, the instant session message which is pushed by the server and is used for drawing the resources released by the first terminal which has instant session with the second terminal is received, the instant session message is presented in the instant session, and then the display of the instant session message in the instant session is updated or withdrawn in response to the received notification for indicating that the resources are withdrawn, so that the resources can be withdrawn in time when the resource releasing user finds that the released resource amount is not right or an object is wrongly issued, and the resource loss of the resource releasing user is avoided.
With continued reference to FIG. 6, a flow 600 of one embodiment of a method for returning resources in accordance with the present application is shown. The method for returning back the resources can be applied to a server, and can comprise the following steps 601-603:
step 601, in response to receiving a resource publishing request submitted by a first terminal and used for publishing resources in an instant session with a second terminal, transferring the resources requested to be published from a user account of the first terminal to an intermediate account, and pushing an instant session message for getting the resources to the second terminal performing the instant session with the first terminal.
In this embodiment, an execution subject (e.g., the server 105 shown in fig. 1) of the method for returning back resources may receive a resource publishing request submitted by a first terminal (e.g., the terminals 101, 102, 103 shown in fig. 1) for publishing resources in an instant session with a second terminal (e.g., the terminals 101, 102, 103 shown in fig. 1). Wherein the first terminal and the second terminal may be two terminals that are conducting an instant session. Here, the first terminal may be described as a resource issuing side and the second terminal may be described as a resource receiving side. Wherein the resources may include virtual items that can be distributed over the internet. For example, resources may include, but are not limited to, red packs, coupons, vouchers, and the like.
After receiving the resource publishing request, the executing entity may transfer the resource requested to be published from the user account of the first terminal to an intermediate account (also referred to as a third party account). For example, a corresponding amount of resources is deducted from the user account and a corresponding amount of resources is added to the intermediate account.
When the resource transfer is completed (i.e. the resource requested to be published has been transferred from the user account of the first terminal to the intermediate account), the executing agent may push an instant session message (e.g. a red-envelope type instant session message) to the second terminal, where the instant session message is retrieved by the user, so that the second terminal may present the instant session message in an instant session with the first terminal.
In some optional implementation manners of this embodiment, the pushing the instant session message to the second terminal may specifically include the following steps:
first, the server sends a notification indicating completion of resource transfer to the first terminal. The first terminal may be configured to generate an instant session message for drawing the resource after receiving the notification indicating that the resource transfer is completed, and send the generated instant session message to the server (and present the instant session message in an instant session with the second terminal).
Then, the server receives the instant session message sent by the first terminal.
And finally, the server side pushes the received instant session message to the second terminal.
As can be seen from this implementation manner, the instant session message may be generated by the first terminal, but the present application is not limited thereto. For example, the instant session message may be generated by the server.
In some optional implementation manners of this embodiment, the pushing the instant session message to the second terminal may specifically include the following steps:
first, the server may generate an instant session message for retrieving the above resources.
Then, the server may push the generated instant session message to the first terminal and the second terminal, respectively.
In some optional implementations of the embodiment, the server may include an order server, a payment server, and a push server that are physically separated from each other.
Wherein the order server may be configured to: generating a resource order based on the resource publishing request and sending the generated resource order to a payment server; and, revoking the resource order based on the resource revocation request.
The payment server may be configured to: transferring the resource from the user account of the first terminal to an intermediate account based on the resource order; and transferring the resource from the intermediate account back to the user account of the first terminal based on the resource revocation request when the resource is not picked up.
And the push server may be configured to: an instant session message (e.g., an instant session message for drawing resources) is pushed to a terminal (the first terminal and/or the second terminal).
In this implementation, by generating the order, completing the payment, and pushing the message by different servers, respectively, the security and stability of the resource can be guaranteed.
Step 602, receiving a resource refund request submitted by the second terminal for refunding at least part of the resources.
In this embodiment, after receiving the instant session message for drawing the resource, if the user of the second terminal does not want to draw the resource or wants to draw only a part (e.g., half) of the resource, the user may submit a resource refund request to the server to request the server to refund at least a part of the resource.
An executing entity (e.g., the server 105 shown in fig. 1) of the method for revoking resources may receive a resource rollback request submitted by the second terminal for retiring at least part of the resources. Wherein, the refund amount indicated by the resource refund request can be less than or equal to the total amount of the resources. Here, the refund amount may be an amount of resources to be refunded to the user of the first terminal, which may be a relative numerical value (e.g., 50% of the above-described resources, etc.) or an absolute numerical value (e.g., 10 yuan, etc.).
Step 603, performing a fallback operation on at least part of the resources based on the resource fallback request.
In this embodiment, an executing entity (e.g., the server 105 shown in fig. 1) of the method for revoking resources may perform a fallback operation on at least part of the resources based on the resource fallback request received in step 602. Here, the fallback operation may refer to transferring at least part of the resource from the intermediate account back to the user account of the first terminal.
In some optional implementations of this embodiment, the refund amount may be less than the total amount of the resource (corresponding to a partial refund of the resource). In this case, step 602 may specifically include the following steps:
the first step is that the resource corresponding to the refund amount is refunded from the intermediate account to the user account of the first terminal, and a notice used for indicating that the resource is partially refunded is sent to the first terminal.
And secondly, transferring the resources corresponding to the earning amount from the intermediate account to a user account of the second terminal, and sending a notice for indicating that at least part of the resources are returned successfully to the second terminal. Wherein, the receiving amount may be equal to a difference between the total amount of the resource and the refund amount.
Although the above-described implementation describes performing the first step and the second step in sequence, the present application is not limited thereto. It should be understood that the first and second steps may also be performed in a different order than that described for the above implementation. For example, the first step and the second step may be performed simultaneously, or the second step may be performed first and then the first step may be performed.
In some optional implementations of this embodiment, the refund amount may be equal to the total amount of the resource (which is equivalent to refunding all of the resource). In this case, step 602 may specifically include the following steps:
first, all of the resources are returned from the intermediate account to the user account of the first terminal.
Then, a notification indicating that the resources are all returned is sent to the first terminal, and a notification indicating that the resources are all returned successfully is sent to the second terminal.
With continuing reference to FIGS. 7A-7D, a schematic diagram of an application scenario of the method for retiring a resource according to the present embodiment is shown. In this application scenario, first, as shown in fig. 7A, a user "zhang san" sends a red envelope issue request to a server 702 through an IM application (not shown) using a handset 701. The server 702 transfers funds from the user account of the cell phone 701 (i.e., the user account of user "zhang san") to an intermediate account, generates an instant session message 706 for drawing a red envelope and pushes to the cell phone 703. Thus, an instant conversation message 706 is displayed in both the instant conversation interface of the cell phone 701 and the instant conversation interface of the cell phone 703, as shown in fig. 7B. The user "lee four" does not want to pick up the red packet of three and wants to all return the red packet, and then long presses the instant session message 706 with the finger 704 and clicks the "reject" option in the pop-up return options 705 to initiate a red packet return request to the server 702. Next, as shown in fig. 7C, after receiving the red envelope refund request, the server 702 transfers all the funds of the red envelope from the intermediate account back to the user account of user "zhang san", and sends a red envelope refund notification indicating that the red envelope is refunded all/the red envelope refund is successful to the mobile phone 701 and the mobile phone 703, respectively. Finally, as shown in fig. 7D, after receiving the red packet return notification, the mobile phone 701 and the mobile phone 703 respectively update the instant session message 706 in the instant session interface to the display prompt 707 ("returned").
According to the method for returning back the resources, when a resource issuing request which is submitted by a first terminal and used for issuing the resources in an instant session with a second terminal is received, the resources which are requested to be issued are transferred to an intermediate account from a user account of the first terminal, an instant session message for getting the resources is pushed to the second terminal, then a resource returning request which is submitted by the second terminal and used for returning at least part of the resources is received, and a resource returning operation is executed on at least part of the resources based on the resource returning request, so that the resources can be returned to the opposite side when the user does not want to get the resources issued by the opposite side, or the resources can be returned to the opposite side when the user does not want to all the resources to be taken, and therefore partial resource getting is achieved.
With continued reference to FIG. 8, a flow 800 of one embodiment of a method for returning resources is shown in accordance with the present application. The method for returning back the resource can be applied to a second terminal, and can comprise the following steps 801-804:
step 801, receiving an instant session message pushed by a server and used for retrieving a resource issued by a first terminal performing an instant session with a second terminal, and presenting the instant session message in the instant session.
In this embodiment, an executing body (e.g., the terminals 101, 102, 103 shown in fig. 1) of the method for returning back resources may first receive an instant session message pushed by a server (e.g., the server 105 shown in fig. 1) and used for retrieving resources published by a first terminal (e.g., the terminals 101, 102, 103 shown in fig. 1) in an instant session with a second terminal, and then present the instant session message in the instant session with the first terminal.
The instant session message may be pushed by the server to the second terminal after the server transfers the resource requested to be published from the user account of the first terminal to the intermediate account in response to receiving the resource publishing request submitted by the first terminal.
Here, the first terminal may be a terminal that performs an instant session with the second terminal. The resources may include virtual goods that can be distributed over the internet. For example, resources may include, but are not limited to, red packs, coupons, vouchers, and the like.
Step 802, in response to detecting a resource fallback operation for a resource, a resource fallback request is generated.
In this embodiment, after receiving the instant session message, the user of the second terminal may trigger a resource fallback operation for the resource if the user does not want to retrieve the resource or wants to retrieve only a part (e.g., half) of the resource.
The executing entity (e.g., terminals 101, 102, 103 shown in fig. 1) of the method for revoking resources may detect the user's operation with respect to the resources. If the execution main body detects the resource returning operation of the user for the resource, a resource returning request can be generated. Wherein, the refund amount indicated by the resource refund request can be less than or equal to the total amount of the resources. Here, the refund amount may be an amount of resources to be refunded to the user of the first terminal, which may be a relative numerical value (e.g., 50% of the above-described resources, etc.) or an absolute numerical value (e.g., 10 yuan, etc.).
In some optional implementations of this embodiment, the resource refund operation for the resource may include a rejection operation for the resource, and the refund amount may be a total amount of the resource.
In some optional implementations of the present embodiment, the rejecting operation may include: presetting operation on the instant conversation message by a user; or the user triggers the control used for indicating the rejection of the resource at the resource receiving interface. For example, the rejection operations described above may include, but are not limited to: and selecting an option for indicating rejection from the popped options after clicking/long pressing the instant session message, pressing the instant session message to execute a sliding operation, sliding for a distance exceeding a preset distance and the like.
In some optional implementations of this embodiment, the resource refund operation for the resource may include a partial pickup operation for the resource. Corresponding to this implementation, the method for refunding resources may further include the steps of:
first, in response to detecting a partial earning operation by a user, a partial earning interface is presented. For example, after the user clicks the instant session message, a "partial pickup" option is selected from the pop-up options, and a partial pickup interface is presented.
And then receiving the receiving amount input by the user through the receiving interface. Here, the earning amount may be an amount of resources to be earned by the user of the first terminal, which may be a relative numerical value (e.g., 50% of the above-described resources, etc.) or an absolute numerical value (e.g., 10 yuan, etc.).
And then, if the pickup amount does not exceed the total amount of the resources, determining the difference value between the total amount of the resources and the pickup amount as a return amount. Conversely, if the pickup amount exceeds the total amount of the resource (e.g., the user may not know the total amount of the resource before picking up the resource and thus inputs a pickup amount greater than the total amount of the resource, for example, the total amount of the resource is 10 yuan and the input pickup amount is 15 yuan), the pickup amount may be rejected and the user may be prompted to re-input the pickup amount.
Step 803, the resource return request is sent to the server.
In this embodiment, the executing entity (e.g., the terminals 101, 102, 103 shown in fig. 1) of the method for revoking resources may send the resource rollback request generated in step 802 to the server to request the server to perform a rollback operation on at least part of the resources based on the resource rollback request (i.e., transfer at least part of the resources from the intermediate account back to the user account of the first terminal).
In response to receiving the notification indicating that the at least partial fallback of the resource was successful, the display of the instant session message in the instant session is updated or revoked, step 804.
In this embodiment, after the server performs the fallback operation, the server may send a notification indicating that at least part of the resources are successfully fallback to the second terminal.
If a notification indicating that at least partial fallback of the resource is successful is received, an executing entity of the method for revoking the resource (e.g., the terminals 101, 102, 103 shown in fig. 1) may update or revoke the display of the instant session message in an instant session with the first terminal. For example, the prompt for the instant session message in the instant session may be updated to "rejected" or the instant session message may be withdrawn from the instant session. For another example, the prompt of the instant session message in the instant session may be updated to "partially picked up" or "partially returned".
In the above example, the prompt of the instant session message is updated to be partially picked up or partially returned, but the embodiment is not limited thereto.
In some optional implementation manners of this embodiment, when the resource fallback operation is a partial pickup operation (or a partial fallback operation), step 804 may specifically include:
in response to receiving a notification indicating that the partial refund of the resource was successful, displaying an amount of partial earnings or partial refunds in the instant session. For example, "get 5-tuple, return 5-tuple" is displayed in the instant session.
In the implementation mode, the amount of partial earning or partial refund is directly displayed in the instant session, so that the user can conveniently and intuitively know the details of the partial earning without entering an earning page for viewing, and the operation of the user is simplified.
According to the method for returning back the resources, the instant session message which is pushed by the server and used for getting the resources issued by the first terminal in the instant session with the second terminal is received, the instant session message is presented in the instant session, the resource returning request is generated in response to the detection of the resource returning operation aiming at the resources and is sent to the server, and finally the display of the instant session message in the instant session is updated or withdrawn in response to the reception of the notification indicating that the resources are at least partially returned successfully, so that the resources can be returned to the opposite side when the user does not want to get the resources issued by the opposite side, or partial resources can be returned to the opposite side when the user does not want to all the resources to be taken, and partial resources are obtained.
With continued reference to FIG. 9, a flow 900 of one embodiment of a method for returning resources in accordance with the present application is shown. The method for returning back the resource can be applied to a first terminal, and can comprise the following steps 901-903:
step 901, sending a resource publishing request for publishing resources in the instant session with the second terminal to the server.
In this embodiment, an executing agent (e.g., the terminals 101, 102, 103 shown in fig. 1) of the method for returning back resources may send a resource publishing request for publishing resources in an instant session with a second terminal (e.g., the terminals 101, 102, 103 shown in fig. 1) to a server (e.g., the server 105 shown in fig. 1). Wherein the second terminal may be a terminal in an instant session with the first terminal. The resources may include virtual goods that can be distributed over the internet. For example, resources may include, but are not limited to, red packs, coupons, vouchers, and the like.
Wherein the server may be configured to: and transferring the resource requested to be issued from the user account of the first terminal to an intermediate account, and pushing an instant session message for picking up the resource to a second terminal which carries out instant session with the first terminal.
Here, the instant session message may be generated by the server after completing the resource transfer, or may be generated by the first terminal after completing the resource transfer by the server.
And step 902, presenting the instant session message in the instant session.
In this embodiment, the executing entity of the method for revoking resources (e.g., the terminals 101, 102, 103 shown in fig. 1) may present the instant session message in an instant session with the second terminal. As an example, the first terminal may first receive an instant session message generated by the server after completing the resource transfer and used for retrieving the resource, and then present the instant session message directly in an instant session with the second terminal.
In some optional implementation manners of this embodiment, when the instant session message is generated by the first terminal, step 902 may specifically include the following steps:
first, in response to receiving a notification sent by a server and used for indicating the completion of resource transfer from a user account of a first terminal to an intermediate account, an instant session message for drawing the resources is generated.
And then, presenting the generated instant session message in the instant session, and sending the instant session message to the server, so that the server pushes the instant session message to the second terminal (so that the instant session message can be presented in the instant session between the second terminal and the first terminal).
Step 903, in response to receiving the notification indicating that the resource is at least partially returned, updating or revoking the display of the instant session message in the instant session.
In this embodiment, after receiving the instant session message for drawing the resource, if the user of the second terminal does not want to draw the resource or wants to draw only a part (e.g., half) of the resource, the user may submit a resource refund request to the server to request the server to refund at least a part of the resource. After the service end performs the fallback operation on at least part of the resources, the service end may send a notification indicating that the resources are at least partially fallback to the first terminal.
If a notification indicating that the resource is at least partially retired is received, an executing entity (e.g., terminals 101, 102, 103 shown in fig. 1) of the method for revoking the resource may update or revoke the display of the instant session message in an instant session with a second terminal. For example, the prompt for the instant session message in the instant session may be updated to "resource denied," or the instant session message may be withdrawn from the instant session. For another example, the prompt of the instant session message in the instant session may be updated to "resource is partially picked up" or "resource is partially retired".
In the above example, it is described that the prompt of the instant session message is updated to be partially picked up or partially returned, but the embodiment is not limited thereto.
In some optional implementation manners of this embodiment, when the resource fallback operation is a partial pickup operation (or a partial fallback operation), step 903 may specifically include:
in response to receiving a notification indicating that the resource is partially picked up or partially retired, displaying an amount of the partial pickup or partial retirement in the instant session. For example, it shows "resources have been picked up 5-tuple, retired 5-tuple" in an instant session.
According to the method for returning back the resources, the resource issuing request for issuing the resources in the instant session with the second terminal is sent to the server side, the instant session message for getting back the resources is presented in the instant session, and then the display of the instant session message in the instant session is updated or withdrawn in response to the fact that the notification for indicating that the resources are at least partially returned is received, so that the resources can be returned to the opposite side when the user does not want to get the resources issued by the opposite side, or partial resources can be returned to the opposite side when the user does not want to get all the resources, and partial resources are accordingly achieved.
Referring now to fig. 10, shown is a schematic diagram of an electronic device (e.g., the terminal 101, 102, 103 or the server 105 shown in fig. 1) 1000 suitable for implementing some embodiments of the present application. The electronic device 1000 shown in fig. 10 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 10, the electronic device 1000 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 1001 that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)1002 or a program loaded from a storage means 1008 into a Random Access Memory (RAM) 1003. In the RAM 1003, various programs and data necessary for the operation of the electronic apparatus 1000 are also stored. The processing device 1001, the ROM 1002, and the RAM 1003 are connected to each other by a bus 1004. An input/output (I/O) interface 1005 is also connected to bus 1004.
Generally the following devices may be connected to the I/O interface 1005: an input device 1006 including, for example, a touch screen, keys, etc.; an output device 1007 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; a storage device 1008 including, for example, a memory card or the like; and a communication device 1009. The communication device 1009 may allow the electronic device 1000 to communicate with other devices wirelessly or by wire to exchange data. While fig. 10 illustrates an electronic device 1000 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 10 may represent one device or may represent multiple devices as desired.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 1009, or installed from the storage means 1008, or installed from the ROM 1002. The computer program, when executed by the processing device 1001, performs the above-described functions defined in the methods of the embodiments of the present disclosure. It should be noted that the computer readable medium in the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In embodiments of the present disclosure, however, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be included in the server, the first terminal or the second terminal; or may exist separately and not be installed in the server, the first terminal or the second terminal. The computer readable medium carries one or more programs which, when executed by the server, cause the server to: responding to a resource publishing request submitted by a first terminal and used for publishing resources in an instant session with a second terminal, transferring the resources requested to be published from a user account of the first terminal to an intermediate account, and pushing an instant session message used for drawing the resources to the second terminal in the instant session with the first terminal so that the second terminal presents the instant session message in the instant session; in response to receiving a resource withdrawal request submitted by a first terminal, confirming whether the resource is picked up; if the resource is not picked up, transferring the resource from the intermediate account back to the user account of the first terminal, and after the resource is successfully transferred back to the user account of the first terminal, sending a notification for indicating that the withdrawal is successful to the first terminal so that the first terminal updates or withdraws the display of the instant session message in the instant session; and if the resource is picked up, sending a notice for indicating the resource revocation failure to the first terminal. The one or more programs, when executed by the first terminal, cause the first terminal to: sending a resource publishing request for publishing resources in the instant session with the second terminal to the server, so that the server transfers the resources requested to be published from a user account of the first terminal to an intermediate account and pushes an instant session message for getting the resources to the second terminal in the instant session with the first terminal; presenting an instant session message in an instant session; sending a resource withdrawal request to the server to request the server to transfer the resource back to the user account of the first terminal when the resource is not picked up; and receiving and presenting a notice which is sent by the server end in response to the successful transfer of the resource back to the user account of the first terminal and used for indicating the success of the withdrawal and updating or withdrawing the display of the instant session message in the instant session, or receiving a notice which is sent by the server end in response to the resource being picked up and used for indicating the failure of the withdrawal of the resource. The one or more programs, when executed by the second terminal, cause the second terminal to: receiving instant conversation information which is pushed by a server and used for getting resources issued by a first terminal which carries out instant conversation with a second terminal, and presenting the instant conversation information in the instant conversation; in response to receiving the notification indicating that the resource has been revoked, the display of the instant session message in the instant session is updated or revoked.
Or, when the one or more programs are executed by the server, the server is enabled to: responding to a resource publishing request submitted by a first terminal and used for publishing resources in an instant session with a second terminal, transferring the resources requested to be published from a user account of the first terminal to an intermediate account, and pushing an instant session message used for drawing the resources to the second terminal in the instant session with the first terminal so that the second terminal presents the instant session message in the instant session; receiving a resource refund request submitted by a second terminal and used for refunding at least part of the resources, wherein the refund amount indicated by the resource refund request is less than or equal to the total amount of the resources; a fallback operation is performed on at least part of the resource based on the resource fallback request. The one or more programs, when executed by the second terminal, cause the second terminal to: receiving instant conversation information which is pushed by a server and used for getting resources issued by a first terminal which carries out instant conversation with a second terminal, and presenting the instant conversation information in the instant conversation; in response to detecting a resource refund operation for the resource, generating a resource refund request, wherein the refund amount indicated by the resource refund request is less than or equal to the total amount of the resource; sending a resource refund request to the server to request the server to perform a refund operation on at least part of the resource based on the resource refund request; in response to receiving the notification indicating that the at least partial fallback of the resource was successful, updating or revoking the display of the instant session message in the instant session. The one or more programs, when executed by the first terminal, cause the first terminal to: sending a resource publishing request for publishing resources in the instant session with the second terminal to the server, so that the server transfers the resources requested to be published from a user account of the first terminal to an intermediate account, and pushing an instant session message for getting the resources to the second terminal in the instant session with the first terminal; presenting an instant session message in an instant session; in response to receiving the notification indicating that the resource is at least partially refunded, the display of the instant session message in the instant session is updated or revoked.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is possible without departing from the inventive concept as defined above. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (19)

1. A method for withdrawing resources, applied to a server, the method comprising:
in response to receiving a resource publishing request submitted by a first terminal and used for publishing resources in an instant session with a second terminal, transferring the resources requested to be published from a user account of the first terminal to an intermediate account, and pushing an instant session message for getting the resources to the second terminal in the instant session with the first terminal so that the second terminal can present the instant session message in the instant session;
in response to receiving a resource revocation request submitted by the first terminal, confirming whether the resource is already picked up;
if the resource is not picked up, transferring the resource from the intermediate account back to the user account of the first terminal, and after the resource is successfully transferred back to the user account of the first terminal, sending a notification indicating that the withdrawal is successful to the first terminal so that the first terminal updates or withdraws the display of the instant session message in the instant session;
and if the resource is picked up, sending a notice for indicating the resource revocation failure to the first terminal.
2. The method of claim 1, wherein pushing an instant session message for drawing the resource to the second terminal in an instant session with the first terminal comprises:
sending a notification for indicating the completion of resource transfer to the first terminal so that the first terminal generates an instant session message for getting the resource;
receiving the instant session message sent by the first terminal;
and pushing the instant session message to the second terminal which carries out instant session with the first terminal.
3. The method of claim 1, wherein pushing an instant session message for drawing the resource to the second terminal in an instant session with the first terminal comprises:
generating an instant session message for retrieving the resource;
and pushing the instant session message to the first terminal and the second terminal performing instant session with the first terminal.
4. The method of claim 1, wherein the server comprises an order server, a payment server, and a push server, wherein:
the order server is configured to generate a resource order based on the resource issuance request and send the resource order to the payment server, and to revoke the resource order based on the resource revocation request;
the payment server is configured to transfer the resource from the user account of the first terminal to the intermediate account based on the resource order, and to transfer the resource from the intermediate account back to the user account of the first terminal based on the resource withdrawal request when the resource is not picked up;
the push server is configured to push instant session messages to the terminal.
5. The method according to one of claims 1 to 4, wherein the instant session between the first terminal and the second terminal is a one-to-one session or a multi-person session.
6. A method for revoking resources, applied to a first terminal, the method comprising:
sending a resource publishing request for publishing resources in an instant session with a second terminal to a server, so that the server transfers the resources requested to be published from a user account of the first terminal to an intermediate account and pushes an instant session message for getting the resources to the second terminal performing the instant session with the first terminal;
presenting the instant session message in the instant session;
sending a resource revocation request to the server to request the server to transfer the resource back to a user account of the first terminal when the resource is not picked up;
and receiving and presenting a notification which is sent by the server end in response to the resource being successfully transferred back to the user account of the first terminal and used for indicating the success of withdrawal, and updating or withdrawing the display of the instant session message in the instant session, or receiving and presenting a notification which is sent by the server end in response to the resource being picked up and used for indicating the failure of withdrawal of the resource.
7. The method of claim 6, wherein said presenting the instant session message in the instant session comprises:
in response to receiving a notification sent by the server and used for indicating that the resource transfer from the user account of the first terminal to the intermediate account is completed, generating an instant session message for drawing the resource;
and presenting the instant session message in the instant session, and sending the instant session message to the server so that the server pushes the instant session message to the second terminal.
8. A method for revoking resources, applied to a second terminal, the method comprising:
receiving instant session information which is pushed by the server and used for retrieving resources issued by a first terminal which carries out instant session with the second terminal, and presenting the instant session information in the instant session;
updating or revoking display of the instant session message in the instant session in response to receiving a notification indicating that the resource has been revoked.
9. A method for returning resources, applied to a server, the method comprising:
in response to receiving a resource publishing request submitted by a first terminal and used for publishing resources in an instant session with a second terminal, transferring the resources requested to be published from a user account of the first terminal to an intermediate account, and pushing an instant session message for getting the resources to the second terminal in the instant session with the first terminal so that the second terminal can present the instant session message in the instant session;
receiving a resource refund request submitted by the second terminal and used for refunding at least part of the resources, wherein the refund amount indicated by the resource refund request is less than or equal to the total amount of the resources;
performing a fallback operation on the at least part of the resource based on the resource fallback request.
10. The method of claim 9, wherein the refund amount is less than the total amount of the resource, and
said performing a fallback operation on the at least part of the resource based on the resource fallback request comprises:
refunding the resource corresponding to the refund amount from the intermediate account to a user account of the first terminal, and sending a notification for indicating that the resource is partially refunded to the first terminal;
transferring the resource corresponding to the pickup amount from the intermediate account to a user account of the second terminal, and sending a notification for indicating that the at least part of the refund of the resource is successful to the second terminal, wherein the pickup amount is equal to a difference value between the total amount of the resource and the refund amount.
11. The method of claim 9, wherein the refund amount is equal to the total amount of the resource, and
said performing a fallback operation on the at least part of the resource based on the resource fallback request comprises:
refunding all of the resource from the intermediate account to a user account of the first terminal;
and sending a notification for indicating that the resources are all returned to the first terminal, and sending a notification for indicating that the resources are all returned successfully to the second terminal.
12. A method for refunding resources, applied to a second terminal, the method comprising:
receiving instant session information which is pushed by the server and used for retrieving resources issued by a first terminal which carries out instant session with the second terminal, and presenting the instant session information in the instant session;
in response to detecting a resource refund operation for the resource, generating a resource refund request, the resource refund request indicating a refund amount that is less than or equal to a total amount of the resource;
sending the resource refund request to the server to request the server to perform a refund operation on at least part of the resource based on the resource refund request;
in response to receiving a notification indicating that the at least partial fallback of the resource was successful, updating or revoking display of the instant session message in the instant session.
13. The method of claim 12, wherein the resource refund operation for the resource comprises a rejection operation for the resource, and wherein the refund amount is a total amount of the resource.
14. The method of claim 13, wherein the rejecting operation comprises:
the user performs preset operation on the instant session message; or
And the user triggers a control for indicating the rejection of the resource on the resource getting interface.
15. The method of claim 12, wherein the resource fallback operation for the resource comprises a partial pickup operation for the resource, the method further comprising:
in response to detecting the partial pickup operation by the user, presenting a partial pickup interface;
receiving a pickup amount input by the user through the pickup interface;
and if the receiving amount does not exceed the total amount of the resources, determining the difference value between the total amount of the resources and the receiving amount as the return amount.
16. The method of claim 12, wherein updating or revoking the display of the instant session message in the instant session in response to receiving the notification indicating that the at least partial fallback of the resource was successful comprises:
in response to receiving a notification indicating that the partial refund of the resource was successful, displaying an amount of partial earnings or partial refunds in the instant session.
17. A method for refunding resources, applied to a first terminal, the method comprising:
sending a resource publishing request for publishing resources in an instant session with a second terminal to a server, so that the server transfers the resources requested to be published from a user account of the first terminal to an intermediate account, and pushes an instant session message for getting the resources to the second terminal performing the instant session with the first terminal;
presenting the instant session message in the instant session;
in response to receiving a notification indicating that the resource is at least partially refunded, updating or revoking display of the instant session message in the instant session.
18. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-17.
19. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-17.
CN201910994764.XA 2019-10-18 2019-10-18 Method for revoking resources, method, apparatus and medium for refunding resources Pending CN110719222A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910994764.XA CN110719222A (en) 2019-10-18 2019-10-18 Method for revoking resources, method, apparatus and medium for refunding resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910994764.XA CN110719222A (en) 2019-10-18 2019-10-18 Method for revoking resources, method, apparatus and medium for refunding resources

Publications (1)

Publication Number Publication Date
CN110719222A true CN110719222A (en) 2020-01-21

Family

ID=69212924

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910994764.XA Pending CN110719222A (en) 2019-10-18 2019-10-18 Method for revoking resources, method, apparatus and medium for refunding resources

Country Status (1)

Country Link
CN (1) CN110719222A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111738705A (en) * 2020-07-31 2020-10-02 支付宝(杭州)信息技术有限公司 Resource transfer method, device and equipment
CN111934981A (en) * 2020-07-17 2020-11-13 上海连尚网络科技有限公司 Method and equipment for withdrawing red packet
CN112101920A (en) * 2020-09-24 2020-12-18 维沃移动通信有限公司 Service processing method and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170083880A1 (en) * 2007-10-08 2017-03-23 First Data Corporation Systems and methods for stored-value exchange within social networking environments
CN107392582A (en) * 2017-05-22 2017-11-24 阿里巴巴集团控股有限公司 The implementation method and device of resource transfers, the implementation method of bank settlement and device
CN107527191A (en) * 2017-08-10 2017-12-29 北京小米移动软件有限公司 Return processing method, device, terminal and the server of red packet
CN109102297A (en) * 2018-09-04 2018-12-28 深圳市百宝廊珠宝首饰有限公司 Revocable payment method and device
CN109246225A (en) * 2018-09-25 2019-01-18 上海掌门科技有限公司 Method is provided and got to a kind of resource allocation
CN109801051A (en) * 2017-11-16 2019-05-24 财付通支付科技有限公司 Resource transfers method, system, server and computer readable storage medium
US20190303889A1 (en) * 2018-04-03 2019-10-03 Line Pay Corporation Method and system for providing remittance function by recognizing content of a message in a messenger application with remittance function

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170083880A1 (en) * 2007-10-08 2017-03-23 First Data Corporation Systems and methods for stored-value exchange within social networking environments
CN107392582A (en) * 2017-05-22 2017-11-24 阿里巴巴集团控股有限公司 The implementation method and device of resource transfers, the implementation method of bank settlement and device
CN107527191A (en) * 2017-08-10 2017-12-29 北京小米移动软件有限公司 Return processing method, device, terminal and the server of red packet
CN109801051A (en) * 2017-11-16 2019-05-24 财付通支付科技有限公司 Resource transfers method, system, server and computer readable storage medium
US20190303889A1 (en) * 2018-04-03 2019-10-03 Line Pay Corporation Method and system for providing remittance function by recognizing content of a message in a messenger application with remittance function
CN109102297A (en) * 2018-09-04 2018-12-28 深圳市百宝廊珠宝首饰有限公司 Revocable payment method and device
CN109246225A (en) * 2018-09-25 2019-01-18 上海掌门科技有限公司 Method is provided and got to a kind of resource allocation

Non-Patent Citations (8)

* Cited by examiner, † Cited by third party
Title
文栋说: "你的微信红包可以撤回了 已在内测中", 《HTTPS://WWW.SOHU.COM/A/122044735_218175》 *
文栋说: "你的微信红包可以撤回了 已在内测中", 《URL : HTTPS://WENKU.BAIDU.COM/VIEW/23FEAF1953EA551810A6F524CCBFF121DD36C5A9.HTML》 *
无名: "如何拒收并退还好友给我的转账?", 《HTTPS://KF.QQ.COM/TOUCH/SAPPFAQ/130807ME2YZF140721BEBIUY.HTML?PLATFORM=15》 *
无名: "微信转账可以拒收和退还吗?怎么退还?", 《HTTPS://WENKU.BAIDU.COM/VIEW/AD7D1B02D1D233D4B14E852458FB770BF68A3B25.HTML》 *
无名: "微信转账的钱怎么退回 微信转账怎么立即退还", 《HTTPS://JINGYAN.BAIDU.COM/ARTICLE/3052F5A13291B997F31F86A8.HTML》 *
秋水伊人: "你的微信红包可以撤回了 已在内测中", 《HTTPS://WWW.MEIPIAN.CN/B7U5JRO》 *
菲诗小铺: "微信内测红包撤回功能:只要你来得及撤回", 《HTTP://WWW.360DOC.COM/CONTENT/16/1228/10/33696719_618345127.SHTML》 *
陈德宝: "妈妈再也不用担心我发错红包,微信红包撤回在内测", 《HTTPS://WWW.SOHU.COM/A/122100144_487051》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111934981A (en) * 2020-07-17 2020-11-13 上海连尚网络科技有限公司 Method and equipment for withdrawing red packet
CN111738705A (en) * 2020-07-31 2020-10-02 支付宝(杭州)信息技术有限公司 Resource transfer method, device and equipment
CN112101920A (en) * 2020-09-24 2020-12-18 维沃移动通信有限公司 Service processing method and electronic equipment

Similar Documents

Publication Publication Date Title
CN110719222A (en) Method for revoking resources, method, apparatus and medium for refunding resources
KR102469179B1 (en) Interactive user interface for profile management
CN111800513B (en) Method and device for pushing information and computer readable medium of electronic equipment
CN110781373B (en) List updating method and device, readable medium and electronic equipment
CN112395509A (en) Information display method, information providing method, apparatus, and computer-readable medium
CN111596991A (en) Interactive operation execution method and device and electronic equipment
CN110658960A (en) Message processing method and device and electronic equipment
CN111427647A (en) Page display method and device of application program, storage medium and electronic equipment
CN114565476A (en) Information processing method, device, terminal and storage medium
CN111459364A (en) Icon updating method and device and electronic equipment
CN112306340A (en) Information display method, information sending device, electronic equipment and medium
CN110517415B (en) Method and apparatus for outputting information
CN110727775B (en) Method and apparatus for processing information
CN110618768B (en) Information presentation method and device
CN108764866B (en) Method and equipment for allocating resources and drawing resources
CN114116247A (en) Redis-based message processing method, device, system, server and medium
CN111597107B (en) Information output method and device and electronic equipment
CN110519373B (en) Method and device for pushing information
CN112256372A (en) Information processing method and device and electronic equipment
CN111596992A (en) Navigation bar display method and device and electronic equipment
CN113079085B (en) Business service interaction method, business service interaction device, business service interaction equipment and storage medium
CN114202332A (en) Digital currency wallet management method, device and system
CN109426997B (en) Method and device for processing information and server
CN112306596A (en) Information interaction method and device and electronic equipment
CN110647767A (en) Data viewing method, electronic device and computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200121

RJ01 Rejection of invention patent application after publication