Search

CN-121981720-A - Card returning method and system based on super SIM card

CN121981720ACN 121981720 ACN121981720 ACN 121981720ACN-121981720-A

Abstract

The invention discloses a card withdrawal method and system based on a super SIM card, comprising the steps of responding to a card withdrawal instruction, generating a global flow identifier based on the card withdrawal instruction, creating a state record based on the global flow identifier, initializing the state record, executing card withdrawal operation based on the global flow identifier and the state record, wherein the card withdrawal operation comprises a plurality of discretized sub-flows, acquiring the execution state of each sub-flow in real time in each card withdrawal operation, and based on the execution state and updating the state record, obtaining a first state record of the current card withdrawal operation, taking the first state record as the state record of the next card withdrawal operation if the state mark of the first state record does not meet preset conditions, executing the next card withdrawal operation based on a preset retry strategy, and completing the card withdrawal operation until the state mark of the first state record of any card withdrawal operation meets the preset conditions.

Inventors

  • YU HONGLING
  • GENG WEI
  • CHEN JINGXIN
  • Xiao Lejin
  • HUANG KUNWEN
  • Mo Yourong
  • LU YUZHI
  • WEI YIMIN

Assignees

  • 广东岭南通股份有限公司

Dates

Publication Date
20260505
Application Date
20260120

Claims (10)

  1. 1. The card returning method based on the super SIM card is characterized by comprising the following steps of: responding to a card withdrawal instruction, generating a global flow identifier based on the card withdrawal instruction, and creating a state record based on the global flow identifier; Initializing the state record, and executing card-returning operation based on the global flow identifier and the state record, wherein the card-returning operation comprises a plurality of discretized sub-flows; And in each card-ejecting operation, acquiring the execution state of each sub-process in real time, and based on the execution state and updating the state record, obtaining a first state record of the current card-ejecting operation, if the state mark of the first state record does not meet the preset condition, taking the first state record as the state record of the next card-ejecting operation, and based on a preset retry strategy, executing the next card-ejecting operation until the state mark of the first state record of any card-ejecting operation meets the preset condition, and completing the card-ejecting operation.
  2. 2. The method for card withdrawal based on super SIM card as claimed in claim 1, wherein said responding to the card withdrawal command, generating a global flow identifier based on the card withdrawal command, and creating a status record based on the global flow identifier, includes: Responding to a card withdrawal instruction, and checking and analyzing the card withdrawal instruction to obtain a card withdrawal request identifier; And generating a global flow identifier based on the card withdrawal request identifier and a preset rule, and creating a state record based on the global flow identifier and a preset record structure, wherein the state record comprises the global flow identifier, a predefined sub-flow list, state marks of all sub-flows and retry times.
  3. 3. The method for card withdrawal based on super SIM card as claimed in claim 2, wherein in each card withdrawal operation, the executing state of each sub-process is obtained in real time, and based on the executing state and updating the state record, a first state record of the current card withdrawal operation is obtained, if the state flag of the first state record does not meet the preset condition, the first state record is used as the state record of the next card withdrawal operation, and the next card withdrawal operation is executed based on the preset retry strategy, until the state flag of the first state record of any card withdrawal operation meets the preset condition, the card withdrawal operation is completed, including: In each card-withdrawing operation, acquiring the execution state of each sub-process in real time, and updating the state mark of each sub-process in the state record based on the execution state of each sub-process to obtain a first state record of the current card-withdrawing operation, wherein the state mark comprises execution success, execution failure and to-be-executed; If the state mark of the first state record does not meet the preset condition, the first state record is used as the state record of the next card withdrawal operation, and the next card withdrawal operation is executed based on a preset retry strategy; And finishing the card withdrawing operation until the state mark of the first state record of any card withdrawing operation meets the preset condition.
  4. 4. The method for card withdrawal based on super SIM card as claimed in claim 3, wherein if the status flag of the first status record does not meet a preset condition, taking the first status record as the status record of the next card withdrawal operation, and executing the next card withdrawal operation based on a preset retry strategy, includes: If the state of any sub-flow in the first state record is marked as the execution failure or to be executed, the first state record is used as the state record of the next card withdrawal operation, and the state is marked as the execution failure sub-flow as a flow set to be executed; And executing next card-returning operation on the to-be-executed flow set based on a preset retry strategy, wherein only sub-flows in the to-be-executed flow set are subjected to retry operation in the next card-returning operation.
  5. 5. The method for card withdrawal based on super SIM card as claimed in claim 4, wherein said status flag of the first status record up to any one card withdrawal operation satisfies a preset condition, and the completion of the card withdrawal operation comprises: and the card withdrawing operation is completed until the state mark of the first state record of any card withdrawing operation is successful in execution.
  6. 6. The method for ejecting a super SIM card as claimed in claim 5, wherein, in each ejecting operation, the number of retries in the status record is updated in real time, and if the number of retries reaches a preset threshold, the ejecting operation is stopped; And carrying out early warning on the card withdrawing operation based on the retry times.
  7. 7. The card returning system based on the super SIM card is characterized by comprising an instruction acquisition module and a card returning control module; the instruction acquisition module is used for responding to a card withdrawal instruction, generating a global flow identifier based on the card withdrawal instruction, and creating a state record based on the global flow identifier; the card-returning control module is used for initializing the state record, executing card-returning operation based on the global flow identifier and the state record, wherein the card-returning operation comprises a plurality of discretized sub-flows; And in each card-ejecting operation, acquiring the execution state of each sub-process in real time, and based on the execution state and updating the state record, obtaining a first state record of the current card-ejecting operation, if the state mark of the first state record does not meet the preset condition, taking the first state record as the state record of the next card-ejecting operation, and based on a preset retry strategy, executing the next card-ejecting operation until the state mark of the first state record of any card-ejecting operation meets the preset condition, and completing the card-ejecting operation.
  8. 8. The SIM card withdrawal system of claim 7, wherein the instruction acquisition module, configured to respond to a withdrawal instruction, generate a global flow identifier based on the withdrawal instruction, and create a status record based on the global flow identifier, includes: Responding to a card withdrawal instruction, and checking and analyzing the card withdrawal instruction to obtain a card withdrawal request identifier; And generating a global flow identifier based on the card withdrawal request identifier and a preset rule, and creating a state record based on the global flow identifier and a preset record structure, wherein the state record comprises the global flow identifier, a predefined sub-flow list, state marks of all sub-flows and retry times.
  9. 9. The card ejecting system based on the super SIM card as claimed in claim 8, wherein the card ejecting control module is configured to acquire an execution state of each sub-process in real time during each card ejecting operation, and obtain a first state record of the current card ejecting operation based on the execution state and the updated state record, and if the state flag of the first state record does not meet a preset condition, take the first state record as the state record of the next card ejecting operation, and execute the next card ejecting operation based on a preset retry strategy, until the state flag of the first state record of any card ejecting operation meets a preset condition, and complete the card ejecting operation, including: In each card-withdrawing operation, acquiring the execution state of each sub-process in real time, and updating the state mark of each sub-process in the state record based on the execution state of each sub-process to obtain a first state record of the current card-withdrawing operation, wherein the state mark comprises execution success, execution failure and to-be-executed; If the state mark of the first state record does not meet the preset condition, the first state record is used as the state record of the next card withdrawal operation, and the next card withdrawal operation is executed based on a preset retry strategy; And finishing the card withdrawing operation until the state mark of the first state record of any card withdrawing operation meets the preset condition.
  10. 10. The SIM card withdrawal system of claim 9, wherein if the status flag of the first status record does not meet a preset condition, the first status record is used as a status record of a next card withdrawal operation, and the next card withdrawal operation is performed based on a preset retry strategy, including: If the state of any sub-flow in the first state record is marked as the execution failure or to be executed, the first state record is used as the state record of the next card withdrawal operation, and the state is marked as the execution failure sub-flow as a flow set to be executed; And executing next card-returning operation on the to-be-executed flow set based on a preset retry strategy, wherein only sub-flows in the to-be-executed flow set are subjected to retry operation in the next card-returning operation.

Description

Card returning method and system based on super SIM card Technical Field The invention relates to the technical field of digital management, in particular to a card returning method and system based on a super SIM card. Background At present, the super SIM (Subscriber Identity Module) card is widely applied to the bearing of traffic cards, access cards, digital RMB and other businesses in the fields of mobile payment and digital asset management. In a mobile payment scene, a bank card certificate or a payment token can be safely hosted in a security element arranged in a super SIM, transaction signature and two-factor authentication are carried out by a private key which cannot be derived in the card, and token issuing, updating and revocation are completed through a controlled remote reprogrammable channel, so that the risk of cloning and remote theft is remarkably reduced. The existing super SIM card-based card withdrawal method is mainly characterized in that a strict sequence triggering type flow is adopted in most of the realization, and due to the lack of a parallel and compensation mechanism, the whole card withdrawal flow is interrupted due to failure of any intermediate link when a mobile network fluctuates or an external system fails in a short time, so that a user has to repeatedly initiate operation, experience is poor and service availability is low. Disclosure of Invention The invention provides a card returning method and system based on a super SIM card, which are used for improving the reliability and consistency of card returning based on the super SIM card. In order to solve the technical problems, the invention provides a card returning method based on a super SIM card, which comprises the following steps: responding to a card withdrawal instruction, generating a global flow identifier based on the card withdrawal instruction, and creating a state record based on the global flow identifier; Initializing the state record, and executing card-returning operation based on the global flow identifier and the state record, wherein the card-returning operation comprises a plurality of discretized sub-flows; And in each card-ejecting operation, acquiring the execution state of each sub-process in real time, and based on the execution state and updating the state record, obtaining a first state record of the current card-ejecting operation, if the state mark of the first state record does not meet the preset condition, taking the first state record as the state record of the next card-ejecting operation, and based on a preset retry strategy, executing the next card-ejecting operation until the state mark of the first state record of any card-ejecting operation meets the preset condition, and completing the card-ejecting operation. The invention introduces the global flow mark at the initial stage of the card withdrawal flow, so that each card withdrawal service has unique and traceable identity mark in the system, thereby avoiding flow confusion and state conflict caused by concurrent or repeated card withdrawal requests, and simultaneously, realizes unified management and state bearing of the whole life cycle of the card withdrawal flow by creating the state record bound with the global flow mark, provides reliable data basis for subsequent flow driving, abnormal positioning and audit tracing, and remarkably improves the controllability and consistency of the system in a distributed environment. The method and the device divide the original linear and strongly-dependent card withdrawal business into a plurality of sub-processes with definite semantics and relatively independent, and perform unified initialization and arrangement through state records, so that card withdrawal operation is converted into state drive from process drive, the coupling degree between the sub-processes is reduced, independent evolution and maintenance of different sub-processes are facilitated, structural basis is provided for subsequent refined control, step recovery and abnormal isolation, the expandability and system robustness of the whole card withdrawal process are improved, furthermore, the execution state of each sub-process is collected and persisted in real time in the card withdrawal execution process, so that the current stage of the card withdrawal process and the completion condition of each sub-process can be accurately mastered, the process state loss caused by process interruption or service restarting is avoided, and meanwhile, the formed first state record is used as objective reflection of one-time complete execution result, and provides clear basis for whether the follow-up execution is continued or not and whether retry is needed, thereby enhancing the transparency and observability of the process execution. Finally, the state record formed by the previous execution is directly used as the input of the next card withdrawal operation, so that the continuous operation and the accurate retry of the br