Search

CN-122020618-A - Unified session control method and system based on page execution capacity constraint

CN122020618ACN 122020618 ACN122020618 ACN 122020618ACN-122020618-A

Abstract

The application relates to the technical field of computer software, in particular to a unified session control method and system based on page execution capacity constraint, which are suitable for a multi-service page decoupling system of a loose coupling architecture. The method comprises the steps of pre-binding a page capacity version in a session suggestion generation stage to solidify an expected execution environment, further compounding binding the execution environment by using an execution token after user confirmation, and carrying out dual verification on version consistency and page instance consistency by taking pre-solidified environment information as a unique reference in the execution stage, wherein only a passing party can execute business operation, and the execution condition is converted from dynamic judgment in running to structural constraint in generation. The problem of inconsistent cross-page execution environments is effectively solved, and the safety and stability of session control are improved.

Inventors

  • Request for anonymity

Assignees

  • 北京瑞莱智慧科技有限公司

Dates

Publication Date
20260512
Application Date
20260415

Claims (10)

  1. 1. The unified session control method based on page execution capacity constraint is characterized by being applied to a multi-service page decoupling service system of a loose coupling framework, wherein the service system comprises a session system and a service page system which are arranged independently, an intelligent analysis module and a session control module are arranged in the session system, a page capacity cache table is maintained, the service page system comprises a plurality of service pages which independently maintain self states, and the method comprises the following steps: Initializing unified session context independent of service page state through the session system, and maintaining the page capacity cache table; Receiving a page capability structure PCS reported by a service page in the service page system after the service page is ready, wherein the PCS comprises a page service type identifier, a capability set, a capability version number, an execution authority identifier and a page instance unique identifier; The intelligent analysis module is used for identifying service intention of user input and determining target service operation and target page service type; Judging and generating an in-page suggestion or a cross-page suggestion according to a page capacity set through the session control module, abstracting the session suggestion into an execution control unit ECU, and pre-binding the ECU and a capacity version number of a target page in a suggestion generation stage so as to solidify an expected execution environment; the ECU is switched to a confirmed state according to a user confirmation instruction through the session control module, an execution token is generated, and the execution token is combined with the pre-bound target capacity version number, the target capacity identifier and the page instance unique identifier; The joint verification takes the binding information of the pre-binding capacity version number and the execution token as a unique verification reference, and when the capacity version of the current page is consistent with the pre-binding version and the execution token is matched with the current page instance, the verification is judged to be passed; and when the joint verification is passed, triggering corresponding service operation through the session control module and setting the ECU to an execution completion state.
  2. 2. The unified session control method based on page execution capacity constraint according to claim 1, wherein the capacity version number is generated by a state hash of a front end of a page based on current authority configuration and a function set, and the unique identifier of the page instance is a unique identifier newly generated each time ready; The method comprises the steps of defining ready conditions of service pages according to front-end architecture types, judging that the pages are ready after document object model rendering, service data loading and user permission checking are completed for a multi-page application architecture, and judging that the pages are ready after route switching is completed, a target view component mounting hook is executed and a service initialization interface is returned for a single-page application architecture.
  3. 3. The unified session control method based on page execution capability constraint according to claim 2, wherein the session control module determines that the basis for generating the in-page suggestion or the cross-page suggestion is that the in-page suggestion is generated when the target operation belongs to the current page capability set and the execution permission is identified as a valid state, otherwise the cross-page suggestion is generated; if the page capacity cache table does not have a target page record, marking the target capacity version number as to-be-confirmed, and finishing binding and locking after the target page is reported to the PCS for the first time; the ECU comprises an ECU global unique identifier, a target page service type identifier, a target service operation identifier, a target capability version number, an execution token, a current state and a creation time stamp field.
  4. 4. The unified session control method based on page execution capability constraint according to claim 3 wherein the execution token is generated when the target capability version number of the ECU is a certain value; Aiming at a cache miss scene, the execution token is delayed to be ready for the target page and is generated after reporting PCS, and the full-quantity binding with the target capacity identifier, the target capacity version number and the page instance unique identifier is completed at one time; And when the page instance unique identification atom supplementary binding is completed, the execution token is converted into an activated state and triggers joint verification.
  5. 5. The unified session control method based on page execution capability constraint according to claim 4 wherein the joint check comprises a version consistency check and a token validity check; The version consistency check meets the following conditions that a target capacity version number of the ECU is consistent with a capacity version number in a PCS reported by a current page, a target page service type identifier of the ECU is consistent with a page service type identifier in the PCS, and an execution authority identifier carried by the PCS is in an effective state; The token validity check meets the following conditions that an execution token is generated and is not marked to be invalid, the capability version number of the execution token binding is consistent with the target capability version number of the ECU, and the unique identification of the page instance of the execution token binding is consistent with the unique identification of the page instance reported by the current page; The triggering mode of page switching comprises system instruction triggering and manual switching of a user, wherein the two switching modes trigger the same execution recovery flow, and in the service operation execution process, the session system pauses to respond to a PCS change signal, and resumes monitoring after execution is completed.
  6. 6. The unified session control method based on page execution capability constraint according to claim 5, wherein if the joint verification fails, marking the execution token as invalid and not reusable, resetting the target capability version number of the ECU to be confirmed, releasing the binding of the unique page instance identifier and displaying the failure cause prompt to the user, and when the PCS is reported again by the target page and the PCS with valid permission identifier is executed, automatically recovering the ECU to the recommended display state.
  7. 7. The unified session control method based on page execution capability constraint according to claim 6, further comprising the steps of: When the session control module detects multi-ECU parallel conflict, a differential conflict processing strategy is executed according to the number of conflict ECUs and the reversibility of operation; The differential conflict processing strategy comprises 2 conflict ECUs, namely creating a time stamp sequence, preferentially recovering the ECU which enters a confirmed state at the earliest, automatically and sequentially recovering the subsequent ECUs through reversible operation, wherein irreversible operation is required to be confirmed by a user and then is executed, suspending an automatic recovery flow when 3 or more conflict ECUs are carried out, selecting the ECUs to be executed by the user, and determining to be reserved or cancelled by the user through the unselected ECUs, wherein the reversible operation comprises automatic form backfilling and information inquiry, and the irreversible operation comprises form submission, payment deduction and data uploading confirmation.
  8. 8. A unified session control system based on page execution capacity constraint, characterized in that the system comprises a multi-service page decoupling service system with a loose coupling architecture, the service system comprises a session system and a service page system which are arranged independently, an intelligent analysis module and a session control module are built in the session system, a page capacity cache table is maintained, the service page system comprises a plurality of service pages which independently maintain self states, and the session system and the service page system are cooperatively matched for executing the steps of the unified session control method based on page execution capacity constraint according to any one of claims 1 to 7.
  9. 9. An electronic device comprising a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor in communication with the memory via the bus when the electronic device is in operation, the machine-readable instructions when executed by the processor performing the steps of the unified session control method based on page execution capability constraints of any one of claims 1 to 7.
  10. 10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps of the unified session control method based on page execution capability constraints according to any of claims 1 to 7.

Description

Unified session control method and system based on page execution capacity constraint Technical Field The application relates to the technical field of computer software, in particular to a unified session control method and system based on page execution capacity constraint. Background In complex business systems such as government redemption, enterprise services, etc., a business process is typically split into multiple mutually independent pages, each page carrying different business capabilities. In order to improve user interaction experience, the existing system introduces an intelligent question-answer session module, but due to the architecture characteristic of multi-page decoupling, the existing session control technology has obvious defects, and the cooperative control of the session and the service page cannot be realized. In the prior art, as disclosed in patent CN202110004394.8, the core focuses on the management of the internal modules of the session system, the control object is in a session state or an acquisition state, and specific business operations are not associated, so that the problems that the session conclusion drives the page behavior, the page crossing operation performability and the session suggestion is matched with the page capability cannot be solved. The intelligent dialogue engine system based on the large language model disclosed in the patent CN202410070274.1 only realizes the unification of a dialogue layer or a language understanding layer, the output result is a natural language text, the executability in a business system is not modeled, the page capacity difference is not distinguished, the execution condition is not judged, the cross-page operation can only respond with a prompt, and the confirmation, state management and execution recovery mechanism is lacked. In summary, the prior art has three major core problems that firstly, an execution state cannot be maintained during cross-page switching, no explicit modeling and persistence exist in a session suggestion execution stage, the flow is easy to interrupt, secondly, the session suggestion cannot sense a page capability boundary, execution consistency cannot be ensured during capability change, execution mismatch is easy to generate, a user confirmation mechanism is lacking, the same operation is easy to be repeatedly confirmed in multiple rounds of interaction, an isolation mechanism for concurrent session suggestion is lacking, and irreversible operation is easy to be repeatedly triggered, so that service errors are caused. Disclosure of Invention In order to overcome the defects in the prior art, the application provides a unified session control and system based on page execution capacity constraint, which can realize the accurate matching of session suggestions and page capacity in a multi-service page decoupling system and improve the security and stability of session control. In a first aspect, the present application provides a unified session control method based on constraint of page execution capability, applied to a multi-service page decoupling service system of a loose coupling architecture, where the service system includes a session system and a service page system that are deployed independently, the session system is internally provided with an intelligent analysis module and a session control module and maintains a page capability cache table, and the service page system includes a plurality of service pages that independently maintain their own states, and the method includes the following steps: Initializing unified session context independent of service page state through the session system, and maintaining the page capacity cache table; Receiving a page capability structure PCS reported by a service page in the service page system after the service page is ready, wherein the PCS comprises a page service type identifier, a capability set, a capability version number, an execution authority identifier and a page instance unique identifier; The intelligent analysis module is used for identifying service intention of user input and determining target service operation and target page service type; Judging and generating an in-page suggestion or a cross-page suggestion according to a page capacity set through the session control module, abstracting the session suggestion into an execution control unit ECU, and pre-binding the ECU and a capacity version number of a target page in a suggestion generation stage so as to solidify an expected execution environment; the ECU is switched to a confirmed state according to a user confirmation instruction through the session control module, an execution token is generated, and the execution token is combined with the pre-bound target capacity version number, the target capacity identifier and the page instance unique identifier; The joint verification takes the binding information of the pre-binding capacity version number and the execution token as a un