CN114845257A - Multi-dimensional charging method, device and storage medium based on embedded script - Google Patents

Multi-dimensional charging method, device and storage medium based on embedded script Download PDF

Info

Publication number
CN114845257A
CN114845257A CN202210361495.5A CN202210361495A CN114845257A CN 114845257 A CN114845257 A CN 114845257A CN 202210361495 A CN202210361495 A CN 202210361495A CN 114845257 A CN114845257 A CN 114845257A
Authority
CN
China
Prior art keywords
charging
script
ticket
dimension
candidate
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202210361495.5A
Other languages
Chinese (zh)
Other versions
CN114845257B (en
Inventor
田雨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202210361495.5A priority Critical patent/CN114845257B/en
Publication of CN114845257A publication Critical patent/CN114845257A/en
Application granted granted Critical
Publication of CN114845257B publication Critical patent/CN114845257B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • 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
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0283Price estimation or determination
    • G06Q30/0284Time or distance, e.g. usage of parking meters or taximeters
    • 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
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/40Business processes related to the transportation industry

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Development Economics (AREA)
  • Accounting & Taxation (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Finance (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Game Theory and Decision Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Primary Health Care (AREA)
  • Tourism & Hospitality (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a multi-dimensional charging method and device based on an embedded script and a storage medium. The method comprises the following steps: during the execution of a charging program, obtaining a ticket to be processed, wherein the ticket comprises a user identifier and a service type; acquiring a target charging script from a memory according to the service type, and loading the target charging script, wherein a plurality of candidate charging scripts are stored in the memory, and the candidate charging scripts are determined according to a charging dimension and a charging mode corresponding to the service type; and acquiring a charging result according to the target charging script, and outputting the charging result corresponding to the user identifier. The method of the application improves the flexibility and the charging capacity of the charging system through the embedded script under a large frame of input-processing-output, and better meets the service requirement.

Description

Multi-dimensional charging method, device and storage medium based on embedded script
Technical Field
The present application relates to communications technologies, and in particular, to a multi-dimensional charging method and apparatus based on an embedded script, and a storage medium.
Background
With the iterative upgrade of the communication network, the single network bearing capacity has a diversified development trend. The charging modes in the 4G era and the initial 5G era still surround two traditional ideas of timing and metering, and the comprehensive coming of the 5G era puts higher requirements on operators.
In the existing communication operator charging system, a single charging mode cannot meet the charging requirement of multiple dimensions in the 5G era. Along with the increase of users, the expansion of service volume and other reasons, the charging system of operators is more and more huge and bloated, so that the current service system has insufficient expansibility and cannot flexibly support the progress of new services.
Therefore, operators need to explore new charging modes and charging capabilities to fully embrace the opportunities brought by the 5G network.
Disclosure of Invention
The application provides a multi-dimensional charging method, a multi-dimensional charging device and a multi-dimensional charging storage medium based on an embedded script, which are used for solving the problems of single charging mode and insufficient flexibility.
A first aspect of an embodiment of the present application provides a multi-dimensional charging method based on an embedded script, including:
during the execution of a charging program, obtaining a ticket to be processed, wherein the ticket comprises a user identifier and a service type;
acquiring a target charging script from a memory according to the service type, and loading the target charging script, wherein a plurality of candidate charging scripts are stored in the memory, the candidate charging scripts are determined according to a charging dimension and a charging mode corresponding to the service type, and the charging dimension is a dimension selected from a plurality of dimensions in advance;
And acquiring a charging result according to the target charging script, and outputting the charging result corresponding to the user identifier.
Optionally, during the execution of the charging program, before obtaining the ticket to be processed, the method further includes:
at the starting stage of the charging program, acquiring the candidate charging scripts from a script database stored in an external memory;
and loading the candidate charging scripts into the memory.
Optionally, in the charging procedure starting phase, the method further includes:
and starting an asynchronous detection thread, and dynamically updating the first candidate charging script in the memory when detecting that the parameter of the first candidate charging script changes.
Optionally, the method further comprises:
responding to a charging configuration instruction of a user, and displaying a charging configuration interface, wherein the charging configuration interface comprises a dimension module, a charging module and a script module, the dimension module comprises a plurality of dimension controls, the charging module comprises a plurality of charging period controls, and the script module comprises a custom script control;
responding to the user trigger custom script control, and generating a custom script according to the script corresponding to the target dimension selected by the user and the script corresponding to the target charging period selected by the user;
And obtaining the candidate charging script according to the custom script.
Optionally, the obtaining the candidate billing script according to the custom script includes:
displaying the custom script;
acquiring the modification of the user to the custom script;
and obtaining the candidate charging script according to the modified custom script.
Optionally, the obtaining the target charging script from the memory according to the service type includes:
acquiring a charging dimension and a charging mode corresponding to the service type;
and acquiring the charging script from the memory according to the corresponding relation between the charging dimension and the charging mode and the charging script.
Optionally, the obtaining the to-be-processed ticket during the execution of the charging program includes:
acquiring an input call ticket through a call ticket entrance;
writing the call ticket into a call ticket queue;
and acquiring the ticket to be processed from the ticket queue through a thread.
A second aspect of the embodiments of the present application provides a multi-dimensional charging device based on an embedded script, including: the first acquisition module is used for acquiring a ticket to be processed during the execution period of a charging program, wherein the ticket comprises a user identifier and a service type;
A second obtaining module, configured to obtain a target charging script from a memory according to the service type, and load the target charging script, where multiple candidate charging scripts are stored in the memory, and the candidate charging scripts are determined according to a charging dimension and a charging mode corresponding to the service type;
and the third obtaining module is used for obtaining a charging result according to the target charging script and outputting the charging result corresponding to the user identifier.
A third aspect of embodiments of the present application provides an electronic device, including: a processor, and a memory communicatively coupled to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the embedded script-based billing method as described in the first aspect of the embodiment of the present application.
A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when the computer-executable instructions are executed by a processor, the computer-readable storage medium is configured to implement the embedded script-based charging method as described in the first aspect of the embodiments of the present application.
The multi-dimensional charging method based on the embedded script provided by the embodiment of the application obtains a ticket to be processed during the execution period of a charging program, wherein the ticket comprises a user identifier and a service type; acquiring a target charging script from a memory according to the service type, and loading the target charging script, wherein a plurality of candidate charging scripts are stored in the memory, and the candidate charging scripts are determined according to the charging dimension and the charging mode corresponding to the service type; and acquiring a charging result according to the target charging script, outputting the charging result corresponding to the user identifier, and forming a self-defined embedded script by the refined charging dimension and charging mode, so that the charging of the call ticket is more personalized and flexible, the flexibility of a charging system is improved, and diversified service requirements are met.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic view of a scene architecture of a multi-dimensional charging method based on an embedded script according to an embodiment of the present application;
fig. 2 is a flow chart of a multi-dimensional charging method based on an embedded script according to an embodiment of the present application;
Fig. 3 is a flow diagram of a multidimensional charging method based on an embedded script according to an embodiment of the present application;
fig. 4 is a schematic view of an operation interface of a multidimensional charging method based on an embedded script according to an embodiment of the present application;
fig. 5 is a schematic view of an operation interface of another multi-dimensional charging method based on an embedded script according to an embodiment of the present application;
fig. 6 is a schematic diagram of a multi-dimensional charging device based on an embedded script according to an embodiment of the present application;
fig. 7 is a schematic view of an electronic device according to an embodiment of the present application.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The application is applied to the charging scene. At present, due to the development iteration of network technology, the traditional charging dimension can not meet the current diversified application scenes. Different from the prior art, the charging method, the device, the equipment and the storage medium based on the embedded script are provided, and various charging dimensions and charging modes are combined to form diversified charging modes, so that the flexibility and the charging capacity of a charging system are improved, and the service requirements are met better.
An application scenario of the present application is described below with reference to fig. 1.
Fig. 1 is a schematic view of a scenario of a multi-dimensional charging method based on an embedded script according to an embodiment of the present application, as shown in fig. 1, the scenario provided by this embodiment includes an operator foreground computer 101, an operator server 102, and an embedded script storage device 103 according to the present application.
The operator foreground service personnel receives the ticket processing task on the foreground computer 101, the operator server 102 obtains the information needed by the user data and the user charge order, and obtains the charging script matched with the service type in the ticket in the embedded script storage device 103 according to the information, loads the charging script on the operator server 102, executes the script, outputs the calculation result after charging according to the charging rule of the script, and sends the calculation result to the foreground computer 101 for display or other processing. The embedded script storage device 103 may be a server provided separately, or may be a device provided inside the operator server 102, or may be the operator server 102.
The device can select a proper embedded charging script according to the corresponding service type in the call ticket, improves the flexibility of the charging system and meets diversified service requirements.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific examples. The following specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 2 is a flowchart of a multi-dimensional charging method based on embedded scripts according to an embodiment of the present application, where an execution main body of the method may be a charging apparatus of the embedded scripts. As shown in fig. 2, the method includes:
s201, during the execution of a charging program, obtaining a ticket to be processed, wherein the ticket comprises a user identifier and a service type;
specifically, a ticket to be processed is obtained through message input, file input, interface input and other modes, wherein the ticket comprises a user identifier and a user tariff subscription condition, namely a service type used by the user.
The user identification is a string of codes which are given to each user by an operator and are different from each other. This string of codes is typically given by the user's cell phone number plus the operator's randomly assigned numbers, letters, etc. According to the user identification, user identity information, calling information and called information of the ticket can be obtained in an operator system. The bill corresponds to the charge subscription information of the mobile phone number, i.e. the service type currently used by the user.
S202, acquiring a target charging script from a memory according to the service type, and loading the target charging script;
and acquiring a charging dimension and a charging mode corresponding to the service type, and acquiring the charging script from the memory according to the corresponding relation between the charging dimension and the charging mode and the charging script.
The memory stores a plurality of candidate charging scripts, the candidate charging scripts are determined according to charging dimensions and charging modes corresponding to the service types, and the charging dimensions are dimensions selected from the plurality of dimensions in advance.
Specifically, the charging dimension and the charging mode which are required to be configured for the current call ticket of the user are judged according to the acquired service type of the user. When the required charging dimension and the charging mode are both the general dimension and the general mode, the general script can be directly selected as the charging script; when the required charging dimension and the charging mode both need to be selected individually, a user-defined script may be selected, and an appropriate calculation script is selected for different call tickets.
The charging dimension refers to an index referred by the operator when charging the dialog sheet, such as CPU occupancy rate, bandwidth, occupied memory and the like. The charging mode refers to whether the charging adopts one-time charging, use charging or periodic charging. Once charging, namely, once use, the charge is generated; charging the use of the resources; the period charging is to charge a certain period in total, without paying attention to specific use conditions in the period, and the general period is monthly, semi-annual or annual.
S203, obtaining a charging result according to the target charging script, and outputting the charging result corresponding to the user identifier.
Specifically, the target billing script is loaded, a corresponding calculation result is executed and output, and the result is put into a warehouse or subjected to other processing.
The warehousing operation is to store the processing result under the account of the user, so that subsequent summarizing processing and historical result query are facilitated; other processing usually includes sending the calculation result to a foreground computer or an operator APP.
By finely dividing the charging dimension and the charging mode related in the charging process, when the ticket charging service is carried out, selecting the proper charging dimension and the charging mode according to the user data contained in each ticket and the charge ordering condition of the user to form a self-defined script, executing the self-defined script to calculate the ticket charging result, and sending the result to a foreground computer for storage or sending to other channels such as an operator APP for further processing.
The multi-dimensional charging method based on the embedded script provided by the embodiment of the application obtains a ticket to be processed during the execution period of a charging program, wherein the ticket comprises a user identifier and a service type; acquiring a target charging script from a memory according to the service type, and loading the target charging script, wherein a plurality of candidate charging scripts are stored in the memory, and the candidate charging scripts are determined according to the charging dimension and the charging mode corresponding to the service type; and acquiring a charging result according to the target charging script, outputting the charging result corresponding to the user identifier, and forming a self-defined embedded script by the refined charging dimension and charging mode, so that the charging of the call ticket is more personalized and flexible, the flexibility of a charging system is improved, and diversified service requirements are met.
Fig. 3 is a flowchart of a multi-dimensional charging method based on an embedded script according to an embodiment of the present application, and as shown in fig. 3, based on the embodiment of fig. 2, a specific implementation manner of the embodiment of the present application is as follows:
s301, acquiring an input call ticket through a call ticket entrance;
specifically, the ticket is input through a message input mode, a file input mode, an interface input mode and the like. The operator server detects that the user starts to use the service, generates service related information and sends the service related information to the ticket charging device in real time in a short message form, wherein the form is called message input; the file input refers to an operator server to generate a complete file according to the monitored use condition of the user for the required service, and the complete file is sent to a ticket charging system after the use is finished; the interface input is that the operator server and the ticket charging device exchange interface information between ticket inputs, and the operator server and the ticket charging device are connected through the interface, and the ticket information received by the operator server is directly written into the ticket charging device in real time. The input call ticket is obtained by selecting any one input mode which is not limited to the three modes.
S302, writing the call ticket into a call ticket queue;
s303, obtaining the ticket to be processed from the ticket queue through the thread. Wherein, the call ticket comprises a user identifier and a service type;
specifically, the obtained call tickets are recorded into a call ticket queue, the call ticket queue may have a plurality of call tickets to be processed, the call tickets are arranged one by one, and the call tickets can be processed sequentially according to the sequence during processing, and a specific call ticket can be called according to the user identifier and the service type to be processed in advance.
S304, obtaining a plurality of candidate charging scripts from a script database stored in an external memory; s305, loading the candidate charging scripts into the memory;
specifically, all candidate billing scripts are stored in the external database, and the candidate billing scripts include history information of the universal script and the custom script. And acquiring the candidate charging script and loading the candidate charging script into the memory, so that the call ticket charging device can call the charging script conveniently.
S306, acquiring a target charging script from a memory according to the service type, and loading the target charging script;
the memory stores a plurality of candidate charging scripts, and the candidate charging scripts are determined according to charging dimensions and charging modes corresponding to service types;
S307, obtaining a charging result according to the target charging script, and outputting the charging result corresponding to the user identifier.
Executing the target charging script, outputting the corresponding calculation result, and warehousing or performing other processing
Optionally, when the charging result is obtained, an asynchronous detection thread is started, and when a parameter of a first candidate charging script is detected to be changed, the first candidate charging script in the memory is dynamically updated. In a specific implementation process, whether the candidate charging script changes or not can be detected according to the timestamp of each candidate script, and the change can be the update of a user on a post-selected script; and when the parameter of the first candidate charging script is detected to be changed, selecting and loading the first candidate charging script which is updated in real time, calculating the charging result of the call ticket according to the first candidate charging script, outputting the charging result of the call ticket, and completing the processing of the call ticket.
The method comprises the steps of obtaining call tickets through multiple input modes, selecting a proper candidate charging script according to user identification and service types subscribed by a user, detecting the condition of the call tickets of the user in real time and updating a first candidate charging script; and calculating the charging condition of the call ticket according to the first candidate charging script, and outputting the charging result of the call ticket. According to the embodiment of the application, the first candidate charging script is updated according to the specific condition of the call ticket, the embedded script required by the processing is formed, the embedded script is introduced into the call ticket charging device to charge the call ticket, the charging dimension and the charging mode contained in the embedded script are various, the embedded script has various forms through combined use, the call ticket charging processing is more diversified, and the user requirements can be better met.
The present application presents the configuration and arrangement of embedded scripts through fig. 4 and 5. In a specific implementation process, before the above embodiments of fig. 2 and fig. 3 are executed, the configuration of the embedded script may be completed.
As shown in fig. 4, the embedded script can be divided into a general script and a custom script, and when the service type ordered by the user in the call ticket is a common type, such as a flow call ticket charged according to volume or a call ticket charged according to time, the general script can be selected to perform one-key configuration, and call ticket charging is performed according to the charging rule included in the general script.
The self-defined script comprises the selection of the charging dimension and the selection of the charging mode; the charging dimension is divided according to the services provided by the operator, such as metering type according to the charging of the usage amount, pricing type for defining the whole service cost, slice type for dividing the network, and slice type according to the metering of the usage direction and service condition of each slice area.
Billing modes include, but are not limited to, one-time charges, periodic charges, and usage charges; one charge is the charge at the beginning of the service subscription, and no other charge is charged during the service subscription period; the periodic charging is carried out according to a period of time such as month or year; usage charges are charged according to the usage of the service, such as the number of uses, the amount of usage, and the like.
As shown in fig. 5, in the configuration process, in response to a charging configuration instruction of a user, a charging configuration interface is displayed, where the charging configuration interface includes a dimension module, a charging module, and a script module, the dimension module includes multiple dimension controls, the charging module includes multiple charging period controls, and the script module includes a custom script control.
Responding to a user trigger custom script control, and generating a custom script according to a script corresponding to a target dimension selected by the user and a script corresponding to a target charging period selected by the user; and obtaining a candidate charging script according to the custom script.
Taking a specific embodiment as an example, the user may trigger the charging configuration instruction in various ways, respond to the charging configuration instruction of the user, and display the charging configuration interface as shown in fig. 4.
According to the actual user charging configuration instruction, for example, when the user selects the MEC service, as shown in fig. 5, the user selects the MEC dimension control and the periodic charging control, and when the user triggers the self-defined script control, the script of the MEC dimension and the script charged according to the period form the self-defined script, so that the configuration of the self-defined script is completed, and the self-defined script is used as an embedded script to be quoted to a ticket charging device to perform ticket calculation to obtain a ticket charging result in the using process.
For example, the MEC service ordered by the client A, the charging system receives the corresponding type of the bill generated by the order, the charging mode of the bill is different from the traditional metering charging and timing charging, and a universal script cannot be selected, so the MEC dimension and the script corresponding to the charging mode which is charged according to the period are selected according to the characteristics of the MEC service type to form a custom script control.
Specifically, different dimensions correspond to different scripts, different charging modes correspond to different scripts, and the scripts of the dimensions and the scripts of the charging modes can be combined to obtain the custom script. The dimension and the charging mode can also be used as a related body and directly correspond to a self-defined script.
Optionally, for each service type, a corresponding relationship between the service type and the dimension and the charging mode may also be established. For example, for the MEC class service type, a corresponding relation between the MEC class service and MEC dimension and periodic charging is established. By the corresponding relation, the dimension and the charging mode corresponding to each service type can be conveniently and rapidly positioned in the application process.
Optionally, in the process of displaying the custom script, selecting a certain custom script and displaying the custom script; acquiring the modification of the user to the custom script; and obtaining the candidate charging script according to the modified self-defined script.
For example, a custom script is selected from a script database according to the MEC service type, the corresponding custom script can be displayed by entering a control interface of the custom script, if the custom script needs to be updated or optimized, the custom script can be modified, and the modified custom script is used as a candidate charging script.
Fig. 6 is a schematic view of a multi-dimensional charging based on an embedded script according to an embodiment of the present application. As shown in fig. 6, the multi-dimensional charging apparatus based on the embedded script includes:
a first obtaining module 10, configured to obtain a ticket to be processed during execution of a charging procedure, where the ticket includes a user identifier and a service type;
a second obtaining module 20, configured to obtain a target charging script from a memory according to the service type, and load the target charging script, where multiple candidate charging scripts are stored in the memory, and the candidate charging scripts are determined according to a charging dimension and a charging mode corresponding to the service type;
and the third obtaining module 30 is configured to obtain a charging result according to the target charging script, and output a charging result corresponding to the user identifier.
In a possible implementation manner, before the obtaining of the ticket to be processed during the execution of the charging procedure, the method further includes:
in the charging program starting phase, the second obtaining module 20 is specifically configured to obtain the multiple candidate charging scripts from a script database stored in an external memory;
and loading the candidate charging scripts into the memory.
In a possible implementation manner, during the charging procedure starting phase, the method further includes:
and starting an asynchronous detection thread, and dynamically updating the first candidate charging script in the memory when detecting that the parameter of the first candidate charging script changes.
In one possible embodiment, the method further comprises:
responding to a charging configuration instruction of a user, and displaying a charging configuration interface, wherein the charging configuration interface comprises a dimension module, a charging module and a script module, the dimension module comprises a plurality of dimension controls, the charging module comprises a plurality of charging period controls, and the script module comprises a custom script control;
responding to the user trigger custom script control, and generating a custom script according to the script corresponding to the target dimension selected by the user and the script corresponding to the target charging period selected by the user;
And obtaining the candidate charging script according to the custom script.
In a possible implementation manner, the obtaining the candidate billing script according to the custom script includes:
displaying the custom script;
the second obtaining module 20 is specifically configured to obtain the modification of the user to the custom script;
and obtaining the candidate charging script according to the modified custom script.
In a possible implementation manner, the second obtaining module 20 is specifically configured to obtain the target charging script from the memory according to the service type, and includes:
acquiring a charging dimension and a charging mode corresponding to the service type;
and acquiring the charging script from the memory according to the corresponding relation between the charging dimension and the charging mode and the charging script.
In a possible implementation manner, during the execution of the charging program, the first obtaining module 10 is specifically configured to obtain a ticket to be processed, and includes:
acquiring an input call ticket through a call ticket entrance;
writing the call ticket into a call ticket queue;
and acquiring the ticket to be processed from the ticket queue through a thread.
Fig. 7 is a schematic structural diagram of an electronic device provided in the present application, and as shown in fig. 7, the electronic device includes:
A processor (processor)291, the electronic device further including a memory (memory) 292; a Communication Interface 293 and bus 294 may also be included. The processor 291, the memory 292, and the communication interface 293 may communicate with each other via the bus 294. Communication interface 293 may be used for the transmission of information. Processor 291 may call logic instructions in memory 294 to perform the methods of the embodiments described above.
Further, the logic instructions in the memory 292 may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product.
The memory 292 is a computer-readable storage medium for storing software programs, computer-executable programs, such as program instructions/modules corresponding to the methods in the embodiments of the present application. The processor 291 executes the functional application and data processing by executing the software program, instructions and modules stored in the memory 292, so as to implement the method in the above method embodiments.
The memory 292 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Further, the memory 292 may include a high speed random access memory and may also include a non-volatile memory.
The embodiment of the application provides a computer-readable storage medium, in which computer-executable instructions are stored, and the computer-executable instructions are executed by a processor to implement the method provided by the above embodiment.
The embodiment of the present application provides a computer program product, which includes a computer program, and the computer program is executed by a processor to implement the method provided by the above embodiment.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A multi-dimension charging method based on embedded scripts is characterized by comprising the following steps:
during the execution of a charging program, obtaining a ticket to be processed, wherein the ticket comprises a user identifier and a service type;
acquiring a target charging script from a memory according to the service type, and loading the target charging script, wherein a plurality of candidate charging scripts are stored in the memory, the candidate charging scripts are determined according to a charging dimension and a charging mode corresponding to the service type, and the charging dimension is a dimension selected from a plurality of dimensions in advance;
and acquiring a charging result according to the target charging script, and outputting the charging result corresponding to the user identifier.
2. The method of claim 1, wherein before obtaining the to-be-processed ticket during the execution of the billing procedure, the method further comprises:
at the starting stage of the charging program, acquiring the candidate charging scripts from a script database stored in an external memory;
and loading the candidate charging scripts into the memory.
3. The method of claim 2, wherein during the billing procedure initiation phase, the method further comprises:
And starting an asynchronous detection thread, and dynamically updating the first candidate charging script in the memory when detecting that the parameter of the first candidate charging script changes.
4. The method of claim 1, further comprising:
responding to a charging configuration instruction of a user, and displaying a charging configuration interface, wherein the charging configuration interface comprises a dimension module, a charging module and a script module, the dimension module comprises various dimension controls, the charging module comprises various charging period controls, and the script module comprises a custom script control;
responding to the user trigger custom script control, and generating a custom script according to the script corresponding to the target dimension selected by the user and the script corresponding to the target charging period selected by the user;
and obtaining the candidate charging script according to the custom script.
5. The method of claim 4, wherein obtaining the candidate billing script according to the custom script comprises:
displaying the custom script;
acquiring the modification of the user to the custom script;
and obtaining the candidate charging script according to the modified custom script.
6. The method of claim 1, wherein obtaining the target billing script from the memory according to the service type comprises:
acquiring a charging dimension and a charging mode corresponding to the service type;
and acquiring the charging script from the memory according to the corresponding relation between the charging dimension and the charging mode and the charging script.
7. The method of claim 1, wherein obtaining the ticket to be processed during the execution of the billing procedure comprises:
acquiring an input call ticket through a call ticket entrance;
writing the call ticket into a call ticket queue;
and acquiring the ticket to be processed from the ticket queue through a thread.
8. An embedded script based billing device comprising:
the first acquisition module is used for acquiring a ticket to be processed during the execution period of a charging program, wherein the ticket comprises a user identifier and a service type;
a second obtaining module, configured to obtain a target charging script from a memory according to the service type, and load the target charging script, where multiple candidate charging scripts are stored in the memory, the candidate charging scripts are determined according to a charging dimension and a charging mode corresponding to the service type, and the charging dimension is a dimension selected from multiple dimensions in advance;
And the third obtaining module is used for obtaining a charging result according to the target charging script and outputting the charging result corresponding to the user identifier.
9. An electronic device, comprising: a processor and a memory;
the memory stores computer-executable instructions;
the processor executes the computer-executable instructions stored by the memory to cause the electronic device to perform the method of any of claims 1-7.
10. A computer-readable storage medium having computer-executable instructions stored thereon, which when executed by a processor, are configured to implement the method of any one of claims 1 to 7.
CN202210361495.5A 2022-04-07 2022-04-07 Multi-level charging method, device and storage medium based on embedded script Active CN114845257B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210361495.5A CN114845257B (en) 2022-04-07 2022-04-07 Multi-level charging method, device and storage medium based on embedded script

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210361495.5A CN114845257B (en) 2022-04-07 2022-04-07 Multi-level charging method, device and storage medium based on embedded script

Publications (2)

Publication Number Publication Date
CN114845257A true CN114845257A (en) 2022-08-02
CN114845257B CN114845257B (en) 2024-04-12

Family

ID=82563271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210361495.5A Active CN114845257B (en) 2022-04-07 2022-04-07 Multi-level charging method, device and storage medium based on embedded script

Country Status (1)

Country Link
CN (1) CN114845257B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090177536A1 (en) * 2008-01-04 2009-07-09 International Business Machines Corporation Dynamic, subscriber driven charging models for media distribution
CN101582776A (en) * 2008-05-15 2009-11-18 浙江大学 Service charging method and service charging system
US20090305662A1 (en) * 2006-02-17 2009-12-10 Sami Ala-Luukko Generation of Charging Information in Group Communications System
WO2010003359A1 (en) * 2008-07-07 2010-01-14 中兴通讯股份有限公司 Charging method and system for distinguishing charging rules of users
CN102958030A (en) * 2011-08-29 2013-03-06 中国移动通信集团山西有限公司 Charging method and charging system
CN107911566A (en) * 2017-12-25 2018-04-13 中兴通讯股份有限公司 Charge on traffic control method, device and system, computer-readable recording medium
WO2018107822A1 (en) * 2016-12-12 2018-06-21 中兴通讯股份有限公司 Traffic accounting method and system, and control server
CN110752936A (en) * 2019-10-28 2020-02-04 斑马网络技术有限公司 Flow charging method and device, storage medium and electronic equipment
CN110838923A (en) * 2018-08-17 2020-02-25 中国移动通信集团安徽有限公司 Method, device, equipment and medium for charging flow
CN113037510A (en) * 2019-12-24 2021-06-25 中国电信股份有限公司 Charging method, charging device and computer readable storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090305662A1 (en) * 2006-02-17 2009-12-10 Sami Ala-Luukko Generation of Charging Information in Group Communications System
US20090177536A1 (en) * 2008-01-04 2009-07-09 International Business Machines Corporation Dynamic, subscriber driven charging models for media distribution
CN101582776A (en) * 2008-05-15 2009-11-18 浙江大学 Service charging method and service charging system
WO2010003359A1 (en) * 2008-07-07 2010-01-14 中兴通讯股份有限公司 Charging method and system for distinguishing charging rules of users
CN102958030A (en) * 2011-08-29 2013-03-06 中国移动通信集团山西有限公司 Charging method and charging system
WO2018107822A1 (en) * 2016-12-12 2018-06-21 中兴通讯股份有限公司 Traffic accounting method and system, and control server
CN107911566A (en) * 2017-12-25 2018-04-13 中兴通讯股份有限公司 Charge on traffic control method, device and system, computer-readable recording medium
CN110838923A (en) * 2018-08-17 2020-02-25 中国移动通信集团安徽有限公司 Method, device, equipment and medium for charging flow
CN110752936A (en) * 2019-10-28 2020-02-04 斑马网络技术有限公司 Flow charging method and device, storage medium and electronic equipment
CN113037510A (en) * 2019-12-24 2021-06-25 中国电信股份有限公司 Charging method, charging device and computer readable storage medium

Also Published As

Publication number Publication date
CN114845257B (en) 2024-04-12

Similar Documents

Publication Publication Date Title
US20190213262A1 (en) Methods and devices for processing template data, requesting template data, and presenting template data
CN106649638B (en) Big data acquisition method
CN102136967B (en) Method, device and system for managing service state
CN108268296A (en) Loading method, the client and server of page layout
CN110442502A (en) A kind of method, apparatus buried a little, equipment and storage medium
CN112465615A (en) Bill data processing method, device and system
CN101938362A (en) Charging regrant method, device and system
CN114707472A (en) Method and device for field merging and electronic equipment
CN113037510A (en) Charging method, charging device and computer readable storage medium
CN113312675A (en) Attribute checking method and device, electronic equipment and storage medium
CN110365682B (en) Anti-cheating method and device
CN114845257A (en) Multi-dimensional charging method, device and storage medium based on embedded script
CN110362416A (en) Page assembly loading method and device, electronic equipment, storage medium
CN105678550A (en) Data processing method and device
CN112840305B (en) Font switching method and related product
CN111416985A (en) Method and device for executing object processing in live broadcasting process and electronic equipment
CN115150764B (en) Tariff configuration method, tariff configuration device, tariff configuration equipment and tariff configuration medium
CN106095906A (en) A kind of data processing method and device
CN108156206B (en) Data transfer method, server, client and system
CN112306838A (en) Page layout compatibility testing method, device and equipment and readable storage medium
CN111681097A (en) Account type identification method, server, electronic equipment and system
CN110032640A (en) The determination method and device of service plan
CN114429341B (en) Grouped payment method, device and equipment
CN115529566B (en) Charging control method, device and storage medium based on predefined Urr
CN112015393A (en) Service processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant