[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN116777519A - Information processing method, device, equipment and storage medium based on discount strategy - Google Patents

Information processing method, device, equipment and storage medium based on discount strategy Download PDF

Info

Publication number
CN116777519A
CN116777519A CN202310790779.0A CN202310790779A CN116777519A CN 116777519 A CN116777519 A CN 116777519A CN 202310790779 A CN202310790779 A CN 202310790779A CN 116777519 A CN116777519 A CN 116777519A
Authority
CN
China
Prior art keywords
discount
script
information
discount calculation
calculation
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.)
Pending
Application number
CN202310790779.0A
Other languages
Chinese (zh)
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.)
Shenzhen Xinguodu Tech Co Ltd
Original Assignee
Shenzhen Xinguodu Tech 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 Shenzhen Xinguodu Tech Co Ltd filed Critical Shenzhen Xinguodu Tech Co Ltd
Priority to CN202310790779.0A priority Critical patent/CN116777519A/en
Publication of CN116777519A publication Critical patent/CN116777519A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0211Determining the effectiveness of discounts or incentives
    • 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/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Cash Registers Or Receiving Machines (AREA)

Abstract

The application discloses an information processing method, device, equipment and storage medium based on discount strategy, the method comprises: obtaining newly added discount strategy information; searching candidate discount calculation scripts in a database through a preset script engine and the newly added discount policy information to obtain a selected discount calculation script; the database comprises at least one candidate discount calculation script, wherein the candidate discount calculation script is obtained by carrying out script customization processing based on preset discount policy information; and modifying the selected discount calculation script according to the newly added discount policy information to obtain a target discount calculation script, and storing the target discount calculation script serving as the newly added candidate discount calculation script into the database. The application can automatically generate the target discount calculation script corresponding to the discount strategy when the discount strategy is newly added so as to quickly respond to discount activity discount calculation.

Description

Information processing method, device, equipment and storage medium based on discount strategy
Technical Field
The present application relates to the field of computer technologies, and in particular, to an information processing method and apparatus based on a discount policy, and a device and a storage medium thereof.
Background
When a user performs commodity settlement on a website and an APP (Application program) provided by a platform, a plurality of discount policy corresponding codes are preset based on the website or the APP to finish the settlement. In order to improve the diversity of website or APP strategies and adapt to different discount activities, code development iteration and restarting service are needed to be carried out based on new activity strategies to obtain discount calculation codes, so that the website or APP can call the discount calculation codes to finish commodity settlement. But the code development process of the discount policy is complex and slow and cannot quickly respond to the newly generated discount activity of the website or APP.
Disclosure of Invention
The present application aims to solve at least one of the technical problems existing in the prior art. Therefore, the application provides an information processing method based on a discount strategy, which can automatically generate a target discount calculation script corresponding to the discount strategy when the discount strategy is newly added so as to quickly respond to discount activity discount calculation.
The application also provides an information processing device based on the discount strategy.
The application further provides electronic equipment.
The application also proposes a computer readable storage medium.
In a first aspect, an embodiment of the present application provides an information processing method based on a discount policy, including:
obtaining newly added discount strategy information;
searching candidate discount calculation scripts in a database through a preset script engine and the newly added discount policy information to obtain a selected discount calculation script; the database comprises at least one candidate discount calculation script, wherein the candidate discount calculation script is obtained by carrying out script customization processing based on preset discount policy information;
and modifying the selected discount calculation script according to the newly added discount policy information to obtain a target discount calculation script, and storing the target discount calculation script serving as the newly added candidate discount calculation script into the database.
The information processing method based on the discount strategy has the following advantages: when the discount policy information is newly added each time, the selected discount calculation script which is similar or identical to the newly added discount policy information is searched in the database, and then the selected discount calculation script is revised based on the newly added discount policy information to obtain the target discount calculation script, so that quick response can be realized when the newly added discount policy is realized, and the customization of development codes and restarting services is not needed, so that discount commodity settlement can be quickly completed.
According to another embodiment of the present application, before searching the candidate discount calculation script in the database through the preset script engine and the new discount policy information to obtain the selected discount calculation script, the method further includes:
extracting preset discount calculation information from the preset discount strategy information;
converting the preset discount calculation information into script character strings;
and constructing the candidate discount calculation script according to the script character string.
According to another embodiment of the present application, a discount policy-based information processing method includes the steps of providing a database including a plurality of storage areas and storage number sections of the storage areas; the method after constructing the candidate discount calculation script from the script string further comprises:
configuring strategy numbering information for the candidate discount calculation script;
and searching a selected storage area according to the strategy number information and the storage area of the storage number interval in the database, and storing the candidate discount calculation script into the selected storage area.
According to other embodiments of the present application, the information processing method based on the discount policy includes: discount calculation scene and discount calculation category; the searching of candidate discount calculation scripts in a database through a preset script engine and the newly added discount policy information to obtain a selected discount calculation script comprises the following steps:
screening the strategy number information according to the discount calculation scene and the discount calculation category to obtain target number information;
and searching candidate discount calculation scripts in the database according to a preset script engine and the target number information so as to extract the selected discount calculation scripts.
According to another embodiment of the present application, the method for processing information based on discount policy, which modifies the selected discount calculation script according to the newly added discount policy information to obtain a target discount calculation script, stores the target discount calculation script as the newly added candidate discount calculation script in the database, includes:
extracting new discount calculation information from the new discount strategy information;
extracting calculation parameters from the newly added discount calculation information;
and adjusting parameters of the selected discount calculation script according to the calculation parameters to obtain the target discount calculation script, and storing the target discount calculation script serving as the newly added candidate discount calculation script into the database.
According to another embodiment of the present application, after modifying the selected discount calculation script according to the new discount policy information to obtain a target discount calculation script, and storing the target discount calculation script as the new candidate discount calculation script in the database, the method further includes:
receiving a policy invocation request; wherein the policy invocation request comprises selected current policy information and commodity price list information;
extracting a corresponding current discount calculation script from the database according to the current strategy information;
and calculating the commodity price list information through the current discount calculation script to obtain settlement price information.
According to other embodiments of the present application, the method for processing information based on discount policies, which calculates the commodity price list information by the current discount calculation script, obtains settlement price information, includes:
extracting bidding lattice parameters from the commodity price list information;
and inputting the price parameters into price parameter attributes corresponding to the current discount calculation script to settle accounts, and obtaining settlement price information.
In a second aspect, one embodiment of the present application provides an information processing apparatus based on a discount policy, the apparatus comprising:
the strategy acquisition module is used for acquiring newly added discount strategy information;
the script searching module is used for searching candidate discount calculation scripts in the database through a preset script engine and the newly added discount policy information to obtain a selected discount calculation script; the database comprises at least one candidate discount calculation script, wherein the candidate discount calculation script is obtained by carrying out script customization processing based on preset discount policy information;
and the script modification module is used for modifying the selected discount calculation script according to the newly added discount policy information to obtain a target discount calculation script, and storing the target discount calculation script serving as the newly added candidate discount calculation script into the database.
The information processing device based on the discount strategy has the following advantages: when the discount policy information is newly added each time, the selected discount calculation script which is similar or identical to the newly added discount policy information is searched in the database, and then the selected discount calculation script is revised based on the newly added discount policy information to obtain the target discount calculation script, so that quick response can be realized when the newly added discount policy is realized, and the customization of development codes and restarting services is not needed, so that discount commodity settlement can be quickly completed.
In a third aspect, an embodiment of the present application provides an electronic device, including:
at least one processor, and,
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the rebate policy-based information processing method of the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the discount policy-based information processing method according to the first aspect.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and drawings.
Drawings
FIG. 1 is a flowchart of an embodiment of a discount policy-based information processing method according to an embodiment of the present application;
FIG. 2 is a flowchart of another embodiment of a discount policy-based information processing method according to an embodiment of the present application;
FIG. 3 is a flowchart of another embodiment of a discount policy-based information processing method according to an embodiment of the present application;
FIG. 4 is a flowchart of step S102 in FIG. 1;
FIG. 5 is a flowchart of step S13 in FIG. 1;
FIG. 6 is a flowchart of another embodiment of a discount policy-based information processing method according to an embodiment of the present application;
FIG. 7 is a flowchart of step S603 in FIG. 6;
FIG. 8 is a flowchart of an embodiment of a method for processing information based on a discount policy according to an embodiment of the present application;
FIG. 9 is a block diagram of an embodiment of a rebate policy-based information processing apparatus in accordance with an embodiment of the present application;
FIG. 10 is a block diagram of an embodiment of an electronic device in accordance with an embodiment of the present application.
Detailed Description
The conception and the technical effects produced by the present application will be clearly and completely described in conjunction with the embodiments below to fully understand the objects, features and effects of the present application. It is apparent that the described embodiments are only some embodiments of the present application, but not all embodiments, and that other embodiments obtained by those skilled in the art without inventive effort are within the scope of the present application based on the embodiments of the present application.
In the description of the present application, if an orientation description such as "upper", "lower", "front", "rear", "left", "right", etc. is referred to, it is merely for convenience of description and simplification of the description, and does not indicate or imply that the apparatus or element referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the application. If a feature is referred to as being "disposed," "secured," "connected," or "mounted" on another feature, it can be directly disposed, secured, or connected to the other feature or be indirectly disposed, secured, connected, or mounted on the other feature.
In the description of the embodiments of the present application, if "several" is referred to, it means more than one, if "multiple" is referred to, it is understood that the number is not included if "greater than", "less than", "exceeding", and it is understood that the number is included if "above", "below", "within" is referred to. If reference is made to "first", "second" it is to be understood as being used for distinguishing technical features and not as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
Noun interpretation:
JavaScript: is a programming language mainly used for web page development and can be run in a browser. JavaScript allows developers to create interactive and dynamic websites by adding behavior to HTML and CSS.
Script engine: is a class in the Java programming language and script engine provides an interface to run scripts written in various scripting languages, such as JavaScript, python, ruby, etc. Script engines allow Java programs to dynamically execute scripts at runtime and provide a way to integrate script functions into Java applications.
Naschorn: is a JavaScript engine on the Java platform for running JavaScript code on the JVM. Nashon starts from Java 8 and becomes part of the Java standard library. Nashon uses a JIT compiler to improve performance and allows seamless interaction between Java and JavaScript.
With the development of computer technology, various e-commerce activities and payment activities are diversified, and an e-commerce platform needs to assign activity strategies according to different activity types and then generate programs corresponding to commodity settlement according to the activity strategies so as to facilitate a user to automatically run the programs to finish commodity settlement when settling. However, as the types of activities increase to attract different types of customers, code development iterations and restart services are required for new activity policies each time, and the entire code development process is cumbersome and time-consuming. With current market competition incentives, it is difficult for a program to respond to a new discount activity policy for a period of time each time based on a new activity policy.
Based on the method, the device, the equipment and the storage medium for processing the information based on the discount strategy, when the discount strategy information is needed to be added each time, the selected discount calculation script which is similar or identical to the newly added discount strategy information is searched in the database, and then the selected discount calculation script is revised based on the newly added discount strategy information to obtain the target discount calculation script, so that quick response can be realized when the newly added discount strategy is realized, and the development code and the restarting service are not required to be customized, so that the settlement of discount commodity can be completed quickly. And after the target discount calculation script is constructed, the target discount calculation script is continuously stored into the database as a newly added candidate discount calculation script so as to be conveniently and directly called from the database next time, and the commodity quick settlement is completed.
Referring to fig. 1, a flow diagram of an information processing method based on a discount policy in an embodiment of the present application is shown. The discount policy-based information processing method may include, but is not limited to, including steps S101 to S106:
step S101, obtaining newly added discount strategy information;
step S102, searching candidate discount calculation scripts in a database through a preset script engine and newly-added discount policy information to obtain a selected discount calculation script; the database comprises at least one candidate discount calculation script, wherein the candidate discount calculation script is obtained by carrying out script customization processing based on preset discount strategy information;
step S103, modifying the selected discount calculation script according to the newly added discount policy information to obtain a target discount calculation script, and storing the target discount calculation script as a newly added candidate discount calculation script in a database.
In the steps S101 to S103 shown in the embodiment of the present application, when new discount policy information is generated, a candidate discount calculation script matched with the new discount policy information is directly called in the database by the script engine as a selected discount calculation script, then the selected discount calculation script is revised according to the new discount policy information to obtain a target discount calculation script, and finally the target discount calculation script is stored in the database as a new candidate discount calculation script. Therefore, only the associated candidate discount calculation script is called from the database when the discount strategy is newly added each time, and then the discount calculation script is revised according to the newly added discount strategy information to obtain the target discount calculation script, so that code development and restarting service are not needed when aiming at the new discount strategy information, the operation when the discount strategy is newly added is simplified, and the new discount activity strategy can be quickly added in response to the requirement. Meanwhile, a discount calculation script is quickly built for the newly added activity and then is continuously stored in a database, so that the subsequent newly added similar activity can be directly called, and commodity settlement is quickly completed.
In step S101 of some embodiments, when a user inputs a new activity policy at an interface of the e-commerce platform to form new discount policy information. The new discount policy information comprises discount calculation scenes and discount calculation categories, and the discount calculation scenes and the discount calculation categories are selected according to the interface of the user on the electronic commerce platform so as to determine the new discount policy information. For example, if the discount calculation scene is sports apparel, the discount calculation category is full X pieces of discount Y-fold to construct sports apparel, and the discount calculation category is full X pieces of discount Y-fold added discount policy information.
Referring to fig. 2, in some embodiments, before step S102, the discount policy-based information processing method may further include, but is not limited to, steps S201 to S203:
step S201, extracting preset discount calculation information from preset discount strategy information;
step S202, converting preset discount calculation information into script character strings;
step S203, constructing a candidate discount calculation script according to the script character string.
In step S201 of some embodiments, preset discount policy information is constructed by extracting preset discount policy information from a preset stored discount library, or directly designating a policy. If aiming at the E-commerce platform, extracting preset discount strategy information in a preset time period from a discount library, wherein the preset time period is predefined by a user, and the preset time period is generally designated to be within 1 year. Because the activity strategies generated by the similar activity types of each year are similar, the preset discount strategy information in 1 year is collected to construct a corresponding script, and the matched strategy is simpler to find out from the preset discount strategies in one year when the strategies are added. The preset discount policy information contains discount calculation information, so the discount calculation information is extracted from the preset discount policy information as the preset discount calculation information. For example, if the preset discount policy information is "mother and infant products, such as full 100-element commodity vertical reduction 10", the preset discount calculation information is extracted as "full 100-element vertical reduction 10". If the preset discount policy information is "household commodity is 100 minus 10, 200 minus 20, 300 minus 30", the preset discount calculation information is "100 minus 10", "200 minus 20", "300 minus 30" from the preset discount policy information. Therefore, by extracting the preset discount calculation information from the preset discount policy information, each discount content can be clearly grasped.
In step S202 of some embodiments, it is necessary to program preset discount calculation information based on JAVA scripting, by defining the preset discount calculation information as JavaScript script strings to obtain script strings. I.e., processing the preset discount calculation information into JavaScript language. For example, if the preset discount calculation information is "full 100-element vertical minus 10", converting the preset discount calculation information into a script string of "var total=0; for (var i=0; I < pricelist.length; i++ { total+ = (priceList [ I ] > =100.
In step S203 of some embodiments, a candidate discount calculation script is constructed based on the script string. The preset discount policy information is characterized in a script mode, so that only the script needs to be run when online commodity settlement is carried out, and the candidate discount calculation script is used as a storage medium of the preset discount policy information.
Referring to FIG. 3, in some embodiments, a database includes a plurality of memory areas and memory number intervals of the memory areas; after step S203, the discount policy-based information processing method may further include, but is not limited to, steps S301 to S302:
step S301, strategy numbering information is configured for the candidate discount calculation script;
step S302, a selected storage area is found out according to the strategy number information and the storage area of the storage number interval in the database, and the candidate discount calculation script is stored in the selected storage area.
In step S301 of some embodiments, each candidate discount calculation script is configured with policy number information to divide each candidate discount calculation script by the policy number information. For example, if N candidate discount calculation scripts are set, policy number information is obtained by dividing N as a number, and then policy number information is configured for the candidate discount calculation scripts in sequence.
In step S302 of some embodiments, each storage area defines a storage number section in advance, so it is determined which storage number section the policy number information falls into, and the storage area corresponding to the storage number section into which the policy number information falls is taken as the selected storage area. For example, if M storage areas are set in the database, if M is 5, the storage number interval of the first storage area is set to 1-10, the storage number interval of the second storage area is set to 11-20, and the number interval of the fifth storage area is set to 41-50. If the policy number information is 17, it is determined that the policy number information is 17 corresponds to the second storage area as the selected storage area. After the selected storage area is determined, the candidate discount calculation script corresponding to the strategy number information is stored in the selected storage area so as to finish the realization of storing the original discount strategy information in a database in a script mode, and the candidate discount calculation script is stored in a partition mode, so that when the candidate discount calculation script is extracted, the storage area can be determined first, and then the corresponding candidate discount calculation script is extracted from the storage area to serve as the selected discount calculation script, so that layered searching is realized, and the selected discount calculation script is quickly searched.
In steps S301 to S302 illustrated in this embodiment, by setting policy number information of each candidate discount calculation script, and dividing a selected storage area of the candidate discount calculation script according to the policy number information, the candidate discount calculation scripts are stored in the corresponding selected storage area in a classified manner, so that the candidate discount calculation scripts are stored in a layered manner, so that the candidate discount calculation scripts can be extracted quickly, and the search time of the candidate discount calculation scripts is reduced.
Referring to FIG. 4, in some embodiments, the new discount policy information includes: discount calculation scene and discount calculation category; step S102 may include, but is not limited to, steps S401 to S402:
step S401, screening the strategy number information according to the discount calculation scene and the discount calculation category to obtain target number information;
step S402, searching candidate discount scripts in the database according to the preset script engine and the target number information to extract the selected discount calculation scripts.
In step S401 of some embodiments, a mapping relationship table exists between each discount calculation scene, discount calculation category and policy number information according to discount calculation scenes and discount calculation categories in the newly added discount policy information, and corresponding policy number information is found out from the mapping relationship table according to discount calculation scenes and discount calculation categories of the newly added discount policy information to be used as target number information.
In step S402 of some embodiments, a plurality of storage areas are stored in the database, a corresponding target storage area is searched in the storage area by the script engine according to the target number information and the storage number interval, and then the selected discount calculation script is searched in the target storage area according to the target number information, so that the selected discount calculation script is easy to obtain, the selected discount calculation script does not need to be searched in the database one by one, and the searching efficiency of the selected discount calculation script is improved.
In steps S401 to S402 illustrated in this embodiment, matching policy number information is found in the mapping relation table according to the discount calculation scenario and the discount calculation category to be used as target number information, and then a corresponding candidate discount calculation script is found in the database according to the target number information to be used as a selected discount calculation script, so as to realize quick search of the discount calculation script, and improve search efficiency of the selected discount calculation script.
Referring to fig. 5, in some embodiments, step S103 may include, but is not limited to, steps S501 to S503:
step S501, extracting new discount calculation information from the new discount strategy information;
step S502, extracting calculation parameters from the newly added discount calculation information;
step S503, the parameters of the selected discount calculation script are adjusted according to the calculation parameters to obtain a target discount calculation script, and the target discount calculation script is used as a newly added candidate discount calculation script to be stored in a database.
The selected discount calculation script is selected from the database and does not characterize the new discount policy information, so that the selected discount calculation script needs to be revised based on the new discount policy information, and in step S501 of some embodiments, the new discount calculation information is extracted from the new discount policy information to determine a discount calculation manner of the commodity to be calculated according to the new discount calculation information.
In step S502 of some embodiments, the modification of the calculation script for the selected discount may be performed in the background management page, or the corresponding file is modified and edited on the server, and the modification is performed by the person with the corresponding authority. The new discount calculation information is not related to formula change in the modification process, and only the adjustment of formula coefficients is related, so that calculation parameters are extracted from the new discount calculation information, and the selected discount calculation script is adjusted according to the calculation parameters. If the newly added discount calculation information relates to formula change, the formula is updated by inputting modification information through a developer.
In step S503 of some embodiments, parameters of the selected discount calculation script are adjusted according to the extracted calculation parameters to adjust calculation formula parameter adjustment in the selected discount calculation script. For example, if the selected discount calculation script is "vartotal=0; for (var i=0; i < pricelist.length; i++ { total+ = (priceList [ i ] > =100; if the calculation parameter is "200-20", the selected discount calculation script is revised to obtain the target discount calculation script as
varmotal=0; for (vari=0; i < pricelist.length; i++) { total+ = (priceList [ i ] > = 200; ". And finally, storing the target discount calculation script into a database as a newly added candidate discount calculation script so as to finish the new addition of the discount calculation script, and conveniently extracting the corresponding discount calculation script from the database directly when the similar discount strategies are newly added later so as to finish the quick settlement of the commodity.
Referring to fig. 6, in some embodiments, after step S106, the discount policy-based information processing method may further include, but is not limited to, steps S601 to S603:
step S601, receiving a policy invocation request; the strategy calling request comprises selected current strategy information and commodity price list information;
step S602, extracting a corresponding current discount calculation script from a database according to the current strategy information;
step S603, calculating commodity price list information through the current discount calculation script to obtain settlement price information.
In step S601 of some embodiments, when a user selects a policy in an interface or configuration of the e-commerce platform to obtain a policy invocation request, the policy invocation request includes selected current policy information and commodity price list information. For example, the user selects discount policy A on the interface and the item price list information is the price of the item corresponding to columns 1-5.
In step S602 of some embodiments, corresponding candidate discount calculation scripts are extracted from the database as current discount calculation scripts according to the current policy information, and the user is associated with the current discount calculation scripts by calling a total price preview interface before payment of the shopping cart of the e-commerce platform.
In step S603 of some embodiments, commodity price listing information is calculated based on the current discount calculation script to obtain settlement price information by creating a nashon-type script engine (script Engine) object for subsequent calculations to run the current discount calculation script (JavaScript). Wherein, nashort is a JVM-based lightweight high-performance JavaScript operating environment. The computing JavaScript is to be implemented based on nashortn. Code by executing the current discount calculation script is "script enginemanagerstenginemanager= new ScriptEngineManager (); scriptEngine engine = script enginemanager.getenginebyname ("naschorn"); ".
Referring to fig. 7, in some embodiments, step S603 may include, but is not limited to, steps S701 to S702:
step S701, extracting bidding lattice parameters from the commodity price list information;
step S702, inputting the price parameter into the price parameter attribute corresponding to the current discount calculation script to settle accounts, and obtaining settlement price information.
In steps S701 and S702 of some embodiments, the bid price parameter is extracted from the commodity price list information, then the price parameter is added to the price parameter row corresponding to the current discount calculation script, which is equivalent to adding the price parameter to the attribute of engine. Therefore, when the user performs commodity settlement, the stage can be completed by inputting the price parameters of the commodity price list into the current discount calculation script after the discount calculation script is called, so that the condition that an active discount strategy is required to be loaded or service is restarted for commodity settlement each time is avoided, a complicated commodity settlement flow is avoided, commodity settlement efficiency is improved, and the experience of the user for online shopping is improved.
For example, referring to fig. 8, after the operator adds the discount policy information on the interface, searching a similar selected discount calculation script in the database according to the newly added discount policy information, correcting the selected discount calculation script according to the newly added discount policy information to obtain a target discount calculation script, and storing the target discount calculation script in the database, that is, in the policy pool. When the user pays for the commodity, the user selects the commodity to obtain commodity price list information, and takes out the current discount calculation script from the strategy pool, and transmits the current discount calculation script to the script engine, the price parameter of the commodity price list information is replaced into the price attribute information of the current discount calculation script through the script engine, and then the current discount calculation script is calculated through the script engine to obtain settlement price information, and the settlement price information is displayed, namely the payment amount is displayed.
Referring to fig. 9, an embodiment of the present application further provides an information processing apparatus based on a discount policy, which may implement the information processing method based on a discount policy, where the apparatus includes:
the policy acquisition module 901 is configured to acquire new discount policy information;
the script searching module 902 is configured to search candidate discount calculation scripts in the database through a preset script engine and new discount policy information to obtain a selected discount calculation script; the database comprises at least one candidate discount calculation script, wherein the candidate discount calculation script is obtained by carrying out script customization processing based on preset discount strategy information;
the script modification module 903 is configured to modify the selected discount calculation script according to the newly added discount policy information, obtain a target discount calculation script, and store the target discount calculation script as the newly added candidate discount calculation script in the database.
The specific implementation of the information processing device based on the discount policy is basically the same as the specific embodiment of the information processing method based on the discount policy, and will not be described herein.
Referring to fig. 10, fig. 10 illustrates a hardware structure of an electronic device according to another embodiment, the electronic device includes:
the processor 1001 may be implemented by using a general-purpose CPU (central processing unit), a microprocessor, an application-specific integrated circuit (ApplicationSpecificIntegratedCircuit, ASIC), or one or more integrated circuits, etc. to execute related programs to implement the technical solution provided by the embodiments of the present application;
the memory 1002 may be implemented in the form of read-only memory (ReadOnlyMemory, ROM), static storage, dynamic storage, or random access memory (RandomAccessMemory, RAM). The memory 1002 may store an operating system and other application programs, and when the technical solutions provided in the embodiments of the present specification are implemented by software or firmware, relevant program codes are stored in the memory 1002, and a model library construction method for executing the embodiments of the present application or a model calling method based on a model library is called by the processor 1001;
an input/output interface 1003 for implementing information input and output;
the communication interface 1004 is configured to implement communication interaction between the present device and other devices, and may implement communication in a wired manner (e.g. USB, network cable, etc.), or may implement communication in a wireless manner (e.g. mobile network, WIFI, bluetooth, etc.);
a bus 1005 for transferring information between the various components of the device (e.g., the processor 1001, memory 1002, input/output interface 1003, and communication interface 1004);
wherein the processor 1001, the memory 1002, the input/output interface 1003, and the communication interface 1004 realize communication connection between each other inside the device through the bus 1005.
The embodiment of the application also provides a computer readable storage medium, which stores a computer program, and the computer program realizes the model library construction method or model calling method based on the model library when being executed by a processor.
The memory, as a non-transitory computer readable storage medium, may be used to store non-transitory software programs as well as non-transitory computer executable programs. In addition, the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory remotely located relative to the processor, the remote memory being connectable to the processor through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The above described apparatus embodiments are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, i.e. may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.
The embodiments of the present application have been described in detail with reference to the accompanying drawings, but the present application is not limited to the above embodiments, and various changes can be made within the knowledge of one of ordinary skill in the art without departing from the spirit of the present application. Furthermore, embodiments of the application and features of the embodiments may be combined with each other without conflict.

Claims (10)

1. An information processing method based on a discount policy, comprising:
obtaining newly added discount strategy information;
searching candidate discount calculation scripts in a database through a preset script engine and the newly added discount policy information to obtain a selected discount calculation script; the database comprises at least one candidate discount calculation script, wherein the candidate discount calculation script is obtained by carrying out script customization processing based on preset discount policy information;
and modifying the selected discount calculation script according to the newly added discount policy information to obtain a target discount calculation script, and storing the target discount calculation script serving as the newly added candidate discount calculation script into the database.
2. The discount policy-based information processing method according to claim 1, wherein before the candidate discount calculation script search is performed in the database through the preset script engine and the newly added discount policy information to obtain the selected discount calculation script, the method further comprises:
extracting preset discount calculation information from preset discount strategy information;
converting the preset discount calculation information into script character strings;
and constructing the candidate discount calculation script according to the script character string.
3. The discount policy-based information processing method according to claim 2, wherein the database includes a plurality of memory areas and memory number intervals of the memory areas; after said constructing said candidate discount calculation script from said script string, said method further comprises:
configuring strategy numbering information for the candidate discount calculation script;
and searching a selected storage area according to the strategy number information and the storage area of the storage number interval in the database, and storing the candidate discount calculation script into the selected storage area.
4. The discount policy-based information processing method of claim 3, wherein the newly added discount policy information includes: discount calculation scene and discount calculation category; the searching of candidate discount calculation scripts in a database through a preset script engine and the newly added discount policy information to obtain a selected discount calculation script comprises the following steps:
screening the strategy number information according to the discount calculation scene and the discount calculation category to obtain target number information;
and searching candidate discount calculation scripts in the database according to a preset script engine and the target number information so as to extract the selected discount calculation scripts.
5. The discount policy-based information processing method according to any one of claims 1 to 4, wherein modifying the selected discount calculation script according to the newly added discount policy information to obtain a target discount calculation script, and storing the target discount calculation script as the newly added candidate discount calculation script in the database, comprises:
extracting new discount calculation information from the new discount strategy information;
extracting calculation parameters from the newly added discount calculation information;
and adjusting parameters of the selected discount calculation script according to the calculation parameters to obtain the target discount calculation script, and storing the target discount calculation script serving as the newly added candidate discount calculation script into the database.
6. The discount policy-based information processing method according to any one of claims 1 to 4, wherein after said modification processing of said selected discount calculation script according to said newly added discount policy information, a target discount calculation script is obtained, and said target discount calculation script is stored in said database as said newly added discount calculation script candidate, said method further comprises:
receiving a policy invocation request; wherein the policy invocation request comprises selected current policy information and commodity price list information;
extracting a corresponding current discount calculation script from the database according to the current strategy information;
and calculating the commodity price list information through the current discount calculation script to obtain settlement price information.
7. The discount policy-based information processing method according to claim 6, wherein the calculating the commodity price list information by the current discount calculation script to obtain settlement price information includes:
extracting bidding lattice parameters from the commodity price list information;
and inputting the price parameters into price parameter attributes corresponding to the current discount calculation script to settle accounts, and obtaining settlement price information.
8. An information processing apparatus based on a discount policy, the apparatus comprising:
the strategy acquisition module is used for acquiring newly added discount strategy information;
the script searching module is used for searching candidate discount calculation scripts in the database through a preset script engine and the newly added discount policy information to obtain a selected discount calculation script; the database comprises at least one candidate discount calculation script, wherein the candidate discount calculation script is obtained by carrying out script customization processing based on preset discount policy information;
and the script modification module is used for modifying the selected discount calculation script according to the newly added discount policy information to obtain a target discount calculation script, and storing the target discount calculation script serving as the newly added candidate discount calculation script into the database.
9. An electronic device, comprising:
at least one processor, and,
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the discount policy-based information processing method of any one of claims 1 to 7.
10. A computer-readable storage medium storing computer-executable instructions for causing a computer to perform the discount policy-based information processing method according to any one of claims 1 to 7.
CN202310790779.0A 2023-06-29 2023-06-29 Information processing method, device, equipment and storage medium based on discount strategy Pending CN116777519A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310790779.0A CN116777519A (en) 2023-06-29 2023-06-29 Information processing method, device, equipment and storage medium based on discount strategy

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310790779.0A CN116777519A (en) 2023-06-29 2023-06-29 Information processing method, device, equipment and storage medium based on discount strategy

Publications (1)

Publication Number Publication Date
CN116777519A true CN116777519A (en) 2023-09-19

Family

ID=87992828

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310790779.0A Pending CN116777519A (en) 2023-06-29 2023-06-29 Information processing method, device, equipment and storage medium based on discount strategy

Country Status (1)

Country Link
CN (1) CN116777519A (en)

Similar Documents

Publication Publication Date Title
US10789626B2 (en) Deep-linking system, method and computer program product for online advertisement and e-commerce
CN101971172B (en) Mobile sitemaps
KR102219344B1 (en) Automatic advertisement execution device, method for automatically generating campaign information for an advertisement medium to execute an advertisement and computer program for executing the method
US9946529B2 (en) Function-based dynamic application extension framework
US20170185384A1 (en) Adaptive Function-Based Dynamic Application Extension Framework
US20140195893A1 (en) Method and Apparatus for Generating Webpage Content
US20070271519A1 (en) System and Method for Collecting User Interest Data
RU2757546C2 (en) Method and system for creating personalized user parameter of interest for identifying personalized target content element
CN112036577B (en) Method and device for applying machine learning based on data form and electronic equipment
EP3599551A2 (en) Maintenance, distribution and loading of specific functionality of a software application on a client device
US20180004856A1 (en) Navigation menu based on crowd data
KR20200045354A (en) Automatic advertisement execution device, method for automatically generating campaign information for an advertisement medium to execute an advertisement and computer program for executing the method
CN110209378A (en) Page generation method, device, terminal and storage medium
CN110798467A (en) Target object identification method and device, computer equipment and storage medium
US20170228775A1 (en) Learning apparatus, learning method, and non-transitory computer readable storage medium
CN111080417A (en) Processing method for improving booking smoothness rate, model training method and system
CN104346398A (en) Method and device for automatically filling and submitting data on line
US8051110B2 (en) Identifying screen flows to support multiple entities and their diverse rules with a single application instance
CA2881461A1 (en) Automates system for delivering priced access to content where prices vary with user behavior, including facilities to derive accumulated rating of articles, authors, and/or publishers as aids for locating content matching users&#39; interests
CN116777519A (en) Information processing method, device, equipment and storage medium based on discount strategy
CN110096658B (en) Data point burying method and device
CN111311015A (en) Personalized click rate prediction method, device and readable storage medium
US11869027B1 (en) System, method, and computer program for providing, automatically trying, and applying electronic coupon codes and cash back in electronic commerce
CN111723134A (en) Information processing method, information processing device, electronic equipment and storage medium
KR102372432B1 (en) Method, device and system for providing recommended content using click and exposure information

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