CN113098754A - Group revocation method and device, electronic equipment and storage medium - Google Patents

Group revocation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113098754A
CN113098754A CN202010017163.6A CN202010017163A CN113098754A CN 113098754 A CN113098754 A CN 113098754A CN 202010017163 A CN202010017163 A CN 202010017163A CN 113098754 A CN113098754 A CN 113098754A
Authority
CN
China
Prior art keywords
group
time point
value
preset
reference value
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
CN202010017163.6A
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010017163.6A priority Critical patent/CN113098754A/en
Publication of CN113098754A publication Critical patent/CN113098754A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]

Abstract

The embodiment of the application discloses a group revocation method, a group revocation device, electronic equipment and a storage medium; the method includes the steps that characteristic information of a group is obtained, wherein the characteristic information carries information related to the group; calculating a reference value of the group based on the characteristic information, wherein the reference value is used for determining a counting threshold of the group revocation condition; acquiring a preset change value, wherein the preset change value is a count value used for determining a group revocation condition; if the magnitude relation between the reference value and the preset change value meets the preset condition, returning to the step of obtaining the preset change value; if the size relation between the reference value and the preset change value does not meet the preset condition, withdrawing the group; the scheme can confirm the execution time of the group revocation operation based on the characteristic information, thereby saving time, simplifying operation steps and improving the efficiency of the group revocation.

Description

Group revocation method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a group revocation method and apparatus, an electronic device, and a storage medium.
Background
The instant messaging technology is one of the popular internet application fields, and the instant messaging technology can set groups to achieve the purpose of multi-user instant messaging. The user creates a group based on a specific purpose, and the group loses the necessity after the user achieves the purpose. In the prior art, such groups are processed in a manner of waiting for the user to actively dismiss or quit, the user needs to periodically select, confirm, dismiss or quit such groups, and the electronic device passively cancels the group according to the dismissal or quit operation of the user, which consumes time and is complicated in steps.
Disclosure of Invention
The embodiment of the application provides a group revocation method, a group revocation device, electronic equipment and a storage medium, and aims to save time, simplify operation and improve efficiency.
In order to solve the above technical problem, an embodiment of the present application provides the following technical solutions:
the group revocation method provided by the embodiment of the application comprises the following steps:
acquiring feature information of a group, wherein the feature information carries information related to the group;
calculating a reference value of the group based on the characteristic information, wherein the reference value is used for determining a counting threshold of a group revocation condition;
acquiring a preset change value, wherein the preset change value is a count value used for determining a group revocation condition;
if the magnitude relation between the reference value and the preset change value meets a preset condition, returning to the step of obtaining the preset change value;
and if the size relation between the reference value and the preset change value does not meet the preset condition, withdrawing the group.
Correspondingly, an embodiment of the present application further provides a group revocation apparatus, including:
the first acquisition module is used for acquiring the characteristic information of the group, wherein the characteristic information carries information related to the group;
a calculating module, configured to calculate a reference value of the group based on the feature information, where the reference value is used to determine a counting threshold of a group revocation condition;
a second obtaining module, configured to obtain a preset variation value, where the preset variation value is a count value used to determine a group revocation condition;
the return module is used for returning to the step of obtaining the preset change value if the size relation between the reference value and the preset change value meets the preset condition;
and the canceling module is used for canceling the group if the size relation between the reference value and the preset change value does not meet a preset condition.
In some embodiments of the present application, the feature information includes a time length and a first time point, the reference value includes an end time point, and the calculation module is specifically configured to:
and calculating to obtain the ending time point of the group by taking the first time point as a starting point and the time length as a duration.
In some embodiments of the application, the preset change value is a current time point, and the second obtaining module is specifically configured to:
and acquiring the current time point at set time intervals.
In some embodiments of the present application, the preset condition is that the reference value is greater than the current time point, and the return module is specifically configured to:
if the reference value is larger than the current time point, returning to execute the step of obtaining the current time point at a set time interval;
the revocation module is specifically configured to:
and if the reference value is less than or equal to the current time point, withdrawing the group.
In some embodiments of the present application, the number of the groups is at least two, the feature information includes a group identifier, and the group revocation apparatus further includes:
and the storage module is used for storing the end time point to a set, and the end time point corresponds to the group.
In some embodiments of the present application, the revocation module comprises an acquisition submodule and a revocation submodule, wherein,
the obtaining submodule is used for obtaining a target group identifier corresponding to the reference value based on the corresponding relation between the reference value and the group if the reference value in the set is smaller than or equal to the current time point;
and the revocation submodule is used for revoking the target group corresponding to the target group identification.
In some embodiments of the present application, the feature information includes: the computing module is specifically configured to:
and counting the number of the task execution objects.
In some embodiments of the application, the preset change value is an updated count value, and the second obtaining module is specifically configured to:
setting a count value for the group, and carrying out initialization operation on the count value;
and updating the count value when receiving a finishing prompt message of finishing the setting operation of the group execution object.
In some embodiments of the application, the preset condition is that the number of the task execution objects is greater than the updated count value, and the returning module is specifically configured to:
if the number of the task execution objects is larger than the updated count value, returning to execute the step of updating the count value when receiving a finishing prompt message of finishing the setting operation of the group execution object;
the revocation module is specifically configured to:
and if the number of the task execution objects is less than or equal to the updated count value, withdrawing the group.
In some embodiments of the present application, the group revocation apparatus further comprises:
a creation module for creating a task for the group based on the task execution object and the setting operation;
and the message sending module is used for sending the result message of the task and the group revocation message to the terminal so that the task execution object receives the result message of the task and the group revocation notification.
In some embodiments of the present application, the group revocation apparatus further comprises:
and the end time point updating module is used for calculating an update end time point by taking the first time point as a starting point and the time length as a duration when the time length is received so as to update the end time point.
In some embodiments of the present application, the group revocation apparatus further comprises:
and the prompt message sending module is used for sending a prompt message to the group, wherein the prompt message is used for indicating that the group is a temporary group.
Correspondingly, the embodiment of the application also provides an electronic device, which comprises a memory and a processor; the memory stores an application program, and the processor is used for running the application program in the memory to execute the group revocation method provided by the embodiment of the application.
Correspondingly, the embodiment of the present application further provides a storage medium, where the storage medium stores a computer program, and the computer program is suitable for being loaded by a processor to execute any one of the group revocation methods provided by the embodiment of the present application.
The method includes the steps of firstly obtaining characteristic information of a group, wherein the characteristic information carries information related to the group, then calculating to obtain a reference value of the group based on the characteristic information, wherein the reference value is used for determining a counting threshold value of a group revocation condition, then obtaining a preset variation value, the preset variation value is a counting value used for determining the group revocation condition, if the size relation between the reference value and the preset variation value meets the preset condition, returning to the step of obtaining the preset variation value, and if the size relation between the reference value and the preset variation value does not meet the preset condition, revoking the group. According to the scheme, the reference value of the group to be cancelled is obtained through the characteristic information, the reference value and the preset change value are used as objects for judgment, and the operation of group cancellation is carried out according to the judgment result.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a scenario of a group revocation method according to an embodiment of the present application;
fig. 2 is a flowchart illustrating a group revocation method according to an embodiment of the present application;
fig. 3 is a flowchart illustrating a timing group revocation method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a user interface interaction for creating a timing group according to an embodiment of the present application;
fig. 5 is a flowchart illustrating a directed group revocation method according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a user interface interaction for creating a collection group according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a user interface interaction for creating a voting group according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a group revocation device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a group revocation device according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a group revocation device according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a group revocation method, a group revocation device, electronic equipment and a storage medium.
The embodiment of the present invention provides a group revocation system, including any one of the group revocation apparatuses provided in the embodiments of the present invention, where the group revocation apparatus may be specifically integrated in an electronic device, and the electronic device may be a server, or may also be a mobile phone, a tablet Computer, a notebook Computer, or a Personal Computer (PC).
For example, referring to fig. 1, the group revocation system may include a terminal and a server, the terminal and the server being connected through a network. The network includes network entities such as routers and gateways. The terminal may send or report feature information, messages, and the like of the user to the server, for example, the feature information may include: a time length for indicating the duration of the group, or a task execution object and setting operation for indicating a task within the group, and the like; the message may include: a completion prompt message for indicating that the task execution target completes the setting operation, and the like. The server may send a message or the like to the terminal, for example, the message may include: a message for notifying that the group has been disassembled, or a message for publishing the task results, etc.
The server can obtain the characteristic information of the group, wherein the characteristic information carries the information related to the group; calculating a reference value of the group based on the characteristic information, wherein the reference value is used for determining a counting threshold of the group revocation condition; acquiring a preset change value, wherein the preset change value is a count value used for determining a group revocation condition; if the magnitude relation between the reference value and the preset change value meets the preset condition, returning to the step of obtaining the preset change value; and if the size relation between the reference value and the preset change value does not meet the preset condition, withdrawing the group.
For example, the server may determine an end time point of the group according to the time length and the first time point, acquire the current time point at a set time interval, return to the step of acquiring the current time point at the set time interval when the end time point is greater than the current time point, and delete the group when the end time point is less than or equal to the current time point.
For another example, the server may acquire the task execution objects and the setting operation, count the number of the task execution objects, set a count value and initialize the count value, the server may update the count value when receiving the completion notification information of the setting operation of the task execution objects, return to the step of updating the count value when receiving the completion notification information of the setting operation of the task execution objects when the number of the task execution objects is greater than the updated count value, and delete the group when the number of the task execution objects is equal to or less than the updated count value.
The following are detailed below.
In the present embodiment, the group revocation apparatus will be described in terms of a group revocation apparatus, which may be specifically integrated in an electronic device, such as an electronic device with computing capability, which has a storage unit and a microprocessor installed therein, such as a server, a tablet computer, a mobile phone, a notebook computer, a server, and a wearable smart device.
As shown in fig. 2, fig. 2 is a flowchart illustrating a group revocation method according to an embodiment of the present application. The group revocation method may include:
101. acquiring the characteristic information of the group, wherein the characteristic information carries information related to the group.
The characteristic information may be information related to a group, and specifically, the group information may include attribute information of the group, such as a group identifier of the group (e.g., a group number, a group two-dimensional code, or a group identifier), a group capacity (e.g., a maximum number of group members, etc.), an additional function of the group (e.g., a file uploading function, an album function, a voting function, or an anonymization function, etc.), content information of the group, such as a function used by the group and content information of the function, or a group member of the group, etc., and request information of the group, such as time information for requesting to revoke the group, condition information, etc.
In an actual application scenario, the number and the type of the obtained feature information are not limited, the feature information may only contain one type (for example, only contain attribute information), or may contain several types (for example, contain attribute information, content information, request information, and the like), and may be flexibly selected according to actual requirements.
Specifically, the obtaining mode of the feature information is not limited, and the feature information can be obtained by directly receiving user input, and the mode can receive the input of the user in real time and determine the requirement of the user, for example, the time length input by the user or the feature information such as a task execution object can be received; the method can obtain corresponding data based on the requirement of the electronic equipment by directly sending a request to a library for storing the characteristic information in the electronic equipment or other electronic equipment and then receiving the characteristic information transmitted by the library based on the request, for example, sending a request to a group data system for storing group data to obtain characteristic information A, and the group data system transmits the characteristic information A according to the request; the acquired information may be processed or the characteristic information related to the group may be obtained by using the characteristics (such as time characteristics, byte number characteristics, and the like) of the acquired information, and this way, the information that cannot be directly used by the electronic device but is effective for implementing the group revocation function is processed, so that the acquisition source of the characteristic information may be expanded, and the utilization rate of the effective information may be improved, for example, the time point of receiving the information B is recorded, and the effective characteristic information B is obtained.
The basic information related to group revocation can be obtained by acquiring the characteristic information of the group, and corresponding operation is performed according to the characteristic information, so that the aims of group revocation with pertinence and simplified steps are achieved.
For example, the target group dismissal time point and the group creation request including the group member input by the user are received, the group creation request including the group member information is processed, that is, the group is created, and the group identifier is set for the group, so that the feature information in this example is the target group dismissal time point and the group identifier. For another example, a request for obtaining a group identifier and a group risk level is sent to a group information system storing group information, and the group identifier (e.g., identifier 2233) and the group risk level (e.g., risk level B) of the group sent by the group information system are received, so the characteristic information in this case is the group identifier and the group risk level.
102. And calculating a reference value of the group based on the characteristic information, wherein the reference value is used for determining a counting threshold of the group revocation condition.
Wherein the reference value may be a threshold value for determining the group revocation condition. Specifically, the form of the reference value is not limited, and may be a number, a number segment, a time point, a time segment, a character, a symbol, an audio/video, a picture, and the like, and the form of the reference value in the actual use process may be determined according to the characteristic information and the actual requirement. The reference value is used as a reference value for comparison in the group revocation process, and the timing for performing the revocation operation can be determined.
Specifically, the reference value of the group is obtained based on the feature information, and the reference value of the group may be obtained by processing the feature information (for example, numerical operation, image processing, or the like).
The characteristic of the feature information may be determined or counted, and the characteristic is used as a reference value or a reference value is obtained based on the characteristic, for example, the number of the feature information, the number of bytes, and the like are counted, and the number is used as the reference value, or for example, a category to which the feature information belongs (for example, the category of the feature information a is a text) is obtained and the reference value is obtained or generated based on the category (for example, the reference value library AK is called based on the text).
The method may be to perform semantic recognition or image recognition on the feature information, perform correlation processing with the recognition result as a reference value or according to the recognition result, and then obtain the reference value, for example, perform image recognition on the feature information a in the form of an image, obtain a result (P) in the form of a character and an image of P, process the character P to obtain P in another form (e.g., a voice of P, etc.), and use the character, the image, the voice, etc. of P as the reference value. The method carries out semantic or image recognition by combining the technologies such as artificial intelligence and the like, and the characteristic information is more fully utilized.
And calculating a reference value of the group based on the characteristic information, wherein the step can extract useful information which influences the group revocation from the characteristic information, and the useful information is used as the reference value or the reference value is obtained based on the useful information, so that the utilization degree of the data can be improved, and the more accurate time for executing the group revocation operation can be obtained.
For example, the reference value of the group is obtained based on the target dismissal time point, and the target dismissal time point input by the user may be subjected to format conversion and converted into the reference value O that the electronic device may perform the fast comparison operation. For another example, based on the group id 2233 and the group risk level B of the group, the violation direction of the group is obtained (e.g., the violation direction is an illegal advertisement), and the illegal advertisement benchmark library is called.
103. And acquiring a preset change value, wherein the preset change value is a counting value used for determining the group revocation condition.
The preset change value is a count value used for determining the group, the preset change value is matched with a reference value in form, such as text, audio/video, images and the like, and the preset change value and the reference value are two sides for determining the group revocation condition and are compared with the reference value. The preset variation value is a variable value, and the variable range and frequency of the preset variation value depend on specific application scenarios.
Specifically, the process of obtaining the preset change value may be performed through the inside of the electronic device, for example, a count value may be set, and the count value is updated; this may be done by obtaining data of the user, for example, chat information or status information (e.g., activity level in the group) of the user in the group may be obtained.
The preset variation value is a variable value in the group revocation condition, and is a main body of comparison, and the acquisition of the preset variation value determines whether group revocation can be performed.
For example, if the reference value is O, the obtaining of the preset variation value may be to obtain the current time point at time intervals of 10min, and the obtaining of the current time point may be performed by an electronic device or an external device (e.g., a timer). For another example, if the reference value is the illegal advertisement reference value library, the preset variation value may be obtained as the chat information in the group, if the user inputs the chat information, the chat information may be obtained, and if the chat information is continuously input in the group, the chat information may be obtained at an interval of 2 s.
104. And if the magnitude relation between the reference value and the preset change value meets the preset condition, returning to the step of obtaining the preset change value.
The preset condition is a basis for comparing the reference value with the preset variation value, and is a limitation on the relationship between the reference value and the preset variation value. The preset relationship may be based on the form of the reference value and the preset variation value. For example, for numerical values, the predetermined relationship may be greater than, less than, not greater than, or greater than, etc.; for text, the preset relationship may be that the repetition rate is greater than M1, or the degree of similarity is greater than M2, etc.; for audio-video it may be that the frame repetition is higher than M3, etc.
If the relationship between the reference value and the preset change value meets the preset condition, returning to the step of obtaining the preset change value, judging the relationship between the preset change value and the reference every time the preset change value is obtained as the preset change value is a variable value, and if the relationship meets the preset condition, returning to obtain the preset change value again for next judgment.
For example, if the reference value is O and the preset variation value is the current time point, the early-late relationship between O and the current time point is determined, and if the early-late relationship satisfies the setting condition (for example, the setting condition is that O is earlier than the current time point), the current time point is taken as the starting point, and the time point is obtained again after 10min, that is, the updated current time point. For another example, if the reference value is the illegal advertisement reference value library, the change value is set as the chat information, and if the repetition rate of the chat information and the illegal advertisement reference value library satisfies the set condition (for example, the repetition rate is lower than M4), the group member returns to acquire the chat information if sending the chat information.
105. And if the size relation between the reference value and the preset change value does not meet the preset condition, withdrawing the group.
For example, if the reference value is O and the preset variation value is the current time point, the early-late relationship between O and the current time point is determined, and if the early-late relationship does not satisfy the setting condition (for example, the setting condition is that O is earlier than the current time point), the group is cancelled. For another example, if the reference value is an illegal advertisement reference value library and the change value is set as chat information, and if the repetition rate of the chat information and the illegal advertisement reference value library does not satisfy the setting condition (for example, the repetition rate is lower than M4), the group is cancelled.
The method includes the steps of firstly obtaining characteristic information of a group, wherein the characteristic information carries information related to the group, then calculating to obtain a reference value of the group based on the characteristic information, wherein the reference value is used for determining a counting threshold value of a group revocation condition, then obtaining a preset variation value, the preset variation value is a counting value used for determining the group revocation condition, if the size relation between the reference value and the preset variation value meets the preset condition, returning to the step of obtaining the preset variation value, and if the size relation between the reference value and the preset variation value does not meet the preset condition, revoking the group. According to the scheme, the reference value of the group to be cancelled is obtained through the characteristic information, the reference value and the preset change value are used as objects for judgment, and the operation of group cancellation is carried out according to the judgment result.
The method described in the above embodiments is further illustrated in detail by way of example.
The present embodiment is described by taking an example in which the group revocation apparatus is specifically integrated in the electronic device.
In this embodiment, a group is taken as an example of a timing group, and a group revocation method is described in detail. The timing group is a group with a finite duration, which is different from the existing common group with an infinite duration.
As shown in fig. 3, fig. 3 is a flowchart illustrating a timing group revocation method according to the present application. The timed group withdrawal method may include:
201. the electronic device acquires the time length and the first time point of the timing group.
The length of time indicates a duration of the timing group, for which the acquisition may be based on an external input. The value of the length of time is a finite value. The value of the length of time may vary depending on the unit of time (e.g., month, day, hour, minute, second, etc.), but the length of time represented by the different values is the same.
Based on different electronic devices, the time length input from the outside can be converted according to the time unit conversion rule to conform to the time length value used by the electronic device. For example, the duration of the external input timing group is 1 day, and the electronic device can convert the value into the length 1440 minutes that the electronic device can process.
The external input time length may be provided when the group is created, and as shown in fig. 4, when the group chat is created, the temporary group chat may be selected to be created, the timed group chat in the temporary group may be selected to be created, the presence time of the timed group chat may be input, the group chat member may be selected, the electronic device may receive the presence time and the group chat member, create the timed group chat "small a, small B, and small C (3)", and display the message "the group is the temporary group chat". "
The first time point indicates a time point at which creating the timed group is completed, and the obtaining of the first time point may be obtained by recording, by the electronic device, a time at which creating the timed group is completed, for example, the electronic device pulls a group member to create the timed group according to a request, and records a time point at which an operation instruction for creating the timed group is triggered, where the time point is the first time point.
Optionally, the electronic device may obtain a group identifier, where the group identifier indicates an identifier of a certain timing group, the group identifier corresponds to the timing group one to one, and the group identifier may be set by the electronic device when the timing group is created.
For example, the electronic device receives an external input to create a timed group chat request, the timed group chat request carries a time length of 0 day and 6 hours, the group chat members are small a, small B and small C, the electronic device creates a timed group chat YY for the small a, the small B and the small C based on the creation request, records a time point triggering creation of an operation instruction of the YY, namely a first time point 9, and sets a group chat identifier 458 for the YY.
202. The electronic equipment calculates the ending time point of the timing group by taking the first time point as a starting point and the time length as a duration.
For example, the electronic device may calculate that the ending time point of the timed group chat YY is 15 hours, starting at 9 hours and lasting for 6 hours.
Optionally, after the electronic device acquires the time length of the timing group and the first time point, the method may include the steps of: and when the time length is received, calculating to obtain an update ending time point by taking the first time point as a starting point and the time length as a duration so as to update the ending time point.
The timing group may also receive the updated time length after the group is created, and at this time, based on the time point that may be based on the time lengths that are all received as the first time point and the updated time length as the duration, the update end time point is obtained by recalculation, and the update end time point is used to replace the original end time point. The process can be provided at any time before the timing group is cancelled, so that group dispersion caused by insufficient presetting of group duration by a user can be avoided, and the flexibility of the timing group is improved. For example, when the group member B in YY resets the group chat time length to 0 day 8 at 12 hours, the electronic device receives the updated time length, and records 12 hours 1 minutes, that is, the first time point, of the time point at which the updated time length is received, and calculates that the updated end time point of the timing group is 20 hours 1 minutes with 12 hours 1 as a starting point and 8 hours as a duration, and replaces the original end time point 15 with 20 hours 1 minutes.
Optionally, after the electronic device acquires the time length of the timing group and the first time point, the method may include the steps of: the electronic equipment stores the end time point to the set, and the end time point corresponds to the group. The electronic device can obtain the ending time points or update the ending time points of two or more timing groups, can store the ending time points of different timing groups into a set, and confirms the mapping relation between each ending time point and the corresponding timing group. For example, the electronic device may create another timing group XX at 16 hours, and when the ending time point 22 of XX is obtained, set H as a set that can store 500 ending time points, the electronic device may store the ending time point of YY in H, replace the ending time point of YY in H with an updated ending time point, and store the ending time point of XX in H.
203. The electronic equipment acquires the current time point at set time intervals.
The time interval, i.e. the time frequency, can be flexibly set based on actual requirements. For example, the time interval may be set to 3min, and the electronic device performs the operation of acquiring the current time point every 3 min.
204. And if the ending time point is larger than the current time point, the electronic equipment returns to execute the step of acquiring the current time point at the set time interval.
Comparing the size relationship between the ending time point and the current time point, and setting that one time point is later than another time point, that is, one time point is greater than another time point, for example, 13 th is later than 12 th, which can be expressed as 13 th is greater than 12 th. And if the ending time point is greater than the current time point, namely the revocation time of the timing group is not reached, the electronic equipment returns to the operation of acquiring the current time point at the set time interval. For example, if the electronic device obtains a current time point of 13, and the end time point 15 of YY is greater than the current time point 13, it indicates that the revocation time of YY has not arrived, and the electronic device may return to perform the step of obtaining the current time point every 3 min.
205. And if the ending time point is less than or equal to the current time point, the electronic equipment cancels the timing group.
For example, if the electronic device obtains a current time point of 15 hours and 1 minute, and the end time point 15 of YY is less than the current time point 15 hours and 1 minute, it indicates that the revocation time of YY has been reached, and the electronic device may perform an operation of revoking YY.
Optionally, if the ending time point is less than or equal to the current time point, the following steps may be performed: and acquiring the target group identification corresponding to the ending time point, and canceling the target group corresponding to the target group identification.
When the electronic device stores a plurality of end time points by using the setting set, the current time point can be compared with each end time point in the setting set, and if the end time point less than or equal to the current time point does not exist in the setting set, the step of obtaining the current time point at the set time interval can be returned; and if the end time point less than or equal to the current time point exists in the set, acquiring a target group identifier corresponding to the end time, and canceling the target group corresponding to the target group identifier.
Compared with the method for detecting the end time point corresponding to each timing group at the set time interval, the method for detecting the end time points of the timing groups stores the end time points of all the timing groups in a set, detects the technical time points in the set at the set time interval, avoids developing a process for each end time point, and performs the operation of acquiring the current time point at the set time interval, detecting the end time point and the current time point at the set time interval through a unified process, thereby effectively reducing the acquisition frequency of the current time point and the frequency of comparison operation, and reducing the occupation of electronic equipment resources.
For example, when the electronic device obtains a current time point 17, comparing the time point 17 with the end time points 20, 1 minute and 22 minutes, and when the obtained result is that both the end time points are greater than 17, the electronic device returns to the step of obtaining the current time point every 3 min; the electronic device obtains another current time point 20 hours and 3 minutes, compares 20 hours and 3 minutes with 20 hours, 1 minutes and 22 hours of the end time point, and if the obtained result is that the end time point is less than 20 hours and 3 minutes, and the end time point is greater than 20 hours and 3 minutes, the electronic device obtains the target group identifier 458 corresponding to the 20 hours and 1 minute, and cancels the timing group YY corresponding to the 458 minute, and meanwhile, when the end time point 22 in the set H is reached, the operation of obtaining the current time point every 3 minutes is continuously executed until the end time point 22 is less than or equal to the current time point.
In the embodiment of the application, the electronic device first obtains the time length and the first time point of the timing group, then the first time point is used as a starting point, the time length is used as a duration, the ending time point of the timing group is obtained through calculation, then the electronic device obtains the current time point at a set time interval, if the ending time point is larger than the current time point, the electronic device returns to execute the step of obtaining the current time point at the set time interval, and if the ending time point is smaller than or equal to the current time point, the timing group is cancelled. According to the scheme, the end time point of the timing group is confirmed by obtaining the time length, and the group revocation operation is carried out at the end time point.
The method described in the above embodiments is further illustrated in detail by way of example.
The present embodiment is described by taking an example in which the group revocation apparatus is specifically integrated in the electronic device.
In this embodiment, a group is taken as an example of an oriented group, and a detailed description is given to the oriented group revocation method, where the creation of the oriented group is based on a task, and the task may be voting, collection, publishing information (such as a bulletin, a file, or a picture), and the like.
As shown in fig. 5, fig. 5 is a flowchart illustrating a directed group revocation method according to the present application. The directed group revocation method may include:
301. the electronic equipment acquires the task execution object of the orientation group and sets the operation.
The task execution object is a group member for executing the task in the directional group, and the task execution object can be consistent with the group member or a subset of the group member. For example, a small a, a small B, and a small C belong to group members of a directed group, and if the small a sets a task for the group, the task execution target of the task may be the small B and the small C, or the small a, the small B, and the small C, based on the setting of the small a.
The setting operation may be an operation that the task execution object needs to execute to complete the task, for example, to complete the task set by small a, the task execution object needs to perform a certain operation, and if the task is a vote, the task execution object needs to perform a voting operation according to the voting content; if the task is collection, the task execution object needs to carry out payment operation according to the collection content; if the task is published information, the task execution object needs to check and respond to the published information (e.g., the task execution object clicks a read button or the electronic device automatically triggers the read button based on a check action of the task execution object, etc.).
For example, the electronic device receives task execution objects small a, small B, and small C input from the outside, and sets the operation as a voting operation according to the voting task.
Optionally, after the electronic device obtains the task execution object of the directional group and sets the operation, the electronic device may perform the following steps: based on the task execution object and the setting operation, a task is created for the group. In particular, the setting operation may also be an essential element of the task. For example, the necessary elements of the voting task can be the voting subject (the object of the voting, such as the dinner time), the voting option (such as time 1, time 2, etc.), the voting type (such as single-choice, multiple-choice, etc.), and so on; the necessary element of the receipt task may be a payment amount of each task execution object, etc.; the necessary element for the information distribution task may be information content or the like. For example, the electronic device receives the task execution objects xiao a and xiao B, sets the information content operating as the information distribution task, for example, the picture T1 and the picture T2, and the electronic device distributes the information content of the information task based on the xiao a and the xiao B: picture T1 and picture T2, creating an information distribution group. For example, as shown in fig. 6, when creating a group chat, the user may select to create a tentative group chat, select to create a task of collecting money in a directed group chat, input a total amount of group collection, select a member of the group chat, receive the duration and the member of the group chat by the electronic device, create a timed group chat "small a, small B, and small C (3)", and display a message "the group is a tentative group chat," and automatically dismiss the group chat after the collection is completed. Or as shown in fig. 7, when creating a group chat, the user can select to create a temporary group chat and select to create a voting task in a directional group chat, then input a voting title and options in group voting, select a group chat member, the electronic device receives the group chat member, the voting title and the options, create a timed group chat "small a, small B and small C (3)", and display a message "the group is the temporary group chat, and the voting is automatically dispersed after finishing. "
302. The electronic equipment counts the number of task execution objects.
For example, the electronic device obtains the number of 3 according to the task execution objects small a, small B, and small C.
303. The electronic equipment sets a count value for the orientation group and carries out initialization operation on the count value.
The counter value is a value used for counting, and the initialization operation of the counter value may be to assign a value to the counter value. For example, the electronic device sets a count value for the voting group and initializes the count value to 0.
304. And when receiving a finishing prompt message of finishing the setting operation of the directional group execution object, the electronic equipment updates the count value.
For example, the task execution object of the voting group, small a, votes, the electronic device receives the completion prompt message corresponding to the voting operation of small a, the update count value is 1, the electronic device receives the completion prompt message corresponding to the voting operation of small B, the update count value is 2, the electronic device receives the completion prompt message corresponding to the voting operation of small C, the update count value is 3, and so on.
305. And if the number of the task execution objects is larger than the updated count value, the electronic equipment returns to execute the step of updating the count value when receiving a finishing prompt message that the directional group execution object finishes the setting operation.
For example, when the number of task execution objects 3 is compared with the completion prompting message corresponding to the voting operation of the small group a received by the electronic device, the updated count value 1 is obtained, and 3 is greater than 1, so that the step of updating the count value when the completion prompting message of the completion setting operation of the directed group execution object is received is returned to the execution.
306. And if the number of the task execution objects is less than or equal to the updated count value, the electronic equipment cancels the directional group.
For example, when the number of comparison task execution objects is 3 and the completion prompting message corresponding to the voting operation of the electronic device receiving the small C is compared, the updated count value 3 is obtained, and if 3 is equal to 3, the electronic device may revoke the voting group.
Optionally, the result message of the task and the group revocation message are sent to the terminal, so that the task execution object receives the result message of the task and the group revocation notification. The result message of the task is to inform the group members of the task result, for example, to inform the group members of voting result, to inform the group members of collection completion/distribution information completion, and the like. The group revocation notification is a notification that the group member group does not exist. The message sending may be that the electronic device directly sends a message containing the content to the user, or that the electronic device sends an instruction message to the user account, the user account generates the message content, and the message content is displayed to the user. For example, after receiving the completion prompting message from the small C, the electronic device cancels the timed group, and sends the voting result (e.g., "the dinner party time is 8 o' clock") and the group canceling message ("voting group cancelled") to the small a, the small B, and the small C.
In the embodiment of the application, the electronic device first obtains task execution objects and setting operation of an orientation group, then counts the number of the task execution objects, then sets a count value for the orientation group, and performs initialization operation on the count value, when a completion prompt message that the orientation group execution objects complete the setting operation is received, the electronic device updates the count value, if the number of the task execution objects is greater than the updated count value, the electronic device returns to the step of executing, when the completion prompt message that the orientation group execution objects complete the setting operation is received, the count value is updated, and if the number of the task execution objects is less than or equal to the updated count value, the electronic device cancels the orientation group. In the scheme, the directed group can develop tasks with high pertinence, the reference value of the directed group for executing the revocation operation is determined by counting the number of the task execution objects, and the directed group is revoked when the number of the task execution objects is less than or equal to the updated count value.
The method described in the above embodiments is further illustrated in detail by way of example.
In this embodiment, the user P creates a timing group PP on the page of the instant messaging client, and the process of creating the timing group PP and automatically resolving the PP by the user P will be described in detail below.
The user P sets a timing group on a page of the instant messaging client, the user P can set the duration of the timing group to be 3 hours, select small A, small B and small C as group members of the timing group and set a group name 'PP' for the timing group, when the user P sets the duration to be 13:00, the PP is automatically dispersed at 16:00 according to the duration set by the user P. And after the user P finishes the setting, the instant messaging client sides of the group members P, the small A, the small B and the small C display the timing group PP.
From 13:00, the group members can transmit contents such as characters, pictures, videos and documents, and can perform activities such as voting, announcement and conversation in the PP. During this time, the group members of the PP may modify the duration of the PP, e.g., small A modifies the duration of the PP to 6 hours at 14:00, and then the PP automatically disintegrates after 6 hours, i.e., 20:00, from the point in time when the small A modification is completed.
If the current time point is 20:00, the server automatically cancels the PP, deletes the related content of the PP, and sends a disparation notification message about the PP that the temporary group chat PP is disparated to the instant messaging clients of P, small A, small B and small C.
In this embodiment, the user P sets the group dismissal time when creating the group, and can automatically dismiss the PP when the dismissal time arrives, thereby avoiding the operation of manually dismissing the group and improving the group revocation efficiency.
The method described in the above embodiments is further illustrated in detail by way of example.
In this embodiment, the user R creates a voting group RR on the page of the instant messaging client, and the process of creating the voting group RR by the user R will be described in detail below.
The user R establishes a directional group on a page of the instant messaging client, specifically, the directional group is a voting group, the user R can set voting related information, the voting related information can comprise an object participating in voting, a title of the voting, supplementary description content of the voting, voting options and the like, the user R sets the object participating in the voting as all group members except a group creator, the voting title can be 'class time', the supplementary description content of the voting can be 'class joining in the next week and please select the ideal time of the user', the voting options can comprise 'eight to ten o' clock on Monday 'and' eight to ten o 'clock on Friday', and the voting mode can be single voting. User R can also select small a, small B and small C as group members of the group, and set the name of the voting group as RR.
After the user R completes creating the voting group RR, the instant messaging clients of the group members R, the small a, the small B and the small C display the timing group RR, and display the voting related information set by the user R in the form of a message on the session page of the RR.
Then, the group members of RR can chat, talk, transfer file group activities in the group, at the same time, group members small a, small B and small C need to vote through voting messages on RR, small a votes, small B votes, when the server receives the completion prompt message of small C voting completion, the server automatically cancels RR, deletes the related content of RR, and sends the voting results of the "temporary group chat RR disassembled" message and the "voting time in class" message of group RR about RR to the instant messaging clients of user R, small a, small B and small C respectively: 3 tickets from Zhouwu eight points to ten points "
In this embodiment, the user R creates the voting group RR, and after the group voting is completed, the RR automatically cancels, which significantly improves the efficiency of group cancellation compared to a mode that a group member needs to manually resolve the group.
The method described in the above embodiments is further illustrated in detail by way of example.
In this embodiment, the user S creates a collection group SS on the page of the instant messaging client, and the process of creating the collection group SS by the user S will be described in detail below.
The user S establishes a directional group on a page of the instant messaging client, specifically, the directional group is a collection group, the user S can set group members of the collection group as small A, small B and small C, and set a group name of the collection group as SS, the user S can also set collection related information, the collection related information can include objects participating in collection, description information of collection, collection modes, the amount to be paid of each object participating in collection and the like, the user S sets the objects participating in collection as small A and small C, the description information of collection can be 'for payment compensation', the collection mode can be a designated amount, the designated amount of small A is 30 yuan, and the amount of small C is 100 yuan.
And after the user S finishes creating the voting group SS, the instant messaging client sides of the group members S, the small A, the small B and the small C display the timing group SS, and display related collection information set by the user S in a message form on a session page of the SS.
The group members can chat, talk and transmit file group activities in the group from the time of the completion of the creation of the user S, meanwhile, the group members small A and small C need to pay through the payment receiving information on the SS, the small A pays 50 yuan, when the server receives the completion prompting information of the completion of the payment of the small C, the server automatically cancels the group SS and respectively sends the dispersion notification information of the SS, namely that the temporary group chat SS is dispersed and voting prompting information to the instant communication clients of the user S, the small A, the small B and the small C, the voting prompting information displayed on the pages of the instant communication clients of the small A, the small B, the small C and the user S can be different, the voting prompting information displayed on the page of the instant communication client of the voting creator user S can be that the ' group payment ' compensation amount ' is completed and the total sum of 150 yuan is received, the voting prompting information can not be displayed on the page of the instant communication client of the group member small B, a voting prompt message "you have completed the group payment 'replenishment amount' in the SS for 50 dollars" may be displayed on the page of the instant messenger client of payer mini a, and a voting prompt message "you have completed the group payment 'replenishment amount' in the SS for 100 dollars" may be displayed on the page of the instant messenger client of payer mini C.
In this embodiment, the user S creates a collection group SS, and after group collection is completed, the SS is automatically cancelled.
In order to better implement the group revocation method provided in the embodiments of the present application, an embodiment of the present application further provides a device based on the group revocation method. The meaning of the noun is the same as that in the group revocation method, and the specific implementation details can refer to the description in the method embodiment.
As shown in fig. 8, fig. 8 is a schematic structural diagram of a group revocation device according to an embodiment of the present application, where the group revocation device may include a first obtaining module 401, a calculating module 402, a second obtaining module 403, a returning module 404, and a revocation module 405, as follows:
a first obtaining module 401, configured to obtain feature information of a group, where the feature information carries information related to the group;
a calculating module 402, configured to calculate a reference value of the group based on the feature information, where the reference value is used to determine a counting threshold of the group revocation condition;
a second obtaining module 403, configured to obtain a preset variation value, where the preset variation value is a count value used to determine a group revocation condition;
a returning module 404, configured to return to the step of obtaining the preset change value if the magnitude relationship between the reference value and the preset change value meets the preset condition;
the revocation module 405 is configured to revoke the group if the size relationship between the reference value and the preset variation value does not satisfy the preset condition.
In some embodiments of the present application, the feature information includes a time length and a first time point, the reference value includes an end time point, and the calculating module 402 is specifically configured to:
and calculating to obtain the end time point of the group by taking the first time point as a starting point and the time length as the duration.
In some embodiments of the present application, the preset variation value is a current time point, and the second obtaining module 403 is specifically configured to:
and acquiring the current time point at set time intervals.
In some embodiments of the present application, the preset condition is that the reference value is greater than the current time point, and the returning module 404 is specifically configured to:
if the reference value is larger than the current time point, returning to execute the step of obtaining the current time point at a set time interval;
the revocation module 405 is specifically configured to:
and if the reference value is less than or equal to the current time point, withdrawing the group.
As shown in fig. 9, in some embodiments of the present application, the number of the groups is at least two, the feature information includes a group identifier, and the group revocation apparatus further includes:
the saving module 406 is configured to save the end time point to the set, where the end time point corresponds to the group.
As shown in fig. 10, in some embodiments of the present application, the revocation module 405 includes an acquisition sub-module 4051 and a revocation sub-module 4052, wherein,
the obtaining sub-module 4051 is configured to, if the reference value in the set is smaller than or equal to the current time point, obtain a target group identifier corresponding to the reference value based on a correspondence between the reference value and the group;
the revoking submodule 4052 is configured to revoke the target group corresponding to the target group identifier.
In some embodiments of the present application, the characteristic information includes: the task execution object and the setting operation, the calculation module 402 is specifically configured to:
and counting the number of task execution objects.
In some embodiments of the present application, the preset variation value is an updated count value, and the second obtaining module 403 is specifically configured to:
setting a count value for the group, and carrying out initialization operation on the count value;
and updating the count value when receiving a finishing prompt message of finishing the setting operation of the group execution object.
In some embodiments of the present application, the preset condition is that the number of the task execution objects is greater than the updated count value, and the returning module 404 is specifically configured to:
if the number of the task execution objects is larger than the updated count value, returning to execute the step of updating the count value when receiving a finishing prompt message of finishing the setting operation of the group execution object;
the revocation module 405 is specifically configured to:
and if the number of the task execution objects is less than or equal to the updated count value, the group is cancelled.
In some embodiments of the present application, the group revocation apparatus further comprises:
the creating module is used for creating tasks for the group based on the task execution object and the setting operation;
and the message sending module is used for sending the result message of the task and the group revocation message to the terminal so that the task execution object receives the result message of the task and the group revocation notification.
In some embodiments of the present application, the group revocation apparatus further comprises:
and the updating ending time point module is used for calculating to obtain an updating ending time point by taking the first time point as a starting point and the time length as a duration so as to update the ending time point when the time length is received.
In some embodiments of the present application, the group revocation apparatus further comprises:
and the prompt message sending module is used for sending a prompt message to the group, and the prompt message is used for indicating that the group is a temporary group.
In this embodiment of the application, a first obtaining module 401 first obtains feature information of a group, where the feature information carries information related to the group, a calculating module 402 then obtains a reference value of the group by calculation based on the feature information, where the reference value is used to determine a counting threshold of a group revocation condition, a second obtaining module 403 then obtains a preset variation value, where the preset variation value is a counting value used to determine the group revocation condition, if a size relationship between the reference value and the preset variation value satisfies the preset condition, a returning module 404 returns to the step of obtaining the preset variation value, and if the size relationship between the reference value and the preset variation value does not satisfy the preset condition, a revocation module 405 revokes the group. According to the scheme, the reference value of the group to be cancelled is obtained through the characteristic information, the reference value and the preset change value are used as objects for judgment, and the operation of group cancellation is carried out according to the judgment result.
In the above embodiments, the descriptions of the embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description of the group revocation method, which is not described herein again.
Accordingly, an electronic device according to an embodiment of the present disclosure may include, as shown in fig. 11, a Radio Frequency (RF) circuit 601, a memory 602 including one or more computer-readable storage media, an input unit 603, a display unit 604, a sensor 605, an audio circuit 606, a Wireless Fidelity (WiFi) module 607, a processor 608 including one or more processing cores, and a power supply 609. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 11 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 601 may be used for receiving and transmitting signals during a message transmission or communication process, and in particular, for receiving downlink messages from a base station and then processing the received downlink messages by one or more processors 608; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuit 601 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 601 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 602 may be used to store software programs and modules, and the processor 608 executes various functional applications and data processing by operating the software programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the electronic device, and the like. Further, the memory 602 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 608 and the input unit 603 access to the memory 602.
The input unit 603 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, input unit 603 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 608, and can receive and execute commands sent by the processor 608. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 603 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 604 may be used to display information input by or provided to a user and various graphical user interfaces of the electronic device, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 604 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 608 to determine the type of touch event, and the processor 608 then provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 11 the touch-sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The electronic device may also include at least one sensor 605, such as a light sensor, motion sensor, and other sensors. In particular, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the electronic device is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the motion sensor is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration) for recognizing the attitude of an electronic device, vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured to the electronic device, detailed descriptions thereof are omitted.
Audio circuitry 606, a speaker, and a microphone may provide an audio interface between a user and the electronic device. The audio circuit 606 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 606 and converted into audio data, which is then processed by the audio data output processor 608, and then passed through the RF circuit 601 to be sent to, for example, another electronic device, or output to the memory 602 for further processing. The audio circuitry 606 may also include an earbud jack to provide communication of a peripheral headset with the electronic device.
WiFi belongs to short-distance wireless transmission technology, and the electronic device can help the user send and receive e-mail, browse web pages, access streaming media, etc. through the WiFi module 607, and it provides wireless broadband internet access for the user. Although fig. 11 shows the WiFi module 607, it is understood that it does not belong to the essential constitution of the electronic device, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 608 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 602 and calling data stored in the memory 602, thereby performing overall monitoring of the electronic device. Optionally, processor 608 may include one or more processing cores; preferably, the processor 608 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 608.
The electronic device also includes a power supply 609 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 608 via a power management system, such that the power management system may manage charging, discharging, and power consumption. The power supply 609 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the electronic device may further include a camera, a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 608 in the electronic device loads an executable file corresponding to a process of one or more application programs into the memory 602 according to the following instructions, and the processor 608 runs the application programs stored in the memory 602, so as to implement various functions:
acquiring characteristic information of a group, wherein the characteristic information carries information related to the group; calculating a reference value of the group based on the characteristic information, wherein the reference value is used for determining a counting threshold of the group revocation condition; acquiring a preset change value, wherein the preset change value is a count value used for determining a group revocation condition; if the magnitude relation between the reference value and the preset change value meets the preset condition, returning to the step of obtaining the preset change value; and if the size relation between the reference value and the preset change value does not meet the preset condition, withdrawing the group.
As can be seen from the above, the electronic device of the embodiment of the application first obtains the feature information of the group, where the feature information carries information related to the group, then calculates a reference value of the group based on the feature information, where the reference value is used to determine a counting threshold of a group revocation condition, and then obtains a preset variation value, where the preset variation value is a count value used to determine the group revocation condition, if a size relationship between the reference value and the preset variation value satisfies the preset condition, the step of obtaining the preset variation value is returned, and if the size relationship between the reference value and the preset variation value does not satisfy the preset condition, the group is revoked. According to the scheme, the reference value of the group to be cancelled is obtained through the characteristic information, the reference value and the preset change value are used as objects for judgment, and the operation of group cancellation is carried out according to the judgment result.
In the above embodiments, the descriptions of the embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description of the group revocation method, which is not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by a computer program, which may be stored in a computer-readable storage medium and loaded and executed by a processor, or by related hardware controlled by the computer program.
To this end, the present application provides a storage medium, in which a computer program is stored, where the computer program can be loaded by a processor to execute the steps in any one of the group revocation methods provided in the present application. For example, the computer program may perform the steps of:
acquiring characteristic information of a group, wherein the characteristic information carries information related to the group; calculating a reference value of the group based on the characteristic information, wherein the reference value is used for determining a counting threshold of the group revocation condition; acquiring a preset change value, wherein the preset change value is a count value used for determining a group revocation condition; if the magnitude relation between the reference value and the preset change value meets the preset condition, returning to the step of obtaining the preset change value; and if the size relation between the reference value and the preset change value does not meet the preset condition, withdrawing the group.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the computer program stored in the storage medium can execute the steps in any group revocation method provided in the embodiments of the present application, beneficial effects that can be achieved by any group revocation method provided in the embodiments of the present application can be achieved, which are detailed in the foregoing embodiments and will not be described again here.
The group revocation method, the group revocation apparatus, the electronic device, and the storage medium provided in the embodiments of the present application are described in detail above, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (15)

1. A group withdrawal method, comprising:
acquiring feature information of a group, wherein the feature information carries information related to the group;
calculating a reference value of the group based on the characteristic information, wherein the reference value is used for determining a counting threshold of a group revocation condition;
acquiring a preset change value, wherein the preset change value is a count value used for determining a group revocation condition;
if the magnitude relation between the reference value and the preset change value meets a preset condition, returning to the step of obtaining the preset change value;
and if the size relation between the reference value and the preset change value does not meet the preset condition, withdrawing the group.
2. The method of claim 1, wherein the feature information comprises a time length and a first time point, and wherein calculating the reference value of the group based on the feature information comprises:
and calculating to obtain the ending time point of the group by taking the first time point as a starting point and the time length as a duration.
3. The method according to claim 2, wherein the preset variation value is a current time point, and the obtaining the preset variation value comprises:
and acquiring the current time point at set time intervals.
4. The method according to claim 3, wherein the preset condition is that the reference value is greater than the current time point, and if the magnitude relationship between the reference value and the preset variation value satisfies the preset condition, the step of returning to obtain the preset variation value comprises:
if the ending time point is larger than the current time point, returning to execute the step of obtaining the current time point at a set time interval;
if the magnitude relation between the reference value and the preset variation value does not meet the preset condition, withdrawing the group, including:
if the ending time point is less than or equal to the current time point, the group is cancelled.
5. The method according to claim 4, wherein the number of the groups is at least two, the feature information includes a group identifier, and the method further includes, after calculating an ending time point of the group by using the first time point as a starting point and the time length as a duration, the method further includes:
and saving the end time point to a set, wherein the end time point corresponds to the group.
6. The method according to claim 5, wherein the withdrawing the group if the magnitude relationship between the reference value and the predetermined variation does not satisfy a predetermined condition comprises:
if the ending time point in the set is smaller than or equal to the current time point, acquiring a target group identifier corresponding to the ending time point based on the corresponding relation between the ending time point and the group;
and revoking the target group corresponding to the target group identification.
7. The method according to claim 1, wherein the feature information includes a task execution object and a setting operation, and the calculating a reference value of the group based on the feature information includes:
and counting the number of the task execution objects.
8. The method according to claim 7, wherein the preset variation value is an updated count value, and the obtaining the preset variation value comprises:
setting a count value for the group, and carrying out initialization operation on the count value;
and updating the count value when receiving a finishing prompt message of finishing the setting operation of the group execution object.
9. The method according to claim 8, wherein the preset condition is that the number of the task execution objects is greater than the updated count value, and if the magnitude relationship between the reference value and the preset variation value satisfies the preset condition, the step of returning to obtain the preset variation value comprises:
if the number of the task execution objects is larger than the updated count value, returning to execute the step of updating the count value when receiving a finishing prompt message of finishing the setting operation of the group execution object;
if the magnitude relation between the reference value and the preset variation value does not meet the preset condition, withdrawing the group, including:
and if the number of the task execution objects is less than or equal to the updated count value, withdrawing the group.
10. The method of claim 9, wherein prior to counting the number of task execution objects, further comprising:
creating a task for the group based on the task execution object and the setting operation;
after the revoking the group, further comprising:
and sending the result message and the group revocation message of the task to a terminal so that the task execution object receives the result message and the group revocation notification of the task.
11. The method of claim 5, wherein obtaining the group further comprises, after the time period of obtaining the group:
and when the time length is received, calculating to obtain an update ending time point by taking the first time point as a starting point and the time length as a duration so as to update the ending time point.
12. The method of claim 1, wherein before obtaining the group feature information, the method further comprises:
and sending a prompt message to the group, wherein the prompt message is used for indicating that the group is a temporary group.
13. A group withdrawal apparatus, comprising:
the first acquisition module is used for acquiring the characteristic information of the group, wherein the characteristic information carries information related to the group;
a calculating module, configured to calculate a reference value of the group based on the feature information, where the reference value is used to determine a counting threshold of a group revocation condition;
a second obtaining module, configured to obtain a preset variation value, where the preset variation value is a count value used to determine a group revocation condition;
the return module is used for returning to the step of obtaining the preset change value if the size relation between the reference value and the preset change value meets the preset condition;
and the canceling module is used for canceling the group if the size relation between the reference value and the preset change value does not meet a preset condition.
14. An electronic device comprising a memory and a processor; the memory stores an application program, and the processor is configured to run the application program in the memory to perform the operations of the group revocation method according to any one of claims 1 to 12.
15. A storage medium storing a computer program adapted to be loaded by a processor for performing the steps of the group revocation method of any of claims 1 to 12.
CN202010017163.6A 2020-01-08 2020-01-08 Group revocation method and device, electronic equipment and storage medium Pending CN113098754A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010017163.6A CN113098754A (en) 2020-01-08 2020-01-08 Group revocation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010017163.6A CN113098754A (en) 2020-01-08 2020-01-08 Group revocation method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113098754A true CN113098754A (en) 2021-07-09

Family

ID=76663936

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010017163.6A Pending CN113098754A (en) 2020-01-08 2020-01-08 Group revocation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113098754A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114401160A (en) * 2022-01-19 2022-04-26 腾讯科技(深圳)有限公司 Data processing method, device, server, terminal and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120009915A1 (en) * 2010-07-08 2012-01-12 Qualcomm Incorporated Group communication sessions in a wireless communications system
CN104902445A (en) * 2015-05-15 2015-09-09 四川大学 Method and system for improving voice quality of cluster edge user
CN105610916A (en) * 2015-12-22 2016-05-25 联想(北京)有限公司 Information processing method, server and communication system
CN106358065A (en) * 2016-08-26 2017-01-25 乐视控股(北京)有限公司 Multimedia information processing method and system
CN106453066A (en) * 2016-12-09 2017-02-22 腾讯科技(深圳)有限公司 Group session processing method and system, terminal and server
CN107317690A (en) * 2017-07-28 2017-11-03 努比亚技术有限公司 Group's processing method, mobile terminal and computer-readable storage medium
CN107580304A (en) * 2017-07-27 2018-01-12 努比亚技术有限公司 Method and apparatus is dismissed by a kind of group based on application program
CN108667780A (en) * 2017-03-31 2018-10-16 华为技术有限公司 A kind of identity authentication method, system and server and terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120009915A1 (en) * 2010-07-08 2012-01-12 Qualcomm Incorporated Group communication sessions in a wireless communications system
CN104902445A (en) * 2015-05-15 2015-09-09 四川大学 Method and system for improving voice quality of cluster edge user
CN105610916A (en) * 2015-12-22 2016-05-25 联想(北京)有限公司 Information processing method, server and communication system
CN106358065A (en) * 2016-08-26 2017-01-25 乐视控股(北京)有限公司 Multimedia information processing method and system
CN106453066A (en) * 2016-12-09 2017-02-22 腾讯科技(深圳)有限公司 Group session processing method and system, terminal and server
CN108667780A (en) * 2017-03-31 2018-10-16 华为技术有限公司 A kind of identity authentication method, system and server and terminal
CN107580304A (en) * 2017-07-27 2018-01-12 努比亚技术有限公司 Method and apparatus is dismissed by a kind of group based on application program
CN107317690A (en) * 2017-07-28 2017-11-03 努比亚技术有限公司 Group's processing method, mobile terminal and computer-readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114401160A (en) * 2022-01-19 2022-04-26 腾讯科技(深圳)有限公司 Data processing method, device, server, terminal and storage medium
CN114401160B (en) * 2022-01-19 2022-12-02 腾讯科技(深圳)有限公司 Data processing method, device, server, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN107172477B (en) Voting method and device
CN104618217B (en) Share method, terminal, server and the system of resource
CN107545404B (en) Bill reminding method and device
US20170316781A1 (en) Remote electronic service requesting and processing method, server, and terminal
CN104113782A (en) Video-based sign-in method, terminal, server and system
CN106302996B (en) Message display method and device
CN105471704B (en) A kind of method, apparatus and system for realizing more people's calls
CN105512545B (en) Access rights management method and device
JP2019533922A (en) Method, apparatus, and mobile terminal for associating notification messages
WO2015180652A1 (en) Method for acquiring interactive information, terminal, server and system
CN105554522A (en) Method for playing audio in group, server and terminal
CN111444425B (en) Information pushing method, electronic equipment and medium
CN108809805B (en) Information interaction method and system and public account client
CN108804244A (en) Data transmission method for uplink, device and storage medium
CN106294087B (en) Statistical method and device for operation frequency of business execution operation
CN106502833A (en) Data back up method and device
CN109828844A (en) Processing method, mobile terminal and the storage medium of application program
CN106682189B (en) File name display method and device
CN108306856A (en) A kind of interface merging method, client, server and computer readable storage medium
CN109918015B (en) Terminal response method, terminal and computer readable storage medium
CN109918348B (en) Cleaning method, terminal and computer readable storage medium for application browsing record
CN113098754A (en) Group revocation method and device, electronic equipment and storage medium
CN106708501A (en) Activity monitoring method and device
CN109728918B (en) Virtual article transmission method, virtual article reception method, device, and storage medium
CN111144845B (en) Mobile terminal meeting reminding method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40048318

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination