WO2018210271A1 - Card writing method and device, terminal, server, and storage medium - Google Patents

Card writing method and device, terminal, server, and storage medium Download PDF

Info

Publication number
WO2018210271A1
WO2018210271A1 PCT/CN2018/087114 CN2018087114W WO2018210271A1 WO 2018210271 A1 WO2018210271 A1 WO 2018210271A1 CN 2018087114 W CN2018087114 W CN 2018087114W WO 2018210271 A1 WO2018210271 A1 WO 2018210271A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
user
card
page
virtual resource
Prior art date
Application number
PCT/CN2018/087114
Other languages
French (fr)
Chinese (zh)
Inventor
陈冲
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2018210271A1 publication Critical patent/WO2018210271A1/en

Links

Images

Classifications

    • 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/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/34Payment architectures, schemes or protocols characterised by the use of specific devices or networks using cards, e.g. integrated circuit [IC] cards or magnetic cards
    • G06Q20/349Rechargeable cards
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • 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/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/327Short range or proximity payments by means of M-devices
    • 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/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/34Payment architectures, schemes or protocols characterised by the use of specific devices or networks using cards, e.g. integrated circuit [IC] cards or magnetic cards
    • 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/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/34Payment architectures, schemes or protocols characterised by the use of specific devices or networks using cards, e.g. integrated circuit [IC] cards or magnetic cards
    • G06Q20/341Active cards, i.e. cards including their own processing means, e.g. including an IC or chip
    • 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/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/34Payment architectures, schemes or protocols characterised by the use of specific devices or networks using cards, e.g. integrated circuit [IC] cards or magnetic cards
    • G06Q20/357Cards having a plurality of specified features

Definitions

  • the present application relates to the field of electronic transactions, and in particular, to a card writing method, device, terminal, server, and storage medium.
  • the bus card is an IC (Integrated Circuit Card) stored value card used in the public transportation field as a fast non-cash payment.
  • the IC stored value card is a stored value card for the IC card, which has good performance and high cost performance.
  • the IC card also known as the RF card, consists of an IC chip and an inductive antenna that can be packaged in a standard card.
  • the bus card is convenient to use.
  • bus card Users who use the bus card do not need to prepare change, and can swipe the card in the car, and the use of the bus card is generally more favorable than direct cash payment. Therefore, the bus card is greatly favored by people.
  • the user needs to recharge the recharge point dedicated to the bus card recharge. If the recharge point is not in the vicinity of the user's current location, the user needs to take a certain distance to recharge, and if the recharge is When there are many people, they still need to wait in line, which will cause trouble to the user. Therefore, in order to facilitate the user to recharge, many service providers begin to provide bus card recharge services for users.
  • the mobile terminal held by the user needs to have NFC (Near Field Communication) function, and the mobile terminal held by the user downloads There is a service application, and the user can complete the bus card refilling service based on the NFC function of the mobile terminal in the service application.
  • NFC Near Field Communication
  • the card recharge service cannot be provided for the user, so that the use of the service is limited by hardware, and the service propagation efficiency is low.
  • the present invention provides a method for writing a card, a device, a terminal, a server, and a storage medium.
  • the mobile terminal that does not have the NFC function cannot provide a card recharge service for the user, so that the use of the service is limited by hardware, and the service transmission rate is limited. Lower question.
  • a card writing method is provided, where the method is applied to a first terminal, and the method includes:
  • the service processing page is configured to add the virtual resource to a card account of the first user
  • the second terminal After the virtual resource adding operation is completed based on the service processing page, the second terminal is instructed to perform the card writing operation.
  • the method provided by the embodiment of the present application after acquiring the first service processing request of the first user, displaying the specified graphic identifier, determining, according to the specified graphic identifier, a second terminal that can complete the card writing operation on the virtual resource instead of the first terminal, And displaying the service processing page, so that the first user adds a virtual resource to the card account on the service processing page, so that after the virtual resource adding operation is completed based on the service processing page, the second terminal can perform a card writing operation to ensure that the
  • the first terminal with short-distance data exchange function can also perform card write operation for the card, so that the use of the service is not limited by the hardware, the process of the card write operation is simplified, and the service propagation efficiency is high.
  • a card writing method is provided, where the method is applied to a second terminal, and the method includes:
  • Obtaining a virtual resource adding operation success message displaying an operation guiding page, the operation guiding page is configured to instruct the second terminal to perform the card writing operation on the card of the first user, and the virtual resource adding operation success message Instructing the first terminal to successfully add the virtual resource to a card account of the first user;
  • the method provided by the embodiment of the present application sends a scan confirmation message to the server by scanning the specified graphic identifier provided by the first terminal.
  • the card confirmation message is sent to the server, and the virtual resource addition operation is successfully obtained.
  • the message is displayed, and the operation guiding page is displayed, and the virtual resource is written to the card of the first user based on the short-distance data exchange function of the second terminal, so that the second terminal can perform the card writing operation instead of the first terminal, thereby ensuring that the short-distance data is not provided.
  • the first terminal of the switching function can also perform a card writing operation for the card, so that the use of the service is not limited by the hardware, the process of the card writing operation is simplified, and the service propagation efficiency is high.
  • a card writing method is provided, where the method is applied to a server, and the method includes:
  • the second terminal being a terminal capable of completing a card writing operation in place of the first terminal, the card writing operation for writing a virtual resource to a card of the first user,
  • the first user is a user logged in to the first terminal;
  • the method provided by the embodiment of the present application determines the first terminal and the second terminal that can complete the card write operation to the virtual resource in place of the first terminal, and sends a service confirmation page to the second terminal, and obtains the second information based on the service confirmation page.
  • the card confirmation message of the terminal sends a service processing page to the first terminal, and after the first terminal completes the virtual resource adding operation based on the service processing page, sends an operation guiding page to the second terminal, so that the second terminal can be based on the guiding page.
  • a user's card performs a card writing operation, which ensures that the first terminal that does not have the short-distance data exchange function can also perform card writing operations for the card, so that the use of the service is not limited by hardware, simplifying the card writing operation.
  • the process of business dissemination is more efficient.
  • a card writing device is provided, the device being applied to a first terminal, the device comprising:
  • An acquiring module configured to acquire a first service processing request of the first user, where the first service processing request is used to request another terminal to complete a card writing operation in place of the first terminal, where the card writing operation is used for Writing a virtual resource to the card of the first user, where the first user is a user logged in to the first terminal;
  • a first display module configured to display, according to the first service processing request, a specified graphic identifier, where the specified graphic identifier is used to indicate that the second terminal that scans the specified graphic identifier completes the card writing instead of the first terminal operating;
  • a second display module configured to display a service processing page, where the service processing page is configured to add the virtual resource to the card account of the first user, if it is determined that the second terminal is capable of performing the card writing operation;
  • the writing module is configured to instruct the second terminal to perform the card writing operation after performing the virtual resource adding operation based on the interaction of the service processing page.
  • the apparatus after acquiring the first service processing request of the first user, displaying the specified graphic identifier, determining, according to the specified graphic identifier, a second terminal that can complete the card writing operation on the virtual resource instead of the first terminal, And displaying the service processing page, so that the first user adds a virtual resource to the card account on the service processing page, so that after the virtual resource adding operation is completed based on the service processing page, the second terminal can perform a card writing operation to ensure that the
  • the first terminal with short-distance data exchange function can also perform card write operation for the card, so that the use of the service is not limited by the hardware, the process of the card write operation is simplified, and the service propagation efficiency is high.
  • a card writing device is provided, the device being applied to a second terminal, the device comprising:
  • a scanning module configured to scan a specified graphic identifier provided by the first terminal, where the specified graphic identifier is used to indicate that the second terminal scanning the specified graphic identifier completes a card writing operation in place of the first terminal, the card The write operation is used to write a virtual resource to the card of the first user, where the first user is a user logged in to the first terminal;
  • a sending module configured to send a scan confirmation message of the second terminal to the server after the scanning succeeds
  • a display module configured to display a service confirmation page, where the service confirmation page is used to remind the second terminal to confirm the card of the first user;
  • the sending module is further configured to: when the card of the first user is detected, send a card confirmation message of the second terminal to the server;
  • the display module is further configured to obtain a virtual resource adding operation success message, and display an operation guiding page, where the operation guiding page is used to instruct the second terminal to perform the card writing operation on the card of the first user,
  • the virtual resource adding operation success message is used to indicate that the first terminal successfully adds the virtual resource to the card account of the first user;
  • a writing module configured to write the virtual resource to the card of the first user based on the short-distance data exchange function of the second terminal.
  • the device provided by the embodiment of the present application sends a scan confirmation message to the server by scanning the specified graphic identifier provided by the first terminal.
  • the card confirmation message is sent to the server, and the virtual resource addition operation is successfully obtained.
  • the message is displayed, and the operation guiding page is displayed, and the virtual resource is written to the card of the first user based on the short-distance data exchange function of the second terminal, so that the second terminal can perform the card writing operation instead of the first terminal, thereby ensuring that the short-distance data is not provided.
  • the first terminal of the switching function can also perform a card writing operation for the card, so that the use of the service is not limited by the hardware, the process of the card writing operation is simplified, and the service propagation efficiency is high.
  • a card writing apparatus is provided, the apparatus being applied to a server, the apparatus comprising:
  • a determining module configured to determine a first terminal and a second terminal, wherein the second terminal is a terminal capable of performing a card writing operation in place of the first terminal, and the card writing operation is used to write to a card of the first user Entering a virtual resource, where the first user is a user logged in to the first terminal;
  • a first sending module configured to send a service confirmation page to the second terminal, and obtain a card confirmation message of the second terminal based on the service confirmation page, where the service confirmation page is used to remind the second terminal The card of the first user is confirmed;
  • a second sending module configured to send a service processing page to the first terminal, and after the first terminal completes a virtual resource adding operation based on the service processing page, send an operation guiding page to the second terminal, where
  • the service processing page is configured to add the virtual resource to the card account of the first user, where the operation guiding page is used to instruct the second terminal to perform the card writing operation on the card of the first user.
  • the device provided by the embodiment of the present application determines the first terminal and the second terminal that can complete the card write operation to the virtual resource in place of the first terminal, and sends a service confirmation page to the second terminal, and obtains the second information based on the service confirmation page.
  • the card confirmation message of the terminal sends a service processing page to the first terminal, and after the first terminal completes the virtual resource adding operation based on the service processing page, sends an operation guiding page to the second terminal, so that the second terminal can be based on the guiding page.
  • a user's card performs a card writing operation, which ensures that the first terminal that does not have the short-distance data exchange function can also perform card writing operations for the card, so that the use of the service is not limited by hardware, simplifying the card writing operation.
  • the process of business dissemination is more efficient.
  • a first terminal including a memory, a processor, and computer executable instructions stored on the memory and executable on the processor, the computer executable instructions being used Do the following:
  • the service processing page is configured to add the virtual resource to a card account of the first user
  • the second terminal After the virtual resource adding operation is completed based on the service processing page, the second terminal is instructed to perform the card writing operation.
  • a second terminal including a memory, a processor, and computer executable instructions stored on the memory and executable on the processor, the computer executable instructions being used Do the following:
  • Obtaining a virtual resource adding operation success message displaying an operation guiding page, the operation guiding page is configured to instruct the second terminal to perform the card writing operation on the card of the first user, and the virtual resource adding operation success message Instructing the first terminal to successfully add the virtual resource to a card account of the first user;
  • a server including a memory, a processor, and computer executable instructions stored on the memory and executable on the processor, the computer executable instructions for performing the following operating:
  • the second terminal being a terminal capable of completing a card writing operation in place of the first terminal, the card writing operation for writing a virtual resource to a card of the first user,
  • the first user is a user logged in to the first terminal;
  • a computer readable storage medium having stored thereon instructions executed by a processor to perform the card writing method described above.
  • FIG. 1 is a block diagram of a card writing system provided by an embodiment of the present application.
  • FIG. 2 is a flowchart of a card writing method provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a card writing method provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a card writing method provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a card writing method according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a card writing method provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a card writing method provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a card writing method according to an embodiment of the present application.
  • FIG. 9 is a flowchart of a card writing method provided by an embodiment of the present application.
  • FIG. 10 is a flowchart of a card writing method provided by an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a card writing device according to an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of a card writing apparatus according to an embodiment of the present application.
  • FIG. 13 is a schematic structural diagram of a card writing apparatus according to an embodiment of the present application.
  • FIG. 14 is a schematic structural diagram of a card writing apparatus according to an embodiment of the present application.
  • FIG. 15 is a schematic structural diagram of a card writing device according to an embodiment of the present application.
  • FIG. 16 is a block diagram of a card writing apparatus 1600 provided by an embodiment of the present application.
  • the card writing system includes a first terminal 101, a second terminal 102, and at least one server 103.
  • the user logged in by the first terminal is referred to as a first user
  • the user logged in as the second terminal is referred to as a second user
  • the first user may be represented by the first user identifier
  • the second user may be referred to by the second user.
  • the identifier indicates that the first user identifier and the second user identifier are information for uniquely identifying the user.
  • the first user identifier and the second user identifier may be registered by the user in the server 103 of the card writing system, or the first user identifier may be registered by the user in the client installed in the first terminal 101.
  • the two user identifiers can be registered by the user in the client installed in the second terminal 102.
  • the first terminal 101 and the second terminal 102 may be respectively connected to the server 103 through a wireless or wired network.
  • the first terminal 101 and the second terminal 102 may be electronic devices capable of accessing the server 103, and the electronic device may be a computer or a smart phone. Tablet or other electronic device.
  • the server 103 can be one or more web servers for performing card writing services for the first terminal 101 and the second terminal 102.
  • both the first terminal 101 and the second terminal 102 can register on the server 103 to obtain a card writing service, or both the first terminal 101 and the second terminal 102 can install the client corresponding to the server 103.
  • the card writing service is obtained, which is not limited in this embodiment of the present application.
  • the server 103 may also store at least one database, such as a social relationship chain database for storing a social relationship chain of the first user, and a card information database for storing card details, etc., thereby Can provide more user-specific card writing services.
  • the first terminal 101 is a terminal that does not have a short-distance data exchange function
  • the second terminal 102 is a terminal that has a short-distance data exchange function, where the short-distance data exchange function is used from the card of the first user. Read the information and write the information to the first user's card.
  • the short-distance data exchange function is an NFC function
  • the first terminal 101 is a terminal that does not have an NFC function
  • the second terminal 102 is a terminal with an NFC function
  • the first user's card is provided with an NFC. Label card.
  • the second terminal 102 is configured to replace the information of the card of the first user by the first terminal 101, so that the server provides the first terminal 101 with an entry (recharge portal) for adding a virtual resource to the user account according to the information, and prompts the first terminal.
  • the process of adding the virtual resource (the refilling process) is completed, and the second terminal 102 further writes the information (the refill result) after adding the virtual resource to the card of the first user instead of the first terminal 101.
  • FIG. 2 is a flowchart of a method for writing a card according to an exemplary embodiment.
  • the first terminal refers to a terminal that does not have an NFC function
  • the second terminal is a terminal that has an NFC function.
  • the method includes the following steps.
  • the first terminal When the first terminal detects the triggering operation for writing the card function on the service request page, the first terminal obtains the first service processing request of the first user, where the first service processing request is used to request another terminal to replace the first service. The terminal completes the card write operation.
  • the card write operation is for writing a virtual resource to the card of the first user.
  • the card may be an IC card with a stored value function, such as a stored bus card, an oil card, etc., and a member card storing the points.
  • the virtual resource can be a resource stored by the card, such as currency, points, and the like.
  • the first terminal may display the service request page, so that the first user can request the trigger to write the card function on the service request page.
  • the service request page can be jumped from other pages according to the needs of the first user.
  • an application for performing a card write operation on the virtual resource may be installed on the first terminal, and the page shown in FIG. 3 is displayed in the application, and the page may be used to provide the first user with, for example, a hotel reservation, a ticket purchase, and the like. Business services.
  • the first terminal acquires the function possessed by itself, and determines whether it can directly perform a card writing operation on the virtual resource. If the first terminal has the NFC function, the first terminal can directly perform the card write operation on the virtual resource, and the following steps 202 to 211 are not required to be performed; if the first terminal does not have the NFC function, the first terminal needs to be determined for the first terminal.
  • the second terminal that can complete the card write operation to the virtual resource in place of the first terminal may jump to the service request page.
  • the trigger generation function button can be set on the service request page. For example, referring to the service request page shown in FIG. 4, the write card function button can be displayed in the form of “seeking a friend immediately”.
  • the first terminal has the NFC function, it indicates that the first terminal can complete the card writing operation on the virtual resource based on the application, so that the first terminal can not display the service request page directly.
  • Displaying a service confirmation page on the first terminal instructing the first user to confirm the card, and displaying the service processing page after the card is successfully confirmed; after the first user completes the card writing operation on the virtual resource based on the service processing page,
  • the operation guiding page is displayed on the first terminal, so that the first user can write the virtual resource to the card based on the NFC function of the first terminal, so that the following steps 202 to 211 need not be performed.
  • the first terminal displays a specified graphic identifier, and the specified graphic identifier is used to instruct the second terminal that scans the specified graphic identifier to complete the card writing operation instead of the first user.
  • the specified graphic identifier may be in the form of a barcode, such as a two-dimensional code, etc., see FIG.
  • the specified graphic identifier is used to carry the first user identifier and related instructions, so as to implement the function of the second terminal that instructs scanning of the specified graphic identifier to complete the card writing operation on the virtual resource instead of the first terminal.
  • the specified graphic identifier may be generated by the first terminal or generated by the server.
  • the first terminal may obtain related information such as the first user identifier, the current time, and the like, and generate a specified graphic identifier based on the related information and related instructions; if the specified graphic identifier is generated by the server, the first A terminal may send a graphic identification request carrying the first user identifier to the server, and after receiving the graphic identification request, the server generates a specified graphic identifier based on the first user identifier, the current time, and related instructions, and returns the specified graphic identifier to the first a terminal.
  • the first terminal may also display the candidate user while the candidate user is the first.
  • a user holding a second terminal capable of performing a card write operation in the user's social relationship chain the acquisition process of the candidate user includes: the first terminal sends the first user identifier to the server, and after receiving the first user identifier, the server Determining, by the first user identifier, a social relationship chain of the first user, where the first user's social relationship chain includes at least one associated user of the first user. Then, the server determines the terminal model information of the at least one associated user, and determines the terminal with the NFC function according to the terminal model information.
  • the server After determining the terminal with the NFC function, the server respectively obtains the first geographical location information of the terminal and the second geographical location information of the first terminal, and determines the plurality of first geographical location information and the second geographic location information.
  • the distance between the terminals that are less than the preset distance is determined as a second terminal capable of performing a card write operation, and the user who holds the second terminal capable of performing the card write operation is sent to the first terminal as a candidate user. Display.
  • the candidate user shown above may have two functions, one is to prompt the first user, and the second terminal that the current user holds by the first user can be prompted to complete the card write operation on the virtual resource instead of the first terminal.
  • the other is that, on the basis of prompting the first user, detecting a click operation of the first user on the candidate user, and selecting, by the first user, the second terminal that completes the card writing operation on the virtual resource, instead of the first terminal, And notifying the second terminal.
  • the method further includes: if the first user selects a selected operation of any candidate user of the candidate user, the first terminal directly uses the selected candidate user as the second user, The server sends a second service processing request, so that the server acquires the second user after receiving the second service processing request, sends a service confirmation page to the second terminal, and after the second user confirms the card based on the service confirmation page, The first terminal sends a service processing page, so that the first terminal can perform the virtual resource adding operation on the service processing page, and the second user performs the card writing operation on the second terminal.
  • the virtual resource adding operation is an operation of adding a virtual resource to a card account of the first user.
  • the first terminal when the first terminal acquires the first service processing request of the first user, the first terminal will The first user identifier is uploaded to the server, and the server determines the second geographical location information of the current location of the first terminal according to the received first user identifier, and determines the administrative area where the first terminal is currently located according to the second geographic location information, and queries the first Whether the administrative area where the terminal is currently located supports the terminal to write the card to the virtual resource.
  • the server instructs the first terminal to display the specified graphic identifier; if the administrative area where the first terminal is currently not supported, the terminal writes the card to the virtual resource. If the operation is performed, the server instructs the first terminal to display that the virtual resource write operation cannot be performed currently, and ends the process.
  • the second terminal scans the specified graphic identifier provided by the first terminal. After the scanning succeeds, the second terminal sends a scan confirmation message to the server.
  • the second terminal In order to determine whether the second user is currently located next to the first user and is willing to perform the card writing operation for the first user through the second terminal, the second terminal is required to scan the specified graphic identifier provided by the first terminal, and the scanning is successful. A scan confirmation message is sent to the server.
  • the scan confirmation message carries the first user identifier, the second user identifier, and the model information of the second terminal, so that after receiving the scan confirmation message, the server stores the first user identifier and the second user identifier correspondingly, so as to ensure The accuracy of the subsequent card write operation of the virtual resource.
  • the specified graphic identifier provided by the first terminal may include a timestamp, and the timestamp is used to indicate whether the currently specified graphic identifier is valid.
  • the timestamp indicates that the specified graphic identifier is an expired state
  • the first terminal needs to reacquire and display the new specified graphical identifier.
  • the second terminal may read the timestamp of the specified graphic identifier in the specified graphic identifier, directly based on the timestamp and the current time.
  • the time judgment determines whether the specified graphic identifier is currently in a valid state. If it is determined that the specified graphic identifier is currently in a valid state, the display scan succeeds; if it is determined that the specified graphic identifier is currently in an expired state, the display scan fails, prompting the second user to need the first terminal to re- Gets and displays the new specified graphic ID. On the other hand, if the specified graphic identifier is generated by the server, after scanning the specified graphic identifier provided by the first terminal, the second terminal reads the timestamp of the specified graphic identifier, uploads the timestamp to the server, and the server is based on the timestamp and The current time determines whether the specified graphic identifier is currently in a valid state.
  • the server determines that the specified graphic identifier is currently in a valid state, the server sends a scan success instruction to the second terminal; if the server determines that the specified graphic identifier is currently in an expired state, the second terminal is A scan failure instruction is issued, prompting the second user that the currently specified graphic identifier has expired.
  • the second terminal can start its own NFC function after scanning the specified graphic identifier provided by the first terminal, so as to subsequently confirm the card of the first user and perform card on the virtual resource by using the NFC function. Write operation.
  • the server receives the scan confirmation message sent by the second terminal, determining the first terminal and the second terminal.
  • the server when the server receives the scan confirmation message of the second user, the first user identifier, the second user identifier, and the terminal model information of the second terminal may be extracted from the scan confirmation message, and obtained as follows
  • the model list including at least one terminal model information of the NFC function is shown in Table 1, and it is determined whether the terminal model information of the second terminal is included in the model list to determine whether the second terminal has the NFC function.
  • the present application does not limit the manner in which the model list is expressed.
  • the server stores the first user identifier and the second user identifier in the extracted scan confirmation message for subsequent use.
  • the second terminal performs a card write operation of the virtual resource instead of the first terminal bound to the second terminal to ensure the accuracy of the operation.
  • the server may allocate a service number to the first user identifier and the second user identifier, and store the service number corresponding to the first user identifier and the second user identifier, when the first user identifier and the second user identifier are correspondingly stored. Go to the list of services as shown in Table 2.
  • the server may set a whitelist. For the first user whose credit is not high or has a bad record, the user identifier of the first user is not stored in the whitelist. After the first user identifier, the second user identifier, and the terminal model information of the second terminal are extracted from the scan confirmation message, the first user identifier is used to query the whitelist to determine whether the whitelist stores the first If the first user identifier is stored in the whitelist, the first user identifier is stored in association with the second user identifier; if the first user identifier is not stored in the whitelist, the current process is ended, and the current user is ended. The first terminal returns an operation failure instruction. By performing the above-described process of judging whether or not the first user identifier is stored in the white list, it is possible to prevent the first user who has a low credit or a bad record from making an illegal act such as cash withdrawal.
  • the server may obtain the first user identifier and the second user identifier after receiving the scan confirmation message sent by the second terminal. Therefore, the server may determine that the card write operation to the virtual resource is currently required to be completed. The first terminal and the second terminal.
  • the server sends a service confirmation page to the second terminal, where the service confirmation page is used to remind the second user to confirm the card of the first user.
  • the server needs to send a service confirmation page to the second terminal, so that the second terminal of the second user can view the first user based on the service confirmation page after receiving the service confirmation page.
  • the card is confirmed to ensure that the second user has received the first user's card.
  • the business confirmation page is used to remind the second user to confirm the card of the first user.
  • the prompt for the second user may be set on the service confirmation page to prompt the second user how to perform the operation, and the confirmation of the card of the first user may be completed.
  • the service confirmation page sent by the server to the second terminal may be the page shown in FIG. 6 , and “posting the bus card to the back of the mobile phone” as shown in FIG. 6 is a prompt for the second user, so that The user can paste the card of the first user on the back of the second terminal, and when the second terminal detects the card attached to the back of the second terminal by the second user based on the NFC function, the confirmation of the card of the first user is completed.
  • the second terminal may send a card confirmation message of the second user to the server, that is, perform the following step 206.
  • the second terminal displays a service confirmation page.
  • the card confirmation message of the second user is sent to the server, where the service confirmation page is used to remind the second user to confirm the card of the first user.
  • the second terminal displays a service confirmation page, and when the NFC function detects the card of the first user, generates a card confirmation message carrying the second user identifier, and sends a card confirmation message to the server to enable the server. After receiving the card confirmation information, it is determined that the second terminal can complete the card writing operation on the virtual resource instead of the first terminal.
  • the card information of the card of the first user may also be read, and the information such as the card number and the remaining virtual resource of the card is obtained.
  • the server may determine the first corresponding to the second user identifier in the service list based on the second user identifier carried in the card confirmation message.
  • the user identifier is sent to the first terminal indicated by the first user identifier to enable the first user to know the card information.
  • the card detail page may be generated based on the obtained card information, and the card details page may be displayed until the first user successfully adds the virtual resource to the card account and stops displaying.
  • the card detail page may include card information such as the remaining virtual resource information of the first user, the card number, and the like.
  • the server When the server receives the card confirmation message of the second terminal, the server sends a service processing page to the first terminal, where the service processing page is used to add a virtual resource to the card account of the first user.
  • the server when the server receives the card confirmation message of the second terminal, it is determined that the current second terminal and the card can implement the card writing operation on the virtual resource based on the short-distance data exchange function, and therefore, the server Sending a service processing page to the first terminal of the first user, so that the first user adds a virtual resource to the card account on the service processing page.
  • the service processing page is configured to add a virtual resource to the card account of the first user.
  • the first user may select a virtual resource that needs to be added to the card on the service processing page.
  • the first terminal displays a service processing page, and performs interaction according to the service processing page to complete the virtual resource adding operation.
  • the virtual resource input box and the confirmation button may be provided on the service processing page, and the first user may input the virtual resource quantity in the virtual resource input box of the service processing page, and trigger a confirmation button; when the first terminal detects When the first user triggers the confirmation button, the virtual resource quantity is obtained, and the virtual resource addition operation is completed based on the service processing page.
  • the interaction between the first terminal, the server, and the financial institution server is required.
  • the first terminal sends the virtual resource quantity to the server, so that the server notifies the financial institution server to deduct the same amount of money as the virtual resource quantity in the first user's account;
  • the transaction completion voucher is generated based on the virtual resource quantity, and the transaction completion voucher is sent to the server, so that after receiving the transaction completion voucher, the server determines that the user account's currency deduction is successful, and generates and The second terminal sends a virtual resource addition success message.
  • the service processing page displayed by the first terminal may be in the form shown in FIG. 7.
  • the business processing page is provided with a virtual resource input box with a “recharge amount” style and a confirmation button for providing an “immediate payment” style.
  • the terminal detects that the first user triggers “immediate payment”, the number of virtual resources input by the first user at the “recharge amount” is obtained, and the virtual resource addition operation is completed based on the service processing page.
  • the server After the first terminal completes the virtual resource adding operation based on the service processing page, the server sends the virtual resource adding operation success message to the second terminal.
  • the virtual resource adding operation success message is used to indicate that the current first user has completed the adding operation to the virtual resource, and the second terminal may continue to perform the card writing operation on the virtual resource.
  • the server determines that the first terminal of the first user completes the virtual resource adding operation based on the service processing page, the number of the virtual resources added by the first user and the first user identifier are obtained, and the second user identifier corresponding to the first user identifier is determined. And generating a virtual resource addition success message according to the quantity of the virtual resources, and sending the virtual resource addition success message to the second terminal indicated by the second user identifier.
  • the server when the server generates the virtual resource adding operation success message, the server may generate the resource code data based on the virtual resource quantity, so that the virtual resource adding operation success message carries the resource code data, that is, the resource code data is added to the virtual resource.
  • the operation success message is added, so that after receiving the virtual resource adding operation success message, the second terminal may extract the resource code data, write the resource code data into the card of the first user based on the NFC function, and complete the card writing to the virtual resource. operating.
  • the second terminal acquires a virtual resource adding operation success message, and displays an operation guiding page, where the operation guiding page is used to instruct the second user to perform a card writing operation on the card of the first user by using the second terminal.
  • the second terminal after receiving the virtual resource addition success message sent by the server, acquires the virtual resource quantity from the virtual resource addition success message, and generates an operation guidance page according to the virtual resource quantity, so that the second terminal The user performs a card writing operation on the card of the first user using the second terminal according to the instruction of the operation guiding page.
  • the operation guide page may display an operation reminder for the second user, that is, the second user is prompted to perform operations to complete the writing of the virtual resource to the card of the first user.
  • FIG. 8 an operation guide page shown in FIG.
  • the second terminal writes a virtual resource to the card of the first user based on the NFC function.
  • the second user may complete the process of writing the virtual resource to the card of the first user according to the operation reminder displayed on the operation guidance page. For example, if the operation reminder displayed on the operation guide page is “refill card refilling”, the second user can paste the first user's card on the second terminal, so that the second terminal can write the virtual resource.
  • the first user's card the virtual resource adding operation success message may carry resource code data for indicating the quantity of the virtual resource, and the second terminal may extract the resource code data, and generate an operation guiding page based on the resource code data, that is, generated.
  • the resource guide data is carried in the operation guide page.
  • the data content in the card can be changed by writing the code data into the card, so when the second user attaches the card to the second terminal again
  • the second terminal can write the resource code data carried on the operation guiding page into the card of the first user based on the NFC function, change the data content in the card, and complete the card writing operation on the virtual resource.
  • the second terminal After the second terminal completes the card write operation on the virtual resource, the second terminal notifies the server that the card write operation to the virtual resource has been completed, and the server determines the first user corresponding thereto according to the second user identifier.
  • the identifier is generated, and the successful instruction is sent to the first terminal indicated by the first user identifier, so that the first user learns that the card write operation to the virtual resource is successfully executed.
  • the first terminal when the above steps 201 to 211 are performed in an actual application, the operation timing shown in FIG. 9 can be implemented.
  • the first terminal can display the 9-square service page.
  • the first user clicks the bus card in the 9-grid service page ie, the request triggers the write card function
  • the first user selects
  • the first terminal needs to detect whether it has the NFC function; when it is determined that the first terminal has the NFC function, the first terminal can directly perform the card write operation on the virtual resource; when determining that the first terminal does not
  • the first terminal notifies the non-NFC refill guiding tool (buscard_nonfc_guide.cgi), and the non-NFC refill guiding tool determines whether the city where the first terminal is located supports the card writing operation of the virtual resource by the terminal.
  • the current process is terminated, and the operation failure is displayed on the first terminal; if the city supporting the terminal where the first terminal is located is determined to write the card of the virtual resource In the operation, the non-NFC refill guiding tool sends back the "Dongyou Leica Education Page" (that is, the service request page) to the first terminal, and the first terminal detects the first user on the "Dongyou Leica Education Page".
  • the "Dongyou Leica Education Page" that is, the service request page
  • the first terminal may send a query ckv to the server through the NFC query tool to query whether the second user currently has a card (ie, confirm the card); when the NFC query tool receives the server After determining that the current second user has completed the Leica, the NFC query tool receives the "payment page" (ie, the business processing page) sent by the server.
  • the first user can click on the payment on the "payment page”, call the NFC payment tool (nfcpay_putorder.cgi) to make the payment order, and enter the payment password on the first terminal to complete the payment.
  • the first terminal can send a query ckv to the server through the NFC query tool, and query whether the second terminal is currently performing the circle storage based on the NFC function (that is, writing the virtual resource to the card of the first user).
  • the operation is performed, and after receiving the successful instruction returned by the server, the NFC query tool returns the refill result page to complete the current process; on the other hand, the first terminal can wait, waiting for the receiving server to complete based on the NFC function in the second terminal.
  • the successful instruction issued after the circle is saved, and the current process is completed after receiving the successful instruction returned by the server.
  • the operation timing shown in FIG. 10 can be implemented.
  • the second terminal scans the two-dimensional code provided by the first terminal (ie, specifies the graphic identifier), it determines whether the current two-dimensional code is valid based on the NFC two-dimensional code detecting tool (nfc_grcode_scan.cgi). If the dimension code is invalid, the scan fails. If the current QR code is valid, the second terminal can obtain the model information and the application version information of the second terminal, and send the first user identifier to the server based on the NFC whitelist tool. A scan confirmation message of the second user identifier and the model information of the second terminal.
  • the server After receiving the scan confirmation message, the server determines that the second terminal can perform card write to the virtual resource instead of the first terminal by extracting the first user identifier, the second user identifier, and the model information of the second terminal carried in the scan confirmation message.
  • the “Affiliate Leica Page” (that is, the service confirmation page) is sent to the NFC whitelisting tool of the second terminal; when the second terminal receives the “Day of the Friends Leica page” sent by the server, based on the “generation” The reminder on the friend card page, the first user's card is attached to the second terminal, and the first user's card is confirmed.
  • the second terminal When the second terminal detects the card of the first user on the “Friends Leica page”, the second user's card confirmation message may be sent to the server through the NFC cache tool, and wait for the first terminal to interact on the service processing page.
  • the virtual resource adding operation is completed.
  • the second terminal may display a “waiting for payment page” (that is, a card detail page), and display card information such as the remaining virtual resource information and card number of the first user on the “waiting for payment page”. .
  • the second terminal may continuously send the query ckv to the server through the NFC query tool, so as to query the payment status of the first terminal.
  • the NFC query tool of the second terminal may receive the order status sent by the server as a paid message (that is, the virtual resource adding operation success message), and is based on The virtual resource carried in the virtual resource adding operation success message generates a “waiting for the Leica page” (that is, the operation guiding page), and the second terminal can write the virtual resource to the card of the first user based on the NFC function according to the operation guiding page, and The notification server has completed the circle storage (that is, the operation of writing the virtual resource to the card of the first user), and displays the result of the circle to complete the current process.
  • a paid message that is, the virtual resource adding operation success message
  • the notification server has completed the circle storage (that is, the operation of writing the virtual resource to the card of the first user), and displays the result of the circle to complete the current process.
  • the method provided by the embodiment of the present application after acquiring the service processing request of the first user, displaying the specified graphic identifier, determining, according to the specified graphic identifier, the second terminal that can complete the card writing operation on the virtual resource in place of the first terminal, and displaying
  • the service processing page enables the first user to add a virtual resource to the card account on the service processing page, so that after the virtual resource adding operation is completed based on the business processing page, the second terminal can perform a card writing operation to ensure that the short message is not short.
  • the first terminal of the distance data exchange function can also perform a card write operation for the card, so that the use of the service is not limited by the hardware, the process of the card write operation is simplified, and the service propagation efficiency is high.
  • FIG. 11 is a block diagram of a card writing device, according to an exemplary embodiment.
  • the apparatus includes an acquisition module 1101, a first display module 1102, a second display module 1103, and a write module 1104.
  • the obtaining module 1101 is configured to acquire a first service processing request of the first user, where the first service processing request is used to request another terminal to complete the card writing operation instead of the first terminal, and the card writing operation is used for the card to the first user.
  • Writing a virtual resource where the first user is a user logged in to the first terminal;
  • the first display module 1102 is configured to display a specified graphic identifier according to the first service processing request, where the specified graphic identifier is used to instruct the second terminal that scans the specified graphic identifier to complete the slice writing operation instead of the first terminal;
  • the second display module 1103 is configured to display a service processing page, where the service processing page is used to add a virtual resource to the card account of the first user, if it is determined that the second terminal is capable of performing a card write operation;
  • the writing module 1104 is configured to instruct the second terminal to perform a card writing operation after the virtual resource adding operation is completed based on the service processing page.
  • the apparatus after acquiring the first service processing request of the first user, displaying the specified graphic identifier, determining, according to the specified graphic identifier, a second terminal that can complete the card writing operation on the virtual resource instead of the first terminal, And displaying the service processing page, so that the first user adds a virtual resource to the card account on the service processing page, so that after the virtual resource adding operation is completed based on the service processing page, the second terminal can perform a card writing operation to ensure that the
  • the first terminal with short-distance data exchange function can also perform card write operation for the card, so that the use of the service is not limited by the hardware, the process of the card write operation is simplified, and the service propagation efficiency is high.
  • the apparatus further includes a third display module 1105, a transmitting module 1106, and a receiving module 1107.
  • the third display module 1105 is configured to display, when displaying the specified graphic identifier, a candidate user holding a second terminal capable of performing a card writing operation in the social relationship chain of the first user, and capable of performing a second card writing operation
  • the terminal has a short-distance data exchange function, and the distance between the first terminal and the first terminal is less than the preset distance, and the candidate user is fed back after receiving the first user identifier sent by the first terminal;
  • the sending module 1106 is configured to select one candidate user as the second user from the candidate users, and send a second service processing request to the server, where the second service processing request is used to indicate the second user.
  • the receiving module 1107 is configured to receive a service processing page sent by the server, where the server determines that the second user is configured according to the second service processing request, and sends a service confirmation page to the second terminal that is logged in by the second user, and receives the second The user sends it after confirming the card based on the business confirmation page.
  • FIG. 13 is a block diagram of a card writing device, according to an exemplary embodiment.
  • the apparatus includes a scanning module 1301, a transmitting module 1302, a display module 1303, and a writing module 1304.
  • the scanning module 1301 is configured to scan a specified graphic identifier provided by the first terminal, and the specified graphic identifier is used to instruct the second terminal that scans the specified graphic identifier to complete the card writing operation instead of the first terminal, where the card writing operation is used to The first user's card is written into a virtual resource, and the first user is a user logged in to the first terminal;
  • the sending module 1302 is configured to send a scan confirmation message of the second terminal to the server after the scan succeeds;
  • the display module 1303 is configured to display a service confirmation page, where the service confirmation page is used to remind the second terminal to confirm the card of the first user;
  • the sending module 1302 is further configured to: when the card of the first user is detected, send a card confirmation message of the second terminal to the server;
  • the display module 1303 is further configured to obtain a virtual resource adding operation success message, and display an operation guiding page, where the operation guiding page is used to instruct the second terminal to perform a card writing operation on the card of the first user, and the virtual resource adding operation success message is used for Instructing the first terminal to successfully add a virtual resource to the card account of the first user;
  • the writing module 1304 is configured to write a virtual resource to the card of the first user based on the short-distance data exchange function of the second terminal.
  • the device provided by the embodiment of the present application sends a scan confirmation message to the server by scanning the specified graphic identifier provided by the first terminal.
  • the card confirmation message is sent to the server, and the virtual resource addition operation is successfully obtained.
  • the message is displayed, and the operation guiding page is displayed, and the virtual resource is written to the card of the first user based on the short-distance data exchange function of the second terminal, so that the second terminal can perform the card writing operation instead of the first terminal, thereby ensuring that the short-distance data is not provided.
  • the first terminal of the switching function can also perform a card writing operation for the card, so that the use of the service is not limited by the hardware, the process of the card writing operation is simplified, and the service propagation efficiency is high.
  • the apparatus further includes an acquisition module 1305.
  • the obtaining module 1305 is configured to obtain a card detail page of the card of the first user, where the card detail page includes card remaining virtual resource information of the card of the first user.
  • FIG. 15 is a block diagram of a card writing device, according to an exemplary embodiment.
  • the apparatus includes a determination module 1501, a first transmission module 1502, and a second transmission module 1503.
  • the determining module 1501 is configured to determine a first terminal and a second terminal, where the second terminal is a terminal capable of performing a card writing operation in place of the first terminal, and the card writing operation is used to write a virtual resource to the card of the first user.
  • the first user is a user logged in to the first terminal;
  • the first sending module 1502 is configured to send a service confirmation page to the second terminal, and obtain a card confirmation message of the second terminal based on the service confirmation page, where the service confirmation page is used to remind the second terminal to confirm the card of the first user;
  • the second sending module 1503 is configured to send a service processing page to the first terminal, and after the first terminal completes the virtual resource adding operation based on the service processing page, send an operation guiding page to the second terminal, where the service processing page is used for A user's card account adds a virtual resource, and the operation guide page is used to instruct the second terminal to perform a card write operation on the card of the first user.
  • the device provided by the embodiment of the present application determines the first terminal and the second terminal that can complete the card write operation to the virtual resource in place of the first terminal, and sends a service confirmation page to the second terminal, and obtains the second information based on the service confirmation page.
  • the card confirmation message of the terminal sends a service processing page to the first terminal, and after the first terminal completes the virtual resource adding operation based on the service processing page, sends an operation guiding page to the second terminal, so that the second terminal can be based on the guiding page.
  • a user's card performs a card writing operation, which ensures that the first terminal that does not have the short-distance data exchange function can also perform card writing operations for the card, so that the use of the service is not limited by hardware, simplifying the card writing operation.
  • the process of business dissemination is more efficient.
  • the determining module 1501 is further configured to:
  • the second terminal When detecting the first user identifier of the first user, acquiring a candidate user of the first user's social relationship chain holding the second terminal capable of performing a card write operation, and transmitting the candidate user to the first terminal, and according to the The second user selected on the terminal determines the second terminal, and the second terminal capable of performing the card write operation has a short-distance data exchange function, and the distance from the first terminal is less than the preset distance.
  • the determining module 1501 is further configured to:
  • the first terminal and the second terminal are determined according to the scan confirmation message.
  • FIG. 16 is a block diagram of a card writing device 1600, according to an exemplary embodiment.
  • device 1600 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
  • apparatus 1600 can include one or more of the following components: processing component 1602, memory 1604, power component 1606, multimedia component 1608, audio component 1610, I/O (Input/Output) interface 1612, Sensor component 1614, and communication component 1616.
  • Processing component 1602 typically controls the overall operation of device 1600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
  • Processing component 1602 can include one or more processors 1620 to execute instructions to perform all or part of the steps described above.
  • processing component 1602 can include one or more modules to facilitate interaction between component 1602 and other components.
  • the processing component 1602 can include a multimedia module to facilitate interaction between the multimedia component 1608 and the processing component 1602.
  • Memory 1604 is configured to store various types of data to support operation at device 1600. Examples of such data include instructions for any application or method operating on device 1600, contact data, phone book data, messages, pictures, videos, and the like.
  • the memory 1604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as SRAM (Static Random Access Memory), EEPROM (Electrically-Erasable Programmable Read-Only Memory) Erasable Programmable Read Only Memory (EPROM), PROM (Programmable Read-Only Memory), ROM (Read-Only Memory, Read only memory), magnetic memory, flash memory, disk or optical disk.
  • SRAM Static Random Access Memory
  • EEPROM Electrically-Erasable Programmable Read-Only Memory
  • EPROM Erasable Programmable Read Only Memory
  • PROM Programmable Read-Only Memory
  • ROM Read-Only Memory, Read only memory
  • magnetic memory flash memory, disk or optical disk.
  • Power component 1606 provides power to various components of device 1600.
  • Power component 1606 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 1600.
  • Multimedia component 1608 includes a screen between the device 1600 and the user that provides an output interface.
  • the screen may include an LCD (Liquid Crystal Display) and a TP (Touch Panel). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor may sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation.
  • the multimedia component 1608 includes a front camera and/or a rear camera. When the device 1600 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • the audio component 1610 is configured to output and/or input an audio signal.
  • the audio component 1610 includes a MIC (Microphone) that is configured to receive an external audio signal when the device 1600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode.
  • the received audio signal may be further stored in memory 1604 or transmitted via communication component 1616.
  • the audio component 1610 also includes a speaker for outputting an audio signal.
  • the I/O interface 1612 provides an interface between the processing component 1602 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
  • Sensor assembly 1614 includes one or more sensors for providing state assessment of various aspects to device 1600.
  • sensor assembly 1614 can detect an open/closed state of device 1600, the relative positioning of components, such as a display and a keypad of device 1600, and sensor component 1614 can also detect a change in position of a component of device 1600 or device 1600, the user The presence or absence of contact with device 1600, device 1600 orientation or acceleration/deceleration and temperature variation of device 1600.
  • Sensor assembly 1614 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
  • Sensor assembly 1614 may also include a light sensor, such as a CMOS (Complementary Metal Oxide Semiconductor) or CCD (Charge-coupled Device) image sensor for use in imaging applications.
  • the sensor assembly 1614 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • Communication component 1616 is configured to facilitate wired or wireless communication between device 1600 and other devices.
  • the device 1600 can access a wireless network based on a communication standard, such as WiFi or 3G, or a combination thereof.
  • communication component 1616 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel.
  • the communication component 1616 further includes an NFC (Near Field Communication) module to facilitate short-range communication.
  • the NFC module can be based on RFID (Radio Frequency Identification) technology, IrDA (Infra-red Data Association) technology, UWB (Ultra Wideband) technology, BT (Bluetooth) technology and Other technologies to achieve.
  • the device 1600 may be configured by one or more ASICs (Application Specific Integrated Circuits), DSP (Digital Signal Processor), DSPD (Digital Signal Processor Device). Device), PLD (Programmable Logic Device), FPGA (Field Programmable Gate Array), controller, microcontroller, microprocessor or other electronic component implementation for performing the above Card writing method.
  • ASICs Application Specific Integrated Circuits
  • DSP Digital Signal Processor
  • DSPD Digital Signal Processor Device
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • controller microcontroller, microprocessor or other electronic component implementation for performing the above Card writing method.
  • non-transitory computer readable storage medium comprising instructions, such as a memory 1604 comprising instructions executable by processor 1620 of apparatus 1600 to perform the above method.
  • the non-transitory computer readable storage medium may be a ROM, a RAM (Random Access Memory), a CD-ROM (Compact Disc Read-Only Memory), a magnetic tape, a floppy disk, and optical data. Storage devices, etc.
  • a computer readable storage medium that, when executed by a processor of a card writing device, causes a card writing device to perform the card writing method described above.
  • a first terminal includes a memory, a processor, and computer executable instructions stored on the memory and executable on the processor, the computer executable instructions for performing the following operations:
  • the user is a user who logs in to the first terminal;
  • the service processing page is configured to add a virtual resource to the card account of the first user
  • the second terminal After the virtual resource adding operation is completed based on the service processing page, the second terminal is instructed to perform a card writing operation.
  • the computer executable instructions are further for performing the following operations:
  • the service processing page is that the server determines the second user according to the second service processing request, and sends a service confirmation page to the second terminal that is logged in by the second user, and receives the second user based service confirmation page.
  • the card is sent after confirmation.
  • a second terminal includes a memory, a processor, and computer executable instructions stored on the memory and executable on the processor, the computer executable instructions for performing the following operations:
  • the graphic identifier is used to indicate that the second terminal scanning the specified graphic identifier completes the card writing operation instead of the first terminal, and the card writing operation is used to write the virtual resource to the card of the first user.
  • the first user is a user logged in to the first terminal;
  • Obtaining a virtual resource adding operation success message displaying an operation guiding page, the operation guiding page is used to instruct the second terminal to perform a card writing operation on the card of the first user, and the virtual resource adding operation success message is used to indicate that the first terminal succeeds in the first Add a virtual resource to the user's card account;
  • the virtual resource is written to the card of the first user based on the short-distance data exchange function of the second terminal.
  • computer executable instructions are used to perform the following operations:
  • the card detail page of the card of the first user is obtained, and the card detail page includes the remaining virtual resource information of the card of the card of the first user.
  • a server includes a memory, a processor, and computer executable instructions stored on the memory and executable on the processor, the computer executable instructions for performing the following operations:
  • the second terminal is a terminal capable of completing a card writing operation in place of the first terminal, and the card writing operation is for writing a virtual resource to the card of the first user, where the first user is logged in a user of a terminal;
  • the operation guiding page is configured to instruct the second terminal to perform a card writing operation on the card of the first user.
  • computer executable instructions are used to perform the following operations:
  • the second terminal When detecting the first user identifier of the first user, acquiring a candidate user of the first user's social relationship chain holding the second terminal capable of performing a card write operation, and transmitting the candidate user to the first terminal, and according to the The second user selected on the terminal determines the second terminal, and the second terminal capable of performing the card write operation has a short-distance data exchange function, and the distance from the first terminal is less than the preset distance.
  • computer executable instructions are used to perform the following operations:
  • the first terminal and the second terminal are determined according to the scan confirmation message.
  • the card writing device provided in the above embodiment, only the division of each functional module described above is illustrated when performing card writing. In actual applications, the functions may be assigned different functions according to needs.
  • the module is completed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
  • the device for the service processing provided by the foregoing embodiment is the same as the method embodiment of the service processing, and the implementation process thereof is described in detail in the method embodiment, and details are not described herein again.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Abstract

The present application relates to the field of electronic transactions. Disclosed are a card writing method and device, a terminal, a server, and a storage medium. The method comprises: obtaining a first service processing request from a first user; displaying an assigned graphic identifier, which is used for instructing a second terminal which scans the graphic identifier to replace a first terminal to complete a card writing operation; if it is determined that the second terminal is able to execute the card writing operation, displaying a service processing page; and performing interaction based on the service processing page, and after completing a virtual resource addition operation, instructing the second terminal to execute the card writing operation. According to the present application, after obtaining a first service processing request from a first user, by determining, based on an assigned graphic identifier, a second terminal which can replace a first terminal to complete a card writing operation, the first terminal which does not have a short-distance data exchange function can also execute the card writing operation, such that the use of the service may not be restricted by hardware, the processing of the card writing operation is simplified, and the promotion efficiency of the service is high.

Description

卡片写入方法、装置、终端、服务器及存储介质Card writing method, device, terminal, server and storage medium
本申请要求于2017年05月18日提交中国国家知识产权局、申请号为201710352725.0、发明名称为“卡片写入方法、装置、计算机设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed by the State Intellectual Property Office of China, application number 201710352725.0, and the invention name is "card writing method, device, computer equipment and storage medium" on May 18, 2017. This is incorporated herein by reference.
技术领域Technical field
本申请涉及电子交易领域,特别涉及一种卡片写入方法、装置、终端、服务器及存储介质。The present application relates to the field of electronic transactions, and in particular, to a card writing method, device, terminal, server, and storage medium.
背景技术Background technique
随着电子信息技术的飞速发展,移动终端可以支持一些业务来为用户提供便捷的服务。例如,为了使用户可以随时随地为公交卡进行充值,目前,很多手机均支持为公交卡进行充值的业务。公交卡为公共交通领域用来作为快速非现金支付的IC(Integrated Circuit Card,集成电路卡)储值卡。IC储值卡是IC卡的储值卡,具备良好的性能和较高的性价比。IC卡又称射频卡,由IC芯片和感应天线组成,可以封装在一个标准的卡片内。公交卡使用比较方便,使用公交卡的用户无需准备零钱,在车上刷卡即可,而且使用公交卡一般比直接交现金更优惠,因此,公交卡极大地受到人们的青睐。当公交卡余额不足时,用户需要去专门用于公交卡充值的充值网点进行充值,若充值网点不在用户当前所在位置的附近,则用户便需要专程走一定的距离去充值,而且,若充值的人较多时,则还需要进行排队等待,这会给用户带来麻烦,因此为了方便用户进行充值,很多业务提供商开始为用户提供公交卡充值业务。With the rapid development of electronic information technology, mobile terminals can support some services to provide users with convenient services. For example, in order to enable users to recharge their bus cards anytime and anywhere, many mobile phones now support the recharging of bus cards. The bus card is an IC (Integrated Circuit Card) stored value card used in the public transportation field as a fast non-cash payment. The IC stored value card is a stored value card for the IC card, which has good performance and high cost performance. The IC card, also known as the RF card, consists of an IC chip and an inductive antenna that can be packaged in a standard card. The bus card is convenient to use. Users who use the bus card do not need to prepare change, and can swipe the card in the car, and the use of the bus card is generally more favorable than direct cash payment. Therefore, the bus card is greatly favored by people. When the balance of the bus card is insufficient, the user needs to recharge the recharge point dedicated to the bus card recharge. If the recharge point is not in the vicinity of the user's current location, the user needs to take a certain distance to recharge, and if the recharge is When there are many people, they still need to wait in line, which will cause trouble to the user. Therefore, in order to facilitate the user to recharge, many service providers begin to provide bus card recharge services for users.
继续以公交卡充值业务为例,当用户使用移动终端执行公交卡充值业务时,需要用户所持的移动终端具备NFC(Near Field Communication,近距离无线通讯技术)功能,并且用户所持的移动终端中下载有服务应用,用户在服务应用中,基于移动终端的NFC功能,可以完成公交卡充值业务。Taking the bus card recharge service as an example, when a user performs a bus card recharge service using a mobile terminal, the mobile terminal held by the user needs to have NFC (Near Field Communication) function, and the mobile terminal held by the user downloads There is a service application, and the user can complete the bus card refilling service based on the NFC function of the mobile terminal in the service application.
在实现本申请的过程中,发明人发现现有技术至少存在以下问题:In the process of implementing the present application, the inventors found that the prior art has at least the following problems:
对于不具备NFC功能的移动终端,无法为用户提供卡充值业务,使得业务的使用受到硬件的限制,业务的传播效率较低。For a mobile terminal that does not have the NFC function, the card recharge service cannot be provided for the user, so that the use of the service is limited by hardware, and the service propagation efficiency is low.
发明内容Summary of the invention
本申请提供一种卡片写入方法、装置、终端、服务器及存储介质,用于解决不具备NFC功能的移动终端无法为用户提供卡充值业务,使得业务的使用受到硬件的限制,业务的传播率较低的问题。The present invention provides a method for writing a card, a device, a terminal, a server, and a storage medium. The mobile terminal that does not have the NFC function cannot provide a card recharge service for the user, so that the use of the service is limited by hardware, and the service transmission rate is limited. Lower question.
根据本申请实施例的一方面,提供一种卡片写入方法,所述方法应用于第一终端,所述方法包括:According to an aspect of the embodiments of the present application, a card writing method is provided, where the method is applied to a first terminal, and the method includes:
获取第一用户的第一业务处理请求,所述第一业务处理请求用于请求其它终端代替所述第一终端完成卡片写入操作,所述卡片写入操作用于向所述第一用户的卡片写入虚拟资 源,所述第一用户为登录于所述第一终端的用户;Obtaining a first service processing request of the first user, where the first service processing request is used to request another terminal to complete a card write operation in place of the first terminal, where the card write operation is used for the first user Writing a card to the virtual resource, where the first user is a user logged in to the first terminal;
根据所述第一业务处理请求显示指定图形标识,所述指定图形标识用于指示扫描所述指定图形标识的第二终端代替所述第一终端完成所述卡片写入操作;And displaying, by the first service processing request, a specified graphic identifier, where the specified graphic identifier is used to indicate that the second terminal that scans the specified graphic identifier completes the card writing operation instead of the first terminal;
如果确定所述第二终端能够执行所述卡片写入操作,显示业务处理页面,所述业务处理页面用于向所述第一用户的卡片账户添加所述虚拟资源;If it is determined that the second terminal is capable of performing the card writing operation, displaying a service processing page, the service processing page is configured to add the virtual resource to a card account of the first user;
基于所述业务处理页面进行交互完成虚拟资源添加操作后,指示所述第二终端进行所述卡片写入操作。After the virtual resource adding operation is completed based on the service processing page, the second terminal is instructed to perform the card writing operation.
本申请实施例提供的方法,在获取第一用户的第一业务处理请求后,显示指定图形标识,基于指定图形标识确定可以代替第一终端完成对虚拟资源的卡片写入操作的第二终端,并显示业务处理页面,使得第一用户在业务处理页面上向卡片账户添加虚拟资源,以便在基于业务处理页面进行交互完成虚拟资源添加操作后,第二终端可以进行卡片写入操作,保证了不具备短距离数据交换功能的第一终端也可以为卡片执行卡片写入操作,使得业务的使用不会受到硬件的限制,简化了卡片写入操作的过程,业务的传播效率较高。The method provided by the embodiment of the present application, after acquiring the first service processing request of the first user, displaying the specified graphic identifier, determining, according to the specified graphic identifier, a second terminal that can complete the card writing operation on the virtual resource instead of the first terminal, And displaying the service processing page, so that the first user adds a virtual resource to the card account on the service processing page, so that after the virtual resource adding operation is completed based on the service processing page, the second terminal can perform a card writing operation to ensure that the The first terminal with short-distance data exchange function can also perform card write operation for the card, so that the use of the service is not limited by the hardware, the process of the card write operation is simplified, and the service propagation efficiency is high.
根据本申请实施例的一方面,提供一种卡片写入方法,所述方法应用于第二终端,所述方法包括:According to an aspect of the embodiments of the present application, a card writing method is provided, where the method is applied to a second terminal, and the method includes:
扫描第一终端提供的指定图形标识,所述指定图形标识用于指示扫描所述指定图形标识的所述第二终端代替所述第一终端完成卡片写入操作,所述卡片写入操作用于向第一用户的卡片写入虚拟资源,所述第一用户为登录于所述第一终端的用户;And scanning a specified graphic identifier provided by the first terminal, where the specified graphic identifier is used to indicate that the second terminal scanning the specified graphic identifier completes a card writing operation instead of the first terminal, and the card writing operation is used for Writing a virtual resource to the card of the first user, where the first user is a user logged in to the first terminal;
扫描成功后,向服务器发送所述第二终端的扫描确认消息;After the scanning succeeds, sending a scan confirmation message of the second terminal to the server;
显示业务确认页面,所述业务确认页面用于提醒所述第二终端对所述第一用户的卡片进行确认;Displaying a service confirmation page, where the service confirmation page is used to remind the second terminal to confirm the card of the first user;
当检测到所述第一用户的卡片时,向所述服务器发送所述第二终端的卡片确认消息;Sending a card confirmation message of the second terminal to the server when the card of the first user is detected;
获取虚拟资源添加操作成功消息,显示操作引导页面,所述操作引导页面用于指示所述第二终端对所述第一用户的卡片进行所述卡片写入操作,所述虚拟资源添加操作成功消息用于指示所述第一终端成功向所述第一用户的卡片账户添加所述虚拟资源;Obtaining a virtual resource adding operation success message, displaying an operation guiding page, the operation guiding page is configured to instruct the second terminal to perform the card writing operation on the card of the first user, and the virtual resource adding operation success message Instructing the first terminal to successfully add the virtual resource to a card account of the first user;
基于所述第二终端的短距离数据交换功能向所述第一用户的卡片写入所述虚拟资源。Writing the virtual resource to the card of the first user based on the short-distance data exchange function of the second terminal.
本申请实施例提供的方法,通过扫描第一终端提供的指定图形标识,向服务器发送扫描确认消息,当检测到第一用户的卡片时,向服务器发送卡片确认消息,并获取虚拟资源添加操作成功消息,显示操作引导页面,基于第二终端的短距离数据交换功能向第一用户的卡片写入虚拟资源,使得第二终端可以代替第一终端执行卡片写入操作,保证了不具备短距离数据交换功能的第一终端也可以为卡片执行卡片写入操作,使得业务的使用不会受到硬件的限制,简化了卡片写入操作的过程,业务的传播效率较高。The method provided by the embodiment of the present application sends a scan confirmation message to the server by scanning the specified graphic identifier provided by the first terminal. When the card of the first user is detected, the card confirmation message is sent to the server, and the virtual resource addition operation is successfully obtained. The message is displayed, and the operation guiding page is displayed, and the virtual resource is written to the card of the first user based on the short-distance data exchange function of the second terminal, so that the second terminal can perform the card writing operation instead of the first terminal, thereby ensuring that the short-distance data is not provided. The first terminal of the switching function can also perform a card writing operation for the card, so that the use of the service is not limited by the hardware, the process of the card writing operation is simplified, and the service propagation efficiency is high.
根据本申请实施例的一方面,提供一种卡片写入方法,所述方法应用于服务器,所述方法包括:According to an aspect of the embodiments of the present application, a card writing method is provided, where the method is applied to a server, and the method includes:
确定第一终端以及第二终端,所述第二终端为能够代替所述第一终端完成卡片写入操作的终端,所述卡片写入操作用于向第一用户的卡片写入虚拟资源,所述第一用户为登录于所述第一终端的用户;Determining a first terminal and a second terminal, the second terminal being a terminal capable of completing a card writing operation in place of the first terminal, the card writing operation for writing a virtual resource to a card of the first user, The first user is a user logged in to the first terminal;
向所述第二终端发送业务确认页面,并基于所述业务确认页面获取所述第二终端的卡片确认消息,所述业务确认页面用于提醒所述第二终端对所述第一用户的卡片进行确认;Sending a service confirmation page to the second terminal, and acquiring a card confirmation message of the second terminal based on the service confirmation page, where the service confirmation page is used to remind the second terminal of the card of the first user Undergo verification;
向所述第一终端发送业务处理页面,并在所述第一终端基于所述业务处理页面完成虚拟资源添加操作后,向所述第二终端发送操作引导页面,所述业务处理页面用于向所述第一用户的卡片账户添加所述虚拟资源,所述操作引导页面用于指示所述第二终端对所述第一用户的卡片进行所述卡片写入操作。Sending a service processing page to the first terminal, and after the first terminal completes the virtual resource adding operation based on the service processing page, sending an operation guiding page to the second terminal, where the service processing page is used to The card account of the first user adds the virtual resource, and the operation guiding page is used to instruct the second terminal to perform the card writing operation on the card of the first user.
本申请实施例提供的方法,通过确定第一终端以及能够代替第一终端完成对虚拟资源的卡片写入操作的第二终端,并向第二终端发送业务确认页面,基于业务确认页面获取第二终端的卡片确认消息,向第一终端发送业务处理页面,并在第一终端基于业务处理页面完成虚拟资源添加操作后,向第二终端发送操作引导页面,使得第二终端可以基于引导页面对第一用户的卡片进行卡片写入操作,保证了不具备短距离数据交换功能的第一终端也可以为卡片执行卡片写入操作,使得业务的使用不会受到硬件的限制,简化了卡片写入操作的过程,业务的传播效率较高。The method provided by the embodiment of the present application determines the first terminal and the second terminal that can complete the card write operation to the virtual resource in place of the first terminal, and sends a service confirmation page to the second terminal, and obtains the second information based on the service confirmation page. The card confirmation message of the terminal sends a service processing page to the first terminal, and after the first terminal completes the virtual resource adding operation based on the service processing page, sends an operation guiding page to the second terminal, so that the second terminal can be based on the guiding page. A user's card performs a card writing operation, which ensures that the first terminal that does not have the short-distance data exchange function can also perform card writing operations for the card, so that the use of the service is not limited by hardware, simplifying the card writing operation. The process of business dissemination is more efficient.
根据本申请实施例的一方面,提供一种卡片写入装置,所述装置应用于第一终端,所述装置包括:According to an aspect of the embodiments of the present application, a card writing device is provided, the device being applied to a first terminal, the device comprising:
获取模块,用于获取第一用户的第一业务处理请求,所述第一业务处理请求用于请求其它终端代替所述第一终端完成卡片写入操作,所述卡片写入操作用于向所述第一用户的卡片写入虚拟资源,所述第一用户为登录于所述第一终端的用户;An acquiring module, configured to acquire a first service processing request of the first user, where the first service processing request is used to request another terminal to complete a card writing operation in place of the first terminal, where the card writing operation is used for Writing a virtual resource to the card of the first user, where the first user is a user logged in to the first terminal;
第一显示模块,用于根据所述第一业务处理请求显示指定图形标识,所述指定图形标识用于指示扫描所述指定图形标识的第二终端代替所述第一终端完成所述卡片写入操作;a first display module, configured to display, according to the first service processing request, a specified graphic identifier, where the specified graphic identifier is used to indicate that the second terminal that scans the specified graphic identifier completes the card writing instead of the first terminal operating;
第二显示模块,用于如果确定第二终端能够执行所述卡片写入操作,显示业务处理页面,所述业务处理页面用于向所述第一用户的卡片账户添加所述虚拟资源;a second display module, configured to display a service processing page, where the service processing page is configured to add the virtual resource to the card account of the first user, if it is determined that the second terminal is capable of performing the card writing operation;
写入模块,用于基于所述业务处理页面进行交互完成虚拟资源添加操作后,指示所述第二终端进行所述卡片写入操作。The writing module is configured to instruct the second terminal to perform the card writing operation after performing the virtual resource adding operation based on the interaction of the service processing page.
本申请实施例提供的装置,在获取第一用户的第一业务处理请求后,显示指定图形标识,基于指定图形标识确定可以代替第一终端完成对虚拟资源的卡片写入操作的第二终端,并显示业务处理页面,使得第一用户在业务处理页面上向卡片账户添加虚拟资源,以便在基于业务处理页面进行交互完成虚拟资源添加操作后,第二终端可以进行卡片写入操作,保证了不具备短距离数据交换功能的第一终端也可以为卡片执行卡片写入操作,使得业务的使用不会受到硬件的限制,简化了卡片写入操作的过程,业务的传播效率较高。The apparatus provided by the embodiment of the present application, after acquiring the first service processing request of the first user, displaying the specified graphic identifier, determining, according to the specified graphic identifier, a second terminal that can complete the card writing operation on the virtual resource instead of the first terminal, And displaying the service processing page, so that the first user adds a virtual resource to the card account on the service processing page, so that after the virtual resource adding operation is completed based on the service processing page, the second terminal can perform a card writing operation to ensure that the The first terminal with short-distance data exchange function can also perform card write operation for the card, so that the use of the service is not limited by the hardware, the process of the card write operation is simplified, and the service propagation efficiency is high.
根据本申请实施例的一方面,提供一种卡片写入装置,所述装置应用于第二终端,所述装置包括:According to an aspect of the embodiments of the present application, a card writing device is provided, the device being applied to a second terminal, the device comprising:
扫描模块,用于扫描第一终端提供的指定图形标识,所述指定图形标识用于指示扫描所述指定图形标识的所述第二终端代替所述第一终端完成卡片写入操作,所述卡片写入操作用于向第一用户的卡片写入虚拟资源,所述第一用户为登录于所述第一终端的用户;a scanning module, configured to scan a specified graphic identifier provided by the first terminal, where the specified graphic identifier is used to indicate that the second terminal scanning the specified graphic identifier completes a card writing operation in place of the first terminal, the card The write operation is used to write a virtual resource to the card of the first user, where the first user is a user logged in to the first terminal;
发送模块,用于扫描成功后,向服务器发送所述第二终端的扫描确认消息;a sending module, configured to send a scan confirmation message of the second terminal to the server after the scanning succeeds;
显示模块,用于显示业务确认页面,所述业务确认页面用于提醒所述第二终端对所述 第一用户的卡片进行确认;a display module, configured to display a service confirmation page, where the service confirmation page is used to remind the second terminal to confirm the card of the first user;
所述发送模块,还用于当检测到所述第一用户的卡片时,向所述服务器发送所述第二终端的卡片确认消息;The sending module is further configured to: when the card of the first user is detected, send a card confirmation message of the second terminal to the server;
所述显示模块,还用于获取虚拟资源添加操作成功消息,显示操作引导页面,所述操作引导页面用于指示所述第二终端对所述第一用户的卡片进行所述卡片写入操作,所述虚拟资源添加操作成功消息用于指示所述第一终端成功向所述第一用户的卡片账户添加所述虚拟资源;The display module is further configured to obtain a virtual resource adding operation success message, and display an operation guiding page, where the operation guiding page is used to instruct the second terminal to perform the card writing operation on the card of the first user, The virtual resource adding operation success message is used to indicate that the first terminal successfully adds the virtual resource to the card account of the first user;
写入模块,用于基于所述第二终端的短距离数据交换功能向所述第一用户的卡片写入所述虚拟资源。And a writing module, configured to write the virtual resource to the card of the first user based on the short-distance data exchange function of the second terminal.
本申请实施例提供的装置,通过扫描第一终端提供的指定图形标识,向服务器发送扫描确认消息,当检测到第一用户的卡片时,向服务器发送卡片确认消息,并获取虚拟资源添加操作成功消息,显示操作引导页面,基于第二终端的短距离数据交换功能向第一用户的卡片写入虚拟资源,使得第二终端可以代替第一终端执行卡片写入操作,保证了不具备短距离数据交换功能的第一终端也可以为卡片执行卡片写入操作,使得业务的使用不会受到硬件的限制,简化了卡片写入操作的过程,业务的传播效率较高。The device provided by the embodiment of the present application sends a scan confirmation message to the server by scanning the specified graphic identifier provided by the first terminal. When the card of the first user is detected, the card confirmation message is sent to the server, and the virtual resource addition operation is successfully obtained. The message is displayed, and the operation guiding page is displayed, and the virtual resource is written to the card of the first user based on the short-distance data exchange function of the second terminal, so that the second terminal can perform the card writing operation instead of the first terminal, thereby ensuring that the short-distance data is not provided. The first terminal of the switching function can also perform a card writing operation for the card, so that the use of the service is not limited by the hardware, the process of the card writing operation is simplified, and the service propagation efficiency is high.
根据本申请实施例的一方面,提供一种卡片写入装置,所述装置应用于服务器,所述装置包括:According to an aspect of an embodiment of the present application, a card writing apparatus is provided, the apparatus being applied to a server, the apparatus comprising:
确定模块,用于确定第一终端以及第二终端,所述第二终端为能够代替所述第一终端完成卡片写入操作的终端,所述卡片写入操作用于向第一用户的卡片写入虚拟资源,所述第一用户为登录于所述第一终端的用户;a determining module, configured to determine a first terminal and a second terminal, wherein the second terminal is a terminal capable of performing a card writing operation in place of the first terminal, and the card writing operation is used to write to a card of the first user Entering a virtual resource, where the first user is a user logged in to the first terminal;
第一发送模块,用于向所述第二终端发送业务确认页面,并基于所述业务确认页面获取所述第二终端的卡片确认消息,所述业务确认页面用于提醒所述第二终端对所述第一用户的卡片进行确认;a first sending module, configured to send a service confirmation page to the second terminal, and obtain a card confirmation message of the second terminal based on the service confirmation page, where the service confirmation page is used to remind the second terminal The card of the first user is confirmed;
第二发送模块,用于向所述第一终端发送业务处理页面,并在所述第一终端基于所述业务处理页面完成虚拟资源添加操作后,向所述第二终端发送操作引导页面,所述业务处理页面用于向所述第一用户的卡片账户添加所述虚拟资源,所述操作引导页面用于指示所述第二终端对所述第一用户的卡片进行所述卡片写入操作。a second sending module, configured to send a service processing page to the first terminal, and after the first terminal completes a virtual resource adding operation based on the service processing page, send an operation guiding page to the second terminal, where The service processing page is configured to add the virtual resource to the card account of the first user, where the operation guiding page is used to instruct the second terminal to perform the card writing operation on the card of the first user.
本申请实施例提供的装置,通过确定第一终端以及能够代替第一终端完成对虚拟资源的卡片写入操作的第二终端,并向第二终端发送业务确认页面,基于业务确认页面获取第二终端的卡片确认消息,向第一终端发送业务处理页面,并在第一终端基于业务处理页面完成虚拟资源添加操作后,向第二终端发送操作引导页面,使得第二终端可以基于引导页面对第一用户的卡片进行卡片写入操作,保证了不具备短距离数据交换功能的第一终端也可以为卡片执行卡片写入操作,使得业务的使用不会受到硬件的限制,简化了卡片写入操作的过程,业务的传播效率较高。The device provided by the embodiment of the present application determines the first terminal and the second terminal that can complete the card write operation to the virtual resource in place of the first terminal, and sends a service confirmation page to the second terminal, and obtains the second information based on the service confirmation page. The card confirmation message of the terminal sends a service processing page to the first terminal, and after the first terminal completes the virtual resource adding operation based on the service processing page, sends an operation guiding page to the second terminal, so that the second terminal can be based on the guiding page. A user's card performs a card writing operation, which ensures that the first terminal that does not have the short-distance data exchange function can also perform card writing operations for the card, so that the use of the service is not limited by hardware, simplifying the card writing operation. The process of business dissemination is more efficient.
根据本申请实施例的一方面,提供了一种第一终端,包括存储器、处理器及存储在存储器上并可在所述处理器上运行的计算机可执行指令,所述计算机可执行指令用于执行以下操作:According to an aspect of an embodiment of the present application, a first terminal is provided, including a memory, a processor, and computer executable instructions stored on the memory and executable on the processor, the computer executable instructions being used Do the following:
获取第一用户的第一业务处理请求,所述第一业务处理请求用于请求其它终端代替所述第一终端完成卡片写入操作,所述卡片写入操作用于向所述第一用户的卡片写入虚拟资源,所述第一用户为登录于所述第一终端的用户;Obtaining a first service processing request of the first user, where the first service processing request is used to request another terminal to complete a card write operation in place of the first terminal, where the card write operation is used for the first user Writing a card to the virtual resource, where the first user is a user logged in to the first terminal;
根据所述第一业务处理请求显示指定图形标识,所述指定图形标识用于指示扫描所述指定图形标识的第二终端代替所述第一终端完成所述卡片写入操作;And displaying, by the first service processing request, a specified graphic identifier, where the specified graphic identifier is used to indicate that the second terminal that scans the specified graphic identifier completes the card writing operation instead of the first terminal;
如果确定所述第二终端能够执行所述卡片写入操作,显示业务处理页面,所述业务处理页面用于向所述第一用户的卡片账户添加所述虚拟资源;If it is determined that the second terminal is capable of performing the card writing operation, displaying a service processing page, the service processing page is configured to add the virtual resource to a card account of the first user;
基于所述业务处理页面进行交互完成虚拟资源添加操作后,指示所述第二终端进行所述卡片写入操作。After the virtual resource adding operation is completed based on the service processing page, the second terminal is instructed to perform the card writing operation.
根据本申请实施例的一方面,提供了一种第二终端,包括存储器、处理器及存储在存储器上并可在所述处理器上运行的计算机可执行指令,所述计算机可执行指令用于执行以下操作:According to an aspect of an embodiment of the present application, a second terminal is provided, including a memory, a processor, and computer executable instructions stored on the memory and executable on the processor, the computer executable instructions being used Do the following:
扫描第一终端提供的指定图形标识,所述指定图形标识用于指示扫描所述指定图形标识的所述第二终端代替所述第一终端完成卡片写入操作,所述卡片写入操作用于向第一用户的卡片写入虚拟资源,所述第一用户为登录于所述第一终端的用户;And scanning a specified graphic identifier provided by the first terminal, where the specified graphic identifier is used to indicate that the second terminal scanning the specified graphic identifier completes a card writing operation instead of the first terminal, and the card writing operation is used for Writing a virtual resource to the card of the first user, where the first user is a user logged in to the first terminal;
扫描成功后,向服务器发送所述第二终端的扫描确认消息;After the scanning succeeds, sending a scan confirmation message of the second terminal to the server;
显示业务确认页面,所述业务确认页面用于提醒所述第二终端对所述第一用户的卡片进行确认;Displaying a service confirmation page, where the service confirmation page is used to remind the second terminal to confirm the card of the first user;
当检测到所述第一用户的卡片时,向所述服务器发送所述第二终端的卡片确认消息;Sending a card confirmation message of the second terminal to the server when the card of the first user is detected;
获取虚拟资源添加操作成功消息,显示操作引导页面,所述操作引导页面用于指示所述第二终端对所述第一用户的卡片进行所述卡片写入操作,所述虚拟资源添加操作成功消息用于指示所述第一终端成功向所述第一用户的卡片账户添加所述虚拟资源;Obtaining a virtual resource adding operation success message, displaying an operation guiding page, the operation guiding page is configured to instruct the second terminal to perform the card writing operation on the card of the first user, and the virtual resource adding operation success message Instructing the first terminal to successfully add the virtual resource to a card account of the first user;
基于所述第二终端的短距离数据交换功能向所述第一用户的卡片写入所述虚拟资源。Writing the virtual resource to the card of the first user based on the short-distance data exchange function of the second terminal.
根据本申请实施例的一方面,提供了一种服务器,包括存储器、处理器及存储在存储器上并可在所述处理器上运行的计算机可执行指令,所述计算机可执行指令用于执行以下操作:According to an aspect of an embodiment of the present application, a server is provided, including a memory, a processor, and computer executable instructions stored on the memory and executable on the processor, the computer executable instructions for performing the following operating:
确定第一终端以及第二终端,所述第二终端为能够代替所述第一终端完成卡片写入操作的终端,所述卡片写入操作用于向第一用户的卡片写入虚拟资源,所述第一用户为登录于所述第一终端的用户;Determining a first terminal and a second terminal, the second terminal being a terminal capable of completing a card writing operation in place of the first terminal, the card writing operation for writing a virtual resource to a card of the first user, The first user is a user logged in to the first terminal;
向所述第二终端发送业务确认页面,并基于所述业务确认页面获取所述第二终端的卡片确认消息,所述业务确认页面用于提醒所述第二终端对所述第一用户的卡片进行确认;Sending a service confirmation page to the second terminal, and acquiring a card confirmation message of the second terminal based on the service confirmation page, where the service confirmation page is used to remind the second terminal of the card of the first user Undergo verification;
向所述第一终端发送业务处理页面,并在所述第一终端基于所述业务处理页面完成虚拟资源添加操作后,向所述第二终端发送操作引导页面,所述业务处理页面用于向所述第一用户的卡片账户添加所述虚拟资源,所述操作引导页面用于指示所述第二终端对所述第一用户的卡片进行所述卡片写入操作。Sending a service processing page to the first terminal, and after the first terminal completes the virtual resource adding operation based on the service processing page, sending an operation guiding page to the second terminal, where the service processing page is used to The card account of the first user adds the virtual resource, and the operation guiding page is used to instruct the second terminal to perform the card writing operation on the card of the first user.
根据本申请实施例的一方面,一种计算机可读存储介质,所述计算机可读存储介质上 存储有指令,所述指令被处理器执行以完成上述的卡片写入方法。According to an aspect of an embodiment of the present application, a computer readable storage medium having stored thereon instructions executed by a processor to perform the card writing method described above.
附图说明DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present application. Other drawings may also be obtained from those of ordinary skill in the art in light of the inventive work.
图1是本申请实施例提供的卡片写入系统的架构图;1 is a block diagram of a card writing system provided by an embodiment of the present application;
图2是本申请实施例提供的卡片写入方法的流程图;2 is a flowchart of a card writing method provided by an embodiment of the present application;
图3是本申请实施例提供的卡片写入方法的示意图;3 is a schematic diagram of a card writing method provided by an embodiment of the present application;
图4是本申请实施例提供的卡片写入方法的示意图;4 is a schematic diagram of a card writing method provided by an embodiment of the present application;
图5是本申请实施例提供的卡片写入方法的示意图;FIG. 5 is a schematic diagram of a card writing method according to an embodiment of the present application; FIG.
图6是本申请实施例提供的卡片写入方法的示意图;6 is a schematic diagram of a card writing method provided by an embodiment of the present application;
图7是本申请实施例提供的卡片写入方法的示意图;7 is a schematic diagram of a card writing method provided by an embodiment of the present application;
图8是本申请实施例提供的卡片写入方法的示意图;FIG. 8 is a schematic diagram of a card writing method according to an embodiment of the present application; FIG.
图9是本申请实施例提供的卡片写入方法的流程图;9 is a flowchart of a card writing method provided by an embodiment of the present application;
图10是本申请实施例提供的卡片写入方法的流程图;10 is a flowchart of a card writing method provided by an embodiment of the present application;
图11是本申请实施例提供的卡片写入装置的结构示意图;11 is a schematic structural diagram of a card writing device according to an embodiment of the present application;
图12是本申请实施例提供的卡片写入装置的结构示意图;FIG. 12 is a schematic structural diagram of a card writing apparatus according to an embodiment of the present application;
图13是本申请实施例提供的卡片写入装置的结构示意图;FIG. 13 is a schematic structural diagram of a card writing apparatus according to an embodiment of the present application;
图14是本申请实施例提供的卡片写入装置的结构示意图;FIG. 14 is a schematic structural diagram of a card writing apparatus according to an embodiment of the present application; FIG.
图15是本申请实施例提供的卡片写入装置的结构示意图;15 is a schematic structural diagram of a card writing device according to an embodiment of the present application;
图16是本申请实施例提供的卡片写入装置1600的框图。FIG. 16 is a block diagram of a card writing apparatus 1600 provided by an embodiment of the present application.
具体实施方式detailed description
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the objects, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
在对本申请进行详细的解释说明之前,先对本申请实施例涉及的卡片写入系统的架构进行简单介绍。Before explaining the present application in detail, the architecture of the card writing system according to the embodiment of the present application is briefly introduced.
参见图1,卡片写入系统包括第一终端101、第二终端102以及至少一个服务器103。下文将第一终端所登录的用户称为第一用户,将第二终端所登录的用户称为第二用户,该第一用户可以通过第一用户标识来表示,第二用户可以通过第二用户标识来表示,上述第一用户标识和第二用户标识是用于唯一标识用户的信息。上述第一用户标识和第二用户标识可以由用户在卡片写入系统的服务器103中注册得到,或者,上述第一用户标识可以由用户在安装于第一终端101的客户端中注册得到,第二用户标识可以由用户在安装于第二终端102的客户端中注册得到。Referring to FIG. 1, the card writing system includes a first terminal 101, a second terminal 102, and at least one server 103. Hereinafter, the user logged in by the first terminal is referred to as a first user, and the user logged in as the second terminal is referred to as a second user, the first user may be represented by the first user identifier, and the second user may be referred to by the second user. The identifier indicates that the first user identifier and the second user identifier are information for uniquely identifying the user. The first user identifier and the second user identifier may be registered by the user in the server 103 of the card writing system, or the first user identifier may be registered by the user in the client installed in the first terminal 101. The two user identifiers can be registered by the user in the client installed in the second terminal 102.
第一终端101和第二终端102可以通过无线或者有线网络分别和服务器103连接,第一终端101和第二终端102可以为能够访问服务器103的电子设备,该电子设备可以为电 脑、智能手机、平板电脑或者其他电子设备。The first terminal 101 and the second terminal 102 may be respectively connected to the server 103 through a wireless or wired network. The first terminal 101 and the second terminal 102 may be electronic devices capable of accessing the server 103, and the electronic device may be a computer or a smart phone. Tablet or other electronic device.
服务器103可以为一个或者多个网站服务器,用于为第一终端101和第二终端102进行卡片写入服务。本实施环境中,第一终端101和第二终端102均可以在服务器103上进行注册来获取卡片写入服务,或,第一终端101和第二终端102均可以安装服务器103对应的客户端来获取卡片写入服务,本申请实施例对此不作限定。对于服务器103来说,该服务器103还可以存储有至少一种数据库,比如用以存储第一用户的社交关系链的社交关系链数据库,以及,用以存储卡片详情的卡片信息数据库等等,从而能够提供更加有用户针对性的卡片写入服务。The server 103 can be one or more web servers for performing card writing services for the first terminal 101 and the second terminal 102. In the implementation environment, both the first terminal 101 and the second terminal 102 can register on the server 103 to obtain a card writing service, or both the first terminal 101 and the second terminal 102 can install the client corresponding to the server 103. The card writing service is obtained, which is not limited in this embodiment of the present application. For the server 103, the server 103 may also store at least one database, such as a social relationship chain database for storing a social relationship chain of the first user, and a card information database for storing card details, etc., thereby Can provide more user-specific card writing services.
本实施例中,第一终端101是不具备短距离数据交换功能的终端,第二终端102是具备短距离数据交换功能的终端,这里的短距离数据交换功能用于从第一用户的卡片中读取信息,并向第一用户的卡片中写入信息。在一种可能的实现方式中,短距离数据交换功能是NFC功能,则第一终端101是不具备NFC功能的终端,第二终端102是具备NFC功能的终端,第一用户的卡片是具备NFC标签的卡片。In this embodiment, the first terminal 101 is a terminal that does not have a short-distance data exchange function, and the second terminal 102 is a terminal that has a short-distance data exchange function, where the short-distance data exchange function is used from the card of the first user. Read the information and write the information to the first user's card. In a possible implementation manner, the short-distance data exchange function is an NFC function, the first terminal 101 is a terminal that does not have an NFC function, the second terminal 102 is a terminal with an NFC function, and the first user's card is provided with an NFC. Label card.
第二终端102用于代替第一终端101读取第一用户的卡片的信息,以便于服务器根据该信息向第一终端101提供向用户账户添加虚拟资源的入口(充值入口),促使第一终端101完成添加虚拟资源的流程(充值流程),第二终端102再代替第一终端101将添加虚拟资源后的信息(充值结果)写入第一用户的卡片中。The second terminal 102 is configured to replace the information of the card of the first user by the first terminal 101, so that the server provides the first terminal 101 with an entry (recharge portal) for adding a virtual resource to the user account according to the information, and prompts the first terminal. The process of adding the virtual resource (the refilling process) is completed, and the second terminal 102 further writes the information (the refill result) after adding the virtual resource to the card of the first user instead of the first terminal 101.
图2是根据一示例性实施例示出的一种卡片写入方法的流程图,在本申请实施例中,第一终端是指不具备NFC功能的终端,而第二终端是具备NFC功能的终端,如图2所示,该方法包括以下步骤。FIG. 2 is a flowchart of a method for writing a card according to an exemplary embodiment. In the embodiment of the present application, the first terminal refers to a terminal that does not have an NFC function, and the second terminal is a terminal that has an NFC function. As shown in FIG. 2, the method includes the following steps.
201、第一终端在业务请求页面上检测到对代为写入卡片功能的触发操作时,确认获取到第一用户的第一业务处理请求,该第一业务处理请求用于请求其他终端代替第一终端完成卡片写入操作。When the first terminal detects the triggering operation for writing the card function on the service request page, the first terminal obtains the first service processing request of the first user, where the first service processing request is used to request another terminal to replace the first service. The terminal completes the card write operation.
其中,卡片写入操作用于向第一用户的卡片写入虚拟资源。其中,卡片可以是具有储值功能的IC卡,比如储存有获取的公交卡、油卡等,储存有积分的会员卡等。虚拟资源可以是卡片所储存的资源,比如货币、积分等。The card write operation is for writing a virtual resource to the card of the first user. The card may be an IC card with a stored value function, such as a stored bus card, an oil card, etc., and a member card storing the points. The virtual resource can be a resource stored by the card, such as currency, points, and the like.
当卡片中储存的虚拟资源不多时,需要向卡片写入虚拟资源。目前通过终端执行对虚拟资源的卡片写入操作时,需要终端具备NFC功能,这样,对于不具备短距离数据交换功能的终端来说,无法实现对虚拟资源的卡片写入操作。因此,为了使持有不具备NFC功能的终端的用户也可以通过终端执行对虚拟资源的卡片写入操作,需要为持有不具备NFC功能的终端的用户确定可以代替该终端完成卡片写入操作的终端。When there are not many virtual resources stored in the card, it is necessary to write a virtual resource to the card. At present, when the card write operation to the virtual resource is performed by the terminal, the terminal needs to have the NFC function, so that the terminal that does not have the short-distance data exchange function cannot perform the card write operation to the virtual resource. Therefore, in order to enable a user holding a terminal that does not have the NFC function to perform a card write operation to the virtual resource through the terminal, it is necessary for the user holding the terminal not having the NFC function to complete the card write operation instead of the terminal. Terminal.
为了方便第一用户使用不具备NFC功能的第一终端为卡片进行虚拟资源的写入,第一终端可以显示业务请求页面,使得第一用户可在业务请求页面上请求触发代为写入卡片功能。其中,业务请求页面可以根据第一用户的需求由其他页面跳转而来。例如,第一终端上可以安装用于对虚拟资源执行卡片写入操作的应用,并在应用中显示图3所示的页面,该页面可以用于为第一用户提供诸如酒店预订、购买机票等业务服务。当第一用户触发该页面上的“城市一卡通”的按钮时,第一终端便获取自身具备的功能,判断自身是否可以直接对虚拟资源执行卡片写入操作。若第一终端具备NFC功能,则第一终端可以直接执行 对虚拟资源的卡片写入操作,无需继续执行下述步骤202至步骤211;若第一终端不具备NFC功能,需要为第一终端确定可以代替第一终端完成对虚拟资源的卡片写入操作的第二终端,则第一终端可以跳转至业务请求页面。为了获知第一用户对代为写入卡片功能的需求,可在业务请求页面上设置触发代为写入卡片功能按钮。例如,参见图4所示的业务请求页面,代为写入卡片功能按钮可以“马上找朋友帮忙”的形式显示。In order to facilitate the first user to write the virtual resource for the card by using the first terminal that does not have the NFC function, the first terminal may display the service request page, so that the first user can request the trigger to write the card function on the service request page. The service request page can be jumped from other pages according to the needs of the first user. For example, an application for performing a card write operation on the virtual resource may be installed on the first terminal, and the page shown in FIG. 3 is displayed in the application, and the page may be used to provide the first user with, for example, a hotel reservation, a ticket purchase, and the like. Business services. When the first user triggers the button of "City One Card" on the page, the first terminal acquires the function possessed by itself, and determines whether it can directly perform a card writing operation on the virtual resource. If the first terminal has the NFC function, the first terminal can directly perform the card write operation on the virtual resource, and the following steps 202 to 211 are not required to be performed; if the first terminal does not have the NFC function, the first terminal needs to be determined for the first terminal. The second terminal that can complete the card write operation to the virtual resource in place of the first terminal may jump to the service request page. In order to know the requirement of the first user to write the card function, the trigger generation function button can be set on the service request page. For example, referring to the service request page shown in FIG. 4, the write card function button can be displayed in the form of “seeking a friend immediately”.
需要说明的是,若在上述过程中确定第一终端具备NFC功能,则表示第一终端可以基于应用自行完成对虚拟资源的卡片写入操作,这样第一终端便可以不显示业务请求页面,直接在第一终端上显示业务确认页面,指示第一用户对卡片进行确认,并在卡片确认成功后显示业务处理页面;当第一用户基于业务处理页面完成对虚拟资源的卡片写入操作后,在第一终端上显示操作引导页面,使得第一用户可以基于第一终端的NFC功能向卡片写入虚拟资源,这样也即无需执行下述步骤202至步骤211。It should be noted that, if it is determined in the foregoing process that the first terminal has the NFC function, it indicates that the first terminal can complete the card writing operation on the virtual resource based on the application, so that the first terminal can not display the service request page directly. Displaying a service confirmation page on the first terminal, instructing the first user to confirm the card, and displaying the service processing page after the card is successfully confirmed; after the first user completes the card writing operation on the virtual resource based on the service processing page, The operation guiding page is displayed on the first terminal, so that the first user can write the virtual resource to the card based on the NFC function of the first terminal, so that the following steps 202 to 211 need not be performed.
202、第一终端显示指定图形标识,指定图形标识用于指示扫描指定图形标识的第二终端代替第一用户完成卡片写入操作。202. The first terminal displays a specified graphic identifier, and the specified graphic identifier is used to instruct the second terminal that scans the specified graphic identifier to complete the card writing operation instead of the first user.
在本申请实施例中,指定图形标识可以是条形码形式,例如二维码等,参见图5。指定图形标识用以承载第一用户标识以及相关指令,以实现上述指示扫描指定图形标识的第二终端代替第一终端完成对虚拟资源的卡片写入操作的功能。其中,指定图形标识可以由第一终端自行生成,也可由服务器生成。若指定图形标识由第一终端自行生成,则第一终端可以获取第一用户标识、当前时间等相关信息,并基于相关信息及相关指令生成指定图形标识;若指定图形标识由服务器生成,则第一终端可向服务器发送携带第一用户标识的图形标识请求,由服务器在接收到图形标识请求后,基于第一用户标识、当前时间以及相关指令生成指定图形标识,并将指定图形标识返回给第一终端。In the embodiment of the present application, the specified graphic identifier may be in the form of a barcode, such as a two-dimensional code, etc., see FIG. The specified graphic identifier is used to carry the first user identifier and related instructions, so as to implement the function of the second terminal that instructs scanning of the specified graphic identifier to complete the card writing operation on the virtual resource instead of the first terminal. The specified graphic identifier may be generated by the first terminal or generated by the server. If the specified graphic identifier is generated by the first terminal, the first terminal may obtain related information such as the first user identifier, the current time, and the like, and generate a specified graphic identifier based on the related information and related instructions; if the specified graphic identifier is generated by the server, the first A terminal may send a graphic identification request carrying the first user identifier to the server, and after receiving the graphic identification request, the server generates a specified graphic identifier based on the first user identifier, the current time, and related instructions, and returns the specified graphic identifier to the first a terminal.
为了使第一用户获知当前哪些用户持有的终端可以代替第一终端完成对虚拟资源的卡片写入操作,在显示指定图形标识的同时,第一终端还可以显示候选用户,候选用户为第一用户的社交关系链中持有能够执行卡片写入操作的第二终端的用户,该候选用户的获取过程包括:第一终端将第一用户标识发送至服务器,服务器在接收到第一用户标识后,基于第一用户标识确定第一用户的社交关系链,第一用户的社交关系链中包括第一用户的至少一个关联用户。随后,服务器分别确定该至少一个关联用户的终端型号信息,并根据终端型号信息确定具备NFC功能的终端。在确定具备NFC功能的终端后,服务器分别获取这些终端当前所在的第一地理位置信息以及第一终端当前所在的第二地理位置信息,确定多个第一地理位置信息与第二地理位置信息之间的距离,将距离小于预设距离的终端确定为能够执行卡片写入操作的第二终端,将持有该能够执行卡片写入操作的第二终端的用户作为候选用户下发至第一终端进行显示。In order to enable the first user to know which user-held terminal can replace the first terminal to complete the card write operation to the virtual resource, the first terminal may also display the candidate user while the candidate user is the first. A user holding a second terminal capable of performing a card write operation in the user's social relationship chain, the acquisition process of the candidate user includes: the first terminal sends the first user identifier to the server, and after receiving the first user identifier, the server Determining, by the first user identifier, a social relationship chain of the first user, where the first user's social relationship chain includes at least one associated user of the first user. Then, the server determines the terminal model information of the at least one associated user, and determines the terminal with the NFC function according to the terminal model information. After determining the terminal with the NFC function, the server respectively obtains the first geographical location information of the terminal and the second geographical location information of the first terminal, and determines the plurality of first geographical location information and the second geographic location information. The distance between the terminals that are less than the preset distance is determined as a second terminal capable of performing a card write operation, and the user who holds the second terminal capable of performing the card write operation is sent to the first terminal as a candidate user. Display.
上述所显示的候选用户可以有两种作用,一种是对第一用户进行提示,提示第一用户当前候选用户所持有的第二终端可以代替第一终端完成对虚拟资源的卡片写入操作;另一种是在对第一用户进行提示的基础上,检测第一用户对候选用户的点击操作,由第一用户选择代替第一终端完成对虚拟资源的卡片写入操作的第二终端,并对该第二终端进行通知。也即是,本申请实施例的步骤202之后还包括:如果检测到第一用户对候选用户中任一候选用户的选中操作,第一终端便直接将被选中的候选用户作为第二用户,向服务器发送第二业务处理请求,以使服务器在接收到第二业务处理请求后获取第二用户,向第二终端发 送业务确认页面,并在第二用户基于业务确认页面对卡片进行确认后,向第一终端发送业务处理页面,使得第一终端可在业务处理页面进行交互完成虚拟资源添加操作,由第二用户在第二终端上进行卡片写入操作。其中,虚拟资源添加操作是指向第一用户的卡片账户添加虚拟资源的操作。The candidate user shown above may have two functions, one is to prompt the first user, and the second terminal that the current user holds by the first user can be prompted to complete the card write operation on the virtual resource instead of the first terminal. The other is that, on the basis of prompting the first user, detecting a click operation of the first user on the candidate user, and selecting, by the first user, the second terminal that completes the card writing operation on the virtual resource, instead of the first terminal, And notifying the second terminal. That is, after the step 202 of the embodiment of the present application, the method further includes: if the first user selects a selected operation of any candidate user of the candidate user, the first terminal directly uses the selected candidate user as the second user, The server sends a second service processing request, so that the server acquires the second user after receiving the second service processing request, sends a service confirmation page to the second terminal, and after the second user confirms the card based on the service confirmation page, The first terminal sends a service processing page, so that the first terminal can perform the virtual resource adding operation on the service processing page, and the second user performs the card writing operation on the second terminal. The virtual resource adding operation is an operation of adding a virtual resource to a card account of the first user.
需要说明的是,由于目前一些行政区域可能并不支持终端对虚拟资源的卡片写入操作,因此,当第一终端在获取到第一用户的第一业务处理请求后,第一终端便会将第一用户标识上传至服务器,服务器根据接收到的第一用户标识确定第一终端当前所在位置的第二地理位置信息,根据第二地理位置信息确定第一终端当前所在的行政区域,并查询第一终端当前所在的行政区域是否支持终端对虚拟资源的卡片写入操作。若第一终端当前所在的行政区域支持终端对虚拟资源的卡片写入操作,则服务器指示第一终端显示指定图形标识;若第一终端当前所在的行政区域不支持终端对虚拟资源的卡片写入操作,则服务器指示第一终端显示当前无法进行虚拟资源写入操作,并结束流程。It should be noted that, since some administrative areas may not support the card writing operation of the virtual resource by the terminal, when the first terminal acquires the first service processing request of the first user, the first terminal will The first user identifier is uploaded to the server, and the server determines the second geographical location information of the current location of the first terminal according to the received first user identifier, and determines the administrative area where the first terminal is currently located according to the second geographic location information, and queries the first Whether the administrative area where the terminal is currently located supports the terminal to write the card to the virtual resource. If the administrative area of the first terminal supports the terminal to write the card to the virtual resource, the server instructs the first terminal to display the specified graphic identifier; if the administrative area where the first terminal is currently not supported, the terminal writes the card to the virtual resource. If the operation is performed, the server instructs the first terminal to display that the virtual resource write operation cannot be performed currently, and ends the process.
203、第二终端扫描第一终端提供的指定图形标识,扫描成功后,第二终端向服务器发送扫描确认消息。203. The second terminal scans the specified graphic identifier provided by the first terminal. After the scanning succeeds, the second terminal sends a scan confirmation message to the server.
为了确定第二用户当前是否位于第一用户的身边且愿意通过第二终端为第一用户进行上述卡片写入操作,因此,需要第二终端扫描第一终端提供的指定图形标识,并在扫描成功后向服务器发送扫描确认消息。In order to determine whether the second user is currently located next to the first user and is willing to perform the card writing operation for the first user through the second terminal, the second terminal is required to scan the specified graphic identifier provided by the first terminal, and the scanning is successful. A scan confirmation message is sent to the server.
其中,扫描确认消息中携带第一用户标识、第二用户标识以及第二终端的型号信息,以便服务器在接收到扫描确认消息后,将第一用户标识和第二用户标识对应进行存储,以便保证在后续执行虚拟资源的卡片写入操作时的准确性。The scan confirmation message carries the first user identifier, the second user identifier, and the model information of the second terminal, so that after receiving the scan confirmation message, the server stores the first user identifier and the second user identifier correspondingly, so as to ensure The accuracy of the subsequent card write operation of the virtual resource.
需要说明的是,为了保证第一用户的个人信息、账号信息等隐私信息,第一终端提供的指定图形标识中可包括时间戳,时间戳用于指示当前指定图形标识是否有效。当时间戳指示指定图形标识为过期状态时,第一终端需要重新获取并显示新的指定图形标识。一方面,若指定图形标识由第一终端生成,则第二终端在扫描第一终端提供的指定图形标识后,可以在指定图形标识中读取指定图形标识的时间戳,直接基于时间戳和当前时间判断指定图形标识当前是否为有效状态,若确定指定图形标识当前为有效状态,则显示扫描成功;若确定指定图形标识当前为过期状态,则显示扫描失败,提示第二用户需要第一终端重新获取并显示新的指定图形标识。另一方面,若指定图形标识由服务器生成,则第二终端在扫描第一终端提供的指定图形标识后,读取指定图形标识的时间戳,将时间戳上传至服务器,由服务器基于时间戳和当前时间判断指定图形标识当前是否为有效状态,若服务器确定指定图形标识当前为有效状态,则向第二终端下发扫描成功指令;若服务器确定指定图形标识当前为过期状态,则向第二终端下发扫描失败指令,提示第二用户当前指定图形标识已经过期。It should be noted that, in order to ensure the privacy information of the personal information, the account information, and the like of the first user, the specified graphic identifier provided by the first terminal may include a timestamp, and the timestamp is used to indicate whether the currently specified graphic identifier is valid. When the timestamp indicates that the specified graphic identifier is an expired state, the first terminal needs to reacquire and display the new specified graphical identifier. On the one hand, if the specified graphic identifier is generated by the first terminal, after scanning the specified graphic identifier provided by the first terminal, the second terminal may read the timestamp of the specified graphic identifier in the specified graphic identifier, directly based on the timestamp and the current time. The time judgment determines whether the specified graphic identifier is currently in a valid state. If it is determined that the specified graphic identifier is currently in a valid state, the display scan succeeds; if it is determined that the specified graphic identifier is currently in an expired state, the display scan fails, prompting the second user to need the first terminal to re- Gets and displays the new specified graphic ID. On the other hand, if the specified graphic identifier is generated by the server, after scanning the specified graphic identifier provided by the first terminal, the second terminal reads the timestamp of the specified graphic identifier, uploads the timestamp to the server, and the server is based on the timestamp and The current time determines whether the specified graphic identifier is currently in a valid state. If the server determines that the specified graphic identifier is currently in a valid state, the server sends a scan success instruction to the second terminal; if the server determines that the specified graphic identifier is currently in an expired state, the second terminal is A scan failure instruction is issued, prompting the second user that the currently specified graphic identifier has expired.
为了达到节能的目的,第二终端可以在扫描第一终端提供的指定图形标识成功后,才启动自身的NFC功能,以便后续利用NFC功能对第一用户的卡片进行确认操作及对虚拟资源进行卡片写入操作。In order to achieve the purpose of energy saving, the second terminal can start its own NFC function after scanning the specified graphic identifier provided by the first terminal, so as to subsequently confirm the card of the first user and perform card on the virtual resource by using the NFC function. Write operation.
204、当服务器接收到第二终端发送的扫描确认消息,确定第一终端以及第二终端。204. When the server receives the scan confirmation message sent by the second terminal, determining the first terminal and the second terminal.
在本申请实施例中,当服务器接收到第二用户的扫描确认消息时,便可以从扫描确认消息中提取第一用户标识、第二用户标识以及第二终端的终端型号信息,并在获取如下述 表1所示的包括至少一个具备NFC功能的终端型号信息的型号列表,判断型号列表中是否包括第二终端的终端型号信息,以确定第二终端是否具备NFC功能。其中,本申请对于型号列表的表现方式不进行限定。In the embodiment of the present application, when the server receives the scan confirmation message of the second user, the first user identifier, the second user identifier, and the terminal model information of the second terminal may be extracted from the scan confirmation message, and obtained as follows The model list including at least one terminal model information of the NFC function is shown in Table 1, and it is determined whether the terminal model information of the second terminal is included in the model list to determine whether the second terminal has the NFC function. The present application does not limit the manner in which the model list is expressed.
表1Table 1
终端型号信息Terminal model information
XX S3XX S3
XX 9220XX 9220
XX Grand 2XX Grand 2
XX x96XX x96
XX z2proXX z2pro
...
当确定型号列表中包括第二终端的终端型号信息,也即确定第二终端具备NFC功能时,服务器将提取到的扫描确认消息中的第一用户标识和第二用户标识对应进行存储,以便后续第二终端代替与其绑定的第一终端执行虚拟资源的卡片写入操作,保证操作的准确性。其中,在将第一用户标识和第二用户标识对应进行存储时,服务器可以为第一用户标识和第二用户标识分配业务编号,并将业务编号与第一用户标识和第二用户标识对应存储至如表2所示的业务列表中。When it is determined that the model list includes the terminal model information of the second terminal, that is, when the second terminal is configured to have the NFC function, the server stores the first user identifier and the second user identifier in the extracted scan confirmation message for subsequent use. The second terminal performs a card write operation of the virtual resource instead of the first terminal bound to the second terminal to ensure the accuracy of the operation. The server may allocate a service number to the first user identifier and the second user identifier, and store the service number corresponding to the first user identifier and the second user identifier, when the first user identifier and the second user identifier are correspondingly stored. Go to the list of services as shown in Table 2.
表2Table 2
业务编号Business Number 第一用户标识First user ID 第二用户标识Second user ID
S1S1 407222xxx407222xxx 235251xxx235251xxx
S2S2 124789xxx124789xxx 801247xxx801247xxx
S3S3 547893xxx547893xxx 902793xxx902793xxx
S4S4 933274xxx933274xxx 789456xxx789456xxx
... ... ...
需要说明的是,服务器可以设置白名单,对于信用不高或存在不良记录的第一用户,不在白名单中存储该第一用户的用户标识。这样,当从扫描确认消息中提取到第一用户标识、第二用户标识以及第二终端的终端型号信息后,基于第一用户标识在白名单中进行查询,判断白名单中是否存储有第一用户标识,若白名单中存储有第一用户标识,则将第一用户标识与第二用户标识对应进行存储;若白名单中没有存储第一用户标识,则结束当前流程,向第一用户的第一终端返回操作失败指令。通过执行上述在白名单中判断是否存储有第一用户标识的过程,可以避免信用不高或存在不良记录的第一用户做出诸如现金套取等违法行为。It should be noted that the server may set a whitelist. For the first user whose credit is not high or has a bad record, the user identifier of the first user is not stored in the whitelist. After the first user identifier, the second user identifier, and the terminal model information of the second terminal are extracted from the scan confirmation message, the first user identifier is used to query the whitelist to determine whether the whitelist stores the first If the first user identifier is stored in the whitelist, the first user identifier is stored in association with the second user identifier; if the first user identifier is not stored in the whitelist, the current process is ended, and the current user is ended. The first terminal returns an operation failure instruction. By performing the above-described process of judging whether or not the first user identifier is stored in the white list, it is possible to prevent the first user who has a low credit or a bad record from making an illegal act such as cash withdrawal.
通过执行步骤204,服务器在接收到第二终端发送的扫描确认消息后,可以获取到第一用户标识和第二用户标识,因此,也即服务器可以确定当前需要完成对虚拟资源的卡片写入操作的第一终端以及第二终端。After the step 204 is performed, the server may obtain the first user identifier and the second user identifier after receiving the scan confirmation message sent by the second terminal. Therefore, the server may determine that the card write operation to the virtual resource is currently required to be completed. The first terminal and the second terminal.
205、服务器向第二终端发送业务确认页面,业务确认页面用于提醒第二用户对第一用户的卡片进行确认。205. The server sends a service confirmation page to the second terminal, where the service confirmation page is used to remind the second user to confirm the card of the first user.
在本申请实施例中,由于卡片写入操作需要基于NFC功能实现,这样便需要保证第二用户此时在第一用户的身边,使得第二用户可以拿到第一用户的卡片,并基于第二终端对第一用户的卡片进行确认,因此,服务器需要向第二终端发送业务确认页面,以便第二用户的第二终端在接收到业务确认页面后,可以基于业务确认页面对第一用户的卡片进行确认,确保第二用户拿到了第一用户的卡片。In the embodiment of the present application, since the card writing operation needs to be implemented based on the NFC function, it is necessary to ensure that the second user is at the side of the first user at this time, so that the second user can obtain the card of the first user, and based on the The second terminal confirms the card of the first user. Therefore, the server needs to send a service confirmation page to the second terminal, so that the second terminal of the second user can view the first user based on the service confirmation page after receiving the service confirmation page. The card is confirmed to ensure that the second user has received the first user's card.
业务确认页面用于提醒第二用户对第一用户的卡片进行确认。其中,在业务确认页面上可以设置对第二用户的提示,以提示第二用户如何进行操作便可以完成对第一用户的卡片的确认。参见图6,服务器向第二终端发送的业务确认页面可为图6所示的页面,图6中所示的“将公交卡贴于手机背面”即为对第二用户的提示,这样,第二用户便可将第一用户的卡片贴在第二终端的背面,当第二终端基于NFC功能检测到第二用户贴在第二终端背面的卡片时,即完成对第一用户的卡片的确认。当第二用户完成对第一用户的卡片确认时,第二终端便可向服务器发送第二用户的卡片确认消息,也即执行下述步骤206。The business confirmation page is used to remind the second user to confirm the card of the first user. The prompt for the second user may be set on the service confirmation page to prompt the second user how to perform the operation, and the confirmation of the card of the first user may be completed. Referring to FIG. 6 , the service confirmation page sent by the server to the second terminal may be the page shown in FIG. 6 , and “posting the bus card to the back of the mobile phone” as shown in FIG. 6 is a prompt for the second user, so that The user can paste the card of the first user on the back of the second terminal, and when the second terminal detects the card attached to the back of the second terminal by the second user based on the NFC function, the confirmation of the card of the first user is completed. . When the second user completes the card confirmation of the first user, the second terminal may send a card confirmation message of the second user to the server, that is, perform the following step 206.
206、第二终端显示业务确认页面,当检测到第一用户的卡片时,向服务器发送第二用户的卡片确认消息,业务确认页面用于提醒第二用户对第一用户的卡片进行确认。206. The second terminal displays a service confirmation page. When the card of the first user is detected, the card confirmation message of the second user is sent to the server, where the service confirmation page is used to remind the second user to confirm the card of the first user.
在本申请实施例中,第二终端显示业务确认页面,在基于NFC功能检测到第一用户的卡片时,生成携带第二用户标识的卡片确认消息,将卡片确认消息发送至服务器,以使服务器在接收到卡片确认信息后,确定第二终端可以代替第一终端完成对虚拟资源的卡片写入操作。在实际应用的过程中,第二终端基于NFC功能对第一用户的卡片进行检测时,还可以对第一用户的卡片的卡片信息进行读取,读取得到诸如卡片编号、卡片剩余虚拟资源信息等卡片信息,并将卡片信息添加至卡片确认消息中,以使服务器在接收到卡片确认消息后,可以基于卡片确认消息携带的第二用户标识在业务列表中确定第二用户标识对应的第一用户标识,并将卡片信息发送至第一用户标识所指示的第一终端,以使第一用户获知卡片信息。In the embodiment of the present application, the second terminal displays a service confirmation page, and when the NFC function detects the card of the first user, generates a card confirmation message carrying the second user identifier, and sends a card confirmation message to the server to enable the server. After receiving the card confirmation information, it is determined that the second terminal can complete the card writing operation on the virtual resource instead of the first terminal. In the process of actual application, when the second terminal detects the card of the first user based on the NFC function, the card information of the card of the first user may also be read, and the information such as the card number and the remaining virtual resource of the card is obtained. Waiting for the card information, and adding the card information to the card confirmation message, so that after receiving the card confirmation message, the server may determine the first corresponding to the second user identifier in the service list based on the second user identifier carried in the card confirmation message. The user identifier is sent to the first terminal indicated by the first user identifier to enable the first user to know the card information.
需要说明的是,第二终端在将卡片确认消息发送至服务器后,可以基于获取到的卡片信息生成卡片详情页面,并显示卡片详情页面,直至第一用户成功向卡片账户添加虚拟资源后停止显示,卡片详情页面可以包括第一用户的卡片剩余虚拟资源信息、卡片编号等卡片信息。It should be noted that after the second terminal sends the card confirmation message to the server, the card detail page may be generated based on the obtained card information, and the card details page may be displayed until the first user successfully adds the virtual resource to the card account and stops displaying. The card detail page may include card information such as the remaining virtual resource information of the first user, the card number, and the like.
207、当服务器接收到第二终端的卡片确认消息时,向第一终端发送业务处理页面,业务处理页面用于向第一用户的卡片账户添加虚拟资源。207. When the server receives the card confirmation message of the second terminal, the server sends a service processing page to the first terminal, where the service processing page is used to add a virtual resource to the card account of the first user.
在本申请实施例中,当服务器接收到第二终端的卡片确认消息时,便确定当前第二终端与卡片之间可以基于短距离数据交换功能实现对虚拟资源的卡片写入操作,因此,服务器向第一用户的第一终端发送业务处理页面,以使第一用户在业务处理页面对卡片账户添加虚拟资源。其中,业务处理页面用于向第一用户的卡片账户添加虚拟资源,可选的,第一用户可在业务处理页面上选择需要向卡片添加的虚拟资源。In the embodiment of the present application, when the server receives the card confirmation message of the second terminal, it is determined that the current second terminal and the card can implement the card writing operation on the virtual resource based on the short-distance data exchange function, and therefore, the server Sending a service processing page to the first terminal of the first user, so that the first user adds a virtual resource to the card account on the service processing page. The service processing page is configured to add a virtual resource to the card account of the first user. Optionally, the first user may select a virtual resource that needs to be added to the card on the service processing page.
208、第一终端显示业务处理页面,基于业务处理页面进行交互以完成虚拟资源添加操作。208. The first terminal displays a service processing page, and performs interaction according to the service processing page to complete the virtual resource adding operation.
在本申请实施例中,业务处理页面上可提供虚拟资源输入框以及确认按钮,第一用户 可在业务处理页面的虚拟资源输入框中输入虚拟资源数量,并触发确认按钮;当第一终端检测到第一用户触发确认按钮时,获取虚拟资源数量,基于业务处理页面进行交互完成虚拟资源添加操作。在实际应用的过程中,在基于业务处理页面进行交互完成虚拟资源添加操作时,需要第一终端、服务器与金融机构服务器之间进行交互。一般来说,第一终端在获取到虚拟资源数量后,将虚拟资源数量发送至服务器,以使服务器通知金融机构服务器在第一用户的账户中扣除与虚拟资源数量等额的货币;当金融机构服务器完成对用户账户的货币扣除后,基于虚拟资源数量生成交易完成凭证,将交易完成凭证下发至服务器,以使服务器在接收到该交易完成凭证后,确定用户账户的货币扣除成功,生成并向第二终端发送虚拟资源添加成功消息。In the embodiment of the present application, the virtual resource input box and the confirmation button may be provided on the service processing page, and the first user may input the virtual resource quantity in the virtual resource input box of the service processing page, and trigger a confirmation button; when the first terminal detects When the first user triggers the confirmation button, the virtual resource quantity is obtained, and the virtual resource addition operation is completed based on the service processing page. In the process of actual application, when the virtual resource adding operation is completed based on the business processing page, the interaction between the first terminal, the server, and the financial institution server is required. Generally, after acquiring the virtual resource quantity, the first terminal sends the virtual resource quantity to the server, so that the server notifies the financial institution server to deduct the same amount of money as the virtual resource quantity in the first user's account; After the currency deduction of the user account is completed, the transaction completion voucher is generated based on the virtual resource quantity, and the transaction completion voucher is sent to the server, so that after receiving the transaction completion voucher, the server determines that the user account's currency deduction is successful, and generates and The second terminal sends a virtual resource addition success message.
参见图7,第一终端显示的业务处理页面可为图7所示的形式,业务处理页面上提供有“充值金额”样式的虚拟资源输入框以及提供“立即支付”样式的确认按钮,当第一终端检测到第一用户触发“立即支付”时,便获取第一用户在“充值金额”处输入的虚拟资源数量,并基于该业务处理页面进行交互完成虚拟资源添加操作。Referring to FIG. 7, the service processing page displayed by the first terminal may be in the form shown in FIG. 7. The business processing page is provided with a virtual resource input box with a “recharge amount” style and a confirmation button for providing an “immediate payment” style. When the terminal detects that the first user triggers “immediate payment”, the number of virtual resources input by the first user at the “recharge amount” is obtained, and the virtual resource addition operation is completed based on the service processing page.
209、服务器在第一终端基于业务处理页面完成虚拟资源添加操作后,将虚拟资源添加操作成功消息发送至第二终端。209. After the first terminal completes the virtual resource adding operation based on the service processing page, the server sends the virtual resource adding operation success message to the second terminal.
在本申请实施例中,虚拟资源添加操作成功消息用于指示当前第一用户已经完成对虚拟资源的添加操作,可由第二终端继续执行对虚拟资源的卡片写入操作。当服务器确定当前第一用户的第一终端基于业务处理页面完成了虚拟资源添加操作后,便获取第一用户添加的虚拟资源数量以及第一用户标识,确定第一用户标识对应的第二用户标识,根据虚拟资源数量生成虚拟资源添加成功消息,将虚拟资源添加成功消息发送至第二用户标识指示的第二终端。在实际应用的过程中,服务器在生成虚拟资源添加操作成功消息时,可以基于虚拟资源数量生成资源代码数据,使得虚拟资源添加操作成功消息中携带该资源代码数据,即将资源代码数据添加到虚拟资源添加操作成功消息中,以便第二终端在接收到虚拟资源添加操作成功消息后,可以提取资源代码数据,基于NFC功能将资源代码数据写入第一用户的卡片,完成对虚拟资源的卡片写入操作。In the embodiment of the present application, the virtual resource adding operation success message is used to indicate that the current first user has completed the adding operation to the virtual resource, and the second terminal may continue to perform the card writing operation on the virtual resource. After the server determines that the first terminal of the first user completes the virtual resource adding operation based on the service processing page, the number of the virtual resources added by the first user and the first user identifier are obtained, and the second user identifier corresponding to the first user identifier is determined. And generating a virtual resource addition success message according to the quantity of the virtual resources, and sending the virtual resource addition success message to the second terminal indicated by the second user identifier. In the process of the actual application, when the server generates the virtual resource adding operation success message, the server may generate the resource code data based on the virtual resource quantity, so that the virtual resource adding operation success message carries the resource code data, that is, the resource code data is added to the virtual resource. The operation success message is added, so that after receiving the virtual resource adding operation success message, the second terminal may extract the resource code data, write the resource code data into the card of the first user based on the NFC function, and complete the card writing to the virtual resource. operating.
210、第二终端获取虚拟资源添加操作成功消息,显示操作引导页面,操作引导页面用于指示第二用户使用第二终端对第一用户的卡片进行卡片写入操作。210. The second terminal acquires a virtual resource adding operation success message, and displays an operation guiding page, where the operation guiding page is used to instruct the second user to perform a card writing operation on the card of the first user by using the second terminal.
在本申请实施例中,第二终端在接收到服务器发送的虚拟资源添加成功消息后,从虚拟资源添加成功消息中获取虚拟资源数量,并根据虚拟资源数量,生成操作引导页面,以使第二用户根据该操作引导页面的指示,使用第二终端对第一用户的卡片进行卡片写入操作。需要说明的是,操作引导页面上可以显示对第二用户的操作提醒,也即提醒第二用户如何进行操作便可以完成向第一用户的卡片写入虚拟资源。例如,参见图8,可以显示图8所示的操作引导页面,在操作引导页面上显示“再次贴卡完成充值”,这样,当第二终端基于NFC功能检测到第二用户将第一用户的卡片贴在第二终端上时,即可完成向第一用户的卡片写入虚拟资源的卡片写入操作。In the embodiment of the present application, after receiving the virtual resource addition success message sent by the server, the second terminal acquires the virtual resource quantity from the virtual resource addition success message, and generates an operation guidance page according to the virtual resource quantity, so that the second terminal The user performs a card writing operation on the card of the first user using the second terminal according to the instruction of the operation guiding page. It should be noted that the operation guide page may display an operation reminder for the second user, that is, the second user is prompted to perform operations to complete the writing of the virtual resource to the card of the first user. For example, referring to FIG. 8, an operation guide page shown in FIG. 8 may be displayed, and “re-posting card completion refilling” is displayed on the operation guide page, so that when the second terminal detects that the second user is the first user based on the NFC function, When the card is attached to the second terminal, the card writing operation for writing the virtual resource to the card of the first user can be completed.
211、第二终端基于NFC功能向第一用户的卡片写入虚拟资源。211. The second terminal writes a virtual resource to the card of the first user based on the NFC function.
在本申请实施例中,当第二终端显示操作引导页面后,第二用户便可以根据操作引导页面上显示的操作提醒,来完成向第一用户的卡片写入虚拟资源的过程。例如,若操作引导页面上显示的操作提醒为“再次贴卡完成充值”,则第二用户可以将第一用户的卡片贴在 第二终端上,这样,第二终端便可将虚拟资源写入第一用户的卡片。在实际应用的过程中,虚拟资源添加操作成功消息中可携带用于指示虚拟资源数量的资源代码数据,第二终端可将资源代码数据提取出来,基于资源代码数据生成操作引导页面,即生成的操作引导页面中携带资源代码数据。在实现时,由于第二终端的NFC功能相当于读卡器功能,可以通过向卡片中写入代码数据改变卡片中的数据内容,因此,当第二用户再次将卡片贴在第二终端上时,第二终端便可基于NFC功能将操作引导页面上携带的资源代码数据写入第一用户的卡片中,改变卡片中的数据内容,完成对虚拟资源的卡片写入操作。In the embodiment of the present application, after the second terminal displays the operation guide page, the second user may complete the process of writing the virtual resource to the card of the first user according to the operation reminder displayed on the operation guidance page. For example, if the operation reminder displayed on the operation guide page is “refill card refilling”, the second user can paste the first user's card on the second terminal, so that the second terminal can write the virtual resource. The first user's card. In the process of the actual application, the virtual resource adding operation success message may carry resource code data for indicating the quantity of the virtual resource, and the second terminal may extract the resource code data, and generate an operation guiding page based on the resource code data, that is, generated. The resource guide data is carried in the operation guide page. In implementation, since the NFC function of the second terminal is equivalent to the card reader function, the data content in the card can be changed by writing the code data into the card, so when the second user attaches the card to the second terminal again The second terminal can write the resource code data carried on the operation guiding page into the card of the first user based on the NFC function, change the data content in the card, and complete the card writing operation on the virtual resource.
当第二终端代替第一终端完成对虚拟资源的卡片写入操作后,第二终端便通知服务器当前已经完成对虚拟资源的卡片写入操作,服务器根据第二用户标识确定与其对应的第一用户标识,生成成功指令,将成功指令发送至第一用户标识指示的第一终端,以使第一用户获知对虚拟资源的卡片写入操作被成功执行。After the second terminal completes the card write operation on the virtual resource, the second terminal notifies the server that the card write operation to the virtual resource has been completed, and the server determines the first user corresponding thereto according to the second user identifier. The identifier is generated, and the successful instruction is sent to the first terminal indicated by the first user identifier, so that the first user learns that the card write operation to the virtual resource is successfully executed.
对于第一终端来说,在实际应用中执行上述步骤201至步骤211时,可以通过图9所示的操作时序实现。参见图9,第一终端上可以显示9宫格服务页面,当检测到第一用户点击9宫格服务页面中的公交卡(即请求触发代为写入卡片功能)时,则表示第一用户选择执行卡片写入操作时,第一终端需要检测自身是否具备NFC功能;当确定第一终端具备NFC功能时,可直接由第一终端执行对虚拟资源的卡片写入操作;当确定第一终端不具备NFC功能时,则第一终端通知非NFC充值引导工具(buscard_nonfc_guide.cgi),由非NFC充值引导工具判断第一终端所在的城市是否支持终端对虚拟资源的卡片写入操作。若确定第一终端所在的城市不支持终端对虚拟资源的卡片写入操作,则结束当前流程,在第一终端上显示操作失败;若确定第一终端所在的城市支持终端对虚拟资源的卡片写入操作,则非NFC充值引导工具向第一终端回吐“代友嘀卡教育页面”(也即业务请求页面),当第一终端在“代友嘀卡教育页面”上检测到第一用户点击“马上体验”(也即对代为写入卡片功能的触发操作)时,确认获取到第一用户的第一业务处理请求,向NFC二维码工具(nfc_grcode.cgi)请求生成二维码(也即指定图形标识);当NFC二维码工具生成二维码后,便将二维码返回给第一终端,由第一终端显示二维码;第一终端在显示二维码后,会持续向NFC查询工具(nfc_daidi_poll.cgi)发送查询ckv(cloud key value,云键值),使得NFC查询工具对二维码进行检测,判断二维码是否有效,并在确定二维码过期时,指示第一终端显示新的二维码。当第二终端扫描二维码成功后,第一终端可以通过NFC查询工具向服务器发送查询ckv,查询第二用户当前是否已经嘀卡(也即对卡片进行确认);当NFC查询工具接收到服务器确定当前第二用户已经完成嘀卡后,NFC查询工具会接收服务器发送的“支付页面”(也即业务处理页面)。第一用户可在“支付页面”上点击支付,调用NFC支付工具(nfcpay_putorder.cgi)进行支付下单,并在第一终端上输入支付密码完成支付。当第一用户支付成功后,一方面,第一终端可以通过NFC查询工具向服务器发送查询ckv,查询第二终端当前是否基于NFC功能完成圈存(也即向第一用户的卡片写入虚拟资源的操作),并在接收到服务器返回的成功指令后,由NFC查询工具回吐充值结果页面完成当前流程;另一方面,第一终端可以进行等待,等待接收服务器在第二终端基于NFC功能完成圈存后下发的成功指令,并在接收到服务器返回的成功指令后完成当前流程。For the first terminal, when the above steps 201 to 211 are performed in an actual application, the operation timing shown in FIG. 9 can be implemented. Referring to FIG. 9, the first terminal can display the 9-square service page. When the first user clicks the bus card in the 9-grid service page (ie, the request triggers the write card function), the first user selects When the card write operation is performed, the first terminal needs to detect whether it has the NFC function; when it is determined that the first terminal has the NFC function, the first terminal can directly perform the card write operation on the virtual resource; when determining that the first terminal does not When the NFC function is available, the first terminal notifies the non-NFC refill guiding tool (buscard_nonfc_guide.cgi), and the non-NFC refill guiding tool determines whether the city where the first terminal is located supports the card writing operation of the virtual resource by the terminal. If it is determined that the city where the first terminal is located does not support the card write operation of the virtual resource by the terminal, the current process is terminated, and the operation failure is displayed on the first terminal; if the city supporting the terminal where the first terminal is located is determined to write the card of the virtual resource In the operation, the non-NFC refill guiding tool sends back the "Dongyou Leica Education Page" (that is, the service request page) to the first terminal, and the first terminal detects the first user on the "Dongyou Leica Education Page". When clicking "Experience Now" (that is, the trigger operation for writing the card function), it is confirmed that the first service processing request of the first user is obtained, and the NFC QR code tool (nfc_grcode.cgi) is requested to generate the two-dimensional code ( That is, the graphic identifier is specified; when the NFC two-dimensional code tool generates the two-dimensional code, the two-dimensional code is returned to the first terminal, and the first terminal displays the two-dimensional code; after the first terminal displays the two-dimensional code, Continuously send a query ckv (cloud key value) to the NFC query tool (nfc_daidi_poll.cgi), so that the NFC query tool detects the two-dimensional code, determines whether the two-dimensional code is valid, and when determining that the two-dimensional code expires, Instructing the first terminal to display a new two-dimensional code. After the second terminal scans the two-dimensional code successfully, the first terminal may send a query ckv to the server through the NFC query tool to query whether the second user currently has a card (ie, confirm the card); when the NFC query tool receives the server After determining that the current second user has completed the Leica, the NFC query tool receives the "payment page" (ie, the business processing page) sent by the server. The first user can click on the payment on the "payment page", call the NFC payment tool (nfcpay_putorder.cgi) to make the payment order, and enter the payment password on the first terminal to complete the payment. After the first user pays successfully, on the one hand, the first terminal can send a query ckv to the server through the NFC query tool, and query whether the second terminal is currently performing the circle storage based on the NFC function (that is, writing the virtual resource to the card of the first user). The operation is performed, and after receiving the successful instruction returned by the server, the NFC query tool returns the refill result page to complete the current process; on the other hand, the first terminal can wait, waiting for the receiving server to complete based on the NFC function in the second terminal. The successful instruction issued after the circle is saved, and the current process is completed after receiving the successful instruction returned by the server.
对于第二终端来说,在实际应用中执行上述步骤201至步骤211时,可以通过图10所示的操作时序实现。参见图10,当第二终端扫描第一终端提供的二维码(即指定图形标识) 后,会基于NFC二维码检测工具(nfc_grcode_scan.cgi)判断当前二维码是否有效,若确定当前二维码无效,则显示扫描失败;若确定当前二维码有效,则第二终端可以获取第二终端的型号信息、应用版本信息,并基于NFC白名单工具向服务器发送携带第一用户标识、第二用户标识以及第二终端的型号信息的扫描确认消息。当服务器接收到扫描确认消息后,通过提取扫描确认消息携带的第一用户标识、第二用户标识以及第二终端的型号信息,确定第二终端可以代替第一终端执行对虚拟资源的卡片写入操作时,则向第二终端的NFC白名单工具发送“代友嘀卡页面”(也即业务确认页面);当第二终端接收到服务器发送的“代友嘀卡页面”时,基于“代友嘀卡页面”上的提醒,将第一用户的卡片贴在第二终端上,对第一用户的卡片进行确认。当第二终端在“代友嘀卡页面”上检测到第一用户的卡片时,可通过NFC缓存工具向服务器发送第二用户的卡片确认消息,同时等待第一终端在业务处理页面上进行交互完成虚拟资源添加操作,此时,第二终端可以显示“等待支付页面”(也即卡片详情页面),在“等待支付页面”上显示第一用户的卡片剩余虚拟资源信息、卡片编号等卡片信息。需要说明的是,在等待第一终端在业务处理页面上进行交互完成虚拟资源添加操作时,第二终端可以通过NFC查询工具持续向服务器发送查询ckv,以便查询第一终端的支付状态。当第一终端在业务处理页面上进行交互完成虚拟资源添加操作时,第二终端的NFC查询工具可以接收到服务器发送的订单状态为已支付消息(也即虚拟资源添加操作成功消息),并基于虚拟资源添加操作成功消息中携带的虚拟资源生成“等待嘀卡页面”(也即操作引导页面),第二终端根据操作引导页面便可以基于NFC功能向第一用户的卡片写入虚拟资源,并通知服务器当前已经完成圈存(也即向第一用户的卡片写入虚拟资源的操作),将圈存结果进行展示,完成当前流程。For the second terminal, when the above steps 201 to 211 are performed in an actual application, the operation timing shown in FIG. 10 can be implemented. Referring to FIG. 10, after the second terminal scans the two-dimensional code provided by the first terminal (ie, specifies the graphic identifier), it determines whether the current two-dimensional code is valid based on the NFC two-dimensional code detecting tool (nfc_grcode_scan.cgi). If the dimension code is invalid, the scan fails. If the current QR code is valid, the second terminal can obtain the model information and the application version information of the second terminal, and send the first user identifier to the server based on the NFC whitelist tool. A scan confirmation message of the second user identifier and the model information of the second terminal. After receiving the scan confirmation message, the server determines that the second terminal can perform card write to the virtual resource instead of the first terminal by extracting the first user identifier, the second user identifier, and the model information of the second terminal carried in the scan confirmation message. In operation, the “Affiliate Leica Page” (that is, the service confirmation page) is sent to the NFC whitelisting tool of the second terminal; when the second terminal receives the “Day of the Friends Leica page” sent by the server, based on the “generation” The reminder on the friend card page, the first user's card is attached to the second terminal, and the first user's card is confirmed. When the second terminal detects the card of the first user on the “Friends Leica page”, the second user's card confirmation message may be sent to the server through the NFC cache tool, and wait for the first terminal to interact on the service processing page. The virtual resource adding operation is completed. At this time, the second terminal may display a “waiting for payment page” (that is, a card detail page), and display card information such as the remaining virtual resource information and card number of the first user on the “waiting for payment page”. . It should be noted that, when waiting for the first terminal to perform the virtual resource adding operation on the service processing page, the second terminal may continuously send the query ckv to the server through the NFC query tool, so as to query the payment status of the first terminal. When the first terminal performs the virtual resource adding operation on the service processing page, the NFC query tool of the second terminal may receive the order status sent by the server as a paid message (that is, the virtual resource adding operation success message), and is based on The virtual resource carried in the virtual resource adding operation success message generates a “waiting for the Leica page” (that is, the operation guiding page), and the second terminal can write the virtual resource to the card of the first user based on the NFC function according to the operation guiding page, and The notification server has completed the circle storage (that is, the operation of writing the virtual resource to the card of the first user), and displays the result of the circle to complete the current process.
本申请实施例提供的方法,在获取第一用户的业务处理请求后,显示指定图形标识,基于指定图形标识确定可以代替第一终端完成对虚拟资源的卡片写入操作的第二终端,并显示业务处理页面,使得第一用户在业务处理页面上向卡片账户添加虚拟资源,以便在基于业务处理页面进行交互完成虚拟资源添加操作后,第二终端可以进行卡片写入操作,保证了不具备短距离数据交换功能的第一终端也可以为卡片执行卡片写入操作,使得业务的使用不会受到硬件的限制,简化了卡片写入操作的过程,业务的传播效率较高。The method provided by the embodiment of the present application, after acquiring the service processing request of the first user, displaying the specified graphic identifier, determining, according to the specified graphic identifier, the second terminal that can complete the card writing operation on the virtual resource in place of the first terminal, and displaying The service processing page enables the first user to add a virtual resource to the card account on the service processing page, so that after the virtual resource adding operation is completed based on the business processing page, the second terminal can perform a card writing operation to ensure that the short message is not short. The first terminal of the distance data exchange function can also perform a card write operation for the card, so that the use of the service is not limited by the hardware, the process of the card write operation is simplified, and the service propagation efficiency is high.
图11是根据一示例性实施例示出的一种卡片写入装置的框图。参照图11,该装置包括获取模块1101,第一显示模块1102,第二显示模块1103和写入模块1104。FIG. 11 is a block diagram of a card writing device, according to an exemplary embodiment. Referring to FIG. 11, the apparatus includes an acquisition module 1101, a first display module 1102, a second display module 1103, and a write module 1104.
该获取模块1101,用于获取第一用户的第一业务处理请求,第一业务处理请求用于请求其它终端代替第一终端完成卡片写入操作,卡片写入操作用于向第一用户的卡片写入虚拟资源,第一用户为登录于第一终端的用户;The obtaining module 1101 is configured to acquire a first service processing request of the first user, where the first service processing request is used to request another terminal to complete the card writing operation instead of the first terminal, and the card writing operation is used for the card to the first user. Writing a virtual resource, where the first user is a user logged in to the first terminal;
该第一显示模块1102,用于根据第一业务处理请求显示指定图形标识,指定图形标识用于指示扫描指定图形标识的第二终端代替第一终端完成片写入操作;The first display module 1102 is configured to display a specified graphic identifier according to the first service processing request, where the specified graphic identifier is used to instruct the second terminal that scans the specified graphic identifier to complete the slice writing operation instead of the first terminal;
该第二显示模块1103,用于如果确定第二终端能够执行卡片写入操作,显示业务处理页面,业务处理页面用于向第一用户的卡片账户添加虚拟资源;The second display module 1103 is configured to display a service processing page, where the service processing page is used to add a virtual resource to the card account of the first user, if it is determined that the second terminal is capable of performing a card write operation;
该写入模块1104,用于基于业务处理页面进行交互完成虚拟资源添加操作后,指示第二终端进行卡片写入操作。The writing module 1104 is configured to instruct the second terminal to perform a card writing operation after the virtual resource adding operation is completed based on the service processing page.
本申请实施例提供的装置,在获取第一用户的第一业务处理请求后,显示指定图形标 识,基于指定图形标识确定可以代替第一终端完成对虚拟资源的卡片写入操作的第二终端,并显示业务处理页面,使得第一用户在业务处理页面上向卡片账户添加虚拟资源,以便在基于业务处理页面进行交互完成虚拟资源添加操作后,第二终端可以进行卡片写入操作,保证了不具备短距离数据交换功能的第一终端也可以为卡片执行卡片写入操作,使得业务的使用不会受到硬件的限制,简化了卡片写入操作的过程,业务的传播效率较高。The apparatus provided by the embodiment of the present application, after acquiring the first service processing request of the first user, displaying the specified graphic identifier, determining, according to the specified graphic identifier, a second terminal that can complete the card writing operation on the virtual resource instead of the first terminal, And displaying the service processing page, so that the first user adds a virtual resource to the card account on the service processing page, so that after the virtual resource adding operation is completed based on the service processing page, the second terminal can perform a card writing operation to ensure that the The first terminal with short-distance data exchange function can also perform card write operation for the card, so that the use of the service is not limited by the hardware, the process of the card write operation is simplified, and the service propagation efficiency is high.
在另一个实施例中,参见图12,该装置还包括第三显示模块1105、发送模块1106和接收模块1107。In another embodiment, referring to FIG. 12, the apparatus further includes a third display module 1105, a transmitting module 1106, and a receiving module 1107.
该第三显示模块1105,用于在显示指定图形标识时,显示第一用户的社交关系链中持有能够执行卡片写入操作的第二终端的候选用户,能够执行卡片写入操作的第二终端具备短距离数据交换功能,且与第一终端之间的距离小于预设距离,候选用户是服务器在接收到第一终端发送的第一用户标识后反馈的;The third display module 1105 is configured to display, when displaying the specified graphic identifier, a candidate user holding a second terminal capable of performing a card writing operation in the social relationship chain of the first user, and capable of performing a second card writing operation The terminal has a short-distance data exchange function, and the distance between the first terminal and the first terminal is less than the preset distance, and the candidate user is fed back after receiving the first user identifier sent by the first terminal;
发送模块1106,用于从候选用户中选择一个候选用户作为第二用户,并向服务器发送第二业务处理请求,第二业务处理请求用于指示第二用户;The sending module 1106 is configured to select one candidate user as the second user from the candidate users, and send a second service processing request to the server, where the second service processing request is used to indicate the second user.
接收模块1107,用于接收服务器发送的业务处理页面,业务处理页面是服务器根据第二业务处理请求确定第二用户,向第二用户所登录的第二终端发送业务确认页面,在接收到第二用户基于业务确认页面对卡片的确认后发送的。The receiving module 1107 is configured to receive a service processing page sent by the server, where the server determines that the second user is configured according to the second service processing request, and sends a service confirmation page to the second terminal that is logged in by the second user, and receives the second The user sends it after confirming the card based on the business confirmation page.
图13是根据一示例性实施例示出的一种卡片写入装置的框图。参照图13,该装置包括扫描模块1301,发送模块1302,显示模块1303和写入模块1304。FIG. 13 is a block diagram of a card writing device, according to an exemplary embodiment. Referring to FIG. 13, the apparatus includes a scanning module 1301, a transmitting module 1302, a display module 1303, and a writing module 1304.
该扫描模块1301,用于扫描第一终端提供的指定图形标识,指定图形标识用于指示扫描指定图形标识的第二终端代替第一终端完成卡片写入操作,所述卡片写入操作用于向第一用户的卡片写入虚拟资源,所述第一用户为登录于所述第一终端的用户;The scanning module 1301 is configured to scan a specified graphic identifier provided by the first terminal, and the specified graphic identifier is used to instruct the second terminal that scans the specified graphic identifier to complete the card writing operation instead of the first terminal, where the card writing operation is used to The first user's card is written into a virtual resource, and the first user is a user logged in to the first terminal;
该发送模块1302,用于扫描成功后,向服务器发送第二终端的扫描确认消息;The sending module 1302 is configured to send a scan confirmation message of the second terminal to the server after the scan succeeds;
该显示模块1303,用于显示业务确认页面,业务确认页面用于提醒第二终端对第一用户的卡片进行确认;The display module 1303 is configured to display a service confirmation page, where the service confirmation page is used to remind the second terminal to confirm the card of the first user;
该发送模块1302,还用于当检测到第一用户的卡片时,向服务器发送第二终端的卡片确认消息;The sending module 1302 is further configured to: when the card of the first user is detected, send a card confirmation message of the second terminal to the server;
该显示模块1303,还用于获取虚拟资源添加操作成功消息,显示操作引导页面,操作引导页面用于指示第二终端对第一用户的卡片进行卡片写入操作,虚拟资源添加操作成功消息用于指示第一终端成功向第一用户的卡片账户添加虚拟资源;The display module 1303 is further configured to obtain a virtual resource adding operation success message, and display an operation guiding page, where the operation guiding page is used to instruct the second terminal to perform a card writing operation on the card of the first user, and the virtual resource adding operation success message is used for Instructing the first terminal to successfully add a virtual resource to the card account of the first user;
该写入模块1304,用于基于第二终端的短距离数据交换功能向第一用户的卡片写入虚拟资源。The writing module 1304 is configured to write a virtual resource to the card of the first user based on the short-distance data exchange function of the second terminal.
本申请实施例提供的装置,通过扫描第一终端提供的指定图形标识,向服务器发送扫描确认消息,当检测到第一用户的卡片时,向服务器发送卡片确认消息,并获取虚拟资源添加操作成功消息,显示操作引导页面,基于第二终端的短距离数据交换功能向第一用户的卡片写入虚拟资源,使得第二终端可以代替第一终端执行卡片写入操作,保证了不具备短距离数据交换功能的第一终端也可以为卡片执行卡片写入操作,使得业务的使用不会受到硬件的限制,简化了卡片写入操作的过程,业务的传播效率较高。The device provided by the embodiment of the present application sends a scan confirmation message to the server by scanning the specified graphic identifier provided by the first terminal. When the card of the first user is detected, the card confirmation message is sent to the server, and the virtual resource addition operation is successfully obtained. The message is displayed, and the operation guiding page is displayed, and the virtual resource is written to the card of the first user based on the short-distance data exchange function of the second terminal, so that the second terminal can perform the card writing operation instead of the first terminal, thereby ensuring that the short-distance data is not provided. The first terminal of the switching function can also perform a card writing operation for the card, so that the use of the service is not limited by the hardware, the process of the card writing operation is simplified, and the service propagation efficiency is high.
在另一个实施例中,参见图14,该装置还包括获取模块1305。In another embodiment, referring to FIG. 14, the apparatus further includes an acquisition module 1305.
该获取模块1305,用于获取第一用户的卡片的卡片详情页面,卡片详情页面包括第一用户的卡片的卡片剩余虚拟资源信息。The obtaining module 1305 is configured to obtain a card detail page of the card of the first user, where the card detail page includes card remaining virtual resource information of the card of the first user.
图15是根据一示例性实施例示出的一种卡片写入装置的框图。参照图15,该装置包括确定模块1501,第一发送模块1502和第二发送模块1503。FIG. 15 is a block diagram of a card writing device, according to an exemplary embodiment. Referring to FIG. 15, the apparatus includes a determination module 1501, a first transmission module 1502, and a second transmission module 1503.
该确定模块1501,用于确定第一终端以及第二终端,第二终端为能够代替第一终端完成卡片写入操作的终端,卡片写入操作用于向第一用户的卡片写入虚拟资源,第一用户为登录于第一终端的用户;The determining module 1501 is configured to determine a first terminal and a second terminal, where the second terminal is a terminal capable of performing a card writing operation in place of the first terminal, and the card writing operation is used to write a virtual resource to the card of the first user. The first user is a user logged in to the first terminal;
该第一发送模块1502,用于向第二终端发送业务确认页面,并基于业务确认页面获取第二终端的卡片确认消息,业务确认页面用于提醒第二终端对第一用户的卡片进行确认;The first sending module 1502 is configured to send a service confirmation page to the second terminal, and obtain a card confirmation message of the second terminal based on the service confirmation page, where the service confirmation page is used to remind the second terminal to confirm the card of the first user;
该第二发送模块1503,用于向第一终端发送业务处理页面,并在第一终端基于业务处理页面完成虚拟资源添加操作后,向第二终端发送操作引导页面,业务处理页面用于向第一用户的卡片账户添加虚拟资源,操作引导页面用于指示第二终端对第一用户的卡片进行卡片写入操作。The second sending module 1503 is configured to send a service processing page to the first terminal, and after the first terminal completes the virtual resource adding operation based on the service processing page, send an operation guiding page to the second terminal, where the service processing page is used for A user's card account adds a virtual resource, and the operation guide page is used to instruct the second terminal to perform a card write operation on the card of the first user.
本申请实施例提供的装置,通过确定第一终端以及能够代替第一终端完成对虚拟资源的卡片写入操作的第二终端,并向第二终端发送业务确认页面,基于业务确认页面获取第二终端的卡片确认消息,向第一终端发送业务处理页面,并在第一终端基于业务处理页面完成虚拟资源添加操作后,向第二终端发送操作引导页面,使得第二终端可以基于引导页面对第一用户的卡片进行卡片写入操作,保证了不具备短距离数据交换功能的第一终端也可以为卡片执行卡片写入操作,使得业务的使用不会受到硬件的限制,简化了卡片写入操作的过程,业务的传播效率较高。The device provided by the embodiment of the present application determines the first terminal and the second terminal that can complete the card write operation to the virtual resource in place of the first terminal, and sends a service confirmation page to the second terminal, and obtains the second information based on the service confirmation page. The card confirmation message of the terminal sends a service processing page to the first terminal, and after the first terminal completes the virtual resource adding operation based on the service processing page, sends an operation guiding page to the second terminal, so that the second terminal can be based on the guiding page. A user's card performs a card writing operation, which ensures that the first terminal that does not have the short-distance data exchange function can also perform card writing operations for the card, so that the use of the service is not limited by hardware, simplifying the card writing operation. The process of business dissemination is more efficient.
在另一个实施例中,确定模块1501,还用于:In another embodiment, the determining module 1501 is further configured to:
接收第二终端的扫描确认消息,根据扫描确认消息确定第一终端以及第二终端;或,Receiving a scan confirmation message of the second terminal, determining the first terminal and the second terminal according to the scan confirmation message; or
当检测到第一用户的第一用户标识时,获取第一用户的社交关系链中持有能够执行卡片写入操作的第二终端的候选用户,将候选用户发送至第一终端,并根据第一终端上被选中的第二用户确定第二终端,能够执行卡片写入操作的第二终端具备短距离数据交换功能,且与第一终端之间的距离小于预设距离。When detecting the first user identifier of the first user, acquiring a candidate user of the first user's social relationship chain holding the second terminal capable of performing a card write operation, and transmitting the candidate user to the first terminal, and according to the The second user selected on the terminal determines the second terminal, and the second terminal capable of performing the card write operation has a short-distance data exchange function, and the distance from the first terminal is less than the preset distance.
在另一个实施例中,确定模块1501,还用于:In another embodiment, the determining module 1501 is further configured to:
从扫描确认消息中提取第二终端的终端型号信息;Extracting terminal model information of the second terminal from the scan confirmation message;
当根据第二终端的终端型号信息确定第二终端具备短距离数据交换功能时,根据扫描确认消息确定第一终端和第二终端。When it is determined that the second terminal has the short-distance data exchange function according to the terminal model information of the second terminal, the first terminal and the second terminal are determined according to the scan confirmation message.
图16是根据一示例性实施例示出的一种卡片写入装置1600的框图。例如,装置1600可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。FIG. 16 is a block diagram of a card writing device 1600, according to an exemplary embodiment. For example, device 1600 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
参照图16,装置1600可以包括以下一个或多个组件:处理组件1602,存储器1604,电源组件1606,多媒体组件1608,音频组件1610,I/O(Input/Output,输入/输出)的接口1612,传感器组件1614,以及通信组件1616。Referring to Figure 16, apparatus 1600 can include one or more of the following components: processing component 1602, memory 1604, power component 1606, multimedia component 1608, audio component 1610, I/O (Input/Output) interface 1612, Sensor component 1614, and communication component 1616.
处理组件1602通常控制装置1600的整体操作,诸如与显示,电话呼叫,数据通信, 相机操作和记录操作相关联的操作。处理组件1602可以包括一个或多个处理器1620来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件1602可以包括一个或多个模块,便于处理组件1602和其他组件之间的交互。例如,处理组件1602可以包括多媒体模块,以方便多媒体组件1608和处理组件1602之间的交互。 Processing component 1602 typically controls the overall operation of device 1600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing component 1602 can include one or more processors 1620 to execute instructions to perform all or part of the steps described above. Moreover, processing component 1602 can include one or more modules to facilitate interaction between component 1602 and other components. For example, the processing component 1602 can include a multimedia module to facilitate interaction between the multimedia component 1608 and the processing component 1602.
存储器1604被配置为存储各种类型的数据以支持在装置1600的操作。这些数据的示例包括用于在装置1600上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器1604可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如SRAM(Static Random Access Memory,静态随机存取存储器),EEPROM(Electrically-Erasable Programmable Read-Only Memory,电可擦除可编程只读存储器),EPROM(Erasable Programmable Read Only Memory,可擦除可编程只读存储器),PROM(Programmable Read-Only Memory,可编程只读存储器),ROM(Read-Only Memory,只读存储器),磁存储器,快闪存储器,磁盘或光盘。 Memory 1604 is configured to store various types of data to support operation at device 1600. Examples of such data include instructions for any application or method operating on device 1600, contact data, phone book data, messages, pictures, videos, and the like. The memory 1604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as SRAM (Static Random Access Memory), EEPROM (Electrically-Erasable Programmable Read-Only Memory) Erasable Programmable Read Only Memory (EPROM), PROM (Programmable Read-Only Memory), ROM (Read-Only Memory, Read only memory), magnetic memory, flash memory, disk or optical disk.
电源组件1606为装置1600的各种组件提供电力。电源组件1606可以包括电源管理系统,一个或多个电源,及其他与为装置1600生成、管理和分配电力相关联的组件。 Power component 1606 provides power to various components of device 1600. Power component 1606 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 1600.
多媒体组件1608包括在所述装置1600和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括LCD(Liquid Crystal Display,液晶显示器)和TP(Touch Panel,触摸面板)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件1608包括一个前置摄像头和/或后置摄像头。当装置1600处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具备焦距和光学变焦能力。 Multimedia component 1608 includes a screen between the device 1600 and the user that provides an output interface. In some embodiments, the screen may include an LCD (Liquid Crystal Display) and a TP (Touch Panel). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor may sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1608 includes a front camera and/or a rear camera. When the device 1600 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
音频组件1610被配置为输出和/或输入音频信号。例如,音频组件1610包括一个MIC(Microphone,麦克风),当装置1600处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器1604或经由通信组件1616发送。在一些实施例中,音频组件1610还包括一个扬声器,用于输出音频信号。The audio component 1610 is configured to output and/or input an audio signal. For example, the audio component 1610 includes a MIC (Microphone) that is configured to receive an external audio signal when the device 1600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may be further stored in memory 1604 or transmitted via communication component 1616. In some embodiments, the audio component 1610 also includes a speaker for outputting an audio signal.
I/O接口1612为处理组件1602和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 1612 provides an interface between the processing component 1602 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
传感器组件1614包括一个或多个传感器,用于为装置1600提供各个方面的状态评估。例如,传感器组件1614可以检测到设备1600的打开/关闭状态,组件的相对定位,例如组件为装置1600的显示器和小键盘,传感器组件1614还可以检测装置1600或装置1600一个组件的位置改变,用户与装置1600接触的存在或不存在,装置1600方位或加速/减速和装置1600的温度变化。传感器组件1614可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件1614还可以包括光传感器,如CMOS(Complementary Metal Oxide Semiconductor,互补金属氧化物)或CCD(Charge-coupled Device,电荷耦合元件)图像传感器,用于在成像应用中使用。在一些实施例中,该传感器 组件1614还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。 Sensor assembly 1614 includes one or more sensors for providing state assessment of various aspects to device 1600. For example, sensor assembly 1614 can detect an open/closed state of device 1600, the relative positioning of components, such as a display and a keypad of device 1600, and sensor component 1614 can also detect a change in position of a component of device 1600 or device 1600, the user The presence or absence of contact with device 1600, device 1600 orientation or acceleration/deceleration and temperature variation of device 1600. Sensor assembly 1614 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 1614 may also include a light sensor, such as a CMOS (Complementary Metal Oxide Semiconductor) or CCD (Charge-coupled Device) image sensor for use in imaging applications. In some embodiments, the sensor assembly 1614 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
通信组件1616被配置为便于装置1600和其他设备之间有线或无线方式的通信。装置1600可以接入基于通信标准的无线网络,如WiFi或3G,或它们的组合。在一个示例性实施例中,通信组件1616经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件1616还包括NFC(Near Field Communication,近场通信)模块,以促进短程通信。例如,在NFC模块可基于RFID(Radio Frequency Identification,射频识别)技术,IrDA(Infra-red Data Association,红外数据协会)技术,UWB(Ultra Wideband,超宽带)技术,BT(Bluetooth,蓝牙)技术和其他技术来实现。 Communication component 1616 is configured to facilitate wired or wireless communication between device 1600 and other devices. The device 1600 can access a wireless network based on a communication standard, such as WiFi or 3G, or a combination thereof. In an exemplary embodiment, communication component 1616 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1616 further includes an NFC (Near Field Communication) module to facilitate short-range communication. For example, the NFC module can be based on RFID (Radio Frequency Identification) technology, IrDA (Infra-red Data Association) technology, UWB (Ultra Wideband) technology, BT (Bluetooth) technology and Other technologies to achieve.
在示例性实施例中,装置1600可以被一个或多个ASIC(Application Specific Integrated Circuit,应用专用集成电路)、DSP(Digital signal Processor,数字信号处理器)、DSPD(Digital signal Processor Device,数字信号处理设备)、PLD(Programmable Logic Device,可编程逻辑器件)、FPGA)(Field Programmable Gate Array,现场可编程门阵列)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述卡片写入方法。In an exemplary embodiment, the device 1600 may be configured by one or more ASICs (Application Specific Integrated Circuits), DSP (Digital Signal Processor), DSPD (Digital Signal Processor Device). Device), PLD (Programmable Logic Device), FPGA (Field Programmable Gate Array), controller, microcontroller, microprocessor or other electronic component implementation for performing the above Card writing method.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1604,上述指令可由装置1600的处理器1620执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、RAM(Random Access Memory,随机存取存储器)、CD-ROM(Compact Disc Read-Only Memory,光盘只读存储器)、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer readable storage medium comprising instructions, such as a memory 1604 comprising instructions executable by processor 1620 of apparatus 1600 to perform the above method. For example, the non-transitory computer readable storage medium may be a ROM, a RAM (Random Access Memory), a CD-ROM (Compact Disc Read-Only Memory), a magnetic tape, a floppy disk, and optical data. Storage devices, etc.
一种计算机可读存储介质,当存储介质中的指令由卡片写入装置的处理器执行时,使得卡片写入装置能够执行上述卡片写入方法。A computer readable storage medium that, when executed by a processor of a card writing device, causes a card writing device to perform the card writing method described above.
一种第一终端,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机可执行指令,计算机可执行指令用于执行以下操作:A first terminal includes a memory, a processor, and computer executable instructions stored on the memory and executable on the processor, the computer executable instructions for performing the following operations:
获取第一用户的第一业务处理请求,第一业务处理请求用于请求其它终端代替第一终端完成卡片写入操作,卡片写入操作用于向第一用户的卡片写入虚拟资源,第一用户为登录于第一终端的用户;Obtaining a first service processing request of the first user, where the first service processing request is used to request another terminal to complete the card writing operation instead of the first terminal, and the card writing operation is used to write the virtual resource to the card of the first user, first The user is a user who logs in to the first terminal;
根据第一业务处理请求显示指定图形标识,指定图形标识用于指示扫描指定图形标识的第二终端代替第一终端完成卡片写入操作;Displaying, by the first service processing request, a specified graphic identifier, where the graphic identifier is used to indicate that the second terminal scanning the specified graphic identifier completes the card writing operation instead of the first terminal;
如果确定第二终端能够执行卡片写入操作,显示业务处理页面,业务处理页面用于向第一用户的卡片账户添加虚拟资源;If it is determined that the second terminal is capable of performing a card write operation, displaying a service processing page, the service processing page is configured to add a virtual resource to the card account of the first user;
基于业务处理页面进行交互完成虚拟资源添加操作后,指示第二终端进行卡片写入操作。After the virtual resource adding operation is completed based on the service processing page, the second terminal is instructed to perform a card writing operation.
在另一个实施例中,计算机可执行指令还用于执行以下操作:In another embodiment, the computer executable instructions are further for performing the following operations:
在显示指定图形标识时,显示第一用户的社交关系链中持有能够执行卡片写入操作的第二终端的候选用户,能够执行卡片写入操作的第二终端具备短距离数据交换功能,且与第一终端之间的距离小于预设距离,候选用户是服务器在接收到第一终端发送的第一用户标识后反馈的;When displaying the specified graphic identifier, displaying a candidate user of the first user's social relationship chain holding the second terminal capable of performing the card writing operation, and the second terminal capable of performing the card writing operation has the short-distance data exchange function, and The distance between the first terminal and the first terminal is less than the preset distance, and the candidate user is fed back after receiving the first user identifier sent by the first terminal;
从候选用户中选择一个候选用户作为第二用户,并向服务器发送第二业务处理请求, 第二业务处理请求用于指示第二用户;Selecting one candidate user as the second user from the candidate users, and sending a second service processing request to the server, where the second service processing request is used to indicate the second user;
接收服务器发送的业务处理页面,业务处理页面是服务器根据第二业务处理请求确定第二用户,向第二用户所登录的第二终端发送业务确认页面,在接收到第二用户基于业务确认页面对卡片的确认后发送的。Receiving a service processing page sent by the server, the service processing page is that the server determines the second user according to the second service processing request, and sends a service confirmation page to the second terminal that is logged in by the second user, and receives the second user based service confirmation page. The card is sent after confirmation.
一种第二终端,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机可执行指令,计算机可执行指令用于执行以下操作:A second terminal includes a memory, a processor, and computer executable instructions stored on the memory and executable on the processor, the computer executable instructions for performing the following operations:
扫描第一终端提供的指定图形标识,指定图形标识用于指示扫描指定图形标识的第二终端代替第一终端完成卡片写入操作,卡片写入操作用于向第一用户的卡片写入虚拟资源,第一用户为登录于第一终端的用户;Scanning a specified graphic identifier provided by the first terminal, the graphic identifier is used to indicate that the second terminal scanning the specified graphic identifier completes the card writing operation instead of the first terminal, and the card writing operation is used to write the virtual resource to the card of the first user. The first user is a user logged in to the first terminal;
扫描成功后,向服务器发送第二终端的扫描确认消息;After the scanning succeeds, sending a scan confirmation message of the second terminal to the server;
显示业务确认页面,业务确认页面用于提醒第二终端对第一用户的卡片进行确认;Displaying a service confirmation page, where the service confirmation page is used to remind the second terminal to confirm the card of the first user;
当检测到第一用户的卡片时,向服务器发送第二终端的卡片确认消息;Sending a card confirmation message of the second terminal to the server when the card of the first user is detected;
获取虚拟资源添加操作成功消息,显示操作引导页面,操作引导页面用于指示第二终端对第一用户的卡片进行卡片写入操作,虚拟资源添加操作成功消息用于指示第一终端成功向第一用户的卡片账户添加虚拟资源;Obtaining a virtual resource adding operation success message, displaying an operation guiding page, the operation guiding page is used to instruct the second terminal to perform a card writing operation on the card of the first user, and the virtual resource adding operation success message is used to indicate that the first terminal succeeds in the first Add a virtual resource to the user's card account;
基于第二终端的短距离数据交换功能向第一用户的卡片写入虚拟资源。The virtual resource is written to the card of the first user based on the short-distance data exchange function of the second terminal.
在另一个实施例中,计算机可执行指令用于执行以下操作:In another embodiment, computer executable instructions are used to perform the following operations:
当检测到第一用户的卡片时,获取第一用户的卡片的卡片详情页面,卡片详情页面包括第一用户的卡片的卡片剩余虚拟资源信息。When the card of the first user is detected, the card detail page of the card of the first user is obtained, and the card detail page includes the remaining virtual resource information of the card of the card of the first user.
一种服务器,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机可执行指令,计算机可执行指令用于执行以下操作:A server includes a memory, a processor, and computer executable instructions stored on the memory and executable on the processor, the computer executable instructions for performing the following operations:
确定第一终端以及第二终端,第二终端为能够代替第一终端完成卡片写入操作的终端,卡片写入操作用于向第一用户的卡片写入虚拟资源,第一用户为登录于第一终端的用户;Determining a first terminal and a second terminal, wherein the second terminal is a terminal capable of completing a card writing operation in place of the first terminal, and the card writing operation is for writing a virtual resource to the card of the first user, where the first user is logged in a user of a terminal;
向第二终端发送业务确认页面,并基于业务确认页面获取第二终端的卡片确认消息,业务确认页面用于提醒第二终端对第一用户的卡片进行确认;Sending a service confirmation page to the second terminal, and acquiring a card confirmation message of the second terminal based on the service confirmation page, where the service confirmation page is used to remind the second terminal to confirm the card of the first user;
向第一终端发送业务处理页面,并在第一终端基于业务处理页面完成虚拟资源添加操作后,向第二终端发送操作引导页面,业务处理页面用于向第一用户的卡片账户添加虚拟资源,操作引导页面用于指示第二终端对第一用户的卡片进行卡片写入操作。Sending a service processing page to the first terminal, and after the first terminal completes the virtual resource adding operation based on the service processing page, sending an operation guiding page to the second terminal, where the service processing page is used to add a virtual resource to the card account of the first user, The operation guiding page is configured to instruct the second terminal to perform a card writing operation on the card of the first user.
在另一个实施例中,计算机可执行指令用于执行以下操作:In another embodiment, computer executable instructions are used to perform the following operations:
接收第二终端的扫描确认消息,根据扫描确认消息确定第一终端以及第二终端;或,Receiving a scan confirmation message of the second terminal, determining the first terminal and the second terminal according to the scan confirmation message; or
当检测到第一用户的第一用户标识时,获取第一用户的社交关系链中持有能够执行卡片写入操作的第二终端的候选用户,将候选用户发送至第一终端,并根据第一终端上被选中的第二用户确定第二终端,能够执行卡片写入操作的第二终端具备短距离数据交换功能,且与第一终端之间的距离小于预设距离。When detecting the first user identifier of the first user, acquiring a candidate user of the first user's social relationship chain holding the second terminal capable of performing a card write operation, and transmitting the candidate user to the first terminal, and according to the The second user selected on the terminal determines the second terminal, and the second terminal capable of performing the card write operation has a short-distance data exchange function, and the distance from the first terminal is less than the preset distance.
在另一个实施例中,计算机可执行指令用于执行以下操作:In another embodiment, computer executable instructions are used to perform the following operations:
从扫描确认消息中提取第二终端的终端型号信息;Extracting terminal model information of the second terminal from the scan confirmation message;
当根据第二终端的终端型号信息确定第二终端具备短距离数据交换功能时,根据扫描 确认消息确定第一终端和第二终端。When it is determined that the second terminal has the short-distance data exchange function according to the terminal model information of the second terminal, the first terminal and the second terminal are determined according to the scan confirmation message.
需要说明的是:上述实施例提供的卡片写入的装置在进行卡片写入时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的业务处理的装置与业务处理的方法实施例属于同一构思,其实现过程详见方法实施例,这里不再赘述。It should be noted that, in the card writing device provided in the above embodiment, only the division of each functional module described above is illustrated when performing card writing. In actual applications, the functions may be assigned different functions according to needs. The module is completed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device for the service processing provided by the foregoing embodiment is the same as the method embodiment of the service processing, and the implementation process thereof is described in detail in the method embodiment, and details are not described herein again.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。A person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium. The storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.
以上所述仅为本发明的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above description is only an optional embodiment of the present invention, and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc., which are within the spirit and principles of the present application, should be included in the protection of the present application. Within the scope.

Claims (22)

  1. 一种卡片写入方法,所述方法应用于第一终端,所述方法包括:A card writing method, the method being applied to a first terminal, the method comprising:
    获取第一用户的第一业务处理请求,所述第一业务处理请求用于请求其它终端代替所述第一终端完成卡片写入操作,所述卡片写入操作用于向所述第一用户的卡片写入虚拟资源,所述第一用户为登录于所述第一终端的用户;Obtaining a first service processing request of the first user, where the first service processing request is used to request another terminal to complete a card write operation in place of the first terminal, where the card write operation is used for the first user Writing a card to the virtual resource, where the first user is a user logged in to the first terminal;
    根据所述第一业务处理请求显示指定图形标识,所述指定图形标识用于指示扫描所述指定图形标识的第二终端代替所述第一终端完成所述卡片写入操作;And displaying, by the first service processing request, a specified graphic identifier, where the specified graphic identifier is used to indicate that the second terminal that scans the specified graphic identifier completes the card writing operation instead of the first terminal;
    如果确定所述第二终端能够执行所述卡片写入操作,显示业务处理页面,所述业务处理页面用于向所述第一用户的卡片账户添加所述虚拟资源;If it is determined that the second terminal is capable of performing the card writing operation, displaying a service processing page, the service processing page is configured to add the virtual resource to a card account of the first user;
    基于所述业务处理页面进行交互完成虚拟资源添加操作后,指示所述第二终端进行所述卡片写入操作。After the virtual resource adding operation is completed based on the service processing page, the second terminal is instructed to perform the card writing operation.
  2. 根据权利要求1所述的方法,所述方法还包括:The method of claim 1 further comprising:
    在显示所述指定图形标识时,显示所述第一用户的社交关系链中持有能够执行所述卡片写入操作的第二终端的候选用户,能够执行所述卡片写入操作的所述第二终端具备短距离数据交换功能,且与所述第一终端之间的距离小于预设距离,所述候选用户是服务器在接收到第一终端发送的第一用户标识后反馈的;Displaying the specified graphic identifier, displaying a candidate user of the first user's social relationship chain holding a second terminal capable of performing the card writing operation, capable of performing the card writing operation The second terminal has a short-distance data exchange function, and the distance between the first terminal and the first terminal is less than a preset distance, and the candidate user is fed back after receiving the first user identifier sent by the first terminal;
    从所述候选用户中选择一个候选用户作为第二用户,并向所述服务器发送第二业务处理请求,所述第二业务处理请求用于指示所述第二用户;Selecting one candidate user as the second user from the candidate users, and sending a second service processing request to the server, where the second service processing request is used to indicate the second user;
    接收所述服务器发送的所述业务处理页面,所述业务处理页面是所述服务器根据所述第二业务处理请求确定所述第二用户,向所述第二用户所登录的第二终端发送业务确认页面,在接收到所述第二用户基于所述业务确认页面对所述卡片的确认后发送的。Receiving, by the server, the service processing page, where the service processing page is that the server determines the second user according to the second service processing request, and sends a service to the second terminal that is logged in by the second user. The confirmation page is sent after receiving the confirmation that the second user confirms the card based on the service confirmation page.
  3. 一种卡片写入方法,所述方法应用于第二终端,所述方法包括:A card writing method, the method being applied to a second terminal, the method comprising:
    扫描第一终端提供的指定图形标识,所述指定图形标识用于指示扫描所述指定图形标识的所述第二终端代替所述第一终端完成卡片写入操作,所述卡片写入操作用于向第一用户的卡片写入虚拟资源,所述第一用户为登录于所述第一终端的用户;And scanning a specified graphic identifier provided by the first terminal, where the specified graphic identifier is used to indicate that the second terminal scanning the specified graphic identifier completes a card writing operation instead of the first terminal, and the card writing operation is used for Writing a virtual resource to the card of the first user, where the first user is a user logged in to the first terminal;
    扫描成功后,向服务器发送所述第二终端的扫描确认消息;After the scanning succeeds, sending a scan confirmation message of the second terminal to the server;
    显示业务确认页面,所述业务确认页面用于提醒所述第二终端对所述第一用户的卡片进行确认;Displaying a service confirmation page, where the service confirmation page is used to remind the second terminal to confirm the card of the first user;
    当检测到所述第一用户的卡片时,向所述服务器发送所述第二终端的卡片确认消息;Sending a card confirmation message of the second terminal to the server when the card of the first user is detected;
    获取虚拟资源添加操作成功消息,显示操作引导页面,所述操作引导页面用于指示所述第二终端对所述第一用户的卡片进行所述卡片写入操作,所述虚拟资源添加操作成功消息用于指示所述第一终端成功向所述第一用户的卡片账户添加所述虚拟资源;Obtaining a virtual resource adding operation success message, displaying an operation guiding page, the operation guiding page is configured to instruct the second terminal to perform the card writing operation on the card of the first user, and the virtual resource adding operation success message Instructing the first terminal to successfully add the virtual resource to a card account of the first user;
    基于所述第二终端的短距离数据交换功能向所述第一用户的卡片写入所述虚拟资源。Writing the virtual resource to the card of the first user based on the short-distance data exchange function of the second terminal.
  4. 根据权利要求3所述的方法,所述当检测到所述第一用户的卡片时,向所述服务器发送所述第二终端的卡片确认消息之后,所述方法还包括:The method according to claim 3, after the card confirmation message of the second terminal is sent to the server when the card of the first user is detected, the method further includes:
    获取所述第一用户的卡片的卡片详情页面,所述卡片详情页面包括所述第一用户的卡片的卡片剩余虚拟资源信息。Obtaining a card detail page of the card of the first user, where the card detail page includes card remaining virtual resource information of the card of the first user.
  5. 一种卡片写入方法,所述方法应用于服务器,所述方法包括:A card writing method, the method being applied to a server, the method comprising:
    确定第一终端以及第二终端,所述第二终端为能够代替所述第一终端完成卡片写入操作的终端,所述卡片写入操作用于向第一用户的卡片写入虚拟资源,所述第一用户为登录于所述第一终端的用户;Determining a first terminal and a second terminal, the second terminal being a terminal capable of completing a card writing operation in place of the first terminal, the card writing operation for writing a virtual resource to a card of the first user, The first user is a user logged in to the first terminal;
    向所述第二终端发送业务确认页面,并基于所述业务确认页面获取所述第二终端的卡片确认消息,所述业务确认页面用于提醒所述第二终端对所述第一用户的卡片进行确认;Sending a service confirmation page to the second terminal, and acquiring a card confirmation message of the second terminal based on the service confirmation page, where the service confirmation page is used to remind the second terminal of the card of the first user Undergo verification;
    向所述第一终端发送业务处理页面,并在所述第一终端基于所述业务处理页面完成虚拟资源添加操作后,向所述第二终端发送操作引导页面,所述业务处理页面用于向所述第一用户的卡片账户添加所述虚拟资源,所述操作引导页面用于指示所述第二终端对所述第一用户的卡片进行所述卡片写入操作。Sending a service processing page to the first terminal, and after the first terminal completes the virtual resource adding operation based on the service processing page, sending an operation guiding page to the second terminal, where the service processing page is used to The card account of the first user adds the virtual resource, and the operation guiding page is used to instruct the second terminal to perform the card writing operation on the card of the first user.
  6. 根据权利要求5所述的方法,所述确定第一终端以及第二终端,包括:The method of claim 5, the determining the first terminal and the second terminal, comprising:
    接收所述第二终端的扫描确认消息,根据所述扫描确认消息确定所述第一终端以及所述第二终端;或,Receiving a scan confirmation message of the second terminal, determining, according to the scan confirmation message, the first terminal and the second terminal; or
    当检测到所述第一用户的第一用户标识时,获取所述第一用户的社交关系链中持有能够执行所述卡片写入操作的第二终端的候选用户,将所述候选用户发送至所述第一终端,并根据所述第一终端上被选中的第二用户确定所述第二终端,能够执行所述卡片写入操作的所述第二终端具备短距离数据交换功能,且与所述第一终端之间的距离小于预设距离。And when the first user identifier of the first user is detected, acquiring a candidate user in the social relationship chain of the first user that is capable of performing the card writing operation, and sending the candidate user To the first terminal, and determining the second terminal according to the selected second user on the first terminal, the second terminal capable of performing the card writing operation has a short-distance data exchange function, and The distance from the first terminal is less than a preset distance.
  7. 根据权利要求6所述的方法,所述根据所述扫描确认消息确定所述第一终端以及所述第二终端,包括:The method according to claim 6, wherein the determining the first terminal and the second terminal according to the scan confirmation message comprises:
    从所述扫描确认消息中提取所述第二终端的终端型号信息;Extracting terminal model information of the second terminal from the scan confirmation message;
    当根据所述第二终端的终端型号信息确定所述第二终端具备短距离数据交换功能时,根据所述扫描确认消息确定所述第一终端和所述第二终端。Determining, according to the terminal model information of the second terminal, that the second terminal has a short-distance data exchange function, determining, according to the scan confirmation message, the first terminal and the second terminal.
  8. 一种卡片写入装置,所述装置应用于第一终端,所述装置包括:A card writing device, the device being applied to a first terminal, the device comprising:
    获取模块,用于获取第一用户的第一业务处理请求,所述第一业务处理请求用于请求其它终端代所述替第一终端完成卡片写入操作,所述卡片写入操作用于向所述第一用户的卡片写入虚拟资源,所述第一用户为登录于所述第一终端的用户;An acquiring module, configured to acquire a first service processing request of the first user, where the first service processing request is used to request another terminal to complete a card writing operation for the first terminal, and the card writing operation is used to Writing a virtual resource to the card of the first user, where the first user is a user logged in to the first terminal;
    第一显示模块,用于根据所述第一业务处理请求显示指定图形标识,所述指定图形标识用于指示扫描所述指定图形标识的第二终端代替所述第一终端完成所述卡片写入操作;a first display module, configured to display, according to the first service processing request, a specified graphic identifier, where the specified graphic identifier is used to indicate that the second terminal that scans the specified graphic identifier completes the card writing instead of the first terminal operating;
    第二显示模块,用于如果确定第二终端能够执行所述卡片写入操作,显示业务处理页面,所述业务处理页面用于向所述第一用户的卡片账户添加所述虚拟资源;a second display module, configured to display a service processing page, where the service processing page is configured to add the virtual resource to the card account of the first user, if it is determined that the second terminal is capable of performing the card writing operation;
    写入模块,用于基于所述业务处理页面进行交互完成虚拟资源添加操作后,指示所述第二终端进行所述卡片写入操作。The writing module is configured to instruct the second terminal to perform the card writing operation after performing the virtual resource adding operation based on the interaction of the service processing page.
  9. 根据权利要求8所述的装置,所述装置还包括:The apparatus of claim 8 further comprising:
    第三显示模块,用于在显示所述指定图形标识时,显示所述第一用户的社交关系链中持有能够执行所述卡片写入操作的第二终端的候选用户,能够执行所述卡片写入操作的所述第二终端具备短距离数据交换功能,且与所述第一终端之间的距离小于预设距离,所述候选用户是服务器在接收到第一终端发送的第一用户标识后反馈的;a third display module, configured to display, when the specified graphic identifier is displayed, a candidate user holding a second terminal capable of performing the card writing operation in the social relationship chain of the first user, capable of executing the card The second terminal of the write operation has a short-distance data exchange function, and the distance between the second terminal and the first terminal is less than a preset distance, and the candidate user is the first user identifier sent by the server after receiving the first terminal. Post feedback
    发送模块,用于从所述候选用户中选择一个候选用户作为第二用户,并向所述服务器发送第二业务处理请求,所述第二业务处理请求用于指示所述第二用户;a sending module, configured to select one candidate user as the second user from the candidate users, and send a second service processing request to the server, where the second service processing request is used to indicate the second user;
    接收模块,用于接收所述服务器发送的所述业务处理页面,所述业务处理页面是所述服务器根据所述第二业务处理请求确定所述第二用户,向所述第二用户所登录的第二终端发送业务确认页面,在接收到所述第二用户基于所述业务确认页面对所述卡片的确认后发送的。a receiving module, configured to receive the service processing page sent by the server, where the service processing page is that the server determines, according to the second service processing request, that the second user logs in to the second user The second terminal sends a service confirmation page, and is sent after receiving the confirmation that the second user confirms the card based on the service confirmation page.
  10. 一种卡片写入装置,所述装置应用于第二终端,所述装置包括:A card writing device, the device being applied to a second terminal, the device comprising:
    扫描模块,用于扫描第一终端提供的指定图形标识,所述指定图形标识用于指示扫描所述指定图形标识的所述第二终端代替所述第一终端完成卡片写入操作,所述卡片写入操作用于向第一用户的卡片写入虚拟资源,所述第一用户为登录于所述第一终端的用户;a scanning module, configured to scan a specified graphic identifier provided by the first terminal, where the specified graphic identifier is used to indicate that the second terminal scanning the specified graphic identifier completes a card writing operation in place of the first terminal, the card The write operation is used to write a virtual resource to the card of the first user, where the first user is a user logged in to the first terminal;
    发送模块,用于扫描成功后,向服务器发送所述第二终端的扫描确认消息;a sending module, configured to send a scan confirmation message of the second terminal to the server after the scanning succeeds;
    显示模块,用于显示业务确认页面,所述业务确认页面用于提醒所述第二终端对所述第一用户的卡片进行确认;a display module, configured to display a service confirmation page, where the service confirmation page is used to remind the second terminal to confirm the card of the first user;
    所述发送模块,还用于当检测到所述第一用户的卡片时,向所述服务器发送所述第二终端的卡片确认消息;The sending module is further configured to: when the card of the first user is detected, send a card confirmation message of the second terminal to the server;
    所述显示模块,还用于获取虚拟资源添加操作成功消息,显示操作引导页面,所述操作引导页面用于指示所述第二终端对所述第一用户的卡片进行所述卡片写入操作,所述虚拟资源添加操作成功消息用于指示所述第一终端成功向所述第一用户的卡片账户添加所述虚拟资源;The display module is further configured to obtain a virtual resource adding operation success message, and display an operation guiding page, where the operation guiding page is used to instruct the second terminal to perform the card writing operation on the card of the first user, The virtual resource adding operation success message is used to indicate that the first terminal successfully adds the virtual resource to the card account of the first user;
    写入模块,用于基于所述第二终端的短距离数据交换功能向所述第一用户的卡片写入所述虚拟资源。And a writing module, configured to write the virtual resource to the card of the first user based on the short-distance data exchange function of the second terminal.
  11. 根据权利要求10所述的装置,所述装置还包括:The device of claim 10, the device further comprising:
    获取模块,用于获取所述第一用户的卡片的卡片详情页面,所述卡片详情页面包括所述第一用户的卡片的卡片剩余虚拟资源信息。And an obtaining module, configured to acquire a card detail page of the card of the first user, where the card detail page includes card remaining virtual resource information of the card of the first user.
  12. 一种卡片写入装置,所述装置应用于服务器,所述装置包括:A card writing device, the device being applied to a server, the device comprising:
    确定模块,用于确定第一终端以及第二终端,所述第二终端为能够代替所述第一终端完成卡片写入操作的终端,所述卡片写入操作用于向第一用户的卡片写入虚拟资源,所述第一用户为登录于所述第一终端的用户;a determining module, configured to determine a first terminal and a second terminal, wherein the second terminal is a terminal capable of performing a card writing operation in place of the first terminal, and the card writing operation is used to write to a card of the first user Entering a virtual resource, where the first user is a user logged in to the first terminal;
    第一发送模块,用于向所述第二终端发送业务确认页面,并基于所述业务确认页面获取所述第二终端的卡片确认消息,所述业务确认页面用于提醒所述第二终端对所述第一用户的卡片进行确认;a first sending module, configured to send a service confirmation page to the second terminal, and obtain a card confirmation message of the second terminal based on the service confirmation page, where the service confirmation page is used to remind the second terminal The card of the first user is confirmed;
    第二发送模块,用于向所述第一终端发送业务处理页面,并在所述第一终端基于所述业 务处理页面完成虚拟资源添加操作后,向所述第二终端发送操作引导页面,所述业务处理页面用于向所述第一用户的卡片账户添加所述虚拟资源,所述操作引导页面用于指示所述第二终端对所述第一用户的卡片进行所述卡片写入操作。a second sending module, configured to send a service processing page to the first terminal, and after the first terminal completes a virtual resource adding operation based on the service processing page, send an operation guiding page to the second terminal, where The service processing page is configured to add the virtual resource to the card account of the first user, where the operation guiding page is used to instruct the second terminal to perform the card writing operation on the card of the first user.
  13. 根据权利要求12所述的装置,所述确定模块,还用于:The apparatus according to claim 12, wherein the determining module is further configured to:
    接收所述第二终端的扫描确认消息,根据所述扫描确认消息确定所述第一终端以及所述第二终端;或,Receiving a scan confirmation message of the second terminal, determining, according to the scan confirmation message, the first terminal and the second terminal; or
    当检测到所述第一用户的第一用户标识时,获取所述第一用户的社交关系链中持有能够执行所述卡片写入操作的第二终端的候选用户,将所述候选用户发送至所述第一终端,并根据所述第一终端上被选中的第二用户确定所述第二终端,能够执行所述卡片写入操作的所述第二终端具备短距离数据交换功能,且与所述第一终端之间的距离小于预设距离。And when the first user identifier of the first user is detected, acquiring a candidate user in the social relationship chain of the first user that is capable of performing the card writing operation, and sending the candidate user To the first terminal, and determining the second terminal according to the selected second user on the first terminal, the second terminal capable of performing the card writing operation has a short-distance data exchange function, and The distance from the first terminal is less than a preset distance.
  14. 根据权利要求13所述的装置,所述确定模块,还用于:The apparatus according to claim 13, wherein the determining module is further configured to:
    从所述扫描确认消息中提取所述第二终端的终端型号信息;Extracting terminal model information of the second terminal from the scan confirmation message;
    当根据所述第二终端的终端型号信息确定所述第二终端具备短距离数据交换功能时,根据所述扫描确认消息确定所述第一终端和所述第二终端。Determining, according to the terminal model information of the second terminal, that the second terminal has a short-distance data exchange function, determining, according to the scan confirmation message, the first terminal and the second terminal.
  15. 一种第一终端,包括存储器、处理器及存储在存储器上并可在所述处理器上运行的计算机可执行指令,所述计算机可执行指令用于执行以下操作:A first terminal includes a memory, a processor, and computer executable instructions stored on the memory and executable on the processor, the computer executable instructions for performing the following operations:
    获取第一用户的第一业务处理请求,所述第一业务处理请求用于请求其它终端代替所述第一终端完成卡片写入操作,所述卡片写入操作用于向所述第一用户的卡片写入虚拟资源,所述第一用户为登录于所述第一终端的用户;Obtaining a first service processing request of the first user, where the first service processing request is used to request another terminal to complete a card write operation in place of the first terminal, where the card write operation is used for the first user Writing a card to the virtual resource, where the first user is a user logged in to the first terminal;
    根据所述第一业务处理请求显示指定图形标识,所述指定图形标识用于指示扫描所述指定图形标识的第二终端代替所述第一终端完成所述卡片写入操作;And displaying, by the first service processing request, a specified graphic identifier, where the specified graphic identifier is used to indicate that the second terminal that scans the specified graphic identifier completes the card writing operation instead of the first terminal;
    如果确定所述第二终端能够执行所述卡片写入操作,显示业务处理页面,所述业务处理页面用于向所述第一用户的卡片账户添加所述虚拟资源;If it is determined that the second terminal is capable of performing the card writing operation, displaying a service processing page, the service processing page is configured to add the virtual resource to a card account of the first user;
    基于所述业务处理页面进行交互完成虚拟资源添加操作后,指示所述第二终端进行所述卡片写入操作。After the virtual resource adding operation is completed based on the service processing page, the second terminal is instructed to perform the card writing operation.
  16. 根据权利要求15所述的第一终端,所述计算机可执行指令还用于执行以下操作:The first terminal of claim 15, the computer executable instructions further for performing the following operations:
    在显示所述指定图形标识时,显示所述第一用户的社交关系链中持有能够执行所述卡片写入操作的第二终端的候选用户,能够执行所述卡片写入操作的所述第二终端具备短距离数据交换功能,且与所述第一终端之间的距离小于预设距离,所述候选用户是服务器在接收到第一终端发送的第一用户标识后反馈的;Displaying the specified graphic identifier, displaying a candidate user of the first user's social relationship chain holding a second terminal capable of performing the card writing operation, capable of performing the card writing operation The second terminal has a short-distance data exchange function, and the distance between the first terminal and the first terminal is less than a preset distance, and the candidate user is fed back after receiving the first user identifier sent by the first terminal;
    从所述候选用户中选择一个候选用户作为第二用户,并向所述服务器发送第二业务处理请求,所述第二业务处理请求用于指示所述第二用户;Selecting one candidate user as the second user from the candidate users, and sending a second service processing request to the server, where the second service processing request is used to indicate the second user;
    接收所述服务器发送的所述业务处理页面,所述业务处理页面是所述服务器根据所述第二业务处理请求确定所述第二用户,向所述第二用户所登录的第二终端发送业务确认页面,在接收到所述第二用户基于所述业务确认页面对所述卡片的确认后发送的。Receiving, by the server, the service processing page, where the service processing page is that the server determines the second user according to the second service processing request, and sends a service to the second terminal that is logged in by the second user. The confirmation page is sent after receiving the confirmation that the second user confirms the card based on the service confirmation page.
  17. 一种第二终端,包括存储器、处理器及存储在存储器上并可在所述处理器上运行的计算机可执行指令,所述计算机可执行指令用于执行以下操作:A second terminal includes a memory, a processor, and computer executable instructions stored on the memory and executable on the processor, the computer executable instructions for performing the following operations:
    扫描第一终端提供的指定图形标识,所述指定图形标识用于指示扫描所述指定图形标识的所述第二终端代替所述第一终端完成卡片写入操作,所述卡片写入操作用于向第一用户的卡片写入虚拟资源,所述第一用户为登录于所述第一终端的用户;And scanning a specified graphic identifier provided by the first terminal, where the specified graphic identifier is used to indicate that the second terminal scanning the specified graphic identifier completes a card writing operation instead of the first terminal, and the card writing operation is used for Writing a virtual resource to the card of the first user, where the first user is a user logged in to the first terminal;
    扫描成功后,向服务器发送所述第二终端的扫描确认消息;After the scanning succeeds, sending a scan confirmation message of the second terminal to the server;
    显示业务确认页面,所述业务确认页面用于提醒所述第二终端对所述第一用户的卡片进行确认;Displaying a service confirmation page, where the service confirmation page is used to remind the second terminal to confirm the card of the first user;
    当检测到所述第一用户的卡片时,向所述服务器发送所述第二终端的卡片确认消息;Sending a card confirmation message of the second terminal to the server when the card of the first user is detected;
    获取虚拟资源添加操作成功消息,显示操作引导页面,所述操作引导页面用于指示所述第二终端对所述第一用户的卡片进行所述卡片写入操作,所述虚拟资源添加操作成功消息用于指示所述第一终端成功向所述第一用户的卡片账户添加所述虚拟资源;Obtaining a virtual resource adding operation success message, displaying an operation guiding page, the operation guiding page is configured to instruct the second terminal to perform the card writing operation on the card of the first user, and the virtual resource adding operation success message Instructing the first terminal to successfully add the virtual resource to a card account of the first user;
    基于所述第二终端的短距离数据交换功能向所述第一用户的卡片写入所述虚拟资源。Writing the virtual resource to the card of the first user based on the short-distance data exchange function of the second terminal.
  18. 根据权利要求17所述的第二终端,所述计算机可执行指令用于执行以下操作:The second terminal of claim 17, the computer executable instructions to perform the following operations:
    所述当检测到所述第一用户的卡片时,获取所述第一用户的卡片的卡片详情页面,所述卡片详情页面包括所述第一用户的卡片的卡片剩余虚拟资源信息。And when the card of the first user is detected, acquiring a card detail page of the card of the first user, where the card detail page includes card remaining virtual resource information of the card of the first user.
  19. 一种服务器,包括存储器、处理器及存储在存储器上并可在所述处理器上运行的计算机可执行指令,所述计算机可执行指令用于执行以下操作:A server includes a memory, a processor, and computer executable instructions stored on the memory and executable on the processor, the computer executable instructions for performing the following operations:
    确定第一终端以及第二终端,所述第二终端为能够代替所述第一终端完成卡片写入操作的终端,所述卡片写入操作用于向第一用户的卡片写入虚拟资源,所述第一用户为登录于所述第一终端的用户;Determining a first terminal and a second terminal, the second terminal being a terminal capable of completing a card writing operation in place of the first terminal, the card writing operation for writing a virtual resource to a card of the first user, The first user is a user logged in to the first terminal;
    向所述第二终端发送业务确认页面,并基于所述业务确认页面获取所述第二终端的卡片确认消息,所述业务确认页面用于提醒所述第二终端对所述第一用户的卡片进行确认;Sending a service confirmation page to the second terminal, and acquiring a card confirmation message of the second terminal based on the service confirmation page, where the service confirmation page is used to remind the second terminal of the card of the first user Undergo verification;
    向所述第一终端发送业务处理页面,并在所述第一终端基于所述业务处理页面完成虚拟资源添加操作后,向所述第二终端发送操作引导页面,所述业务处理页面用于向所述第一用户的卡片账户添加所述虚拟资源,所述操作引导页面用于指示所述第二终端对所述第一用户的卡片进行所述卡片写入操作。Sending a service processing page to the first terminal, and after the first terminal completes the virtual resource adding operation based on the service processing page, sending an operation guiding page to the second terminal, where the service processing page is used to The card account of the first user adds the virtual resource, and the operation guiding page is used to instruct the second terminal to perform the card writing operation on the card of the first user.
  20. 根据权利要求19所述的服务器,所述计算机可执行指令用于执行以下操作:The server of claim 19, the computer executable instructions for performing the following operations:
    接收所述第二终端的扫描确认消息,根据所述扫描确认消息确定所述第一终端以及所述第二终端;或,Receiving a scan confirmation message of the second terminal, determining, according to the scan confirmation message, the first terminal and the second terminal; or
    当检测到所述第一用户的第一用户标识时,获取所述第一用户的社交关系链中持有能够执行所述卡片写入操作的第二终端的候选用户,将所述候选用户发送至所述第一终端,并根据所述第一终端上被选中的第二用户确定所述第二终端,能够执行所述卡片写入操作的所述第二终端具备短距离数据交换功能,且与所述第一终端之间的距离小于预设距离。And when the first user identifier of the first user is detected, acquiring a candidate user in the social relationship chain of the first user that is capable of performing the card writing operation, and sending the candidate user To the first terminal, and determining the second terminal according to the selected second user on the first terminal, the second terminal capable of performing the card writing operation has a short-distance data exchange function, and The distance from the first terminal is less than a preset distance.
  21. 根据权利要求20所述的服务器,所述计算机可执行指令用于执行以下操作:A server according to claim 20, said computer executable instructions for performing the following operations:
    从所述扫描确认消息中提取所述第二终端的终端型号信息;Extracting terminal model information of the second terminal from the scan confirmation message;
    当根据所述第二终端的终端型号信息确定所述第二终端具备短距离数据交换功能时,根据所述扫描确认消息确定所述第一终端和所述第二终端。Determining, according to the terminal model information of the second terminal, that the second terminal has a short-distance data exchange function, determining, according to the scan confirmation message, the first terminal and the second terminal.
  22. 一种计算机可读存储介质,所述计算机可读存储介质上存储有指令,所述指令被处理器执行以完成如权利要求1-7任一项所述的卡片写入方法。A computer readable storage medium having stored thereon instructions executable by a processor to perform the card writing method of any of claims 1-7.
PCT/CN2018/087114 2017-05-18 2018-05-16 Card writing method and device, terminal, server, and storage medium WO2018210271A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710352725.0A CN108960810B (en) 2017-05-18 2017-05-18 Card writing method and device, computer equipment and storage medium
CN201710352725.0 2017-05-18

Publications (1)

Publication Number Publication Date
WO2018210271A1 true WO2018210271A1 (en) 2018-11-22

Family

ID=64273356

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/087114 WO2018210271A1 (en) 2017-05-18 2018-05-16 Card writing method and device, terminal, server, and storage medium

Country Status (2)

Country Link
CN (1) CN108960810B (en)
WO (1) WO2018210271A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111932237A (en) * 2020-07-31 2020-11-13 武汉阿迪克电子股份有限公司 Cloud-based one-card transaction method and system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113807843B (en) * 2021-09-06 2023-10-20 中国银联股份有限公司 Card binding method, user terminal, server, system and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289754A (en) * 2011-08-08 2011-12-21 中兴通讯股份有限公司 Method and system for paying on mobile terminal and mobile terminal
US20130311313A1 (en) * 2010-04-09 2013-11-21 Kevin Laracey Nfc transaction processing systems and methods
CN103761649A (en) * 2014-02-25 2014-04-30 唐川 Network recharging system and method for IC card
CN105868978A (en) * 2016-03-25 2016-08-17 福建联迪商用设备有限公司 NFC mobile payment method and system thereof

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106204019B (en) * 2015-05-07 2022-09-30 深圳市腾讯计算机系统有限公司 Information processing method, first terminal, second terminal and server
CN105139543B (en) * 2015-07-31 2021-08-06 苏州海博智能系统有限公司 Self-service charging method for smart card
CN106559470B (en) * 2015-09-30 2021-03-26 北京奇虎科技有限公司 Account information pushing method and device
CN105956854A (en) * 2016-05-11 2016-09-21 新智数字科技有限公司 Data processing method and cloud server
CN106296183A (en) * 2016-08-01 2017-01-04 西宁高通交通科技有限公司 The off-line charging method of a kind of smart card and equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130311313A1 (en) * 2010-04-09 2013-11-21 Kevin Laracey Nfc transaction processing systems and methods
CN102289754A (en) * 2011-08-08 2011-12-21 中兴通讯股份有限公司 Method and system for paying on mobile terminal and mobile terminal
CN103761649A (en) * 2014-02-25 2014-04-30 唐川 Network recharging system and method for IC card
CN105868978A (en) * 2016-03-25 2016-08-17 福建联迪商用设备有限公司 NFC mobile payment method and system thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111932237A (en) * 2020-07-31 2020-11-13 武汉阿迪克电子股份有限公司 Cloud-based one-card transaction method and system

Also Published As

Publication number Publication date
CN108960810B (en) 2022-04-15
CN108960810A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
CN112118227B (en) Card binding method and terminal
US11638127B2 (en) Electronic device for sharing data and method for controlling the same
CN108876385B (en) Identity authentication method, device and system
US20190313226A1 (en) Mobile devices, methods, and computer program products for prioritizing data sets
JP6214812B2 (en) Transfer processing method and apparatus
WO2017219270A1 (en) Method and device for displaying virtual card
CN108064373B (en) Resource transfer method and device
CN104463612A (en) Method of using mobile terminal to provide parking fee preference credentials and system thereof
CN109039990B (en) Behavior verification method and device based on verification code
WO2019096331A1 (en) Currency settlement method, apparatus, and electronic device
WO2016062173A1 (en) User attribute value transfer method and terminal
US20180053177A1 (en) Resource transfer method, apparatus and storage medium
CN105872070A (en) System, method and device for supporting cash currency exchange
WO2020156410A1 (en) Ticket information processing method, apparatus and system
KR20190130142A (en) Methods and devices for account creation, account refilling, and data synchronization
US20150310404A1 (en) Transferring money using email
TW201931818A (en) Electronic certificate transmission method, apparatus and device
WO2018210271A1 (en) Card writing method and device, terminal, server, and storage medium
CN106503986B (en) Virtual resource transfer method and device
RU2654131C1 (en) Method and device for application data processing for making a card
JP6293975B2 (en) Method, apparatus and system for displaying usage history
RU2628229C2 (en) Method and device for controlling the access to the router and the router
KR20130126048A (en) Payment method and system
CN113034141A (en) Mobile payment method, device, wearable equipment and storage medium
CN107734072A (en) The processing method and processing device of pushed information

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18801815

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18801815

Country of ref document: EP

Kind code of ref document: A1