WO2021139379A1 - 活动配置方法、装置、可读介质及电子设备 - Google Patents

活动配置方法、装置、可读介质及电子设备 Download PDF

Info

Publication number
WO2021139379A1
WO2021139379A1 PCT/CN2020/127124 CN2020127124W WO2021139379A1 WO 2021139379 A1 WO2021139379 A1 WO 2021139379A1 CN 2020127124 W CN2020127124 W CN 2020127124W WO 2021139379 A1 WO2021139379 A1 WO 2021139379A1
Authority
WO
WIPO (PCT)
Prior art keywords
activity
rule
configuration information
plug
user
Prior art date
Application number
PCT/CN2020/127124
Other languages
English (en)
French (fr)
Inventor
陈永涛
Original Assignee
北京字节跳动网络技术有限公司
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 北京字节跳动网络技术有限公司 filed Critical 北京字节跳动网络技术有限公司
Publication of WO2021139379A1 publication Critical patent/WO2021139379A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the present disclosure relates to the field of networking, and in particular, to an activity configuration method, device, readable medium, and electronic equipment.
  • the activity configuration is generally implemented through scripts, which is expensive to use, and the script itself is also poorly reusable.
  • the pressure on the relevant personnel will be great, which is also not conducive to Development and update iterations of activities.
  • the present disclosure provides an activity configuration method, the method includes:
  • rule plug-in selection instruction Acquiring a rule plug-in selection instruction input by the user, where the rule plug-in selection instruction is used to instruct one or more rule plug-ins selected by the user, and the rule plug-in is a plug-in capable of realizing an active function;
  • the activity is configured according to the activity rule configuration information and the activity online configuration information.
  • the present disclosure provides an activity configuration device, the device includes:
  • the first obtaining module is configured to obtain a rule plug-in selection instruction input by a user, where the rule plug-in selection instruction is used to instruct one or more rule plug-ins selected by the user, and the rule plug-in is a plug-in capable of realizing an active function;
  • the activity rule configuration information determining module is configured to determine the activity rule configuration information according to the rule plug-in selection instruction, and the activity rule configuration information is used to configure the activity rule;
  • the second acquiring module is configured to acquire the activity online configuration information input by the user, and the activity online configuration information is used to configure the online environment when the activity is online;
  • the configuration module is configured to configure the activity according to the activity rule configuration information and the activity online configuration information.
  • the present disclosure provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processing device, the steps of the method described in the first aspect are implemented.
  • an electronic device including:
  • a storage device on which a computer program is stored
  • the processing device is configured to execute the computer program in the storage device to implement the steps of the method described in the first aspect.
  • the activity rules of the existing activity plan can be abstracted into a single rule plug-in.
  • the rule plug-ins can be selected directly according to the activity rules of the activity plan to obtain the desired activity. Reduce the amount of repetitive work in the development process of the developer's activities, greatly improving the efficiency of the activity development.
  • Fig. 1 is a flowchart showing an activity configuration method according to an exemplary embodiment of the present disclosure.
  • Fig. 2 is a flowchart showing an activity configuration method according to another exemplary embodiment of the present disclosure.
  • Fig. 3 is a flowchart showing an activity configuration method according to another exemplary embodiment of the present disclosure.
  • Fig. 4 is a flowchart showing an activity configuration method according to another exemplary embodiment of the present disclosure.
  • Fig. 5 is a structural block diagram showing an activity configuration device according to an exemplary embodiment of the present disclosure.
  • Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
  • Fig. 1 is a flowchart showing an activity configuration method according to an exemplary embodiment of the present disclosure. As shown in FIG. 1, the method includes step 101 to step 104.
  • step 101 a rule plug-in selection instruction input by a user is acquired, the rule plug-in selection instruction is used to instruct one or more rule plug-ins selected by the user, and the rule plug-in is a plug-in capable of realizing an active function.
  • the user can input the rule plug-in selection instruction in multiple ways, as long as it can indicate the rule plug-in selection instruction input method of one or more rule plug-ins selected by the user.
  • the activity functions implemented by the rule plug-in can be the following:
  • the audience level of the audience is upgraded to the preset level after the audience has given gifts to reach the preset firepower value
  • the activity functions that can be realized by the rule plug-in are not limited to the above mentioned six types.
  • the above content is only an example of the activity functions that can be realized by the rule plug-in.
  • every existing activity function can be abstracted as a rule plug-in.
  • the rule plug-in can be updated according to each newly added activity function.
  • step 102 activity rule configuration information is determined according to the rule plug-in selection instruction, and the activity rule configuration information is used to configure the activity rule.
  • the rule plug-in selected by the user can be determined, and then the activity rule configuration information can be determined according to the activity function corresponding to the rule plug-in selected by each user.
  • the rule configuration information corresponding to the activity function of each rule plug-in may be set corresponding to the rule plug-in in advance, and the corresponding rule configuration information can be determined when the rule plug-in is determined.
  • step 103 the activity online configuration information input by the user is obtained, and the activity online configuration information is used to configure the online environment when the activity is online.
  • the event online configuration information can be entered by the user in any way, for example, it can be directly input by uploading the event online configuration file, or it can be configured in one or more activities that have been set up. Select and input in the information, or directly configure and input each configuration item in the active online configuration information through a graphical user interface GUI.
  • the present disclosure does not limit the input method of the online configuration information of the event.
  • step 103 shown in the figure is after step 101 and step 102, step 103 can also be performed simultaneously with step 101 or step 102, and only step 104 needs to be performed after obtaining the activity rule configuration information. And the activity will be executed after the online configuration information.
  • step 104 the activity is configured according to the activity rule configuration information and the activity online configuration information. After obtaining the activity rule configuration information and the activity online configuration information, the activity is configured according to the activity rule configuration information, so that the new activity to be online required by the user can be obtained.
  • the activity rules of the existing activity plan can be abstracted into a single rule plug-in.
  • the rule plug-ins can be selected directly according to the activity rules of the activity plan to obtain the desired activity. Reduce the amount of repetitive work in the development process of the developer's activities, greatly improving the efficiency of the activity development.
  • the obtaining the rule plug-in selection instruction input by the user includes: obtaining the selection instruction input by the user to select one or more rule plug-in options listed through a graphical user interface GUI as the rule Plug-in selection instructions. That is, all rule plug-ins that have been abstracted can be displayed in the graphical user interface GUI in an optional form. The user selects one or more rule plug-ins listed in the graphical user interface GUI, and then enter The selection instruction of can be used to indicate one or more rule plug-ins selected by the user, so the selection instruction can be directly used as the rule plug-in selection instruction.
  • the rule plug-in that has been abstracted can also be grouped according to certain rules, and the rule plug-in can be displayed in the form of grouping on the graphical user interface GUI, for example, in When the user has not selected the rule plug-in, only one or more grouping group names or grouping group names and example rule plug-ins will be displayed. After the user selects any grouping, all the rules included in the selected group will be displayed. The plug-in is displayed in the GUI with this graphical user interface. In this way, when the user needs to configure the activity to be launched, he can directly select the activity rule of the activity to be launched through the graphical user interface GUI, and there is no need to write code for the new activity one by one.
  • the rule plug-in selection instruction for obtaining user input further includes: obtaining the activity rule description text input by the user; performing semantic analysis according to the activity rule description text to obtain the rule plug-in selection instruction .
  • the activity rule description text can be for example: "After the host receives the gift A, the host’s firepower value will increase by a, and if the host has received the doubled card, and the time of receiving the gift A is still within the doubled card During the effective period of the host, the firepower value of the host will increase by 2a. After the firepower value of the host is increased, the firepower rankings of all the hosts will be updated.” When users need to launch a new event, they can directly adjust the event rules as shown above.
  • Fig. 2 is a flowchart showing an activity configuration method according to another exemplary embodiment of the present disclosure. As shown in FIG. 2, the method further includes step 201 to step 203.
  • the target rule plugin selected by the user is determined according to the rule plugin selection instruction. Since the rule plug-in selection instruction indicates one or more rule plug-ins selected by the user, after obtaining the rule plug-in selection instruction, one or more rule plug-ins selected by the user can be determined as the target rule plug-in .
  • step 202 when it is determined that the attribute value to be configured exists in the target rule plug-in, the attribute value configuration information input by the user is obtained.
  • the attribute value to be configured may be, for example, the gift type received by the anchor in the first rule plug-in in the above example, that is, after the user selects the first rule plug-in, there is a gift type in the rule plug-in.
  • the attribute value to be configured Therefore, when it is determined that there is an attribute value to be configured in the target rule plug-in selected by the user, the attribute value configuration information input by the user can be obtained.
  • the attribute value configuration information input method can be, for example, after the target rule plug-in is determined, the activity functions that the target rule plug-in can achieve are displayed in text or table form, and the attribute value to be configured is displayed in the form of text or table. Part of the input box is set so that the user can clearly know the set of attribute values that need to participate in the completion of the activity rules.
  • the attribute value to be configured is configured according to the attribute value configuration information and the preset attribute value configuration file to obtain the activity rule configuration information, wherein the priority of the attribute value configuration information
  • the configuration file is higher than the preset attribute value.
  • the attribute value to be configured in the target rule plug-in can be configured according to the attribute value configuration information and the preset attribute value configuration file to obtain the final active rule configuration information Up.
  • the preset attribute value configuration file includes default attribute values configured for attribute values that need to be configured in all rule plug-ins.
  • the attribute value configuration information input by the user has a higher priority than the preset attribute value configuration file.
  • the attribute value configuration information can be configured according to the preset
  • the default attribute value in the attribute value configuration file is used to configure the part of the attribute value to be configured.
  • the attribute value configuration information input by the user may not be obtained, and the attribute value configuration information can be directly based on the preset attribute value configuration file.
  • the attribute value to be configured is configured.
  • the attribute value to be configured in the target rule plugin can be directly configured according to the preset attribute value configuration file, and the attribute value configuration information input by the user can also be obtained.
  • the attribute value configuration information to configure the attribute to be configured According to the attribute value configuration information to configure the attribute to be configured, and simultaneously configure the attribute value to be configured according to the attribute value configuration information and the preset attribute value configuration file.
  • Fig. 3 is a flowchart showing an activity configuration method according to another exemplary embodiment of the present disclosure. As shown in FIG. 3, the method further includes step 301 and step 302.
  • step 301 the target rule plugin selected by the user is determined according to the rule plugin selection instruction.
  • step 302 when the number of target rule plug-ins is more than two, the activity rule configuration information is determined according to the target rule plug-in and a preset plug-in configuration file.
  • the number of target rule plug-ins is more than two, in order to better combine the activity functions that two or more target plug-ins can achieve, it can be implemented according to the preset plug-in configuration file.
  • the preset plug-in configuration The file includes configuration information required for combining any two rule plug-ins or multiple rule plug-ins that can be combined in the existing rule plug-ins.
  • Fig. 4 is a flowchart showing an activity configuration method according to another exemplary embodiment of the present disclosure. As shown in FIG. 4, the method further includes step 401 and step 402.
  • step 401 the activity configured according to the activity rule configuration information and the activity online configuration information is launched to run in a preset test environment.
  • the activity is first launched in the test environment for running testing. If the configured event can run normally in the test environment, the configured event can be officially launched on the live broadcast platform at the set time, if the configured event appears when running in the test environment If it is abnormal, go to step 402.
  • step 402 when the activity runs abnormally in the preset test environment, an error message is sent to the user.
  • the error message can be a simple error message, such as "running error", etc., or the specific reason for the abnormal operation can be included in the error message and sent together, so that the user can configure the configured device based on the abnormal reason.
  • the activity is modified.
  • Fig. 5 is a structural block diagram showing an activity configuration device 100 according to an exemplary embodiment of the present disclosure.
  • the device 100 includes: a first obtaining module 10, configured to obtain a rule plug-in selection instruction input by a user, and the rule plug-in selection instruction is used to instruct one or more rule plug-ins selected by the user, so
  • the rule plug-in is a plug-in that can implement an activity function;
  • the activity rule configuration information determining module 20 is configured to determine the activity rule configuration information according to the rule plug-in selection instruction, and the activity rule configuration information is used to configure the activity rule;
  • the module 30 is used to obtain the activity online configuration information input by the user, and the activity online configuration information is used to configure the online environment when the activity goes online;
  • the configuration module 40 is used to configure the information according to the activity rules and the activity online configuration information Configure the activity.
  • the activity rules of the existing activity plan can be abstracted into a single rule plug-in.
  • the rule plug-ins can be selected directly according to the activity rules of the activity plan to obtain the desired activity. Reduce the amount of repetitive work in the development process of the developer's activities, greatly improving the efficiency of the activity development.
  • the first obtaining module 10 includes: a first obtaining sub-module, configured to obtain a selection input by a user through a graphical user interface GUI to select one or more rule plug-in options listed The instruction serves as the rule plug-in selection instruction.
  • the first acquiring module 10 further includes: a second acquiring submodule, configured to acquire the activity rule description text input by the user; and a third acquiring submodule, configured to describe the activity rule according to the The text is semantically analyzed to obtain the rule plug-in selection instruction.
  • the activity rule configuration information determining module 20 includes: a first determining sub-module, configured to determine the target rule plug-in selected by the user according to the rule plug-in selection instruction; and a first configuration sub-module, It is used to configure the attribute value to be configured according to a preset attribute value configuration file when it is determined that the attribute value to be configured exists in the target rule plug-in.
  • the activity rule configuration information determining module 20 further includes: a fourth acquiring sub-module, configured to include the to-be-configured plug-in in the target rule plug-in determined by the first determining sub-module In the case of the attribute value, the attribute value configuration information input by the user is obtained; the second configuration sub-module is configured to configure the attribute value to be configured according to the attribute value configuration information and the preset attribute value configuration file, where , The priority of the attribute value configuration information is higher than the preset attribute value configuration file.
  • the activity rule configuration information determining module 20 further includes: a third configuration sub-module, configured to perform according to the target rule when the number of target rule plug-ins is more than two The plug-in and the preset plug-in configuration file determine the active rule configuration information.
  • the device 100 further includes: a test module configured to launch the activity configured according to the activity rule configuration information and the activity online configuration information to a preset test environment to run
  • the prompt module is used to send an error prompt message to the user when the activity runs abnormally in the preset test environment.
  • Terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals (e.g. Mobile terminals such as car navigation terminals) and fixed terminals such as digital TVs, desktop computers, etc.
  • the electronic device shown in FIG. 6 is only an example, and should not bring any limitation to the function and scope of use of the embodiments of the present disclosure.
  • the electronic device 600 may include a processing device (such as a central processing unit, a graphics processor, etc.) 601, which can be loaded into a random access device according to a program stored in a read-only memory (ROM) 602 or from a storage device 608.
  • the program in the memory (RAM) 603 executes various appropriate actions and processing.
  • various programs and data required for the operation of the electronic device 600 are also stored.
  • the processing device 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604.
  • An input/output (I/O) interface 605 is also connected to the bus 604.
  • the following devices can be connected to the I/O interface 605: including input devices 606 such as touch screens, touch pads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; including, for example, liquid crystal displays (LCD), speakers, vibration An output device 607 such as a device; a storage device 608 such as a magnetic tape, a hard disk, etc.; and a communication device 609.
  • the communication device 609 may allow the electronic device 600 to perform wireless or wired communication with other devices to exchange data.
  • FIG. 6 shows an electronic device 600 having various devices, it should be understood that it is not required to implement or have all of the illustrated devices. It may be implemented alternatively or provided with more or fewer devices.
  • an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer readable medium, and the computer program contains program code for executing the method shown in the flowchart.
  • the computer program may be downloaded and installed from the network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602.
  • the processing device 601 the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
  • the above-mentioned computer-readable medium in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two.
  • the computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or a combination of any of the above.
  • Computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable removable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in a baseband or as a part of a carrier wave, and a computer-readable program code is carried therein.
  • This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium.
  • the computer-readable signal medium may send, propagate, or transmit the program for use by or in combination with the instruction execution system, apparatus, or device .
  • the program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to: wire, optical cable, RF (Radio Frequency), etc., or any suitable combination of the above.
  • any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol) can be used to communicate, and it can communicate with any form or medium of digital data (for example, Communication network) interconnection.
  • Examples of communication networks include local area networks (“LAN”), wide area networks (“WAN”), the Internet (for example, the Internet), and end-to-end networks (for example, ad hoc end-to-end networks), as well as any currently known or future research and development network of.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or it may exist alone without being assembled into the electronic device.
  • the above-mentioned computer-readable medium carries one or more programs.
  • the electronic device When the above-mentioned one or more programs are executed by the electronic device, the electronic device is caused to obtain the rule plug-in selection instruction input by the user, and the rule plug-in selection instruction is used to instruct One or more rule plug-ins selected by the user, where the rule plug-in is a plug-in capable of realizing an activity function; determining activity rule configuration information according to the rule plug-in selection instruction, and the activity rule configuration information is used to configure the activity rule; obtaining The activity online configuration information input by the user, the activity online configuration information is used to configure the online environment when the activity goes online; the activity is configured according to the activity rule configuration information and the activity online configuration information.
  • the computer program code used to perform the operations of the present disclosure can be written in one or more programming languages or a combination thereof.
  • the above-mentioned programming languages include but are not limited to object-oriented programming languages such as Java, Smalltalk, C++, and Including conventional procedural programming languages-such as "C" language or similar programming languages.
  • the program code can be executed entirely on the user's computer, partly on the user's computer, executed as an independent software package, partly on the user's computer and partly executed on a remote computer, or entirely executed on the remote computer or server.
  • the remote computer can be connected to the user’s computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to Connect via the Internet).
  • LAN local area network
  • WAN wide area network
  • each block in the flowchart or block diagram may represent a module, program segment, or part of code, and the module, program segment, or part of code contains one or more for realizing the specified logical function Executable instructions.
  • the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two blocks shown in succession can actually be executed substantially in parallel, and they can sometimes be executed in the reverse order, depending on the functions involved.
  • each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart can be implemented by a dedicated hardware-based system that performs the specified functions or operations Or it can be realized by a combination of dedicated hardware and computer instructions.
  • the modules involved in the embodiments described in the present disclosure can be implemented in software or hardware. Wherein, the name of the module does not constitute a limitation on the module itself under certain circumstances.
  • the first acquisition module can also be described as "a module that acquires a rule plug-in selection instruction input by a user”.
  • exemplary types of hardware logic components include: Field Programmable Gate Array (FPGA), Application Specific Integrated Circuit (ASIC), Application Specific Standard Product (ASSP), System on Chip (SOC), Complex Programmable Logical device (CPLD) and so on.
  • FPGA Field Programmable Gate Array
  • ASIC Application Specific Integrated Circuit
  • ASSP Application Specific Standard Product
  • SOC System on Chip
  • CPLD Complex Programmable Logical device
  • a machine-readable medium may be a tangible medium, which may contain or store a program for use by the instruction execution system, apparatus, or device or in combination with the instruction execution system, apparatus, or device.
  • the machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • the machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing.
  • machine-readable storage media would include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
  • RAM random access memory
  • ROM read-only memory
  • EPROM or flash memory erasable programmable read-only memory
  • CD-ROM compact disk read only memory
  • magnetic storage device or any suitable combination of the foregoing.
  • Example 1 provides an activity configuration method, including: obtaining a rule plug-in selection instruction input by a user, and the rule plug-in selection instruction is used to indicate one or more rules selected by the user Plug-in, the rule plug-in is a plug-in capable of realizing an activity function; the activity rule configuration information is determined according to the rule plug-in selection instruction, and the activity rule configuration information is used to configure the activity rule; the activity online configuration information input by the user is acquired, so The activity online configuration information is used to configure the online environment when the activity goes online; the activity is configured according to the activity rule configuration information and the activity online configuration information.
  • Example 2 provides the method of Example 1.
  • the obtaining the rule plug-in selection instruction input by the user includes: obtaining one or more rule plug-in options listed by the user through a graphical user interface GUI.
  • the input selection instruction for selecting is used as the rule plug-in selection instruction.
  • Example 3 provides the method of Example 2.
  • the obtaining the rule plug-in selection instruction input by the user further includes: obtaining the activity rule description text input by the user; Semantic analysis to obtain the rule plug-in selection instruction.
  • Example 4 provides the method of Example 1.
  • the determining active rule configuration information according to the rule plug-in selection instruction includes: determining the target rule selected by the user according to the rule plug-in selection instruction Plug-in; when it is determined that there is an attribute value to be configured in the target rule plug-in, the attribute value to be configured is configured according to a preset attribute value configuration file.
  • Example 5 provides the method of Example 4.
  • the determining active rule configuration information according to the rule plug-in selection instruction further includes: determining that the target rule plug-in has the to-be-configured In the case of the attribute value, the attribute value configuration information input by the user is obtained; the attribute value to be configured is configured according to the attribute value configuration information and the preset attribute value configuration file, wherein the value of the attribute value configuration information The priority is higher than the preset attribute value configuration file.
  • Example 6 provides the method of Example 1.
  • the determining activity rule configuration information according to the rule plug-in selection instruction further includes: determining the target selected by the user according to the rule plug-in selection instruction Rule plug-ins; in the case where the number of target rule plug-ins is more than two, the activity rule configuration information is determined according to the target rule plug-in and a preset plug-in configuration file.
  • Example 7 provides the method of Examples 1-6, and the method further includes: launching the event configured according to the event rule configuration information and the event online configuration information. To run in a preset test environment; when the activity runs abnormally in the preset test environment, an error message is sent to the user.
  • Example 8 provides an activity configuration device, including: a first acquisition module configured to acquire a rule plug-in selection instruction input by a user, and the rule plug-in selection instruction is used to instruct the user to select a rule plug-in Selected one or more rule plug-ins, the rule plug-in is a plug-in that can realize an activity function; the activity rule configuration information determining module is used to determine the activity rule configuration information according to the rule plug-in selection instruction, the activity rule configuration information Used to configure activity rules; the second acquisition module is used to acquire activity online configuration information input by the user, the activity online configuration information is used to configure the online environment when the activity goes online; the configuration module is used to configure information according to the activity rule Configure the activity with the activity online configuration information.
  • Example 9 provides a computer-readable medium having a computer program stored thereon, and when the program is executed by a processing device, the steps of the method described in any one of Examples 1-7 are implemented. .
  • Example 10 provides an electronic device, including: a storage device on which a computer program is stored; and a processing device for executing the computer program in the storage device to Implement the steps of the method described in any one of Examples 1-7.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本公开涉及一种活动配置方法、装置、可读介质及电子设备,包括获取用户输入的规则插件选择指令,规则插件选择指令用于指示用户所选择的一个或多个规则插件,规则插件为能够实现一个活动功能的插件;根据规则插件选择指令确定活动规则配置信息;获取用户输入的活动上线配置信息;根据活动规则配置信息和活动上线配置信息对活动进行配置。这样,能够通过将已有活动方案的活动规则抽象为单一的规则插件的方式,在新建活动时,直接根据活动规则对规则插件进行选择即可组合得到所需的活动,减少了开发人员的活动开发过程中重复的工作量,提高了活动开发的效率。

Description

活动配置方法、装置、可读介质及电子设备
本申请要求于2020年01月07日提交中国专利局、申请号为202010015454.1、申请名称为“活动配置方法、装置、可读介质及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本公开涉及网络领域,具体地,涉及一种活动配置方法、装置、可读介质及电子设备。
背景技术
在直播平台中,需要经常进行各种线上活动,每当需要新建一个活动方案时,如果该活动方案的活动规则与现有活动方案的规则有任何规则逻辑上的变化或者有新增的规则等等或大或小的变化时,现有的活动方案便无法继续使用,活动玩法的复用性差,即使有多个活动的规则内容部分相同,也无法直接进行活动脚本的复用,且随着玩法复杂度提高,玩法实现的抽象性有待提升,无论是对现有活动方案进行修改或者直接再次新建一个活动方案都会比较繁琐,需要后台程序员承担比较大的工作量。
并且,活动配置目前一般通过脚本实现,使用成本高,且脚本本身复用性也很差,另外当活动方案较多且活动应用时间较密集时,相关人员的压力会很大,这样也不利于活动的开发和更新迭代。
发明内容
提供该发明内容部分以便以简要的形式介绍构思,这些构思将在后面的具体实施方式部分被详细描述。该发明内容部分并不旨在标识要求保护的技术方案的关键特征或必要特征,也不旨在用于限制所要求的保护的技术方案的范围。
第一方面,本公开提供种活动配置方法,所述方法包括:
获取用户输入的规则插件选择指令,所述规则插件选择指令用于指示用户所选择的一个或多个规则插件,所述规则插件为能够实现一个活动功能的插件;
根据所述规则插件选择指令确定活动规则配置信息,所述活动规则配置信息用于配置活动规则;
获取用户输入的活动上线配置信息,所述活动上线配置信息用于配置活动上线时的上线环境;
根据所述活动规则配置信息和所述活动上线配置信息对所述活动进行配置。
第二方面,本公开提供一种活动配置装置,所述装置包括:
第一获取模块,用于获取用户输入的规则插件选择指令,所述规则插件选择指令 用于指示用户所选择的一个或多个规则插件,所述规则插件为能够实现一个活动功能的插件;
活动规则配置信息确定模块,用于根据所述规则插件选择指令确定活动规则配置信息,所述活动规则配置信息用于配置活动规则;
第二获取模块,用于获取用户输入的活动上线配置信息,所述活动上线配置信息用于配置活动上线时的上线环境;
配置模块,用于根据所述活动规则配置信息和所述活动上线配置信息对所述活动进行配置。
第三方面,本公开提供一种计算机可读介质,其上存储有计算机程序,该程序被处理装置执行时实现第一方面所述方法的步骤。
第四方面,本公开提供一种电子设备,包括:
存储装置,其上存储有计算机程序;
处理装置,用于执行所述存储装置中的所述计算机程序,以实现第一方面所述方法的步骤。
通过上述技术方案,能够将已有活动方案的活动规则抽象为单一的规则插件,在需要新建一个活动方案时,直接根据活动方案的活动规则对规则插件进行选择即可组合得到所需的活动,减少了开发人员的活动开发过程中重复的工作量,大大提高了活动开发的效率。
本公开的其他特征和优点将在随后的具体实施方式部分予以详细说明。
附图说明
图1是根据本公开一示例性实施例示出的一种活动配置方法的流程图。
图2是根据本公开又一示例性实施例示出的一种活动配置方法的流程图。
图3是根据本公开又一示例性实施例示出的一种活动配置方法的流程图。
图4是根据本公开又一示例性实施例示出的一种活动配置方法的流程图。
图5是根据本公开一示例性实施例示出的一种活动配置装置的结构框图。
图6是根据本公开实施例的电子设备的结构示意图。
具体实施方式
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。
应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于” 是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。
需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。
图1是根据本公开一示例性实施例示出的一种活动配置方法的流程图。如图1所示,所述方法包括步骤101至步骤104。
在步骤101中,获取用户输入的规则插件选择指令,所述规则插件选择指令用于指示用户所选择的一个或多个规则插件,所述规则插件为能够实现一个活动功能的插件。
用户输入该规则插件选择指令的方式可以为多种,只要能够将能够指示用户所选择的一个或多个规则插件的该规则插件选择指令输入的方法都可行。
例如,该规则插件所实现的活动功能可以为以下几种:
1)主播收到某几类礼物之后,其火力值根据收到的礼物类型进行相应增加,且更新火力值排行榜;
2)观众送出某几类礼物之后,其贡献值增加,且更新贡献值排行榜;
3)观众送出某几类礼物之后,能触发收礼直播间内发生与礼物类型对应的发红包事件;
4)主播收到翻倍卡之后,在一段时间之内,该主播收到的礼物对应增加的火力值翻倍;
5)观众在送出礼物达到预设火力值之后,将该观众的观众级别升级为预设级别;
6)观众在升级到该预设级别之后,再充值预设金额时,获取相应的预设奖励。
规则插件能够实现的活动功能不限于以上所述的六种,上述内容仅仅为对规则插件能够实现的活动功能的示例,目前已有的每一个活动功能都能被抽象为一个规则插件,且在有新增的活动功能的情况下,还能根据新增的每一个活动功能对规则插件进行相应的更新。
在步骤102中,根据所述规则插件选择指令确定活动规则配置信息,所述活动规则配置信息用于配置活动规则。
在获取到该规则插件选择指令之后,就可以确定用户所选择的规则插件,进而根据每个用户所选择的规则插件所对应的活动功能来确定该活动规则配置信息。每个规则插件对应活动功能的规则配置信息可以是已经与该规则插件预先对应设置,在确定该规则插件的情况下就能确定对应的规则配置信息。
在步骤103中,获取用户输入的活动上线配置信息,所述活动上线配置信息用于配置活动上线时的上线环境。
该活动上线配置信息可以是用户通过任意方式输入的,例如可以是直接通过上传活动上线配置文件的方式输入该活动上线配置信息,也可以是通过在已经设置好的一种或多种活动上线配置信息中进行选择来输入,还可以是通过图形用户界面GUI来直接对该活动上线配置信息中的各个配置项一一进行配置输入。本公开中不限定该活动上线配置信息的输入方式。
本领域技术人员应该理解的是,虽然图中所示步骤103在步骤101和步骤102之后,该步骤103也可以与步骤101或步骤102同时进行,只有步骤104需要在获取到该活动规则配置信息和该活动上线配置信息之后才会执行。
在步骤104中,根据所述活动规则配置信息和所述活动上线配置信息对所述活动进行配置。在获取到该活动规则配置信息和该活动上线配置信息之后,根据其对活动进行配置,从而就能够得到用户所需的待上线的新活动。
通过上述技术方案,能够将已有活动方案的活动规则抽象为单一的规则插件,在需要新建一个活动方案时,直接根据活动方案的活动规则对规则插件进行选择即可组合得到所需的活动,减少了开发人员的活动开发过程中重复的工作量,大大提高了活动开发的效率。
在一种可能的实施方式中,所述获取用户输入的规则插件选择指令包括:获取用户通过图形用户界面GUI对列出的一个或多个规则插件选项进行选择所输入的选择指令作为所述规则插件选择指令。即,可以将已抽象得到的所有规则插件都以可选形式显示于图形用户界面GUI中,用户通过在该图形用户界面GUI中对所列出的一个或多个规则插件进行选择,此时输入的选择指令即可用于指示用户所选择的一个或多个规则插件,因此可直接将该选择指令作为该规则插件选择指令。另外,在一种可能的实施方式中,已抽象得到的规则插件还可以按照一定的规则进行一定的分组,并在该图形用户界面GUI上按照分组的形式对该规则插件进行显示,例如,在用户还未选择规则插件时,仅显示一个或多个分组组名或分组组名和示例规则插件等,在用户对任意分组进行选定之后,再将该被选定的分组中所包括的所有规则插件显示与该图形用户界面GUI中。这样,用户在需要配置待上线的活动时,可以直接通过图形用户界面GUI对待上线的活动的活动规则进行选择即可,无需再对新活动一一进行代码的编写。
在另一种可能的实施方式中,所述获取用户输入的规则插件选择指令还包括:获取用户输入的活动规则描述文本;根据所述活动规则描述文本进行语义分析以得到所述规则插件选择指令。该活动规则描述文本可以为例如:“主播在收到礼物A之后,主播的火力值会增加a,且若主播收到过翻倍卡,且收到该礼物A的时间还处于该翻倍卡的有效时期内,则主播的火力值增加2a,在主播的火力值增加之后,对所有主播的火力值排行榜进行更新。”用户在需要上线新活动时,可直接对活动规则进行如上所示的规则描述,并对如上所示的活动规则描述文本进行输入,则可以直接根据获取到的该活动规则描述文本来进行语义分析,并根据语义分析的结果来确定用户所需要选择的规则插件有哪些,从而将确定得到的结果作为该规则插件选择指令。这样,用户在用户在需要配置待上线的活动时,可以直接将待上线的活动的活动规则用文字进行描述后即可,不仅无需再对新活动一一进行代码的编写,而且还无需考虑待上线的活动的活动规则应该由哪些规则插件来构成,进一步简化了活动配置的过程。
图2是根据本公开又一示例性实施例示出的一种活动配置方法的流程图。如图2所示,所述方法还包括步骤201至步骤203。
在步骤201中,根据所述规则插件选择指令确定用户所选择的目标规则插件。由于该规则插件选择指令中指示了用户所选择的一个或多个规则插件,因此,在获取到该规则插件选择指令之后,即可将用户所选择的一个或多个规则插件确定为目标规则插件。
在步骤202中,在确定所述目标规则插件中存在所述待配置属性值的情况下,获取用户输入的属性值配置信息。该待配置属性值可以为例如上述示例的第一条规则插件中的主播所收到的礼物类型,也即,用户在选择了该第一条规则插件之后,该规则插件中即存在礼物类型这个待配置属性值。因此,在确定用户所选择的目标规则插件中存在待配置属性值的情况下,可以获取用户所述输入的属性值配置信息。该属性值配置信息输入的方式可以为,例如,在确定了该目标规则插件之后,将该目标规则插件所能实现的活动功能以文字或表格形式显示出来,并在显示该待配置属性值的部分设置输入框,以便于用户能够明确得知所设置的属性值需参与完成的活动规则。
在步骤203中,根据所述属性值配置信息和所述预设属性值配置文件对所述待配置属性值进行配置以得到所述活动规则配置信息,其中,所述属性值配置信息的优先级高于所述预设属性值配置文件。在获取到用户所输入的属性值配置信息之后,即可根据其该属性值配置信息以及预设属性值配置文件对目标规则插件中的待配置属性值进行配置,从而得到最终的活动规则配置信息了。其中,该预设属性值配置文件中包括为所有规则插件中的需要进行配置的属性值所配置的默认属性值。用户输入的该属性值配置信息的优先级高于该预设属性值配置文件,因此,在用户所述输入的属性值配置信息中缺少部分待配置属性值的配置信息时,可以根据该预设属性值配置文件中的默认属性值来对该部分待配置属性值进行配置。
另外,在一种可能的实施方式中,在确定该目标规则插件中存在待配置属性的情况下,也可以不对用户输入的属性值配置信息进行获取,可以直接根据预设属性值配置文件对该待配置属性值进行配置。
通过上述技术方案,在确定了用户所选择的目标规则插件之后,可以直接根据预设属性值配置文件来对目标规则插件中的待配置属性值进行配置,也能获取用户输入的属性值配置信息,根据该属性值配置信息对待配置属性进行配置,还能同时根据该属性值配置信息和预设属性值配置文件同时对该待配置属性值进行配置。
图3是根据本公开又一示例性实施例示出的一种活动配置方法的流程图。如图3所示,所述方法还包括步骤301和步骤302。
在步骤301中,根据所述规则插件选择指令确定用户所选择的目标规则插件。
在步骤302中,在所述目标规则插件的数量为两个以上的情况下,根据所述目标规则插件和预设插件配置文件确定所述活动规则配置信息。在目标规则插件的数量为两个以上的情况下,为了将两个或多个目标插件所能实现的活动功能更好地进行组合,可以根据预设插件配置文件来实现,该预设插件配置文件中包括已有规则插件中能够组合的任意两个规则插件或多个规则插件组合时所需的配置信息。
通过上述技术方案,能够保证经过本公开所配置得到的活动的活动规则的逻辑性 正确,不会出现由于用户误选择或其他操作失误导致最终配置得到的活动不可用的问题。
图4是根据本公开又一示例性实施例示出的一种活动配置方法的流程图。如图4所示,所述方法还包括步骤401和步骤402。
在步骤401中,将根据所述活动规则配置信息和所述活动上线配置信息配置得到的所述活动上线至预设测试环境中运行。在根据该活动规则配置信息和活动上线配置信息对活动进行配置之后,在对该活动进行正式上线之前,先将该活动上线至该测试环境中进行运行测试。若该配置好的活动在该测试环境中能够正常运行,则该配置好的活动即可在设定好的时间正式上线至直播平台中,若该配置好的活动在该测试环境中运行时出现异常,则执行步骤402。
在步骤402中,在所述活动在所述预设测试环境中运行出现异常的情况下,向用户发出报错提示信息。该报错提示信息可以是简单的报错提示,例如“运行错误”等,也可以将运行出现异常的具体原因包含在该报错提示信息中一并发出,从而便于用户基于该异常原因对该配置好的活动进行修改。
图5是根据本公开一示例性实施例示出的一种活动配置装置100的结构框图。如图5所示,所述装置100包括:第一获取模块10,用于获取用户输入的规则插件选择指令,所述规则插件选择指令用于指示用户所选择的一个或多个规则插件,所述规则插件为能够实现一个活动功能的插件;活动规则配置信息确定模块20,用于根据所述规则插件选择指令确定活动规则配置信息,所述活动规则配置信息用于配置活动规则;第二获取模块30,用于获取用户输入的活动上线配置信息,所述活动上线配置信息用于配置活动上线时的上线环境;配置模块40,用于根据所述活动规则配置信息和所述活动上线配置信息对所述活动进行配置。
通过上述技术方案,能够将已有活动方案的活动规则抽象为单一的规则插件,在需要新建一个活动方案时,直接根据活动方案的活动规则对规则插件进行选择即可组合得到所需的活动,减少了开发人员的活动开发过程中重复的工作量,大大提高了活动开发的效率。
在一种可能的实施方式中,所述第一获取模块10包括:第一获取子模块,用于获取用户通过图形用户界面GUI对列出的一个或多个规则插件选项进行选择所输入的选择指令作为所述规则插件选择指令。
在一种可能的实施方式中,所述第一获取模块10还包括:第二获取子模块,用于获取用户输入的活动规则描述文本;第三获取子模块,用于根据所述活动规则描述文本进行语义分析以得到所述规则插件选择指令。
在一种可能的实施方式中,所述活动规则配置信息确定模块20包括:第一确定子模块,用于根据所述规则插件选择指令确定用户所选择的目标规则插件;第一配置子模块,用于在确定所述目标规则插件中存在待配置属性值的情况下,根据预设属性值配置文件对所述待配置属性值进行配置。
在一种可能的实施方式中,所述活动规则配置信息确定模块20还包括:第四获取子模块,用于在所述第一确定子模块确定的所述目标规则插件中存在所述待配置属性值的情况下,获取用户输入的属性值配置信息;第二配置子模块,用于根据所述属性 值配置信息和所述预设属性值配置文件对所述待配置属性值进行配置,其中,所述属性值配置信息的优先级高于所述预设属性值配置文件。
在一种可能的实施方式中,所述活动规则配置信息确定模块20还包括:第三配置子模块,用于在所述目标规则插件的数量为两个以上的情况下,根据所述目标规则插件和预设插件配置文件确定所述活动规则配置信息。
在一种可能的实施方式中,所述装置100还包括:测试模块,用于将根据所述活动规则配置信息和所述活动上线配置信息配置得到的所述活动上线至预设测试环境中运行;提示模块,用于在所述活动在所述预设测试环境中运行出现异常的情况下,向用户发出报错提示信息。
下面参考图6,其示出了适于用来实现本公开实施例的电子设备600的结构示意图。本公开实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图6示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图6所示,电子设备600可以包括处理装置(例如中央处理器、图形处理器等)601,其可以根据存储在只读存储器(ROM)602中的程序或者从存储装置608加载到随机访问存储器(RAM)603中的程序而执行各种适当的动作和处理。在RAM 603中,还存储有电子设备600操作所需的各种程序和数据。处理装置601、ROM 602以及RAM603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。
通常,以下装置可以连接至I/O接口605:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置606;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置607;包括例如磁带、硬盘等的存储装置608;以及通信装置609。通信装置609可以允许电子设备600与其他设备进行无线或有线通信以交换数据。虽然图6示出了具有各种装置的电子设备600,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置609从网络上被下载和安装,或者从存储装置608被安装,或者从ROM 602被安装。在该计算机程序被处理装置601执行时,执行本公开实施例的方法中限定的上述功能。
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在 本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。
在一些实施方式中,可以利用诸如HTTP(HyperText Transfer Protocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:获取用户输入的规则插件选择指令,所述规则插件选择指令用于指示用户所选择的一个或多个规则插件,所述规则插件为能够实现一个活动功能的插件;根据所述规则插件选择指令确定活动规则配置信息,所述活动规则配置信息用于配置活动规则;获取用户输入的活动上线配置信息,所述活动上线配置信息用于配置活动上线时的上线环境;根据所述活动规则配置信息和所述活动上线配置信息对所述活动进行配置。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言——诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)——连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来 实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的模块可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,模块的名称在某种情况下并不构成对该模块本身的限定,例如,第一获取模块还可以被描述为“获取用户输入的规则插件选择指令的模块”。
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。
根据本公开的一个或多个实施例,示例1提供了一种活动配置方法,包括:获取用户输入的规则插件选择指令,所述规则插件选择指令用于指示用户所选择的一个或多个规则插件,所述规则插件为能够实现一个活动功能的插件;根据所述规则插件选择指令确定活动规则配置信息,所述活动规则配置信息用于配置活动规则;获取用户输入的活动上线配置信息,所述活动上线配置信息用于配置活动上线时的上线环境;根据所述活动规则配置信息和所述活动上线配置信息对所述活动进行配置。
根据本公开的一个或多个实施例,示例2提供了示例1的方法,所述获取用户输入的规则插件选择指令包括:获取用户通过图形用户界面GUI对列出的一个或多个规则插件选项进行选择所输入的选择指令作为所述规则插件选择指令。
根据本公开的一个或多个实施例,示例3提供了示例2的方法,所述获取用户输入的规则插件选择指令还包括:获取用户输入的活动规则描述文本;根据所述活动规则描述文本进行语义分析以得到所述规则插件选择指令。
根据本公开的一个或多个实施例,示例4提供了示例1的方法,所述根据所述规则插件选择指令确定活动规则配置信息包括:根据所述规则插件选择指令确定用户所选择的目标规则插件;在确定所述目标规则插件中存在待配置属性值的情况下,根据预设属性值配置文件对所述待配置属性值进行配置。
根据本公开的一个或多个实施例,示例5提供了示例4的方法,所述根据所述规则插件选择指令确定活动规则配置信息还包括:在确定所述目标规则插件中存在所述待配置属性值的情况下,获取用户输入的属性值配置信息;根据所述属性值配置信息和所述预设属性值配置文件对所述待配置属性值进行配置,其中,所述属性值配置信息的优先级高于所述预设属性值配置文件。
根据本公开的一个或多个实施例,示例6提供了示例1的方法,所述根据所述规则插件选择指令确定活动规则配置信息还包括:根据所述规则插件选择指令确定用户 所选择的目标规则插件;在所述目标规则插件的数量为两个以上的情况下,根据所述目标规则插件和预设插件配置文件确定所述活动规则配置信息。
根据本公开的一个或多个实施例,示例7提供了示例1-6的方法,所述方法还包括:将根据所述活动规则配置信息和所述活动上线配置信息配置得到的所述活动上线至预设测试环境中运行;在所述活动在所述预设测试环境中运行出现异常的情况下,向用户发出报错提示信息。
根据本公开的一个或多个实施例,示例8提供了一种活动配置装置,包括:第一获取模块,用于获取用户输入的规则插件选择指令,所述规则插件选择指令用于指示用户所选择的一个或多个规则插件,所述规则插件为能够实现一个活动功能的插件;活动规则配置信息确定模块,用于根据所述规则插件选择指令确定活动规则配置信息,所述活动规则配置信息用于配置活动规则;第二获取模块,用于获取用户输入的活动上线配置信息,所述活动上线配置信息用于配置活动上线时的上线环境;配置模块,用于根据所述活动规则配置信息和所述活动上线配置信息对所述活动进行配置。
根据本公开的一个或多个实施例,示例9提供了一种计算机可读介质,其上存储有计算机程序,该程序被处理装置执行时实现示例1-7中任一项所述方法的步骤。
根据本公开的一个或多个实施例,示例10提供了一种电子设备,包括:存储装置,其上存储有计算机程序;处理装置,用于执行所述存储装置中的所述计算机程序,以实现示例1-7中任一项所述方法的步骤。
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。
此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。
尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。

Claims (11)

  1. 一种活动配置方法,其特征在于,所述方法包括:
    获取用户输入的规则插件选择指令,所述规则插件选择指令用于指示用户所选择的一个或多个规则插件,所述规则插件为能够实现一个活动功能的插件;
    根据所述规则插件选择指令确定活动规则配置信息,所述活动规则配置信息用于配置活动规则;
    获取用户输入的活动上线配置信息,所述活动上线配置信息用于配置活动上线时的上线环境;
    根据所述活动规则配置信息和所述活动上线配置信息对所述活动进行配置。
  2. 根据权利要求1所述的方法,其特征在于,所述获取用户输入的规则插件选择指令包括:
    获取用户通过图形用户界面GUI对列出的一个或多个规则插件选项进行选择所输入的选择指令作为所述规则插件选择指令。
  3. 根据权利要求2所述的方法,其特征在于,所述获取用户输入的规则插件选择指令还包括:
    获取用户输入的活动规则描述文本;
    根据所述活动规则描述文本进行语义分析以得到所述规则插件选择指令。
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,所述根据所述规则插件选择指令确定活动规则配置信息包括:
    根据所述规则插件选择指令确定用户所选择的目标规则插件;
    在确定所述目标规则插件中存在待配置属性值的情况下,根据预设属性值配置文件对所述待配置属性值进行配置。
  5. 根据权利要求4所述的方法,其特征在于,所述根据所述规则插件选择指令确定活动规则配置信息还包括:
    在确定所述目标规则插件中存在所述待配置属性值的情况下,获取用户输入的属性值配置信息;
    根据所述属性值配置信息和所述预设属性值配置文件对所述待配置属性值进行配置,其中,所述属性值配置信息的优先级高于所述预设属性值配置文件。
  6. 根据权利要求1至3中任一项所述的方法,其特征在于,所述根据所述规则插件选择指令确定活动规则配置信息还包括:
    根据所述规则插件选择指令确定用户所选择的目标规则插件;
    在所述目标规则插件的数量为两个以上的情况下,根据所述目标规则插件和预设插件配置文件确定所述活动规则配置信息。
  7. 根据权利要求1-6中任一权利要求所述的方法,其特征在于,所述方法还包括:
    将根据所述活动规则配置信息和所述活动上线配置信息配置得到的所述活动上线至预设测试环境中运行;
    在所述活动在所述预设测试环境中运行出现异常的情况下,向用户发出报错提示信息。
  8. 一种活动配置装置,其特征在于,所述装置包括:
    第一获取模块,用于获取用户输入的规则插件选择指令,所述规则插件选择指令用于指示用户所选择的一个或多个规则插件,所述规则插件为能够实现一个活动功能的插件;
    活动规则配置信息确定模块,用于根据所述规则插件选择指令确定活动规则配置信息,所述活动规则配置信息用于配置活动规则;
    第二获取模块,用于获取用户输入的活动上线配置信息,所述活动上线配置信息用于配置活动上线时的上线环境;
    配置模块,用于根据所述活动规则配置信息和所述活动上线配置信息对所述活动进行配置。
  9. 一种计算机可读介质,其上存储有计算机程序,其特征在于,该程序被处理装置执行时实现权利要求1-7中任一项所述方法的步骤。
  10. 一种电子设备,其特征在于,包括:
    存储装置,其上存储有计算机程序;
    处理装置,用于执行所述存储装置中的所述计算机程序,以实现权利要求1-7中任一项所述方法的步骤。
  11. 一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机指令,所述计算机指令用于使计算机执行如权利要求1-7任一项所述方法的步骤。
PCT/CN2020/127124 2020-01-07 2020-11-06 活动配置方法、装置、可读介质及电子设备 WO2021139379A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010015454.1 2020-01-07
CN202010015454.1A CN111190657B (zh) 2020-01-07 2020-01-07 活动配置方法、装置、可读介质及电子设备

Publications (1)

Publication Number Publication Date
WO2021139379A1 true WO2021139379A1 (zh) 2021-07-15

Family

ID=70709917

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/127124 WO2021139379A1 (zh) 2020-01-07 2020-11-06 活动配置方法、装置、可读介质及电子设备

Country Status (2)

Country Link
CN (1) CN111190657B (zh)
WO (1) WO2021139379A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111190657B (zh) * 2020-01-07 2022-07-05 北京字节跳动网络技术有限公司 活动配置方法、装置、可读介质及电子设备
CN111813462A (zh) * 2020-07-13 2020-10-23 北京思特奇信息技术股份有限公司 一种靓号规则配置方法、系统和电子设备
CN114217873A (zh) * 2021-12-14 2022-03-22 北京鲸鲮信息系统技术有限公司 一种插件的确定方法、装置、电子设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107773984A (zh) * 2016-08-26 2018-03-09 博雅网络游戏开发(深圳)有限公司 棋牌类游戏加载方法及棋牌类游戏系统
CN108228175A (zh) * 2017-12-29 2018-06-29 深圳乐信软件技术有限公司 活动后台开发方法、装置、服务器及介质
CN109271160A (zh) * 2018-09-29 2019-01-25 北京京东金融科技控股有限公司 活动规则组建方法、装置和计算机系统、介质
CN109559153A (zh) * 2018-10-26 2019-04-02 深圳壹账通智能科技有限公司 营销活动配置方法、装置、介质和计算机设备
CN111190657A (zh) * 2020-01-07 2020-05-22 北京字节跳动网络技术有限公司 活动配置方法、装置、可读介质及电子设备

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779034A (zh) * 2011-05-13 2012-11-14 易程(苏州)软件股份有限公司 铁路票务系统的客户端及其实现方法
CN103914287A (zh) * 2012-12-31 2014-07-09 北京讯鸟软件有限公司 基于插件机制的软件系统及其实现方法
CN103645900A (zh) * 2013-12-13 2014-03-19 上海浦东物流云计算有限公司 软件发布方法及装置
CN104080020B (zh) * 2014-07-11 2017-11-10 新华三技术有限公司 Onu设备配置的自动下发方法及装置
CN104267957A (zh) * 2014-09-29 2015-01-07 浪潮通信信息系统有限公司 一种移动应用统一服务框架系统
CN104391716B (zh) * 2014-11-14 2018-06-05 百度在线网络技术(北京)有限公司 基于插件的应用程序实现方法及装置
CN108174302B (zh) * 2016-12-07 2020-10-30 广州华多网络科技有限公司 一种直播应用中活动功能玩法的更新方法及装置
CN107506193B (zh) * 2017-08-18 2020-05-22 平安科技(深圳)有限公司 一种子系统页面的开发方法、存储介质和服务器
CN107885533B (zh) * 2017-11-30 2021-06-11 广州酷狗计算机科技有限公司 管理组件代码的方法及装置
CN108196941A (zh) * 2017-12-29 2018-06-22 美的集团股份有限公司 终端控制的方法、装置及计算机可读存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107773984A (zh) * 2016-08-26 2018-03-09 博雅网络游戏开发(深圳)有限公司 棋牌类游戏加载方法及棋牌类游戏系统
CN108228175A (zh) * 2017-12-29 2018-06-29 深圳乐信软件技术有限公司 活动后台开发方法、装置、服务器及介质
CN109271160A (zh) * 2018-09-29 2019-01-25 北京京东金融科技控股有限公司 活动规则组建方法、装置和计算机系统、介质
CN109559153A (zh) * 2018-10-26 2019-04-02 深圳壹账通智能科技有限公司 营销活动配置方法、装置、介质和计算机设备
CN111190657A (zh) * 2020-01-07 2020-05-22 北京字节跳动网络技术有限公司 活动配置方法、装置、可读介质及电子设备

Also Published As

Publication number Publication date
CN111190657A (zh) 2020-05-22
CN111190657B (zh) 2022-07-05

Similar Documents

Publication Publication Date Title
WO2021139379A1 (zh) 活动配置方法、装置、可读介质及电子设备
WO2021077833A1 (zh) 信息推送方法、设备、电子设备及计算机可读存储介质
CN108830720A (zh) 智能合约运行方法、装置、系统和计算机可读存储介质
CN106201481A (zh) 应用程序开发系统中的组件管理方法和装置
WO2021082649A1 (zh) 榜单更新方法、装置、可读介质和电子设备
CN107404418B (zh) 互联网产品测试方法、装置、设备及存储介质
CN113553257B (zh) 测试方法、装置、存储介质及电子设备
WO2021098643A1 (zh) 直播间道具配置方法、装置、可读介质及电子设备
CN111309304B (zh) 一种生成idl文件的方法、装置、介质和电子设备
CN113407165A (zh) Sdk的生成和自升级方法、装置、可读介质和设备
CN111209205B (zh) 配置方法、装置和电子设备
WO2023160395A1 (zh) 基于权限的交互式接口发布方法、装置及电子设备
CN111752644A (zh) 接口模拟方法、装置、设备及存储介质
CN109947659A (zh) 用于测试应用的系统、方法和装置
CN115022328B (zh) 服务器集群以及服务器集群的测试方法、装置和电子设备
WO2022206287A1 (zh) 商服交互方法、装置、设备及存储介质
WO2022179470A1 (zh) 定时器处理方法、装置、电子设备和计算机可读存储介质
CN112379967B (zh) 模拟器检测方法、装置、设备及介质
US20190034215A1 (en) Generating host groups in an information handling system
WO2021042715A1 (zh) 用于开发智能合约的系统、方法和装置
CN106843895A (zh) 用于处理请求的方法、系统和可读存储介质
CN111488584B (zh) 生产环境的测试方法、装置、计算设备以及介质
US8219668B2 (en) Resource property aggregation in a multi-provider system
CN114640614A (zh) Rpc接口自动化测试方法、系统、电子设备、介质及产品
CN109766228A (zh) 一种基于接口的线上验证方法和装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20912962

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20912962

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 08.02.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20912962

Country of ref document: EP

Kind code of ref document: A1