CN112181476A - Application program control method, device, server and storage medium - Google Patents

Application program control method, device, server and storage medium Download PDF

Info

Publication number
CN112181476A
CN112181476A CN202010899649.7A CN202010899649A CN112181476A CN 112181476 A CN112181476 A CN 112181476A CN 202010899649 A CN202010899649 A CN 202010899649A CN 112181476 A CN112181476 A CN 112181476A
Authority
CN
China
Prior art keywords
application program
identifier
configuration file
version
function
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
CN202010899649.7A
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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202010899649.7A priority Critical patent/CN112181476A/en
Publication of CN112181476A publication Critical patent/CN112181476A/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

Abstract

The embodiment of the application discloses an application program control method, an application program control device, a server and a storage medium, wherein the method comprises the following steps: the method comprises the steps that the electronic equipment determines a configuration file corresponding to request information according to the request information sent by a target function, when the configuration file comprises an application program identifier, at least one version identifier corresponding to the application program identifier and a corresponding quantitative play switch of each version identifier are determined from the configuration file, when the at least one version identifier comprises the version identifier of the application program, a target quantitative play switch corresponding to the version identifier of the application program is determined from each quantitative play switch, and when the account information is account information limited by the target quantitative play switch, a first result is sent to the electronic equipment to inform the electronic equipment of executing the target function. Aiming at the target function in the application program, a unified configuration file is set for a plurality of different APPs, so that the number of the configuration files can be reduced, and the configuration files are convenient to maintain and manage.

Description

Application program control method, device, server and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for controlling an application program, a server, and a storage medium.
Background
In the prior art, a server may provide the same Application program function for a plurality of different Application programs (APPs) to implement the same function through different APPs, so as to provide the same service for users using different APPs.
In the maintenance process of the application program, a target function (the target function is a function that realizes the same function in multiple APPs) needs to be opened to multiple APPs, and in order to open the target function to multiple APPs, a separate configuration file needs to be set for each APP. When the number of the APPs is large, a large number of configuration files need to be set, so that the number of the configuration files is large, and the maintenance and the management are difficult.
Disclosure of Invention
The embodiment of the application provides an application program control method, an application program control device, a server and a storage medium, and aims to solve the problems that when the number of APPs is large, the number of configuration files is large, and maintenance and management are not easy to achieve.
In view of this, a first aspect of the present application provides an application program control method, applied to a server, including:
receiving request information sent by the electronic equipment according to the target function of the application program; the request information comprises an application program identifier of the application program, a version identifier of the application program and account information of a user;
determining a configuration file corresponding to the request information; the configuration file is used for determining whether the function corresponding to the configuration file plays the function of the application program;
under the condition that the configuration file comprises the application program identification, determining at least one version identification corresponding to the application program identification and a corresponding volume switch of each version identification in the at least one version identification from the configuration file; the volume-adding switch is used for determining whether function volume adding is carried out on the account information;
under the condition that the at least one version identification comprises the version identification of the application program, determining a target lofting switch corresponding to the version identification of the application program from lofting switches respectively corresponding to each version identification in the at least one version identification;
under the condition that the account information is account information limited by the target lofting switch, sending a first result to the electronic equipment; the first result is used for informing the electronic equipment to execute the target function.
Optionally, the method further includes: when determining a configuration file corresponding to the request information, if the configuration file does not include the application program identifier, sending a second result to the electronic device;
wherein the second result is used for informing the electronic equipment to prohibit the target function from being executed.
Optionally, the method further includes: when at least one version identification corresponding to the application program identification is determined from the configuration file, if the at least one version identification does not include the version identification of the application program, a second result is sent to the electronic equipment;
wherein the second result is used for informing the electronic equipment to prohibit the target function from being executed.
Optionally, the method further includes: when a target volume-playing switch corresponding to the version identifier of the application program is determined, if the account information is not account information limited by the target volume-playing switch, sending a second result to the electronic equipment;
wherein the second result is used for informing the electronic equipment to prohibit the target function from being executed.
Optionally, the request information further includes a function identifier corresponding to the target function;
the determining the configuration file corresponding to the request information includes:
and determining the configuration file corresponding to the function identifier from a plurality of configuration files according to the function identifier.
Optionally, the method further includes: and adding an application program identifier of a new application program, a version identifier of the new application program and a volume switch corresponding to the version identifier of the new application program into the configuration file when the new application program needs to be added.
Optionally, the configuration file includes the application program identifier and at least one version identifier corresponding to the application program identifier, and the play switch corresponding to each version identifier.
Optionally, before the receiving the request information, the method further includes:
packaging the step of determining the configuration file, the step of determining the at least one version identifier, the step of determining the target volume switch and the step of sending the first result into a calling function, so that the server executes the step of determining the configuration file, the step of determining the at least one version identifier, the step of determining the target volume switch and the step of sending the first result through the calling function after receiving the request information.
A second aspect of the embodiments of the present application provides an application control apparatus, which is disposed in a server, and includes:
the receiving module is configured to receive request information sent by the electronic equipment according to the target function of the application program; the request information comprises an application program identifier of the application program, a version identifier of the application program and account information of a user;
a first determination module configured to determine a configuration file corresponding to the request information; the configuration file is used for determining whether the function corresponding to the configuration file plays the function of the application program;
a second determining module configured to determine, from the configuration file, at least one version identifier corresponding to the application identifier and a corresponding lofting switch for each version identifier of the at least one version identifier, when the configuration file includes the application identifier; the volume-adding switch is used for determining whether function volume adding is carried out on the account information;
a third determining module, configured to determine, from the scaling switches respectively corresponding to each version identifier in the at least one version identifier, a target scaling switch corresponding to the version identifier of the application program when the version identifier of the application program is included in the at least one version identifier;
the sending module is configured to send a first result to the electronic equipment under the condition that the account information is account information limited by the target lofting switch; the first result is used for informing the electronic equipment to execute the target function.
Optionally, the sending module is further configured to, when determining a configuration file corresponding to the request information, send a second result to the electronic device if the configuration file does not include the application identifier;
wherein the second result is used for informing the electronic equipment to prohibit the target function from being executed.
Optionally, the sending module is further configured to send a second result to the electronic device if the at least one version identifier does not include the version identifier of the application program when determining the at least one version identifier corresponding to the application program identifier from the configuration file;
wherein the second result is used for informing the electronic equipment to prohibit the target function from being executed.
Optionally, the sending module is further configured to send a second result to the electronic device if the account information is not account information defined by the target play-out switch when the target play-out switch corresponding to the version identifier of the application program is determined;
wherein the second result is used for informing the electronic equipment to prohibit the target function from being executed.
Optionally, the first determining module is specifically configured to determine, according to the function identifier, the configuration file corresponding to the function identifier from a plurality of configuration files.
Optionally, the method further includes: the adding module is configured to add the application program identifier of the new application program, the version identifier of the new application program and the volume switch corresponding to the version identifier of the new application program into the configuration file when the new application program needs to be added.
Optionally, the configuration file includes the application program identifier and at least one version identifier corresponding to the application program identifier, and the play switch corresponding to each version identifier.
Optionally, the apparatus further comprises: an encapsulation module configured to encapsulate the step of determining the configuration file, the step of determining the at least one version identifier, the step of determining the target volume switch, and the step of sending the first result as a calling function, so that the server performs the step of determining the configuration file, the step of determining the at least one version identifier, the step of determining the target volume switch, and the step of sending the first result through the calling function after receiving the request information.
A third aspect of the embodiments of the present application provides a server, including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the application control method as described in any one of the optional implementations of the first aspect of the present application.
A fourth aspect of the embodiments of the present application provides a non-transitory computer-readable storage medium, where instructions in the storage medium, when executed by a processor of a server, enable the server to perform an application control method as described in any one of the optional implementations of the first aspect of the present application.
A fifth aspect of embodiments of the present application provides a computer program product including instructions, which when run on a server, causes the server to execute an application control method as described in any one of the optional implementations of the first aspect of the present application.
According to the technical scheme, the embodiment of the application has the following advantages:
in the embodiment of the application, a server receives request information sent by an electronic device according to a target function of an application program, determines a configuration file corresponding to the request information, determines at least one version identifier corresponding to the application program identifier and a corresponding scaling switch of each version identifier from the configuration file when the configuration file includes the application program identifier, determines a target scaling switch corresponding to the version identifier of the application program from the scaling switch corresponding to each version identifier of the at least one version identifier when the at least one version identifier includes the version identifier of the application program, and sends a first result to the electronic device to notify the electronic device to execute the target function when account information is account information defined by the target scaling switch. Aiming at the target function in the application program, a unified configuration file is set for a plurality of different APPs, so that the number of the configuration files can be reduced, and the configuration files are convenient to maintain and manage.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the embodiments and the drawings used in the description of the prior art, and obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained according to the drawings.
FIG. 1 is a flow chart illustrating steps of a method for application control in accordance with an exemplary embodiment;
FIG. 2 is a flow chart illustrating steps of another method of application control in accordance with an exemplary embodiment;
FIG. 3 is a block diagram illustrating the architecture of an application control device in accordance with an exemplary embodiment;
FIG. 4 is a block diagram illustrating the structure of a server in accordance with an exemplary embodiment;
fig. 5 is a block diagram illustrating another application control device according to an example embodiment.
Detailed Description
In order to make those skilled in the art better understand the technical solutions of the present application, the technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, but not all embodiments. The embodiments in the present application shall fall within the protection scope of the present application.
The technical solution in the embodiment of the present invention is described below with reference to the drawings in the embodiment of the present invention.
Fig. 1 is a flowchart illustrating steps of an application control method according to an exemplary embodiment, and referring to fig. 1, the application control method provided in this embodiment may be applied to control of application functions to reduce the number of configuration files and facilitate maintenance and management of the configuration files. The application control method provided in this embodiment may be executed by an application control apparatus, where the application control apparatus is typically implemented in a software and/or hardware manner, and the application control apparatus may be set in a server, and the method may include the following steps:
101. and receiving request information sent by the electronic equipment according to the target function of the application program.
The request information comprises an application program identifier of the application program, a version identifier of the application program and account information of the user.
In the present embodiment, the application identification is identification information for identifying different applications, for example, identification information "APP 1" is used to identify a first application, identification information "APP 2" is used to identify a second application, and identification information "APP 3" is used to identify a third application. The version identification is used to identify different versions of the application, and the version identification may be a version number of the application, for example, the first application has version 1, version 2, and version 3, the version number of version 1 is "1.0", the version number of version 2 is "2.0", and the version number of version 3 is "3.0". The account information is identification information for identifying the user Identity, which is registered in the application program by the user, and is, for example, an Identity Document (ID) "123" registered in the first application program by the user a, and the ID "123" is used for identifying the user Identity of the user a. The specific form of the application identifier, the version identifier, and the account information may be set according to the requirement, which is not limited in this embodiment.
The request information is information sent by the electronic equipment according to a target function in the application program, wherein the target function is, for example, a video call function for providing a video call service for a user and a positioning function for providing a positioning service for the user. For example, during the process of running the first application, the electronic device may determine an application identifier "APP 1", a version identifier "1.0" of the first application, and account information "123" of a user using the first application, and if the user clicks a video call button in the first application, the electronic device may determine a video call function (a target function) corresponding to the click operation in response to the click operation of the user, and send request information including the application identifier "APP 1", the version identifier "1.0", and the account information "123" to the server according to the video call function. The prior art may be referred to in the process of determining the application identifier, the version identifier, and the account information by the electronic device, and the process of sending the request information to the server, which is not limited in this embodiment.
The server can receive request information sent by the electronic device and determine a configuration file corresponding to the request information.
102. A configuration file corresponding to the requested information is determined.
The configuration file is used for determining whether the function corresponding to the configuration file is used for performing function release on the application program. With reference to step 101, if the electronic device sends request information to the server according to the video call function in the first application, the server may determine that the request information corresponds to a configuration file corresponding to the video call function, and determine whether to open the video call function for the first application according to the configuration file.
The configuration file may include application identifiers of different APPs, and a version identifier and a play switch corresponding to each application identifier. The volume-playing switch is used for determining whether to play functions for account information in the request information sent by the electronic equipment. For example, the play switch is (100; 23), if the account information in the request message is "123", the remainder obtained by dividing the account information by the modulo "100" is "23", which indicates that the account information is the account information limited by the play switch, and the function play can be performed on the account information "123". The specific form and principle of the volume switch can refer to the prior art, and this embodiment will not be described in detail.
In this embodiment, for a target function in a plurality of different APPs, a unified configuration file may be set for the target function, that is, a unified configuration file may be set for a plurality of different APPs. The configuration file comprises an application program identifier of each APP, a version identifier of each APP, and a scaling switch corresponding to each version identifier. For example, in connection with step 101, the configuration file may include an application identifier "APP 1" of the first application, a version number "1.0" and a play-out switch (100; 23) of version 1.0, and a version number "2.0" and a play-out switch (100; 24) of version 2.0, which indicates that, for the video playing function, the video playing function may be opened for the first application of version 1.0 installed and running and for account information defined by the play-out switch (100; 23), and the video playing function may be opened for the first application of version 2.0 installed and running and for account information defined by the play-out switch (100; 24). Similarly, the configuration file may include application identifiers "APP 2" and "APP 3" of the second application and the third application, and version numbers and play switches corresponding to "APP 2" and "APP 3", respectively. The specific structure of the configuration file may be set according to the requirement, which is not limited in this embodiment.
After receiving the request information sent by the electronic device, the server may determine a configuration file corresponding to the target function according to the request information. The server determines the configuration file corresponding to the request information with reference to the prior art, which is not limited in this embodiment.
103. And under the condition that the configuration file comprises the application program identification, determining at least one version identification corresponding to the application program identification and a corresponding quantitative switch of each version identification in the at least one version identification from the configuration file.
The volume switch is used for determining whether to perform function volume on the account information.
In this embodiment, after determining the configuration file, the server may first determine whether the configuration file includes the application identifier in the request information, and if the configuration file includes the application identifier in the request information, may determine, from the configuration file, a version identifier corresponding to the application identifier in the request information and a play switch corresponding to the version identifier.
For example, in connection with step 102, after determining the configuration file, the server may determine the application identifier "APP 1" in the package request information in the configuration file, at which point the server may determine, from the configuration file, the corresponding version identifier "1.0" and version identifier "2.0" of the application identifier "APP 1" and the corresponding play switches of the version identifier "1.0" and the version identifier "2.0", respectively.
104. And under the condition that the at least one version identification comprises the version identification of the application program, determining a target lofting switch corresponding to the version identification of the application program from lofting switches respectively corresponding to each version identification in the at least one version identification.
In this embodiment, after determining, from the configuration file, at least one version identifier corresponding to the application identifier in the request information, the server may first determine whether the at least one version identifier includes the version identifier in the request information, and if the at least one version identifier includes the version identifier in the request information, use the scaling switch corresponding to the version identifier in the request information as the target scaling switch. And the target volume-playing switch is used for determining whether to play the functions of the account information in the request information.
Illustratively, in connection with step 103, after determining the version identifier "1.0" and the version identifier "2.0" corresponding to the application identifier "APP 1", the server may determine the zoom switch (100, 23) corresponding to the version identifier "1.0" as the target zoom switch from the zoom switches corresponding to the version identifiers "1.0" and "2.0", respectively.
105. And sending a first result to the electronic equipment when the account information is the account information limited by the target lofting switch.
Wherein the first result is used for informing the electronic equipment to execute the target function.
In this embodiment, after determining the target play-out switch, the server may determine whether the account information in the request information is account information limited by the target play-out switch. Illustratively, in connection with step 104, the account number information in the request message is "123", and the remainder of division of the account number information "123" by modulo "100" is "23", so that it can be determined that the account number information "123" is the account number information defined by the target lofting switch (100; 23).
Upon determining that the account information is account information defined by the target play switch, the server may transmit a first result, such as identification information "true," to the electronic device. After receiving the first result, the electronic device may perform a video call function (target function) according to the first result, and provide a video call service to the user. The specific form of the first result, the process of sending the first result to the electronic device by the server, and the process of executing and targeting the function according to the first result by the electronic device may refer to the prior art, which is not limited in this embodiment.
In the prior art, there may be multiple target functions in one APP, and separate configuration files need to be set for each target function. Meanwhile, because the configuration files corresponding to each APP are different, different judgment logics need to be set for the configuration files of different APPs respectively. For example, the same function 1, function 2 and function 3 exist in APP1, APP2 and APP3 at the same time, a configuration file 1 corresponding to the function 1 is set for APP1 for the same function 1, the configuration file 1 includes a version identifier and a zoom switch corresponding to APP1, and corresponding judgment logic is set for the configuration file 1; setting a configuration file 2 corresponding to the function 1 for the APP2, wherein the configuration file 2 comprises a version identifier and a volume switch corresponding to the APP2, and setting corresponding judgment logic for the configuration file 2; and setting a configuration file 3 corresponding to the function 1 for the APP3, wherein the configuration file 3 comprises a version identifier and a volume switch corresponding to the APP3, and setting corresponding judgment logic for the configuration file 3. Similarly, for function 2 and function 3, different configuration files and corresponding judgment logics are set for APP1, APP2 and APP3, respectively. After receiving the request information sent by the electronic device, the server first determines a configuration file corresponding to each APP, then determines a configuration file corresponding to the APP installed in the electronic device from the plurality of configuration files (for example, determines configuration file 1 corresponding to APP 1) according to the application program identifier, and determines whether to open the target function to the electronic device according to the version identifier and the scaling switch in the configuration file by calling corresponding determination logic. When an individual configuration file is set for each target function in each APP, the number of configuration files is large, and a plurality of judgment logics need to be set in the server, so that the processing flow of the server is complex. In this embodiment, only one configuration file and one judgment logic are set for the same target function in multiple APPs, for example, only one configuration file is set for function 1, and the configuration files include the configurations of APP1, APP2, and APP 3. After receiving the request information, the server directly determines the configuration file 1 corresponding to the function 1, and can determine whether to open the target function to the electronic equipment according to the configuration file 1 and the request information, so that the number of the configuration files and the judgment logic is reduced, the determination process of the configuration files is simplified, and the processing flow of the server is simplified.
In summary, in this embodiment, the server receives request information sent by the electronic device according to a target function of an application program, determines a configuration file corresponding to the request information, determines, from the configuration file, at least one version identifier corresponding to the application program identifier and a corresponding scaling switch for each version identifier of the at least one version identifier when the configuration file includes the application program identifier, determines, from the scaling switches corresponding to each version identifier of the at least one version identifier, a target scaling switch corresponding to the version identifier of the application program when the at least one version identifier includes the version identifier of the application program, and sends a first result to the electronic device to notify the electronic device to execute the target function when the account information is the account information defined by the target scaling switch. Aiming at the target function in the application program, a unified configuration file is set for a plurality of different APPs, so that the number of the configuration files can be reduced, and the configuration files are convenient to maintain and manage.
Meanwhile, aiming at the uniform configuration file, uniform judgment logic can be called, the number of the judgment logic can be reduced, and the processing flow of the server is simplified. And when a certain APP needs to be added or removed, only the related information needs to be added in the configuration file, and the configuration file and the judgment logic do not need to be added or reduced in the server, so that the APP is convenient to access and remove.
FIG. 2 is a flow chart illustrating steps of another application control method according to an exemplary embodiment, which, with reference to FIG. 2, may include the steps of:
201. and receiving request information sent by the electronic equipment according to the target function of the application program.
202. And determining a configuration file corresponding to the function identifier from the plurality of configuration files according to the function identifier.
The configuration file comprises an application program identifier, at least one version identifier corresponding to the application program identifier, and a volume switch corresponding to each version identifier. Step 102 may be referred to for understanding the configuration file, which is not described in detail in this embodiment.
In this embodiment, the request information may further include a function identifier corresponding to the target function, where the function identifier is used to distinguish different target functions and determine a configuration file corresponding to the target function. In combination with the above example, it is possible to set a configuration file a, a configuration file B, and a configuration file C for function 1, function 2, and function 3, respectively, and set different function identifications "a", "B", and "C", respectively. The server may store the corresponding configuration file a, configuration file B, and configuration file C according to the function identifiers "a", "B", and "C". After receiving the request information sent by the electronic device, the server may first parse the request information, determine a function identifier "a" included in the request information, and then determine a configuration file a corresponding to the function identifier "a" from the plurality of configuration files according to the function identifier "a". The specific form of the function identifier may be set according to the requirement, which is not limited in this embodiment.
203. And under the condition that the configuration file comprises the application program identification, determining at least one version identification corresponding to the application program identification and a corresponding quantitative switch of each version identification in the at least one version identification from the configuration file.
Optionally, the method may further include:
when the configuration file corresponding to the request information is determined, if the configuration file does not include the application program identifier, sending a second result to the electronic equipment;
wherein the second result is used for informing the electronic equipment to prohibit the execution of the target function.
In this embodiment, the server may send the second result to the electronic device when determining that the configuration file does not include the application identifier. In connection with the above example, if the configuration file does not include the application identification "APP 1", the server may send a second result, such as "false", to the electronic device. And after receiving the second result, the electronic equipment prohibits the video call function from being executed so as to avoid opening the video call function to other application programs which are not the first application program. The type of the second result and the process of the electronic device prohibiting the target function from being executed according to the second result may refer to the prior art, which is not limited by the embodiment.
204. And under the condition that the at least one version identification comprises the version identification of the application program, determining a target lofting switch corresponding to the version identification of the application program from lofting switches respectively corresponding to each version identification in the at least one version identification.
Optionally, the method may further include:
and when at least one version identification corresponding to the application program identification is determined from the configuration file, if the at least one version identification does not comprise the version identification of the application program, sending a second result to the electronic equipment.
In this embodiment, when the server determines, from the configuration file, at least one version identifier corresponding to the application identifier in the request information, if the at least one version identifier does not include the version identifier in the request information, the server may send the second result to the electronic device. With reference to the foregoing example, if the version identifier "1.0" is not included in the at least one version identifier, the server may send the second result to the electronic device. And after receiving the second result, the electronic equipment prohibits the video call function from being executed so as to avoid opening the video call function to the first application program which is not the 1.0 version.
205. And sending a first result to the electronic equipment when the account information is the account information limited by the target lofting switch.
Optionally, the method may further include:
and when the target playback switch corresponding to the version identifier of the application program is determined, if the account information is not the account information limited by the target playback switch, sending a second result to the electronic equipment.
In this embodiment, after the server determines the target play-out switch, if the account information in the request information is not the account information limited by the target play-out switch, the server may send a second result to the electronic device. With reference to the above example, if the account information in the request information is "124", it may be determined that the account information "124" is not account information defined by the target play switch (123; 23), and the server may send a second result to the electronic device. And after receiving the second result, the electronic equipment prohibits the execution of the video call function so as to avoid opening the video call function to account information which is not limited by the target volume-releasing switch.
In summary, in this embodiment, the server receives request information sent by the electronic device according to a target function of an application program, determines a configuration file corresponding to the request information, determines, from the configuration file, at least one version identifier corresponding to the application program identifier and a corresponding scaling switch for each version identifier of the at least one version identifier when the configuration file includes the application program identifier, determines, from the scaling switches corresponding to each version identifier of the at least one version identifier, a target scaling switch corresponding to the version identifier of the application program when the at least one version identifier includes the version identifier of the application program, and sends a first result to the electronic device to notify the electronic device to execute the target function when the account information is the account information defined by the target scaling switch. Aiming at the target function in the application program, a unified configuration file is set for a plurality of different APPs, so that the number of the configuration files can be reduced, and the configuration files are convenient to maintain and manage.
Optionally, the method may further include:
and in the case that a new application program needs to be added, adding an application program identifier of the new application program, a version identifier of the new application program and a volume switch corresponding to the version identifier of the new application program into the configuration file.
In this embodiment, when a new application needs to be added, a new application identifier, a version identifier, and a corresponding volume switch may be directly added to the configuration file. In connection with the above example, if the fourth application needs to be added, the application identifier "APP 4" of the fourth application, the version identifier "2.0" corresponding to "APP 4", and the play switch (100; 28) corresponding to the version identifier "2.0" may be added to the configuration file. The server may receive user input of an application identification "APP 4", a version identification "2.0", and a play switch (100; 28), add the application identification "APP 4", the version identification "2.0", and the play switch (100; 28) to the configuration file.
Optionally, the method may further include:
and when a new target function needs to be added, adding the configuration file corresponding to the new target function into the plurality of configuration files.
In this embodiment, when a new target function needs to be added, a configuration file corresponding to the new target function may be directly added to the plurality of configuration files. By combining the above examples, if the positioning function needs to be added, the user can set the configuration file corresponding to the positioning function and upload the configuration file to the server. The server may receive the uploaded configuration file as one of a plurality of configuration files.
Optionally, before step 201, the method may further include:
and packaging the step of determining the configuration file, the step of determining at least one version identifier, the step of determining a target volume switch and the step of sending the first result into a calling function, so that the server executes the step of determining the configuration file, the step of determining at least one version identifier, the step of determining the target volume switch and the step of sending the first result by calling the function after receiving the request information.
In this embodiment, the user may encapsulate step 201, step 202, step 203, step 204, and step 205 as a calling function, and upload the calling function to the server. The server may receive the packaged function uploaded by the user, and after receiving the request information sent by the electronic device, call the calling function, and perform step 201, step 202, step 203, step 204, and step 205. The specific processes of packaging the call function by the user and uploading the call function to the server refer to the prior art, which is not described in detail in this embodiment.
Fig. 3 is a block diagram illustrating an application control apparatus according to an exemplary embodiment, and as shown in fig. 3, the apparatus 300 may include: a receiving module 301, a first determining module 302, a second determining module 303, a third determining module 304 and a sending module 305.
The receiving module 301 is configured to receive request information sent by the electronic device according to a target function of the application program; the request information includes an application identification of the application program, a version identification of the application program, and account information of the user.
The first determination module 302 is configured to determine a configuration file corresponding to the requested information; the configuration file is used for determining whether the function corresponding to the configuration file is used for function release of the application program.
The second determining module 303 is configured to determine, from the configuration file, at least one version identifier corresponding to the application identifier and a corresponding scaling switch for each version identifier of the at least one version identifier, in a case that the configuration file includes the application identifier; the volume switch is used for determining whether to perform function volume of the account information.
The third determining module 304 is configured to determine, from the scaling switches respectively corresponding to each of the at least one version identifier, a target scaling switch corresponding to the version identifier of the application program in a case that the at least one version identifier includes the version identifier of the application program.
The sending module 305 is configured to send a first result to the electronic device if the account information is account information defined by the target play switch; the first result is used for informing the electronic equipment to execute the target function.
Optionally, the sending module 305 is further configured to, when determining the configuration file corresponding to the request information, send a second result to the electronic device if the configuration file does not include the application identifier;
wherein the second result is used for informing the electronic equipment to prohibit the execution of the target function.
Optionally, the sending module 305 is further configured to, when determining at least one version identifier corresponding to the application identifier from the configuration file, send a second result to the electronic device if the at least one version identifier does not include the version identifier of the application;
wherein the second result is used for informing the electronic equipment to prohibit the execution of the target function.
Optionally, the sending module 305 is further configured to, when determining that the target play switch corresponds to the version identifier of the application program, send a second result to the electronic device if the account information is not account information defined by the target play switch;
wherein the second result is used for informing the electronic equipment to prohibit the execution of the target function.
Optionally, the first determining module 302 is specifically configured to determine, according to the function identifier, a configuration file corresponding to the function identifier from a plurality of configuration files.
Optionally, the apparatus 300 may further include: and adding a module.
The adding module is configured to add the application identification of the new application, the version identification of the new application and the volume switch corresponding to the version identification of the new application to the configuration file in the case that the new application needs to be added.
Optionally, the configuration file includes an application identifier and at least one version identifier corresponding to the application identifier, and a play switch corresponding to each version identifier.
Optionally, the apparatus 300 further comprises: and (5) packaging the module.
The encapsulation module is configured to encapsulate the step of determining the configuration file, the step of determining the at least one version identification, the step of determining the target load tap, and the step of sending the first result as a calling function, so that the server performs the steps of determining the configuration file, determining the at least one version identification, determining the target load tap, and sending the first result by calling the function after receiving the request message.
In summary, in this embodiment, the server receives request information sent by the electronic device according to a target function of an application program, determines a configuration file corresponding to the request information, determines, from the configuration file, at least one version identifier corresponding to the application program identifier and a corresponding scaling switch for each version identifier of the at least one version identifier when the configuration file includes the application program identifier, determines, from the scaling switches corresponding to each version identifier of the at least one version identifier, a target scaling switch corresponding to the version identifier of the application program when the at least one version identifier includes the version identifier of the application program, and sends a first result to the electronic device to notify the electronic device to execute the target function when the account information is the account information defined by the target scaling switch. Aiming at the target function in the application program, a unified configuration file is set for a plurality of different APPs, so that the number of the configuration files can be reduced, and the configuration files are convenient to maintain and manage.
Fig. 4 is a block diagram illustrating a server according to an example embodiment, where the server 400 may include:
a processor 401;
a memory 402 for storing instructions executable by the processor 401;
wherein the processor 401 is configured to perform the method described in the embodiment shown in fig. 1 or fig. 2.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, the instructions in which, when executed by a processor of a server, enable the server to perform the method described in the embodiments of fig. 1 or 2.
In an exemplary embodiment, a computer program product containing instructions is also provided, which when run on a server, enables the server to perform the method described in the embodiments of fig. 1 or fig. 2.
Fig. 5 is a block diagram illustrating another configuration of an application control apparatus according to an example embodiment, where the apparatus 500 may include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, interface for input/output (I/O) 513, sensor component 514, and communication component 516.
The processing component 502 generally controls overall operation of the device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processes 520 to execute instructions to perform all or a portion of the steps of the audio data processing method described above. Further, the processing component 502 can include one or more modules that facilitate interaction between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operations at the apparatus 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 506 provides power to the various components of the device 500. The power components 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 500.
The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 500 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 510 is configured to output and/or input audio signals. For example, audio component 510 includes a Microphone (MIC) configured to receive external audio signals when apparatus 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 504 or transmitted via the communication component 516. In some embodiments, audio component 510 further includes a speaker for outputting audio signals.
The I/O interface 513 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 may detect an open/closed state of the apparatus 500, the relative positioning of the components, such as a display and keypad of the apparatus 500, the sensor assembly 514 may also detect a change in the position of the apparatus 500 or a component of the apparatus 500, the presence or absence of user contact with the apparatus 500, orientation or acceleration/deceleration of the apparatus 500, and a change in the temperature of the apparatus 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communication between the apparatus 500 and other devices in a wired or wireless manner. The apparatus 500 may access a wireless network based on a communication standard, such as WiFi, an operator network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described audio data processing methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 504 comprising instructions, executable by the process 520 of the apparatus 500 to perform the audio data processing method described above is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product.
The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can store or a data storage device, such as a server, a data center, etc., that is integrated with one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, 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 through some interfaces, devices or units, 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 place, or may be distributed on a plurality of 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 application 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 integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes 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 application. 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 or an optical disk, and other various media capable of storing program codes.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. An application control method, applied to a server, includes:
receiving request information sent by the electronic equipment according to the target function of the application program; the request information comprises an application program identifier of the application program, a version identifier of the application program and account information of a user;
determining a configuration file corresponding to the request information; the configuration file is used for determining whether the function corresponding to the configuration file plays the function of the application program;
under the condition that the configuration file comprises the application program identification, determining at least one version identification corresponding to the application program identification and a corresponding volume switch of each version identification in the at least one version identification from the configuration file; the volume-adding switch is used for determining whether function volume adding is carried out on the account information;
under the condition that the at least one version identification comprises the version identification of the application program, determining a target lofting switch corresponding to the version identification of the application program from lofting switches respectively corresponding to each version identification in the at least one version identification;
under the condition that the account information is account information limited by the target lofting switch, sending a first result to the electronic equipment; the first result is used for informing the electronic equipment to execute the target function.
2. The method of claim 1, further comprising:
when determining a configuration file corresponding to the request information, if the configuration file does not include the application program identifier, sending a second result to the electronic device;
wherein the second result is used for informing the electronic equipment to prohibit the target function from being executed.
3. The method of claim 1, further comprising:
when at least one version identification corresponding to the application program identification is determined from the configuration file, if the at least one version identification does not include the version identification of the application program, a second result is sent to the electronic equipment;
wherein the second result is used for informing the electronic equipment to prohibit the target function from being executed.
4. The method of claim 1, further comprising:
when a target volume-playing switch corresponding to the version identifier of the application program is determined, if the account information is not account information limited by the target volume-playing switch, sending a second result to the electronic equipment;
wherein the second result is used for informing the electronic equipment to prohibit the target function from being executed.
5. The method according to claim 1, wherein the request information further includes a function identifier corresponding to the target function;
the determining the configuration file corresponding to the request information includes:
and determining the configuration file corresponding to the function identifier from a plurality of configuration files according to the function identifier.
6. The method of claim 1, further comprising:
and adding an application program identifier of a new application program, a version identifier of the new application program and a volume switch corresponding to the version identifier of the new application program into the configuration file when the new application program needs to be added.
7. The method of claim 1, wherein the configuration file comprises the application identifier and at least one of the version identifiers corresponding to the application identifier, and the respective corresponding play switches for each of the version identifiers.
8. An application control device provided in a server, comprising:
the receiving module is configured to receive request information sent by the electronic equipment according to the target function of the application program; the request information comprises an application program identifier of the application program, a version identifier of the application program and account information of a user;
a first determination module configured to determine a configuration file corresponding to the request information; the configuration file is used for determining whether the function corresponding to the configuration file plays the function of the application program;
a second determining module configured to determine, from the configuration file, at least one version identifier corresponding to the application identifier and a corresponding lofting switch for each version identifier of the at least one version identifier, when the configuration file includes the application identifier; the volume-adding switch is used for determining whether function volume adding is carried out on the account information;
a third determining module, configured to determine, from the scaling switches respectively corresponding to each version identifier in the at least one version identifier, a target scaling switch corresponding to the version identifier of the application program when the version identifier of the application program is included in the at least one version identifier;
the sending module is configured to send a first result to the electronic equipment under the condition that the account information is account information limited by the target lofting switch; the first result is used for informing the electronic equipment to execute the target function.
9. A server, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the application control method of any of claims 1 to 7.
10. A non-transitory computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor of a server, enable the server to perform the application control method of any one of claims 1 to 7.
CN202010899649.7A 2020-08-31 2020-08-31 Application program control method, device, server and storage medium Pending CN112181476A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010899649.7A CN112181476A (en) 2020-08-31 2020-08-31 Application program control method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010899649.7A CN112181476A (en) 2020-08-31 2020-08-31 Application program control method, device, server and storage medium

Publications (1)

Publication Number Publication Date
CN112181476A true CN112181476A (en) 2021-01-05

Family

ID=73925339

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010899649.7A Pending CN112181476A (en) 2020-08-31 2020-08-31 Application program control method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN112181476A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103389900A (en) * 2013-07-23 2013-11-13 Tcl集团股份有限公司 Control method and device for Android equipment camera
CN103677948A (en) * 2014-01-08 2014-03-26 从兴技术有限公司 Starter and start method
CN104020999A (en) * 2014-06-16 2014-09-03 腾讯科技(深圳)有限公司 Management method and system of application programs
US8930901B2 (en) * 2011-08-15 2015-01-06 International Business Machines Corporation Automatic selection of lowest configuration feature level by functionality exploited
CN105653323A (en) * 2015-12-28 2016-06-08 小米科技有限责任公司 Application program management method and device
CN106778089A (en) * 2016-12-01 2017-05-31 联信摩贝软件(北京)有限公司 A kind of system and method that security management and control is carried out to software authority and behavior
CN106970805A (en) * 2016-01-14 2017-07-21 平安科技(深圳)有限公司 Function configuration method and system
CN107679072A (en) * 2017-08-24 2018-02-09 平安普惠企业管理有限公司 User behavior information collecting method, terminal and storage medium
CN108664786A (en) * 2018-04-24 2018-10-16 Oppo广东移动通信有限公司 Authority configuring method, mobile terminal, server and the storage medium of application program
CN108681471A (en) * 2018-05-15 2018-10-19 北京五八信息技术有限公司 Application control method, device, electronic equipment and readable storage medium storing program for executing
CN110287660A (en) * 2019-05-21 2019-09-27 深圳壹账通智能科技有限公司 Access right control method, device, equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8930901B2 (en) * 2011-08-15 2015-01-06 International Business Machines Corporation Automatic selection of lowest configuration feature level by functionality exploited
CN103389900A (en) * 2013-07-23 2013-11-13 Tcl集团股份有限公司 Control method and device for Android equipment camera
CN103677948A (en) * 2014-01-08 2014-03-26 从兴技术有限公司 Starter and start method
CN104020999A (en) * 2014-06-16 2014-09-03 腾讯科技(深圳)有限公司 Management method and system of application programs
CN105653323A (en) * 2015-12-28 2016-06-08 小米科技有限责任公司 Application program management method and device
CN106970805A (en) * 2016-01-14 2017-07-21 平安科技(深圳)有限公司 Function configuration method and system
CN106778089A (en) * 2016-12-01 2017-05-31 联信摩贝软件(北京)有限公司 A kind of system and method that security management and control is carried out to software authority and behavior
CN107679072A (en) * 2017-08-24 2018-02-09 平安普惠企业管理有限公司 User behavior information collecting method, terminal and storage medium
CN108664786A (en) * 2018-04-24 2018-10-16 Oppo广东移动通信有限公司 Authority configuring method, mobile terminal, server and the storage medium of application program
CN108681471A (en) * 2018-05-15 2018-10-19 北京五八信息技术有限公司 Application control method, device, electronic equipment and readable storage medium storing program for executing
CN110287660A (en) * 2019-05-21 2019-09-27 深圳壹账通智能科技有限公司 Access right control method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
EP3188066B1 (en) A method and an apparatus for managing an application
CN105955765B (en) Application preloading method and device
CN107370772B (en) account login method and device and computer readable storage medium
US10945019B2 (en) Video uploading method, camera apparatus and storage medium
CN107357613B (en) Application updating method and device and computer readable storage medium
CN109669730B (en) Process keep-alive method, device, electronic equipment and medium
CN107040591B (en) Method and device for controlling client
CN112583896B (en) Session management method, session management device, electronic equipment, session management server and storage medium
CN106991018B (en) Interface skin changing method and device
CN105912204B (en) Method and device for starting application interface
CN109062625B (en) Application program loading method and device and readable storage medium
CN107436782B (en) Application silent installation method and device
CN105227426B (en) Application interface switching method and device and terminal equipment
US11347988B2 (en) Method and device for configuring NFC smart card
CN111580824A (en) Program optimization method, device and storage medium
CN112256448A (en) Remote control method, device, electronic equipment, system and storage medium
CN110908814A (en) Message processing method and device, electronic equipment and storage medium
CN112181476A (en) Application program control method, device, server and storage medium
CN112035246A (en) Method, device and system for acquiring virtual resources, electronic equipment and storage medium
CN112306566A (en) Data processing method and device
CN105893146B (en) Memory processing method and device
CN110311968B (en) Method and device for loading file in streaming mode and intelligent equipment
CN108173846B (en) Login method and device
CN107423164B (en) Application restart method and device
CN106919422B (en) System service management method and device

Legal Events

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