Search

CN-122022799-A - Riding authority control method, riding authority control device, computer equipment and readable storage medium

CN122022799ACN 122022799 ACN122022799 ACN 122022799ACN-122022799-A

Abstract

The embodiment of the application provides a riding right control method, a riding right control device, computer equipment and a readable storage medium. The method comprises the steps of reading target identity information corresponding to a first riding certificate, determining a first resource coefficient related to the first riding certificate and a second resource coefficient related to a second riding certificate according to the target identity information, obtaining a resource consumption coefficient corresponding to the current riding journey of the target identity information, deducting the first resource coefficient according to the resource consumption coefficient to obtain a first deduction result, calculating a residual consumption coefficient based on a difference value between the resource consumption coefficient and the first resource coefficient when the first deduction result represents that the first resource coefficient is smaller than the resource consumption coefficient, and deducting the residual consumption coefficient from the second resource coefficient and granting the target identity information out-of-station riding permission when the second resource coefficient is larger than or equal to the residual consumption coefficient. Thus, convenience in riding for users can be improved.

Inventors

  • CHEN SHUJUAN
  • YANG XIANGMIN
  • ZHAO KAI
  • WANG TING
  • WANG HUAN

Assignees

  • 深圳市深圳通有限公司

Dates

Publication Date
20260512
Application Date
20260413

Claims (10)

  1. 1. A riding right control method, characterized in that the method comprises: Reading target identity information corresponding to a first riding voucher, and determining a first resource coefficient associated with the first riding voucher and a second resource coefficient associated with a second riding voucher according to the target identity information; Acquiring a resource consumption coefficient corresponding to the current riding journey of the target identity information, and deducting the first resource coefficient according to the resource consumption coefficient to obtain a first deduction result; Calculating a residual consumption coefficient based on a difference between the resource consumption coefficient and the first resource coefficient when the first subtraction result characterizes that the first resource coefficient is smaller than the resource consumption coefficient; And when the second resource coefficient is greater than or equal to the residual consumption coefficient, deducting the residual consumption coefficient from the second resource coefficient, and granting the outbound riding authority of the target identity information.
  2. 2. The riding right control method according to claim 1, wherein before reading the target identity information corresponding to the first riding certificate, determining the first resource coefficient associated with the first riding certificate and the second resource coefficient associated with the second riding certificate according to the target identity information, the method further comprises: Reading target identity information corresponding to a first riding certificate, and determining a first resource coefficient associated with the first riding certificate, a second resource coefficient associated with a second riding certificate and a total pre-consumed resource coefficient associated with the target identity information according to the target identity information; calculating a scheduling resource coefficient based on the first resource coefficient, the second resource coefficient and the total coefficient of the pre-consumed resources; And when the scheduling resource coefficient is larger than or equal to a preset highest resource coefficient of the road network, granting the target identity information station-entering riding permission.
  3. 3. The riding right control method according to claim 2, wherein granting the target identity information inbound riding right when the scheduling resource coefficient is greater than or equal to a preset road network highest resource coefficient comprises: when the scheduling resource coefficient is larger than or equal to a preset highest resource coefficient of the road network, determining a pre-locking resource coefficient based on the total pre-consumption resource coefficient; Calculating a pre-authorized resource coefficient based on the pre-locked resource coefficient and the highest resource coefficient of the road network; And pre-locking the pre-authorized resource coefficient associated with the target identity information, setting the in-transit state flag of the target identity information as a set, and granting the target identity information access riding permission.
  4. 4. A riding control method according to claim 3, wherein the method further comprises: When the scheduling resource coefficient is smaller than a preset highest resource coefficient of a road network, acquiring a credit evaluation parameter corresponding to the target identity information, wherein the credit evaluation parameter is determined based on historical unilateral journey record times corresponding to the target identity information, and the historical unilateral journey record is a journey record of whether the target identity information has an inbound riding record or not corresponding outbound riding record in a preset historical time window; when the historical unilateral transaction times are smaller than a preset time threshold, and the sum of the first resource coefficient and the second resource coefficient of the riding voucher is larger than or equal to a preset road network minimum resource coefficient, setting an in-transit state mark of the target identity information as a set position, and granting the target identity information access riding authority.
  5. 5. The riding right control method according to claim 1, wherein after reading the target identity information corresponding to the first riding certificate, determining the first resource coefficient associated with the first riding certificate and the second resource coefficient associated with the second riding certificate according to the target identity information, the method further comprises: Acquiring a pre-locking state of a pre-authorized resource coefficient associated with the target identity information; and when the pre-locking state is a locking state, unlocking the pre-authorized resource coefficient.
  6. 6. The riding right control method according to claim 1, wherein the method further comprises: When the fact that the target identity information has an inbound riding record and no corresponding outbound riding record is detected, a pre-locking state corresponding to the target identity information is obtained, wherein the pre-locking state comprises a locking state and an unlocking state; when the pre-locking state is a locking state, resetting the in-transit state mark of the target identity information after a first preset time passes from the arrival time corresponding to the arrival riding record; When an outbound riding record corresponding to the target identity information is received within a second preset time from the inbound time, determining a historical resource consumption coefficient corresponding to the outbound riding record, deducting the locked pre-authorized resource coefficient based on the historical resource consumption coefficient, and unlocking the remaining pre-authorized resource coefficient after deduction; or deducting the locked pre-authorized resource coefficient based on a preset resource consumption coefficient when the corresponding outbound riding record is not received after the second preset time from the inbound time, and unlocking the remaining pre-authorized resource coefficient after deduction.
  7. 7. The riding right control method according to claim 1, wherein the method further comprises: reading target identity information corresponding to the first riding voucher, and determining an entity resource coefficient associated with the entity riding voucher when the first riding voucher is the entity riding voucher; Comparing the entity resource coefficient with a first resource coefficient corresponding to the entity riding voucher at the cloud to obtain a comparison result; and updating the entity resource coefficient based on the first resource coefficient when the comparison result represents that the entity resource coefficient is inconsistent with the first resource coefficient.
  8. 8. A riding right control device, characterized by comprising: The reading module is used for reading target identity information corresponding to the first riding certificate, and determining a first resource coefficient associated with the first riding certificate and a second resource coefficient associated with the second riding certificate according to the target identity information; The acquisition module is used for acquiring a resource consumption coefficient corresponding to the current riding journey of the target identity information, and deducting the first resource coefficient according to the resource consumption coefficient to obtain a first deduction result; A calculation module, configured to calculate a remaining consumption coefficient based on a difference between the resource consumption coefficient and the first resource coefficient when the first subtraction result characterizes that the first resource coefficient is smaller than the resource consumption coefficient; And the deduction module is used for deducting the residual consumption coefficient from the second resource coefficient and granting the outbound riding authority of the target identity information when the second resource coefficient is larger than or equal to the residual consumption coefficient.
  9. 9. A computer device, characterized in that the computer device comprises a memory storing a computer program and a processor implementing the riding right control method according to any one of claims 1 to 7 when the computer program is executed.
  10. 10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the riding right control method according to any one of claims 1 to 7.

Description

Riding authority control method, riding authority control device, computer equipment and readable storage medium Technical Field The present application relates to the field of digital payment technologies, and in particular, to a riding right control method, a riding right control device, a computer device, and a readable storage medium. Background In the existing track traffic payment system, in order to meet the convenience requirements of user traveling in different scenes, two riding vouchers of an entity and two-dimension codes are generally provided at the same time. The two-dimension code is based on a digital account technology, and each transaction needs to interact with the background in real time and deduct the balance of the cloud account. However, although the two can be bound on the account level, the transaction channels of the card and the code are mutually independent, so that when a user only holds any medium to go out, if the medium is failed to charge or the balance is insufficient, even if the other medium has enough resources, the medium cannot be called, riding cannot be completed, and convenience of riding of the user is reduced. Disclosure of Invention The application provides a riding authority control method, a riding authority control device, computer equipment and a readable storage medium, which can improve the riding convenience of a user. To achieve the above object, a first aspect of an embodiment of the present application provides a riding right control method, including: Reading target identity information corresponding to a first riding voucher, and determining a first resource coefficient associated with the first riding voucher and a second resource coefficient associated with a second riding voucher according to the target identity information; Acquiring a resource consumption coefficient corresponding to the current riding journey of the target identity information, and deducting the first resource coefficient according to the resource consumption coefficient to obtain a first deduction result; Calculating a residual consumption coefficient based on a difference between the resource consumption coefficient and the first resource coefficient when the first subtraction result characterizes that the first resource coefficient is smaller than the resource consumption coefficient; And when the second resource coefficient is greater than or equal to the residual consumption coefficient, deducting the residual consumption coefficient from the second resource coefficient, and granting the outbound riding authority of the target identity information. Accordingly, a second aspect of the embodiment of the present application proposes a riding right control device, the device comprising: The reading module is used for reading target identity information corresponding to the first riding certificate, and determining a first resource coefficient associated with the first riding certificate and a second resource coefficient associated with the second riding certificate according to the target identity information; The acquisition module is used for acquiring a resource consumption coefficient corresponding to the current riding journey of the target identity information, and deducting the first resource coefficient according to the resource consumption coefficient to obtain a first deduction result; A calculation module, configured to calculate a remaining consumption coefficient based on a difference between the resource consumption coefficient and the first resource coefficient when the first subtraction result characterizes that the first resource coefficient is smaller than the resource consumption coefficient; And the deduction module is used for deducting the residual consumption coefficient from the second resource coefficient and granting the outbound riding authority of the target identity information when the second resource coefficient is larger than or equal to the residual consumption coefficient. In some embodiments, the riding right control device further comprises a scheduling resource coefficient calculating module for: Reading target identity information corresponding to a first riding certificate, and determining a first resource coefficient associated with the first riding certificate, a second resource coefficient associated with a second riding certificate and a total pre-consumed resource coefficient associated with the target identity information according to the target identity information; calculating a scheduling resource coefficient based on the first resource coefficient, the second resource coefficient and the total coefficient of the pre-consumed resources; And when the scheduling resource coefficient is larger than or equal to a preset highest resource coefficient of the road network, granting the target identity information station-entering riding permission. In some embodiments, the scheduling resource coefficient calculation module is further con