CN115562717A - Configuration information updating method and device, computer equipment and storage medium - Google Patents

Configuration information updating method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN115562717A
CN115562717A CN202211296672.2A CN202211296672A CN115562717A CN 115562717 A CN115562717 A CN 115562717A CN 202211296672 A CN202211296672 A CN 202211296672A CN 115562717 A CN115562717 A CN 115562717A
Authority
CN
China
Prior art keywords
configuration information
activity
request
activity configuration
version
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
CN202211296672.2A
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.)
Douyin Vision Co Ltd
Original Assignee
Douyin Vision 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 Douyin Vision Co Ltd filed Critical Douyin Vision Co Ltd
Priority to CN202211296672.2A priority Critical patent/CN115562717A/en
Publication of CN115562717A publication Critical patent/CN115562717A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present disclosure provides a configuration information updating method, apparatus, computer device and storage medium, wherein the method comprises: responding to a trigger operation aiming at a target activity in an application program, and sending a first activity configuration information acquisition request; in response to receiving the version information of the first activity configuration information, under the condition that the version information indicates that the version is updated, sending a second activity configuration information acquisition request based on request period information in the first activity configuration information of the updated version; in response to receiving the second activity configuration information, performing a configuration update for the target activity based on the first activity configuration information and the second activity configuration information. According to the embodiment of the disclosure, when the version of the first activity configuration information is updated, the request period information is updated based on the latest first activity configuration information, and then the second activity configuration information is obtained in time based on the updated request period information, and the target activity is configured and updated, so that the target activity takes effect in time.

Description

Configuration information updating method and device, computer equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for updating configuration information, a computer device, and a storage medium.
Background
With the development of internet technology, online activities in applications are becoming more and more popular. Such as a red pack rain event, a live event, etc.
When configuring activity information for a conventional activity, the activity configuration information is generally obtained at the time of cold start of an application program, and the activity is configured. However, some activities with higher timeliness, for example, some activities that issue virtual resources within a predetermined time period, have a higher requirement on the time for configuration information to take effect, and if the configuration information is not updated in time, the activity cannot take effect at the beginning of the predetermined time period. Therefore, how to obtain the activity configuration information in time so that the activity takes effect quickly is a problem to be solved urgently.
Disclosure of Invention
The embodiment of the disclosure at least provides a configuration information updating method, a configuration information updating device, computer equipment and a storage medium.
In a first aspect, an embodiment of the present disclosure provides a method for updating configuration information, including:
responding to a trigger operation aiming at a target activity in an application program, and sending a first activity configuration information acquisition request; wherein the first activity configuration information comprises static configuration information related to activity parameters of the target activity;
in response to receiving returned version information of the first activity configuration information, under the condition that the version information indicates that the version is updated, sending a second activity configuration information acquisition request based on request period information in the first activity configuration information of the updated version; the second campaign configuration information comprises polling configuration information related to campaign content of the target campaign;
in response to receiving the second activity configuration information, performing configuration update on a target activity in the application program based on the first activity configuration information and the second activity configuration information.
In an optional implementation manner, before sending the second activity configuration information obtaining request, the method further includes:
in response to receiving the returned version information of the first activity configuration information, comparing the returned version information of the first activity configuration information with the local version information of the first activity configuration information, and determining whether the version of the first activity configuration information is updated;
after determining that the version of the first activity configuration information is updated, determining the request period information in the updated version of the first activity configuration information.
In an optional implementation manner, the sending a second activity configuration information obtaining request based on the request period information in the updated version of the first activity configuration information includes:
judging whether request period information in the first activity configuration information of the updated version is abnormal or not;
if it is determined that the request period information in the first activity configuration information of the updated version is not abnormal, sending a second activity configuration information acquisition request based on the request period information in the first activity configuration information of the updated version;
the method further comprises the following steps:
if the request period information in the first activity configuration information of the updated version is determined to be abnormal, local bottom pocketing request period information is acquired;
and sending the second activity configuration information acquisition request based on the bottom-pocketing request period information.
In an optional embodiment, the method further comprises:
and sending a first activity configuration information acquisition request according to a preset request period under the condition that the version of the first activity configuration information is not updated or returned version information of the first activity configuration information is not received.
In an optional embodiment, the first activity configuration information includes a request start time and a request end time;
the sending a second activity configuration information acquisition request based on the request period information in the updated version of the first activity configuration information includes:
and under the condition that the current time reaches the request starting time and does not reach the request ending time, sending a second activity configuration information acquisition request based on the request period information in the first activity configuration information of the updated version.
In an optional implementation manner, the sending, by the request cycle information in the updated version of the first activity configuration information, a second activity configuration information obtaining request includes:
acquiring the number of times of sending the second activity configuration information acquisition request under the condition that the current time reaches the request starting time and does not reach the request ending time;
and sending a second activity configuration information acquisition request based on the request period information in the first activity configuration information of the updated version under the condition that the request times do not reach the preset request times.
In an optional implementation manner, the sending the first activity configuration information obtaining request includes:
in response to a mode switching operation for the target activity, acquiring an updatable mode of the target activity;
and sending the first activity configuration information acquisition request under the condition that the updatable mode of the target activity indicates that the target activity has updatable activity configuration information.
In an optional embodiment, the updating the configuration of the target activity in the application based on the first activity configuration information and the second activity configuration information includes:
updating the activity configuration information cached locally based on the first activity configuration information and the second activity configuration information;
and updating the configuration of the target activity in the application program based on the updated activity configuration information of the local cache.
In a second aspect, an embodiment of the present disclosure further provides a device for updating configuration information, including:
the first sending module is used for responding to the trigger operation aiming at the target activity in the application program and sending a first activity configuration information acquisition request; wherein the first activity configuration information comprises static configuration information related to activity parameters of the target activity;
a second sending module, configured to, in response to receiving returned version information of the first activity configuration information, send a second activity configuration information acquisition request based on request cycle information in the first activity configuration information of an updated version when the version information indicates that the version is updated; the second campaign configuration information comprises polling configuration information related to campaign content of the target campaign;
and the updating module is used for responding to the second activity configuration information and updating the configuration of the target activity in the application program based on the first activity configuration information and the second activity configuration information.
In a third aspect, an embodiment of the present disclosure further provides a computer device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the computer device is running, the machine-readable instructions when executed by the processor performing the steps of the first aspect or any one of the possible implementations of the first aspect.
In a fourth aspect, this disclosed embodiment also provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps in the first aspect or any one of the possible implementation manners of the first aspect.
The configuration information updating method provided by the embodiment of the disclosure does not need to completely rely on the opportunity of application cold start to obtain the activity configuration information, and can obtain the latest first activity configuration information in time under the condition that the version information of the first activity configuration information indicates that the version is updated after a user opens or reenters a target activity, so that the activity parameters of the target activity can be timely configured and updated by using the latest first activity configuration information, that is, the request period information (i.e., the activity parameters) for sending the second activity configuration information obtaining request can be timely updated, further, the second activity configuration information can be timely obtained based on the updated request period information, so that the activity content of the target activity can be timely configured and updated by using the second activity configuration information, and the target activity can be ensured to take effect in time to a certain extent.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly described below, and the drawings herein incorporated in and forming a part of the specification illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the technical solutions of the present disclosure. It is appreciated that the following drawings depict only certain embodiments of the disclosure and are therefore not to be considered limiting of its scope, for those skilled in the art will be able to derive additional related drawings therefrom without the benefit of the inventive faculty.
Fig. 1 shows a flowchart of a configuration information updating method provided by an embodiment of the present disclosure;
FIG. 2 is a flowchart illustrating obtaining first activity configuration information of a target activity according to an embodiment of the present disclosure;
FIG. 3 is a flowchart illustrating a method for obtaining second activity configuration information of a target activity according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram illustrating a configuration information updating apparatus according to an embodiment of the present disclosure;
fig. 5 shows a schematic diagram of a computer device provided by an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, not all of the embodiments. The components of the embodiments of the present disclosure, as generally described and illustrated in the figures herein, could be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the disclosure, provided in the accompanying drawings, is not intended to limit the scope of the disclosure, as claimed, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the disclosure without making creative efforts, shall fall within the protection scope of the disclosure.
The conventional activities acquire activity configuration information at the time of activity information configuration, generally at the time of application cold start, and configure the activities. However, some activities with high timeliness, for example, some activities that issue virtual resources within a predetermined time period, have a high requirement on the time for configuration information to take effect, and if the configuration information is not updated in time, the activity cannot take effect at the beginning of the predetermined time period. Therefore, how to obtain the activity configuration information in time so that the activity takes effect quickly is a problem to be solved urgently.
Based on this, an embodiment of the present disclosure provides a method for updating configuration information, including: responding to a trigger operation aiming at a target activity in an application program, and sending a first activity configuration information acquisition request; wherein the first activity configuration information comprises static configuration information related to activity parameters of the target activity; in response to receiving returned version information of the first activity configuration information, under the condition that the version information indicates that the version is updated, sending a second activity configuration information acquisition request based on request period information in the first activity configuration information of the updated version; the second campaign configuration information comprises polling configuration information related to campaign content of the target campaign; in response to receiving the second activity configuration information, performing configuration update on a target activity in the application program based on the first activity configuration information and the second activity configuration information.
The configuration information updating method provided by the embodiment of the disclosure does not need to completely rely on the opportunity of application cold start to obtain the activity configuration information, and can obtain the latest first activity configuration information in time under the condition that the version information of the first activity configuration information indicates that the version is updated after a user opens or reenters a target activity, so that the activity parameters of the target activity can be timely configured and updated by using the latest first activity configuration information, that is, the request period information (that is, the activity parameters) for sending the second activity configuration information obtaining request is timely updated, further, the second activity configuration information can be timely obtained based on the updated request period information, so that the activity content of the target activity can be timely configured and updated by using the second activity configuration information, and the target activity can be ensured to be timely effective to a certain extent.
The defects existing in the above solutions and the proposed solutions are the results obtained after the inventor has made practice and careful study, therefore, the discovery process of the above problems and the solutions proposed by the present disclosure in the following problems should be the contribution of the inventor to the present disclosure in the process of the present disclosure.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
To facilitate understanding of the present embodiment, a detailed description is first given to a configuration information updating method disclosed in the embodiments of the present disclosure, and an execution subject of the configuration information updating method provided in the embodiments of the present disclosure is generally a computer device with certain computing capability.
Referring to fig. 1, a flowchart of a configuration information updating method provided in the embodiment of the present disclosure is shown, where the method includes S101 to S103, where:
s101: responding to a trigger operation aiming at a target activity in an application program, and sending a first activity configuration information acquisition request; wherein the first activity configuration information comprises static configuration information related to activity parameters of the target activity.
In embodiments of the present disclosure, the target activity may be an activity in which the update frequency of the configuration information is high, such as a time-limited activity that updates the display countdown in real time. The triggering operation for the target activity may include an operation of opening or re-entering the target activity, and the first activity configuration information acquisition request may be sent during the progress of the target activity. It should be understood herein that the trigger operation on the target activity may occur within a preset time period of the target activity being in effect.
In embodiments of the present disclosure, the target activity may be target object oriented, such as an adult. When the user participating in the target activity is a non-target object, for example, a minor, the non-target object may be reduced or prohibited from participating in the target activity by prohibiting the activity configuration information of the target activity from being updated. In one embodiment, updatable and non-updatable modes of the target activity may be set, such as adult and minor modes.
In response to a mode switching operation for the target activity, an updatable mode of the target activity may be acquired, and in the event that the updatable mode of the target activity indicates that the target activity has updatable activity configuration information, a first activity configuration information acquisition request is sent. And in the case that the updatable mode of the target activity indicates that the target activity does not have the updatable activity configuration information, prohibiting the first activity configuration information acquisition request from being sent.
The activity configuration information corresponding to the target activity may include first activity configuration information corresponding to the first update frequency and second activity configuration information corresponding to the second update frequency. The first activity configuration information may be activity configuration information having a relatively low frequency of update, and in particular, the first activity configuration information may include general activity configuration information and activity configuration information related to a user status. The second activity configuration information may be activity configuration information having a relatively high frequency of update, and the second activity configuration information may include activity configuration information related to the activity content of the target activity, i.e., the first update frequency may be lower than the second update frequency.
Wherein the first activity configuration information may include static configuration information related to activity parameters of the target activity. The static configuration information may include general configuration information, such as resource address information, pattern information, and the like. In one embodiment, the first activity configuration information may further include dynamic configuration information related to a user status of the user participating in the target activity.
The first activity configuration information acquisition request is used for acquiring first activity configuration information. The first activity configuration information acquisition request may be sent to an activity server. The activity server may receive and feed back an activity configuration information acquisition request corresponding to the target activity within the effective time of the target activity. The active server may return version information of the first activity configuration information after receiving the first activity configuration information acquisition request.
In one embodiment, the first campaign configuration information acquisition request may include a version probe for acquiring version information of the first campaign configuration information. The version probe may be mounted in a Response Header of the polling configuration information. The probe head Apache Header name and the head Header value may be included in a version probe.
For example, the probe format for a version probe may be:
Apache
header name: tt _ activity _ settings _ version;
header value: activity _ settings _ s _ version = { version1}; activity _ settings _ d _ version = { version2}.
Wherein, activity _ settings _ s _ version = { version1} may be used to obtain version information of the static configuration information; activity _ settings _ d _ version = { version2} may be used to obtain version information of the dynamic configuration information.
S102: in response to receiving returned version information of the first activity configuration information, under the condition that the version information indicates that the version is updated, sending a second activity configuration information acquisition request based on request period information in the first activity configuration information of the updated version; the second campaign configuration information comprises polling configuration information related to the campaign content of the target campaign.
After receiving the version information of the first activity configuration information, it may be determined whether the version information of the first activity configuration information is updated based on the returned version information of the first activity configuration information.
In an embodiment, before sending the second activity configuration information acquisition request, in response to receiving the returned version information of the first activity configuration information, the returned version information of the first activity configuration information may be compared with the version information of the local first activity configuration information, and it may be determined whether the version of the first activity configuration information is updated according to a comparison result.
In a specific implementation, after sending the first active configuration information acquisition request, the Response Header may have the latest version number of the first active configuration information and return the latest version number to the client. And the client compares the latest version number of the first activity configuration information in the Response head with the version information of the local first activity configuration information.
After determining that the version of the first activity configuration information is updated, a dynamic/static configuration information interface for acquiring the first activity configuration information may be triggered to determine the updated version of the first activity configuration information.
The first activity configuration information obtaining request may be sent according to a preset request period when the version of the first activity configuration information is not updated or the returned version information of the first activity configuration information is not received. That is, in the implementation, the first active configuration information may be obtained by polling according to a preset request period.
In one embodiment, the static configuration information associated with the campaign parameters of the target campaign may include request period information. The request period information is used for sending a second activity configuration information acquisition request according to the request period indicated by the request period information. The request period may be preset in the active server.
In one embodiment, the request period corresponding to the second activity configuration information may be smaller than the preset request period corresponding to the first activity configuration information, considering that the second update frequency of the second activity configuration information is higher than the first update frequency of the first activity configuration information. For example, the request period corresponding to the second activity configuration information may be 30 seconds, and the preset request period corresponding to the first activity configuration information may be 1 hour.
In practical cases, there may be an exception condition for the request cycle information in the first activity configuration information, and in particular, the exception condition for the request cycle information may include that there is no request cycle value, i.e. no value, or that the request cycle value is abnormal. Therefore, in one embodiment, it may be determined whether there is an abnormality in the request cycle information in the updated version of the first activity configuration information. And if the request period information in the first activity configuration information of the updated version is determined not to have abnormality, sending a second activity configuration information acquisition request based on the request period information in the first activity configuration information of the updated version. In one embodiment, if it is determined that there is an exception in the request period information in the updated version of the first campaign configuration information, that is, there is no request period value or the request period indicates an exception, local bottom request period information may be obtained. And then sending a second activity configuration information acquisition request according to the bottom-pocket request period information.
In one embodiment, the first activity configuration information may further include a request start time and a request end time. The request start time and the request end time are used to determine whether the current time period can transmit the second active configuration information acquisition request. In the transmitting of the second activity configuration information acquisition request based on the request period information in the updated version of the first activity configuration information, the second activity configuration information acquisition request may be transmitted based on the request period information in the updated version of the first activity configuration information in a case where the request start time is not reached at the current time and the request end time is not reached.
The load of the active server is typically large during the expiration date of the target activity, and in one embodiment, the load of the active server may be prevented from being too large by controlling the number of requests to send the second activity configuration information acquisition request. Specifically, the number of requests for sending the second active configuration information acquisition request may be acquired in a case where the current time reaches the request start time and does not reach the request end time. In the case that the number of requests does not reach the preset number of requests, the second activity configuration information acquisition request may be sent based on the request period information in the updated version of the first activity configuration information. And under the condition that the request times reach the preset request times, the second activity configuration information acquisition request cannot be sent, so that the excessive load of the activity server can be avoided.
In a specific implementation, the second activity configuration information obtaining request may be sent to the activity server. The activity server may return the second activity configuration information after receiving the second activity configuration information acquisition request.
S103: in response to receiving the second activity configuration information, performing configuration update on a target activity in the application program based on the first activity configuration information and the second activity configuration information.
After receiving the second activity configuration information, configuring activity parameters of a target activity in the application program based on the first activity configuration information, specifically configuring information such as a resource address and a file of the target activity; the activity content of the target activity can be configured based on the second activity configuration information, so that the activity content of the target activity can be updated.
In one embodiment, in order to ensure that the target activity can be configured successfully even if the request for configuration information fails or the activity configuration information of the target activity is not requested in time, the locally cached activity configuration information may be updated based on the received first activity configuration information and the second activity configuration information. And then, based on the updated activity configuration information of the local cache, performing configuration updating on target activities in the application program.
Referring to fig. 2, a flowchart for acquiring first activity configuration information of a target activity is provided in the embodiment of the present disclosure. After the process of obtaining the first activity configuration information is started, the first activity configuration information cached locally may be read first, and the target activity is configured. And then sending a first activity configuration information acquisition request according to a preset request period. And after the first activity configuration information acquisition request is sent, judging whether the request is successful. And if the request fails, sending the first activity configuration information acquisition request again according to a preset request period. And if the request is successful, judging whether the returned version number is greater than the local version number. The version number here refers to the version number of the first active configuration information. If the returned version number is greater than the local version number, it indicates that the version of the first activity configuration information is updated, and at this time, the first activity configuration information may be acquired, and the first activity configuration information cached locally is updated based on the acquired first activity configuration information. And continuing to execute the step of sending the first activity configuration information acquisition request according to the preset request period.
In the above process, it may be determined whether the target mode is turned on. The target mode herein may refer to a mode in which non-target objects are prohibited from participating in a target activity. In the target mode, updating of the first active configuration information is prohibited. Therefore, in the case that it is determined that the target mode is not turned on, the first active configuration information acquisition request may be sent according to the aforementioned flow and according to a preset request period. And under the condition that the target mode is determined to be started, the first activity configuration information acquisition request is forbidden to be sent according to a preset request period, and the first activity configuration information cached locally is cleared.
Referring to fig. 3, a flowchart for acquiring second activity configuration information of a target activity is provided in the embodiment of the present disclosure. After the process of acquiring the second activity configuration information is started, request cycle information, which is locally cached and used for sending the second activity configuration information acquisition request, may be read first. The request period information here may be acquired from the first activity configuration information. The returned first activity configuration information may include request period information. When the first activity configuration information is updated, the locally cached request period information may be updated based on the request period information in the updated version of the first activity configuration information. In one embodiment, the bottom-of-pocket request cycle information may also be stored locally. Under the condition that the request period information in the first activity configuration information of the updated version is determined to be abnormal, the local bottom request period information can be acquired, and therefore the second activity configuration information acquisition request can be guaranteed to be successfully sent.
The request period information may include request start time and request frequency information, and according to the request period information, it may be determined whether the current time reaches the request start time, and in a case that the current time reaches the request start time, the second activity configuration information cached locally may be read, and the activity content of the target activity may be configured. And sending a second activity configuration information acquisition request according to the request frequency information in the request period information.
After sending the second activity configuration information acquisition request, it may be determined whether the request is successful. In a case that it is determined that the request is successful, the locally cached second activity configuration information may be updated based on the returned second activity configuration information, and the activity content of the target activity may be configured based on the updated second activity configuration information. And under the condition that the request is determined to be unsuccessful, judging whether the request frequency in the current request period reaches the preset request frequency. And under the condition that the request times reach the preset request times, sending a second activity configuration information acquisition request according to the request period information. And under the condition that the request times are determined not to reach the preset request times, the second activity configuration information acquisition request is sent again.
It will be understood by those skilled in the art that in the method of the present invention, the order of writing the steps does not imply a strict order of execution and any limitations on the implementation, and the specific order of execution of the steps should be determined by their function and possible inherent logic.
Based on the same inventive concept, the embodiment of the present disclosure further provides a configuration information updating apparatus corresponding to the configuration information updating method, and since the principle of the apparatus in the embodiment of the present disclosure for solving the problem is similar to that of the configuration information updating method in the embodiment of the present disclosure, the implementation of the apparatus may refer to the implementation of the method, and repeated details are not described again.
Referring to fig. 4, a schematic architecture diagram of a configuration information updating apparatus provided in an embodiment of the present disclosure is shown, where the apparatus includes: a first sending module 401, a second sending module 402, and an updating module 403; wherein the content of the first and second substances,
a first sending module 401, configured to send a first activity configuration information obtaining request in response to a trigger operation for a target activity in an application; wherein the first activity configuration information comprises static configuration information related to activity parameters of the target activity;
a second sending module 402, configured to, in response to receiving returned version information of the first activity configuration information, send a second activity configuration information obtaining request based on request period information in the first activity configuration information of an updated version when the version information indicates that a version is updated; the second campaign configuration information comprises polling configuration information related to campaign content of the target campaign;
an updating module 403, configured to, in response to receiving the second activity configuration information, perform configuration updating on a target activity in the application program based on the first activity configuration information and the second activity configuration information.
In an optional implementation manner, before sending the second activity configuration information obtaining request, the apparatus further includes:
the comparison module is used for responding to the received returned version information of the first activity configuration information, comparing the returned version information of the first activity configuration information with the local version information of the first activity configuration information, and determining whether the version of the first activity configuration information is updated or not;
and the determining module is used for determining the request period information in the first activity configuration information of the updated version after determining that the version of the first activity configuration information is updated.
In an optional implementation manner, the second sending module 402 is specifically configured to:
judging whether request period information in the first activity configuration information of the updated version is abnormal or not;
if it is determined that the request period information in the first activity configuration information of the updated version is not abnormal, sending a second activity configuration information acquisition request based on the request period information in the first activity configuration information of the updated version;
the device further comprises:
the acquisition module is used for acquiring local bottom-pocketing request period information if the request period information in the first activity configuration information of the updated version is determined to be abnormal;
and a third sending module, configured to send the second activity configuration information obtaining request based on the bottom-pocketing request period information.
In an alternative embodiment, the apparatus further comprises:
a fourth sending module, configured to send a first active configuration information obtaining request according to a preset request period when the version of the first active configuration information is not updated or returned version information of the first active configuration information is not received.
In an optional embodiment, the first activity configuration information includes a request start time and a request end time;
the second sending module 402 is specifically configured to:
and under the condition that the current time reaches the request starting time and does not reach the request ending time, sending a second activity configuration information acquisition request based on the request period information in the first activity configuration information of the updated version.
In an optional implementation manner, the second sending module 402 is specifically configured to:
acquiring the number of times of requests for sending the second activity configuration information acquisition request under the condition that the current time reaches the request start time and does not reach the request end time;
and sending a second activity configuration information acquisition request based on the request period information in the first activity configuration information of the updated version under the condition that the request times do not reach the preset request times.
In an optional implementation manner, the first sending module 401 is specifically configured to:
in response to a mode switching operation for the target activity, acquiring an updatable mode of the target activity;
sending the first activity configuration information acquisition request if the updatable mode of the target activity indicates that the target activity has updatable activity configuration information.
In an optional implementation manner, the updating module 403 is specifically configured to:
updating the activity configuration information cached locally based on the first activity configuration information and the second activity configuration information;
and updating the configuration of the target activity in the application program based on the updated activity configuration information of the local cache.
The description of the processing flow of each module in the device and the interaction flow between the modules may refer to the related description in the above method embodiments, and will not be described in detail here.
Based on the same technical concept, the embodiment of the disclosure also provides computer equipment. Referring to fig. 5, a schematic structural diagram of a computer device 500 provided in the embodiment of the present disclosure includes a processor 501, a memory 502, and a bus 503. The storage 502 is used for storing execution instructions and includes a memory 5021 and an external storage 5022; the memory 5021 is also referred to as an internal memory, and is used for temporarily storing operation data in the processor 501 and data exchanged with an external storage 5022 such as a hard disk, the processor 501 exchanges data with the external storage 5022 through the memory 5021, and when the computer device 500 operates, the processor 501 communicates with the storage 502 through the bus 503, so that the processor 501 executes the following instructions:
responding to a trigger operation aiming at a target activity in an application program, and sending a first activity configuration information acquisition request; wherein the first activity configuration information comprises static configuration information related to activity parameters of the target activity;
in response to receiving returned version information of the first activity configuration information, under the condition that the version information indicates that the version is updated, sending a second activity configuration information acquisition request based on request period information in the first activity configuration information of the updated version; the second campaign configuration information comprises polling configuration information related to campaign content of the target campaign;
in response to receiving the second activity configuration information, performing configuration update on a target activity in the application program based on the first activity configuration information and the second activity configuration information.
The embodiments of the present disclosure further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program performs the steps of the configuration information updating method described in the above method embodiments. The storage medium may be a volatile or non-volatile computer-readable storage medium.
The embodiments of the present disclosure also provide a computer program product, where the computer program product carries a program code, and instructions included in the program code may be used to execute the steps of the configuration information updating method in the foregoing method embodiments, which may be referred to specifically in the foregoing method embodiments, and are not described herein again.
The computer program product may be implemented by hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied in a computer storage medium, and in another alternative embodiment, the computer program product is embodied in a Software product, such as a Software Development Kit (SDK), or the like.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method embodiment, and details are not described herein again. In the several embodiments provided in the present disclosure, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that: the above-mentioned embodiments are merely specific embodiments of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, but not to limit the technical solutions, and the scope of the present disclosure is not limited thereto, and although the present disclosure is described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: any person skilled in the art can modify or easily conceive of the technical solutions described in the foregoing embodiments or equivalent technical features thereof within the technical scope of the present disclosure; such modifications, changes and substitutions do not depart from the spirit and scope of the embodiments disclosed herein, and they should be construed as being included therein. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.

Claims (11)

1. A method for updating configuration information, comprising:
responding to a trigger operation aiming at a target activity in an application program, and sending a first activity configuration information acquisition request; wherein the first activity configuration information comprises static configuration information related to activity parameters of the target activity;
in response to receiving returned version information of the first activity configuration information, under the condition that the version information indicates that the version is updated, sending a second activity configuration information acquisition request based on request period information in the first activity configuration information of the updated version; the second campaign configuration information comprises polling configuration information related to campaign content of the target campaign;
in response to receiving the second activity configuration information, performing configuration update on a target activity in the application program based on the first activity configuration information and the second activity configuration information.
2. The method of claim 1, wherein before sending the second active configuration information acquisition request, the method further comprises:
in response to receiving the returned version information of the first activity configuration information, comparing the returned version information of the first activity configuration information with the local version information of the first activity configuration information, and determining whether the version of the first activity configuration information is updated;
after determining that the version of the first activity configuration information is updated, determining the request period information in the updated version of the first activity configuration information.
3. The method according to claim 2, wherein the sending a second activity configuration information obtaining request based on the request period information in the updated version of the first activity configuration information comprises:
judging whether request period information in the first activity configuration information of the updated version is abnormal or not;
if it is determined that the request period information in the first activity configuration information of the updated version is not abnormal, sending a second activity configuration information acquisition request based on the request period information in the first activity configuration information of the updated version;
the method further comprises the following steps:
if the request period information in the first activity configuration information of the updated version is determined to be abnormal, local bottom pocketing request period information is acquired;
and sending the second activity configuration information acquisition request based on the bottom pocketing request period information.
4. The method of claim 2, further comprising:
and sending a first activity configuration information acquisition request according to a preset request period under the condition that the version of the first activity configuration information is not updated or returned version information of the first activity configuration information is not received.
5. The method of claim 1, wherein the first activity configuration information comprises a request start time and a request end time;
the sending a second activity configuration information acquisition request based on the request period information in the updated version of the first activity configuration information includes:
and under the condition that the current time reaches the request starting time and does not reach the request ending time, sending a second activity configuration information acquisition request based on the request period information in the first activity configuration information of the updated version.
6. The method according to claim 5, wherein the sending of the request period information in the updated version of the first activity configuration information by the second activity configuration information obtaining request comprises:
acquiring the number of times of requests for sending the second activity configuration information acquisition request under the condition that the current time reaches the request start time and does not reach the request end time;
and sending a second activity configuration information acquisition request based on the request period information in the first activity configuration information of the updated version under the condition that the request times do not reach the preset request times.
7. The method of claim 1, wherein sending the first active configuration information acquisition request comprises:
in response to a mode switching operation for the target activity, acquiring an updatable mode of the target activity;
sending the first activity configuration information acquisition request if the updatable mode of the target activity indicates that the target activity has updatable activity configuration information.
8. The method of claim 1, wherein the updating the configuration of the target activity in the application based on the first activity configuration information and the second activity configuration information comprises:
updating the activity configuration information cached locally based on the first activity configuration information and the second activity configuration information;
and updating the configuration of the target activity in the application program based on the updated activity configuration information of the local cache.
9. A configuration information updating apparatus, comprising:
the first sending module is used for responding to the triggering operation aiming at the target activity in the application program and sending a first activity configuration information acquisition request; wherein the first activity configuration information comprises static configuration information related to activity parameters of the target activity;
a second sending module, configured to, in response to receiving returned version information of the first activity configuration information, send a second activity configuration information acquisition request based on request cycle information in the first activity configuration information of an updated version when the version information indicates that the version is updated; the second campaign configuration information comprises polling configuration information related to campaign content of the target campaign;
and the updating module is used for responding to the received second activity configuration information and carrying out configuration updating on the target activity in the application program based on the first activity configuration information and the second activity configuration information.
10. A computer device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over the bus when a computer device is running, the machine-readable instructions when executed by the processor performing the steps of the configuration information updating method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, performs the steps of the configuration information updating method according to any one of claims 1 to 8.
CN202211296672.2A 2022-10-21 2022-10-21 Configuration information updating method and device, computer equipment and storage medium Pending CN115562717A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211296672.2A CN115562717A (en) 2022-10-21 2022-10-21 Configuration information updating method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211296672.2A CN115562717A (en) 2022-10-21 2022-10-21 Configuration information updating method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115562717A true CN115562717A (en) 2023-01-03

Family

ID=84746259

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211296672.2A Pending CN115562717A (en) 2022-10-21 2022-10-21 Configuration information updating method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115562717A (en)

Similar Documents

Publication Publication Date Title
CN107213634B (en) Game user management method, game server and system
CN108566290B (en) Service configuration management method, system, storage medium and server
CN109639794A (en) A kind of stateful cluster recovery method, apparatus, equipment and readable storage medium storing program for executing
CN109101341A (en) The distribution method and equipment of distributed lock
CN108744504B (en) Game data processing method and device, game server and game system
CN111338773A (en) Distributed timed task scheduling method, scheduling system and server cluster
CN108379845B (en) Information processing method, device and storage medium
CN110651256B (en) System and method for preventing service interruption during software update
CN105162879B (en) Realize the method, apparatus and system of multimachine room data consistency
CN110111149B (en) Season task settlement method and device and server
CN110888858A (en) Database operation method and device, storage medium and electronic device
WO2019242455A1 (en) Method and apparatus for user request forwarding, reverse proxy and computer readable storage medium
JP2022519549A (en) How to provide online rooms, equipment, equipment and media
CN111767128A (en) Method and device for executing timing task
CN114504827A (en) Method, system, electronic device and storage medium for verifying cheating of battle game
CN111612577A (en) Order processing method and device, electronic equipment and storage medium
CN115562717A (en) Configuration information updating method and device, computer equipment and storage medium
CN113476853A (en) Data processing method and device for interactive tasks, electronic equipment and storage medium
CN109962941B (en) Communication method, device and server
CN116455830A (en) Method for realizing high-availability distributed QOS of storage gateway
CN114356970B (en) Storage system resource caching method and device
CN107135430A (en) A kind of processing system updated for interface typesetting
CN114048033A (en) Load balancing method and device for batch running task and computer equipment
US20220092082A1 (en) Login based device data synchronization
CN112035133A (en) Homepage upgrading method and terminal

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