Virtual card automatic renewal method and device, storage medium and equipment
By performing preset operations on the client to trigger the automatic renewal service, the server verifies and updates the validity period of the virtual card, which solves the problem of user-unconscious renewal, simplifies operations, ensures continuous use of the card, and optimizes user experience.
Patent Information
- Application Number
- CN202410827942.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-06
AI Technical Summary
The existing technology cannot realize the renewal operation of the virtual card without the user being aware of it, causing the user to need to actively operate, affecting the user experience, and the renewal cannot be automatically completed when the user is offline.
The automatic renewal service is triggered by the user performing preset operations on the client (such as recharging or cloud data migration). The server obtains the validity period of the virtual card for verification, and automatically issues a renewal instruction to update the validity period when the validity period is about to expire. No perceived renewal.
It simplifies user operations, ensures that cards can be renewed and recharged/imported without any awareness, optimizes user experience, and avoids the problem of cards being unusable due to expiration.
Smart Images

Figure CN118608145A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a method and device for automatically renewing a virtual card, a storage medium, and equipment. Background Art
[0002] Due to transportation card specifications, the virtual card opened by the user must include an expiration date, that is, the card can be used normally from the time the card is opened to the expiration date. Once the card expiration date has passed, the card will automatically become invalid and the card gate will intercept the user's card swiping operation. Due to the large differences in the systems of transportation card companies in various cities, the existing SAAS access model no longer requires the participation of the transportation card company in the maintenance of the entire card life cycle. Under the current logic, once the card expires, it will directly affect the user's use. Since the emergence of virtual cards, the cards opened by early users have gradually reached the expiration date and need to be renewed.
[0003] Since the renewal operation requires issuing instructions to update the validity period of the card file in the user's device, the user's device needs to remain connected to the server during the process. Therefore, this action cannot be completed automatically when the user is offline and must rely on the user's active operation. However, traditional solutions such as prompting the user to actively initiate the renewal operation are not user-friendly, and if the user does not actively initiate it, the operation cannot be completed. Summary of the invention
[0004] To this end, the present invention provides a virtual card automatic renewal method and device, storage medium, and equipment, aiming to solve the technical problem in the prior art that the card renewal operation cannot be implemented without the user's perception.
[0005] To achieve the above objectives, the present invention adopts the following technical solutions:
[0006] According to a first aspect of the present invention, the present invention provides a method for automatically renewing a virtual card, the method comprising:
[0007] In response to a preset operation of the user on the virtual card through the client, triggering an automatic renewal service;
[0008] Based on the automatic renewal service, the server obtains the validity period of the virtual card and verifies the validity period;
[0009] If the validity period is within the preset period, the server initiates a card renewal instruction, updates the validity period of the virtual card, and displays the updated validity period on the client.
[0010] Optionally, the triggering of the automatic renewal service in response to a preset operation of the user on the virtual card includes:
[0011] In response to a recharging operation performed by the user on the virtual card through the client, an automatic renewal service is triggered.
[0012] Optionally, based on the automatic renewal service, the server obtains the validity period of the virtual card and verifies the validity period, including:
[0013] In response to a balance reading instruction or a recharge instruction issued by the user when performing a recharge operation on the virtual card, the server performs a recharge initialization and returns an initialization result; at the same time, the server issues a card validity period reading instruction to the virtual card based on the automatic renewal service, and the server obtains the card validity period;
[0014] The server verifies the validity period of the card to determine whether the validity period is within a preset period.
[0015] Optionally, the server initiates a card renewal instruction to update the validity period of the virtual card, including:
[0016] The server updates the validity period of the virtual card according to a preset extension rule;
[0017] After the virtual card validity period is updated, the server performs a recharge and credit operation.
[0018] Optionally, the triggering of the automatic renewal service in response to a preset operation of the user on the virtual card includes:
[0019] In response to a cloud data migration operation performed by a user on a client, uploading virtual card related data to the cloud; the related data includes a virtual card ID, a balance, a transaction record, and a card validity period;
[0020] In response to a cloud data migration operation performed by a user on a client, an automatic renewal service is triggered.
[0021] Optionally, based on the automatic renewal service, the server obtains the validity period of the virtual card and verifies the validity period, including:
[0022] The server obtains the card validity period based on the cloud data;
[0023] The validity period of the card is verified to determine whether the validity period is within a preset period.
[0024] Optionally, the server initiates a card renewal instruction to update the validity period of the virtual card, including:
[0025] The server updates the card validity period according to a preset extension rule;
[0026] The virtual card related data is modified using the updated card validity period, and the virtual card related data is written to the target client.
[0027] According to a second aspect of the present invention, the present invention provides a virtual card automatic renewal device, the device comprising:
[0028] A service triggering module, configured to trigger an automatic renewal service in response to a preset operation of the user on the virtual card through the client;
[0029] A term verification module, configured to enable the server to obtain the validity period of the virtual card based on the automatic renewal service and to verify the validity period;
[0030] The card renewal module is used for the server to initiate a card renewal instruction if the validity period is within a preset period, update the validity period of the virtual card, and display the updated validity period on the client.
[0031] According to a third aspect of the present invention, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the virtual card automatic renewal method as described in any one of the first aspect of the present invention.
[0032] According to the fourth aspect of the present invention, the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the virtual card automatic renewal method as described in any one of the first aspect of the present invention when executing the computer program.
[0033] The present invention adopts the above technical solution and has at least the following beneficial effects:
[0034] Through the scheme of the present invention, in response to the user triggering the automatic renewal service through the client's preset operation on the virtual card; based on the automatic renewal service, the server obtains the validity period of the virtual card and verifies the validity period; if the validity period is within the preset period, the server initiates a card renewal instruction, updates the validity period of the virtual card, and displays the updated validity period on the client. Therefore, the present invention sends an instruction from the server to verify the validity period of the user's card. If the card is about to expire, it automatically initiates a renewal operation and sends a renewal instruction, allowing the user to complete the renewal and recharge / migration operations without feeling it. This not only ensures that the user's card can continue to be used, but also simplifies the user's operation and optimizes the user experience.
[0035] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0037] Figure 1 A schematic diagram showing a flow chart of a method for automatically renewing a virtual card provided by an embodiment of the present invention;
[0038] Figure 2 A schematic diagram showing the structure of a virtual card automatic renewal device provided by an embodiment of the present invention is shown;
[0039] Figure 3 A schematic diagram of the physical structure of a computer device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0040] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0041] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0042] The embodiment of the present invention provides a method for automatically renewing a virtual card, such as Figure 1 As shown, at least the following steps S101 to S103 may be included:
[0043] Step S101, in response to a user triggering an automatic renewal service through a preset operation of the virtual card through a client.
[0044] According to the background technology, the renewal operation of the virtual card needs to update the card validity period through the instruction sending action, during which the user device (client) needs to maintain a connection with the server, so the action cannot be completed automatically when the user is offline, and must rely on the user's active operation. Therefore, the embodiment of the present invention triggers the automatic renewal service based on the preset operation performed by the user on the virtual card through the client, so that the server can send the corresponding action to update the card validity period based on the user's preset operation on the virtual card.
[0045] It should be noted that the embodiment of the present invention selects two common operations performed by users on virtual cards to trigger the automatic renewal service, namely, the user performs a recharge operation on the virtual card and the user performs a data migration operation on the client. Specifically, the automatic renewal service can be triggered in response to the user performing a recharge operation on the virtual card through the client; or, in response to the user performing a cloud data migration operation on the client, the virtual card related data is uploaded to the cloud; the related data includes the virtual card ID, balance, transaction record and card validity period; in response to the user performing a cloud data migration operation on the client, the automatic renewal service is triggered.
[0046] Step S102: Based on the automatic renewal service, the server obtains the validity period of the virtual card and verifies the validity period.
[0047] Step S103, if the validity period is within the preset period, the server initiates a card renewal instruction, updates the validity period of the virtual card, and displays the updated validity period on the client.
[0048] The following describes the two situations of triggering the automatic renewal service described in step S101 respectively:
[0049] Case 1: Based on the recharge operation performed by the user on the virtual card through the client, the automatic renewal service is triggered:
[0050] After the automatic renewal service is triggered, the server performs a load initialization in response to a balance reading instruction or a recharge instruction issued by the user when performing a recharge operation on the virtual card, and returns an initialization result; at the same time, the server issues a card validity period reading instruction to the virtual card based on the automatic renewal service, and the server obtains the card validity period; the server verifies the card validity period to determine whether the validity period is within a preset period.
[0051] It is understandable that in the traditional process, when the user recharges the virtual card, after the client performs the recharge operation, the recharge result needs to be returned. At this time, the client first sends a card balance reading instruction to the server, then sends a virtual instruction for initializing the round-up, and finally sends a virtual instruction for round-up. Since the renewal service needs to verify the card validity period first, the embodiment of the present invention can initiate a card validity period reading instruction at the same time as issuing a recharge instruction or a card balance reading instruction to initialize the round-up to obtain the card validity period. The round-up initialization operation in the embodiment of the present invention refers to the verification process of the user's recharge by the server after the user recharges at the client, including the verification of the virtual card ID, historical orders, round-up amount, doubtful records, and records for this verification. After the round-up initialization is completed, the server will return the initialization result to the user client. In this process, the server can send a validity period reading instruction to the virtual card to obtain the card validity period.
[0052] Furthermore, after obtaining the validity period of the virtual card, the server verifies the validity period of the card to determine whether the validity period is within the preset period. It should be noted that in actual applications, the preset period in the embodiment of the present invention can be set according to actual needs, and the present invention does not limit this.
[0053] If the validity period of the virtual card is not within the preset period, it means that the virtual card is not about to expire, and the validity period of the virtual card may not be updated; if the validity period of the virtual card is within the preset period, the validity period of the virtual card may be updated according to the preset extension rules; after the virtual card validity period is updated, the server performs a recharge and deposit operation. Similarly, the preset extension rules in the embodiment of the present invention can also be set according to actual needs, and the extension period can be in units of monthly, quarterly, or annual, and the present invention does not limit this.
[0054] Case 2: In response to the user's cloud data migration operation on the client, the automatic renewal service is triggered:
[0055] Specifically, the server obtains the card validity period based on the cloud data; verifies the card validity period to determine whether the validity period is within the preset period. If the card validity period is within the preset period, the server updates the card validity period according to the preset extension rule; uses the updated card validity period to modify the virtual card related data, and writes the virtual card related data to the target client. It should be noted that in actual applications, the preset period and preset extension rules in the embodiments of the present invention can be set according to actual needs, and the present invention does not limit this.
[0056] During the migration process, since the migration operation is to rewrite the user's cloud data into the user's client, that is, the user's virtual card-related data has been saved on the server, the server can directly verify the card validity period in the previously saved virtual card-related data during migration. If the validity period is about to expire, the server directly modifies the validity period and rewrites it to the user's device. In this way, the user automatically completes the renewal action after completing the migration service, ensuring the use of the user's virtual card.
[0057] The embodiment of the present invention provides a method for automatic renewal of a virtual card, including triggering an automatic renewal service in response to a preset operation of the user on the virtual card through a client; based on the automatic renewal service, the server obtains the validity period of the virtual card and verifies the validity period; if the validity period is within the preset period, the server initiates a card renewal instruction, updates the validity period of the virtual card, and displays the updated validity period on the client. Through the present invention, the server issues an instruction to verify the validity period of the user's card. If the card is about to expire, a renewal operation is automatically initiated and a renewal instruction is issued, allowing the user to complete the renewal and recharge / migration operations without feeling anything. This not only ensures that the user's card can continue to be used, but also simplifies the user's operation and optimizes the user experience.
[0058] Further, as Figure 1 The specific implementation of the present invention provides a virtual card automatic renewal device, such as Figure 2 As shown, the device may include: a service triggering module 210 , a term verification module 220 and a card renewal module 230 .
[0059] The service triggering module 210 may be used to trigger the automatic renewal service in response to a preset operation of the user on the virtual card through the client;
[0060] The expiration verification module 220 may be used for obtaining the validity period of the virtual card based on the automatic renewal service, and verifying the validity period;
[0061] The card renewal module 230 may be used for the server to initiate a card renewal instruction if the validity period is within a preset period, update the validity period of the virtual card, and display the updated validity period on the client.
[0062] Optionally, the service triggering module 210 may also be configured to trigger an automatic renewal service in response to a recharge operation performed by the user on the virtual card through the client.
[0063] Optionally, the expiration verification module 220 may also be used to initialize the credit in response to a balance reading instruction or a recharge instruction issued by the user when performing a recharge operation on the virtual card, and return an initialization result; at the same time, the server issues a card validity period reading instruction to the virtual card based on the automatic renewal service, and the server obtains the card validity period;
[0064] The server verifies the validity period of the card to determine whether the validity period is within a preset period.
[0065] Optionally, the card renewal module 230 may also be used by the server to update the validity period of the virtual card according to a preset extension rule;
[0066] After the virtual card validity period is updated, the server performs a recharge and credit operation.
[0067] Optionally, the service trigger module 210 may also be used to upload virtual card related data to the cloud in response to a cloud data migration operation performed by a user on the client; the related data includes the virtual card ID, balance, transaction record and card validity period;
[0068] In response to a cloud data migration operation performed by a user on a client, an automatic renewal service is triggered.
[0069] Optionally, the expiration verification module 220 may also be used by the server to obtain the card validity period based on the cloud data;
[0070] The validity period of the card is verified to determine whether the validity period is within a preset period.
[0071] Optionally, the card renewal module 230 may also be used by the server to update the card validity period according to a preset extension rule;
[0072] The virtual card related data is modified using the updated card validity period, and the virtual card related data is written to the target client.
[0073] It should be noted that for other corresponding descriptions of the functional modules involved in the virtual card automatic renewal device provided in the embodiment of the present invention, reference can be made to Figure 1 The corresponding description of the method shown will not be repeated here.
[0074] Based on the above Figure 1 The method shown, accordingly, an embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the virtual card automatic renewal method described in any of the above embodiments are implemented.
[0075] Based on the above Figure 1The method shown and Figure 2 The embodiment of the device shown in the figure, the embodiment of the present invention also provides a physical structure diagram of a computer device, such as Figure 3 As shown, the computer device may include a communication bus, a processor, a memory and a communication interface, and may also include an input / output interface and a display device, wherein each functional unit may communicate with each other through the bus. The memory stores a computer program, and the processor is used to execute the program stored in the memory and execute the steps of the virtual card automatic renewal method described in the above embodiment.
[0076] Those skilled in the art can clearly understand that the specific working processes of the systems, devices, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and for the sake of brevity, they are not further described here.
[0077] In addition, the functional units in various embodiments of the present invention may be physically independent of each other, or two or more functional units may be integrated together, or all functional units may be integrated into one processing unit. The above integrated functional units may be implemented in the form of hardware, or in the form of software or firmware.
[0078] Those skilled in the art can understand that if the integrated functional unit is implemented in the form of software and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can essentially or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, which includes a number of instructions to enable a computing device (such as a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention when running the instructions. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes.
[0079] Alternatively, all or part of the steps of implementing the aforementioned method embodiments may be accomplished by hardware associated with program instructions (such as a computing device such as a personal computer, a server, or a network device), and the program instructions may be stored in a computer-readable storage medium. When the program instructions are executed by a processor of a computing device, the computing device executes all or part of the steps of the methods described in the embodiments of the present invention.
[0080] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that within the spirit and principles of the present invention, the technical solutions described in the aforementioned embodiments can still be modified, or some or all of the technical features therein can be replaced by equivalents. However, these modifications or replacements do not deviate from the protection scope of the present invention.
Claims
1. A method for automatically renewing a virtual card, It is characterized in that The method comprises: In response to a preset operation of the user on the virtual card through the client, triggering an automatic renewal service; Based on the automatic renewal service, the server obtains the validity period of the virtual card and verifies the validity period; If the validity period is within the preset period, the server initiates a card renewal instruction, updates the validity period of the virtual card, and displays the updated validity period on the client.
2. The method according to claim 1, It is characterized in that The triggering of the automatic renewal service in response to a preset operation of the user on the virtual card includes: In response to a recharging operation performed by the user on the virtual card through the client, an automatic renewal service is triggered.
3. The method according to claim 2, It is characterized in that Based on the automatic renewal service, the server obtains the validity period of the virtual card and verifies the validity period, including: In response to a balance reading instruction or a recharge instruction issued by the user when performing a recharge operation on the virtual card, the server performs a recharge initialization and returns an initialization result; at the same time, the server issues a card validity period reading instruction to the virtual card based on the automatic renewal service, and the server obtains the card validity period; The server verifies the validity period of the card to determine whether the validity period is within a preset period.
4. The method according to claim 3, It is characterized in that The server initiates a card renewal instruction to update the validity period of the virtual card, including: The server updates the validity period of the virtual card according to a preset extension rule; After the virtual card validity period is updated, the server performs a recharge and credit operation.
5. The method according to claim 1, It is characterized in that The triggering of the automatic renewal service in response to a preset operation of the user on the virtual card includes: In response to a cloud data migration operation performed by a user on a client, uploading virtual card related data to the cloud; the related data includes a virtual card ID, a balance, a transaction record, and a card validity period; In response to a cloud data migration operation performed by a user on a client, an automatic renewal service is triggered.
6. The method according to claim 5, It is characterized in that Based on the automatic renewal service, the server obtains the validity period of the virtual card and verifies the validity period, including: The server obtains the card validity period based on the cloud data; The validity period of the card is verified to determine whether the validity period is within a preset period.
7. The method according to claim 6, characterized in that , The server initiates a card renewal instruction to update the validity period of the virtual card, including: The server updates the card validity period according to a preset extension rule; The virtual card related data is modified using the updated card validity period, and the virtual card related data is written to the target client.
8. A virtual card automatic renewal device, It is characterized in that The device comprises: A service triggering module, configured to trigger an automatic renewal service in response to a preset operation of the user on the virtual card through the client; A term verification module, configured to enable the server to obtain the validity period of the virtual card based on the automatic renewal service and to verify the validity period; The card renewal module is used for the server to initiate a card renewal instruction if the validity period is within a preset period, update the validity period of the virtual card, and display the updated validity period on the client.
9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the virtual card automatic renewal method according to any one of claims 1 to 7.
10. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the virtual card automatic renewal method according to any one of claims 1 to 7 is implemented.
