CN112967145B - Group information generation method and device, electronic equipment and storage medium - Google Patents
Group information generation method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN112967145B CN112967145B CN202110065078.1A CN202110065078A CN112967145B CN 112967145 B CN112967145 B CN 112967145B CN 202110065078 A CN202110065078 A CN 202110065078A CN 112967145 B CN112967145 B CN 112967145B
- Authority
- CN
- China
- Prior art keywords
- group
- preset
- threshold
- population
- entering
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 65
- 238000003860 storage Methods 0.000 title claims abstract description 51
- 230000004044 response Effects 0.000 claims abstract description 33
- 238000012423 maintenance Methods 0.000 claims description 67
- 238000004364 calculation method Methods 0.000 claims description 16
- 238000004590 computer program Methods 0.000 claims description 7
- 230000000977 initiatory effect Effects 0.000 claims description 3
- 230000005540 biological transmission Effects 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 10
- 230000008569 process Effects 0.000 description 7
- 230000003068 static effect Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 3
- 230000006978 adaptation Effects 0.000 description 2
- 238000004140 cleaning Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000005304 joining Methods 0.000 description 2
- 230000000737 periodic effect Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000007792 addition Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000002349 favourable effect Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/01—Social networking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/3331—Query processing
- G06F16/334—Query execution
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Primary Health Care (AREA)
- Strategic Management (AREA)
- Economics (AREA)
- General Health & Medical Sciences (AREA)
- Human Resources & Organizations (AREA)
- Marketing (AREA)
- Computing Systems (AREA)
- Health & Medical Sciences (AREA)
- Tourism & Hospitality (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The disclosure relates to a group information generation method, a group information generation device, an electronic device and a storage medium, wherein the group information generation method comprises the following steps: receiving a group entering information acquisition request aiming at a group entrance sent by a client, wherein the group entrance is associated with a plurality of preset groups; acquiring the population number of each preset group in a plurality of preset groups from a designated storage space in response to a group entering information acquisition request; according to the comparison condition of the population of each preset group and a first population threshold value, determining a candidate preset group in a plurality of preset groups, wherein the population of the candidate preset group does not exceed the first population threshold value, and the first population threshold value is smaller than the upper limit value of the population; determining a target preset group in the candidate preset groups; generating group entering information according to the group entering link information of the target preset group, and returning the group entering information to the client. The method and the device avoid the situation that the user cannot timely join in online group chat caused by providing the group two-dimension code with the full group number, and improve group entering efficiency and user experience.
Description
Technical Field
The disclosure relates to the field of computer technology, and in particular, to a method and device for generating group entering information, electronic equipment and a storage medium.
Background
With the development of internet technology, online group chat has become a common information interaction mode. In the process of using online group chat to cultivate communities, an important part is to increase the number of group chat people to enrich the communities. At present, a new user is invited to join a group in a mode of using a static group two-dimensional code or a group two-dimensional code which can be changed, wherein the group two-dimensional code can avoid the problems of expiration of the group two-dimensional code or full group number represented by the group two-dimensional code and the like caused by using the static group two-dimensional code.
However, in the related art, in the process of inviting the user to join the group by using the group live code, a situation that the group two-dimensional code with full group number is provided for the client side may occur, so that the user cannot join the online group chat in time, and the group joining efficiency and the user experience are reduced.
Disclosure of Invention
The disclosure provides a method, a device, an electronic device and a storage medium for generating group entering information, which are used for at least solving the problem of low group entering efficiency caused by providing a group two-dimensional code with full group number in the related art. The technical scheme of the present disclosure is as follows:
according to a first aspect of an embodiment of the present disclosure, there is provided a group entering information generating method, including:
Receiving a group entering information acquisition request sent by a client; the group entering information acquisition request is generated by the client in response to a triggering operation aiming at a group entry, and the group entry is associated with a plurality of preset groups;
responding to the group entering information acquisition request, and acquiring the number of group persons in each preset group in the plurality of preset groups from a designated storage space;
determining candidate preset groups in the preset groups according to the comparison condition of the number of the groups of each preset group and a first threshold of the number of the groups of the preset groups; the number of people in the candidate preset group does not exceed the first threshold, and the first threshold is smaller than the upper limit value of the number of people in the candidate preset group;
determining a target preset group in the candidate preset groups;
generating group entering information according to the group entering link information of the target preset group, and returning the group entering information to the client so that the client can display the group entering information.
In an exemplary embodiment, the determining the candidate preset group of the plurality of preset groups according to the comparison of the population number of each preset group with the first population threshold value includes:
acquiring a first person number threshold;
Obtaining a first comparison result according to the comparison condition of the population number of each preset group in the plurality of preset groups and the first population threshold;
if a preset group with the number of people not exceeding the first threshold is present in the first comparison result, the preset group with the number of people not exceeding the first threshold is used as the candidate preset group;
if no preset group with the group number not exceeding the first person number threshold exists in the first comparison result, updating the first person number threshold according to a preset threshold increasing rule;
and determining candidate preset groups in the preset groups according to the updated first person number threshold.
In an exemplary embodiment, before determining the candidate preset group of the plurality of preset groups according to the updated first person count threshold, the method further includes:
determining a first difference between the upper population limit and the updated first population threshold;
judging whether the first difference value is smaller than a preset difference value or not;
and if the first difference value is not smaller than the preset difference value, executing the step of determining the candidate preset group in the plurality of preset groups according to the updated first person number threshold value.
In an exemplary embodiment, the method further comprises:
if the first difference value is smaller than the preset difference value, sending a creation request for creating a new group to a group maintenance server, so that the group maintenance server creates a new preset group according to the creation request, and returning the current group number of the new preset group;
taking the new preset group as the candidate preset group;
and storing the new preset group into the designated storage space according to the current population number of the new preset group.
In an exemplary embodiment, the updating the first person count threshold according to a preset threshold increase rule includes:
calculating the sum of the first threshold and the upper limit value of the population number;
and updating the first person number threshold according to the intermediate value of the sum.
In an exemplary embodiment, before the acquiring, in response to the group entering information acquiring request, the population number of each preset group of the plurality of preset groups from the specified storage space, the method further includes:
a first group information acquisition request is sent to a group maintenance server according to a preset time interval, so that the group maintenance server determines the current group number of each preset group in the plurality of preset groups according to the first group information acquisition request;
Receiving the current group number of each preset group in the plurality of preset groups returned by the group maintenance server;
updating the population number corresponding to each preset group in the designated storage space to the current population number of the corresponding preset group in the preset groups.
In an exemplary embodiment, the determining the target preset group of the candidate preset groups includes:
according to the number of the group population of the candidate preset group, the candidate preset group is arranged in a descending order;
determining a first number of candidate preset groups ranked first;
and selecting a target preset group from the first number of candidate preset groups.
In an exemplary embodiment, before the determining the first number of candidate preset groups ranked first, the method further comprises:
acquiring the request times of the group information acquisition requests in unit time;
calculating the product of the request times and the preset time interval;
calculating a second difference between the upper limit of the population number and the first threshold of the population number;
the first number is determined from the product and the second difference.
In an exemplary embodiment, the generating the group entering information according to the group entering link information of the target preset group includes:
Sending a second group information acquisition request of group-entering link information aiming at the target preset group to a group maintenance server;
receiving a group name and group entering link information of the target preset group returned by the group maintenance server in response to the second group information acquisition request;
and generating group entering information according to the group name and the group entering link information of the target preset group.
In an exemplary embodiment, the receiving the group name and the group-in link information of the target preset group returned by the group maintenance server in response to the second group information acquisition request includes:
and receiving a group name and a group entering two-dimensional code returned by the group maintenance server in response to the second group information acquisition request, wherein the group entering two-dimensional code carries group entering link information of the target preset group.
According to a second aspect of the embodiments of the present disclosure, there is provided a group entering information generating apparatus, including:
a first receiving unit configured to perform receiving a group entering information acquisition request sent by a client; the group entering information acquisition request is generated by the client in response to a triggering operation aiming at a group entry, and the group entry is associated with a plurality of preset groups;
A first acquisition unit configured to perform acquisition of a population number of each of the plurality of preset groups from a specified storage space in response to the group entry information acquisition request;
a candidate group determination unit configured to determine a candidate preset group of the plurality of preset groups according to a comparison of the number of groups of each preset group with a first threshold of people; the number of people in the candidate preset group does not exceed the first threshold, and the first threshold is smaller than the upper limit value of the number of people in the candidate preset group;
a target group determination unit configured to perform determination of a target preset group among the candidate preset groups;
and the group entering information generating unit is configured to execute group entering information generation according to the group entering link information of the target preset group, and return the group entering information to the client so that the client can display the group entering information.
In an exemplary embodiment, the candidate group determination unit includes:
a second acquisition unit configured to perform acquisition of the first person number threshold;
the comparison unit is configured to execute the comparison situation of the population number of each preset group in the plurality of preset groups and the first population threshold value to obtain a first comparison result;
A first determination unit configured to perform, when a preset group whose population number does not exceed the first population threshold exists in the first comparison result, a preset group whose population number does not exceed the first population threshold as the candidate preset group;
an updating unit configured to perform updating of the first population threshold according to a preset threshold increasing rule when a preset group in which the population number does not exceed the first population threshold does not exist in the first comparison result;
and a second determining unit configured to determine a candidate preset group from the plurality of preset groups according to the updated first person count threshold.
In an exemplary embodiment, the candidate group determination unit further includes:
a first difference determining unit configured to perform determining a first difference between the group number upper limit value and the updated first number of persons threshold value;
a first judging unit configured to perform judgment as to whether the first difference is smaller than a preset difference;
and the first execution unit is configured to execute the step of determining the candidate preset groups in the plurality of preset groups according to the updated first person number threshold value when the first difference value is not smaller than the preset difference value.
In an exemplary embodiment, the candidate group determination unit further includes:
the initiation creating unit is configured to send a creation request for creating a new group to the group maintenance server when the first difference value is smaller than the preset difference value, so that the group maintenance server creates a new preset group according to the creation request and returns the current population number of the new preset group;
a third determining unit configured to perform taking the new preset group as the candidate preset group;
and a first storage unit configured to perform storing the new preset group to the designated storage space according to the current population number of the new preset group.
In an exemplary embodiment, the updating unit includes:
a first calculation unit configured to perform calculation of a sum of the first threshold of people and the upper limit value of the population number;
and a fourth determining unit configured to perform updating of the first person count threshold according to an intermediate value of the sum value.
In an exemplary embodiment, the apparatus further comprises:
a first transmitting unit configured to perform transmitting a first group information acquisition request to a group maintenance server at a preset time interval, so that the group maintenance server determines a current group population of each preset group of the plurality of preset groups according to the first group information acquisition request;
The second receiving unit is configured to receive the current group number of each preset group in the plurality of preset groups returned by the group maintenance server;
the updating unit is configured to update the population number corresponding to each preset group in the designated storage space to the current population number of the corresponding preset group in the preset groups.
In an exemplary embodiment, the target group determining unit includes:
a ranking unit configured to perform a descending ranking of the candidate preset groups according to the population numbers of the candidate preset groups;
a fifth determining unit configured to perform determining a first number of candidate preset groups ordered first;
a first selection unit configured to perform a selection of a target preset group from the first number of candidate preset groups.
In an exemplary embodiment, the target group determining unit further includes:
a third acquisition unit configured to execute a request number of times of acquiring the group information acquisition request within a unit time;
a second calculation unit configured to perform calculation of a product of the number of requests and the preset time interval;
A third calculation unit configured to perform calculation of a second difference value of the group number upper limit value and the first number threshold value;
a sixth determining unit configured to perform determining the first number according to the product and the second difference.
In an exemplary embodiment, the group entering information generating unit includes:
a second transmission unit configured to perform a second group information acquisition request for transmitting group-entering link information for the target preset group to a group maintenance server;
a third receiving unit configured to perform receiving a group name and group-entering link information of the target preset group returned by the group maintenance server in response to the second group information acquisition request;
and the generation subunit is configured to execute group name and group entering link information according to the target preset group and generate the group entering information.
In an exemplary embodiment, the third receiving unit is specifically configured to perform receiving a group name and a group entering two-dimensional code returned by the group maintenance server in response to the second group information acquisition request, where the group entering two-dimensional code carries group entering link information of the target preset group.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method for generating group entry information according to any of the above embodiments.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the group entry information generation method according to any one of the above embodiments.
According to a fifth aspect of the disclosed embodiments, there is provided a computer program product comprising a computer program/instruction which, when executed by a processor, implements the group entry information generation method provided in any of the above-described embodiments.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
after the group population of each preset group in a plurality of preset groups is acquired from a designated storage space in response to a group-entering information acquisition request through a first population threshold value smaller than the upper limit value of the group population, a candidate preset group with the group population not exceeding the first population threshold value is determined according to the comparison condition of the group population of each preset group and the first population threshold value, then a target preset group in the candidate preset group is determined, group-entering information is generated according to group-entering link information of the target preset group, and the group-entering information is returned to a client, so that the condition that the group population is not full due to the fact that a user cannot timely join in online group chat caused by providing a group two-dimension code with full group population is avoided, and the group-entering efficiency and user experience are improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
FIG. 1 is an application environment diagram illustrating a method of generating group entry information according to an exemplary embodiment;
FIG. 2 is a flowchart illustrating a method of generating group entry information, according to an example embodiment;
FIG. 3 is a flow diagram illustrating another method of generating group entry information according to an example embodiment;
FIG. 4a is a schematic flow diagram illustrating an alternative process for determining candidate preset groups of the plurality of preset groups based on a comparison of the population of each preset group to a first population threshold, according to an exemplary embodiment;
FIG. 4b is a flow chart illustrating an alternative method for determining candidate preset groups of the plurality of preset groups based on a comparison of the population of each preset group to a first population threshold, according to an exemplary embodiment;
FIG. 5a is a schematic flow chart illustrating an alternative process for determining target preset groups among candidate preset groups according to an exemplary embodiment;
FIG. 5b is a schematic flow chart illustrating another alternative method of determining target preset groups of candidate preset groups according to an exemplary embodiment;
FIG. 6 is a flow diagram illustrating another method of generating group entry information according to an example embodiment;
fig. 7 is a block diagram of a group entry information generating apparatus according to an exemplary embodiment;
fig. 8 is a block diagram of an electronic device, according to an example embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
In the related art, in the process of inviting users to join a group by using a group live code, a fixed entry two-dimensional code is provided, the group two-dimensional code is displayed after the user scans the entry two-dimensional code, the displayed group two-dimensional code is provided according to the number of times of scanning, and the group two-dimensional code is switched to the next group two-dimensional code after the number of times of scanning reaches the upper limit or is randomly provided for each time of scanning, so that the variable group two-dimensional code is provided for the user. However, on the one hand, because the group adding modes are quite various, for example, the group chat can be added by scanning the group two-dimension code, and the group chat can also be added by directly inviting, so that the actual group number of the group cannot be counted by only recording the times of scanning the group two-dimension code, the situation that the group two-dimension code is full is probably caused by the difference between the counted times of scanning the group two-dimension code and the actual group number, further, the user cannot timely add the group chat, and the group entering efficiency and the user experience are reduced. On the other hand, after the user scans the entrance two-dimension code, the displayed group two-dimension code is likely to be stored for other users to scan, so that some users join the group chat by scanning the similar static two-dimension code, and therefore if one group two-dimension code is randomly provided each time, under the above scene, the situation that some users cannot join the group two-dimension code because the number of groups is full when the group two-dimension code shared by other users is scanned may occur.
Based on this, the embodiment of the disclosure provides a method for generating group entering information, in which a server determines, through a first threshold of the number of people smaller than an upper limit of the number of people in a group, after obtaining the number of people in each preset group from a designated storage space in response to a group entering information obtaining request, a candidate preset group in which the number of people in the group does not exceed the first threshold of people according to a comparison condition of the number of people in each preset group and the first threshold of people, further determines a target preset group in the candidate preset group, generates group entering information according to group entering link information of the target preset group, and returns the group entering information to a client, so that a group in which the number of people in the group is not full is corresponding to group entering information provided to the client in a group activity code using process is ensured, a situation that a user cannot timely join in online group chat caused by providing a group two-dimensional code in which the number of people in the group is full is avoided, and thus the group entering efficiency and user experience are improved.
Referring to fig. 1, an application environment diagram of a method for generating group entering information according to an exemplary embodiment is shown, where the application environment may include a client 110, a group entering server 120, and a group maintenance server 130.
The client 110 may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, etc. The client 110 may communicate with the group entry server 120 and the group maintenance server 130 connection via a wired or wireless network.
The group entry server 120 and the group maintenance server 130 may communicate via a wired or wireless network connection. In the embodiment of the disclosure, the server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, basic cloud computing services such as big data and artificial intelligent platforms, and the like.
Fig. 2 is a flowchart illustrating a method for generating group entry information according to an exemplary embodiment, and as shown in fig. 2, the method for generating group entry information is applied to the group entry server shown in fig. 1, and includes the following steps.
In step S210, a group entry information acquisition request transmitted by the client is received.
The group entry information acquisition request is generated by the client in response to a triggering operation for a group entry, and the group entry is associated with a plurality of preset groups.
Specifically, the presentation form of the group portal may be a two-dimensional code carrying a portal link, the two-dimensional code carrying the portal link may be referred to as a portal two-dimensional code, and the client may acquire the portal two-dimensional code directly from the group maintenance server, or may also scan the portal two-dimensional code displayed by other clients, or may also receive the portal two-dimensional code sent by other clients. Taking a specific application scenario as an example, the entry two-dimensional code may be a two-dimensional code returned after the user pays attention to a certain applet through WeChat for joining in group chat.
The triggering operation for the group entry may be a clicking operation for the group entry by a user, or a scanning operation or a long-press operation for the entry two-dimensional code. When the group entry is triggered, the client may generate a group entry information acquisition request in response to the triggering operation, where the group entry information acquisition request may carry an entry identifier of the group entry, where the entry identifier is used to uniquely identify one group entry, so that the group entry server may find, through the entry identifier, a plurality of preset groups associated with the group entry.
It should be noted that, a plurality of preset groups associated with the group entry are created in advance by the group creator through the group maintenance server, and a group name, group entry link information, and a group population upper limit value are set for each preset group when the plurality of preset groups are created. The upper limit value of the population number represents the upper limit of the population number allowed to be accommodated by a group, namely when the actual population number of the group reaches the upper limit value of the population number, the group is full, and new members cannot be allowed to enter the group any more; in practical applications, the upper limit value of the number of the group persons in the preset groups associated with the group entrance is generally the same, for example, 200 persons. The group entering link information is used for the new member to join the corresponding group, and when the new member triggers the group entering link information, the new member can join the corresponding group and then enter the group chat. In practical application, the group entering link information can be presented in the form of a group entering two-dimensional code carrying the group entering link information, and a new member can enter a corresponding group by scanning or long-pressing the group entering two-dimensional code.
In step S220, in response to the group entering information obtaining request, the population number of each of the plurality of preset groups is obtained from the specified storage space.
In practical application, the real-time group population information of each preset group is recorded by the group maintenance server, so that in order to enable the group entering server to acquire the relatively real-time group population information of each preset group and not frequently send a request to the group maintenance server, in the embodiment of the disclosure, the group population information of all preset groups is locally maintained at the group entering server, the real-time group population of all preset groups is periodically requested to the group maintenance server, and the group population of each preset group maintained locally is updated according to the real-time group population, so that the group population which is not full is returned to the client as much as possible, the response speed to the group entering information acquisition request is improved while the group entering efficiency is improved, and the user experience is further improved.
In view of the relatively large resource overhead caused by the periodic maintenance update if the detailed information of each preset group is maintained locally at the group entering server, only the group ID and the group number of each preset group can be maintained locally at the group entering server, that is, the correspondence between the group ID and the group number of the preset group is stored in the designated storage space.
Based on this, as shown in the flow chart of another group entering information generating method provided in fig. 3, before step S220, the method may further include:
in step S310, a first group information acquisition request is transmitted to a group maintenance server at preset time intervals.
The first group information obtaining request is used for requesting the actual group number of each preset group, namely the current group number, in the plurality of preset groups. After receiving the first group information acquisition request, the group maintenance server determines the current group population of each preset group in the plurality of preset groups recorded by the group maintenance server according to the first group information acquisition request, and returns the current group population of each preset group to the group entering server.
The preset time interval can be set according to actual needs, and generally, the shorter the preset time interval is, the closer the group number of each preset group locally maintained by the group entering server is to the actual group number, so that the group entering efficiency is improved; conversely, the longer the preset time interval is set, the larger the difference between the number of group persons in each preset group locally maintained by the group entering server and the actual number of group persons is, and the request frequency of the group maintaining server is reduced, but the improvement of the group entering efficiency is not facilitated. For example, the preset time interval may be set to 1 minute.
In step S320, a current population number of each preset group of the plurality of preset groups returned by the group maintenance server is received.
In step S330, the population number corresponding to each preset group in the designated storage space is updated to the current population number of the corresponding preset group in the preset groups.
In the embodiment of the disclosure, the designated storage space may be a local storage space of the group entering server, where the designated storage space is used to store group population information of all preset groups associated with the group entry, and may update the group population information of each preset group according to the current group population of each preset group returned by the group maintenance server.
According to the embodiment of the disclosure, the group entering server locally maintains the group number information of all preset groups, and periodically requests the real-time group number of all preset groups to the group maintaining server, and updates the group number of each preset group locally maintained according to the real-time group number, so that the group entering server can acquire the relatively real-time group number information of each preset group and send the request to the group maintaining server infrequently, the group entering efficiency is improved, and meanwhile, the response speed to the group entering information acquisition request is improved, and the user experience is further improved.
In step S230, a candidate preset group of the plurality of preset groups is determined according to the comparison of the population number of each preset group and the first population threshold.
The number of people in the candidate preset group does not exceed the first threshold, and the first threshold is smaller than the upper limit value of the number of people in the candidate preset group. The first threshold may be a default initial threshold, or may be a threshold obtained by updating the initial threshold, and the initial threshold may be half of the upper limit value of the population, for example, the upper limit value of the population is 200, and the initial threshold may be 100.
In order to return the group with the less than full group number to the client as much as possible, and improve the group entering efficiency, as a possible implementation manner, the step S230 may include the following steps of:
in step S410, a first person count threshold is acquired.
The initial first threshold is a default initial threshold that may be one half of the upper group population limit, e.g., 200, and then 100.
In step S420, a first comparison result is obtained according to the comparison situation of the population number of each preset group in the plurality of preset groups and the first population threshold.
Specifically, the group entering server compares the number of the group persons in each preset group in the plurality of preset groups with a first threshold of the number of the group persons respectively, so that a comparison result corresponding to each preset group is obtained, wherein the comparison result comprises that the number of the group persons exceeds the first threshold of the number of the group persons or the number of the group persons does not exceed the first threshold of the number of the group persons.
In step S430, it is determined whether a preset group whose group number does not exceed the first person number threshold exists in the first comparison result, and if so, step S440 is performed; if not, go to step S450 to step S460.
In step S440, a preset group whose population number does not exceed the first population threshold is used as a candidate preset group.
It will be appreciated that the number of candidate preset groups may be one or more.
In step S450, the first person count threshold is updated according to a preset threshold increase rule.
Specifically, if no preset group whose group number does not exceed the first person number threshold exists in the first comparison result, it indicates that the parameter for screening, that is, the first person number threshold is too small, and at this time, the first person number threshold may be increased appropriately.
In an embodiment of the present disclosure, in order to enable the population number of each preset group to increase uniformly and smoothly, the first population threshold may be updated by using a preset threshold increase rule, where the preset threshold increase rule may be used to implement a gradient increase of the first population threshold, and in a specific implementation, the preset threshold increase rule may be in a binary manner, that is, the step S450 may include the following steps when implemented:
(1) And calculating the sum of the first people threshold and the upper limit value of the population number.
(2) And updating the first person threshold according to the intermediate value of the sum.
For example, assuming that the upper limit of the population number is 200 and the current first threshold is 100, the sum of the two is 300, and the median of 300 is 150, the first threshold may be updated to be 150. The next time the first person threshold is updated, the sum of the two is 150, the median value of 350 is 175, and the first person threshold can be updated to 175. In practical applications, the intermediate value obtained in the step (2) may not be an integer, such as (200+175)/2=187.5, and the first person number threshold should be an integer, where the intermediate value may be rounded to update the first person number threshold, that is, if the intermediate value is 187.5, the first person number threshold is updated to 187.
Based on this, the preset threshold increase rule can be expressed as the following formula when computer implemented: threshold_i+1= (threshold_i+max_threshold+1)/2, where threshold_i represents the first threshold of people before update, max_threshold represents the upper limit of the population number, and threshold_i+1 represents the first threshold of people after update.
In step S460, a candidate preset group among the plurality of preset groups is determined according to the updated first person count threshold.
Specifically, steps S420 to S430 may be repeatedly performed according to the updated first person count threshold.
In practical application, after the preset threshold value increasing rule is used for multiple times, the first threshold value of the number of people is continuously close to the upper limit value of the number of people, so that the probability that the group number of the selected candidate preset group is close to the upper limit value of the number of people, that is, the candidate preset group is a full group is larger and larger, at this time, in order to avoid returning the group with the full group number to the client, as a possible implementation manner, before determining the candidate preset group in the plurality of preset groups according to the updated first threshold value of the number of people, the method may further include the following steps:
in step S470, a first difference between the group number upper limit value and the updated first person number threshold value is determined.
In step S480, it is determined whether the first difference is smaller than a preset difference.
The preset difference value can be set according to actual needs, and the larger the preset difference value is, the more favorable the client is to avoid returning the group with the full group number; conversely, the smaller the preset difference setting, the greater the risk of returning to the client a group with a full population. For example, the preset difference may be set to 20.
If the first difference is not less than the preset difference, that is, the first difference is greater than or equal to the preset difference, it indicates that the updated first people threshold is further away from the upper limit of the population number, and the step S460 may be executed.
If the first difference is smaller than the preset difference, it indicates that the updated first people threshold is relatively close to the upper group people limit, and step S490 to step S4120 may be considered.
In step S490, a creation request for creating a new group is sent to the group maintenance server, so that the group maintenance server creates a new preset group according to the creation request, and returns the current group number of the new preset group.
In step S4110, the new preset group is used as the candidate preset group.
In step S4120, the new preset group is stored in the designated storage space according to the current population number of the new preset group.
Specifically, when the first threshold is updated by adopting a preset threshold increasing rule and the first difference value between the updated first threshold and the upper limit value of the population number is smaller than the preset difference value, the new preset group is initiated to be created and used as a candidate preset group, so that the group with the full population number can be effectively prevented from being returned to the client, and the group entering efficiency and the user experience are improved. In other words, in the embodiment of the disclosure, the situation that the number of people in the group is full can be timely found by monitoring the updated first threshold value of the number of people, and further, measures of newly-built groups can be timely taken, so that the group entering efficiency is greatly improved.
It should be noted that, the updating method of the first person number threshold is not limited to the above-mentioned preset threshold increasing rule, and other gradient increasing methods may be adopted. In addition, for more complex scenarios, such as those requiring periodic cleaning of a portion of the group members, a reasonable first population threshold may be reset after cleaning the group members.
In step S240, a target preset group of the candidate preset groups is determined.
As a possible implementation manner, if the candidate preset group includes only one preset group, the candidate preset group may be directly used as the target preset group, and if the number of the candidate preset groups exceeds one, one candidate preset group may be randomly selected as the target preset group.
In order to enable the user of the client to join the current active group, as another possible implementation, the step S240 may include the following steps, as shown in fig. 5a, when determining the target preset group of the candidate preset groups:
in step S510, the candidate preset groups are arranged in descending order according to the population numbers of the candidate preset groups.
I.e. the candidate preset groups are arranged according to the smoothness of the number of groups from more to less.
In step S520, a first number of candidate preset groups ordered first is determined.
In step S530, a target preset group is selected from the first number of candidate preset groups.
For example, assume that there are 200 preset groups, and the number of groups in each preset group currently maintained locally by the group server is: the number of 1# preset groups is 1 person, the number of 2# preset groups is 2 person, and so on, the number of 200# preset groups is 200 person, and candidate preset groups with the number of groups not exceeding 100 are selected by the method in the embodiment of the present disclosure: the preset group 1# is preset, the preset group 2# is … …, the preset group 99# is preset, and the preset group 100# is preset, so that the candidate preset groups are arranged according to the descending order of the number of groups: 100# preset group, 99# preset group, … …,2# preset group, 1# preset group; assuming that the first number is 10, one of the preset groups 100# to 91# can be randomly selected as the target preset group, so that the user of the client can be ensured to enter a group with a relatively large number of groups, namely, a relatively active group.
To further ensure that the user of the client is able to join the active group, as a possible implementation, the first number may be effectively defined according to the number of requests per unit time, i.e. QPS (Queries Per Second), as shown in fig. 5b, and before determining the first number of candidate preset groups ordered first, the method may further include:
in step S540, the number of requests of the group information acquisition request in a unit time is acquired.
Specifically, the group access server may record the number of requests of the group access information acquisition request received in a unit time, so as to determine that the first number is a value of the number of requests to directly acquire the record when it is required.
In step S550, a product of the number of requests and the preset time interval is calculated.
The preset time interval is the time interval mentioned in the foregoing description of the embodiment of the disclosure for sending the first group information obtaining request to the group maintenance server, that is, the time interval for pulling the current group number of each preset group to the group maintenance server. The product characterizes how many people are added to the preset group between the two pulling group number information.
In step S560, a second difference between the group number upper limit value and the first number threshold is calculated.
In step S570, the first number is determined based on the product and the second difference.
Specifically, the ratio of the product to the second difference may be calculated first, and the first number is an integer greater than the ratio, that is, the first number may be calculated using the following formula:
wherein n represents a first number; n (upper group population limit-first population threshold) characterizes the least number of additions that can be carried between pulling group population information.
The embodiment of the disclosure determines the first number by combining the QPS and the formula, and can enlarge the value of the first number n when the QPS is relatively large and reduce the value of the first number n when the QPS is relatively small, so that the group entering information of the group which is not full in number of groups and is relatively active is ensured to be returned to the client.
In step S250, group entering information is generated according to the group entering link information of the target preset group, and the group entering information is returned to the client, so that the client displays the group entering information.
As a possible implementation manner, since only the correspondence between the group ID and the group number is stored in the designated storage space local to the group entering server, the method may include the following steps when generating the group entering information according to the group entering link information of the target preset group:
(1) And sending a second group information acquisition request of the group-entering link information aiming at the target preset group to a group maintenance server.
The second group information acquisition request may carry a target group ID of the target preset group, and the group maintenance server may determine, after receiving the second group information acquisition request, a group name and group entry link information corresponding to the target group ID according to the second group information acquisition request, so as to return the group name and the group entry link information corresponding to the target group ID to the group entry server.
(2) And receiving the group name and the group entering link information of the target preset group returned by the group maintenance server in response to the second group information acquisition request.
(3) And generating group entering information according to the group name and the group entering link information of the target preset group.
For example, the group entering link information corresponding to each preset group in the group maintenance server may be presented in the form of a two-dimensional code, that is, the group entering server receives the group name and the group entering two-dimensional code of the target preset group returned by the group maintenance server in response to the second group information acquisition request, where the group entering two-dimensional code carries the group entering link information of the target preset group. Then the generated group entering information includes the group entering two-dimensional code and the group name.
According to the technical scheme, the group information provided to the client in the group live code using process is ensured to correspond to the group with the unsatisfied group number, so that the situation that the user cannot timely join in online group chat caused by providing the group two-dimensional code with the full group number is avoided, and meanwhile, the user of the client can join in the more active group, the group entering efficiency is improved, and the user experience is greatly improved.
Referring to fig. 6, a timing diagram illustrating another method for generating group entry information according to an exemplary embodiment is shown, and the method may include:
in step S610, the group entry server sets an initial threshold value of the first person count threshold value.
The initial threshold may be half of the upper population limit.
In step S620, the group entering server periodically transmits a first group information acquisition request to the group maintenance server.
The first group information acquisition request is used for requesting the current group number of each preset group.
In step S630, the group maintenance server returns the current group population of each preset group to the group entry server.
In step S640, the group entering server updates the group population of each preset group in the designated storage space according to the current group population of each preset group.
The group entering server updates the information of the number of group persons in each preset group in the designated storage space periodically through the steps S620 to S640.
In step S650, the client scans the entry two-dimensional code corresponding to the group entry, and sends a group information acquisition request to the group entry server.
Correspondingly, the group entering server receives a group entering information acquisition request sent by the client.
In step S660, the group entering server obtains the population number of each preset group from the specified storage space in response to the group entering information obtaining request.
In step S670, candidate preset groups whose group number does not exceed the first threshold are selected from the plurality of preset groups.
In step S680, if the number of candidate preset groups is 0, the first threshold is updated, and the above step S670 is performed again based on the updated first threshold.
In step S690, if the number of the candidate preset groups is not 0, the candidate preset groups are smoothly arranged from large to small according to the number of groups, and one target preset group is selected from the n arranged in front.
In step S6110, group entering information is generated according to the group name and the group entering two-dimensional code of the target preset group, and the group entering information is returned to the client
In step S6120, after receiving the group entering information, the client assembles a page according to the group name and the group entering two-dimensional code, and displays the page to the user.
The details of each step in the method embodiment shown in fig. 6 may be referred to the foregoing related content of the embodiment of the disclosure, which is not described herein.
Fig. 7 is a block diagram illustrating a group entry information generating apparatus according to an exemplary embodiment. Referring to fig. 7, the apparatus includes a first receiving unit 710, a first acquiring unit 720, a candidate group determining unit 730, a target group determining unit 740, and an incoming group information generating unit 750.
The first receiving unit 710 is configured to perform receiving a group entering information acquisition request sent by the client; the group entering information obtaining request is generated by the client in response to a triggering operation aiming at a group entry, and the group entry is associated with a plurality of preset groups;
the first obtaining unit 720 is configured to obtain the population number of each preset group from the specified storage space in response to the group entering information obtaining request;
the candidate group determining unit 730 is configured to determine a candidate preset group of the plurality of preset groups according to a comparison of the number of groups of each preset group and a first threshold; the number of people in the candidate preset group does not exceed the first threshold, and the first threshold is smaller than the upper limit value of the number of people in the candidate preset group;
The target group determining unit 740 is configured to determine a target preset group of the candidate preset groups;
the group entering information generating unit 750 is configured to generate group entering information according to the group entering link information of the target preset group, and return the group entering information to the client, so that the client can display the group entering information.
In an exemplary embodiment, the candidate group determination unit 730 may include:
a second acquisition unit configured to perform acquisition of the first person number threshold;
a comparison unit configured to perform a comparison of the population number of each preset group with the first population threshold value according to the preset groups, and obtain a first comparison result;
a first determining unit configured to execute, when a preset group whose population number does not exceed the first population threshold exists in the first comparison result, a preset group whose population number does not exceed the first population threshold as the candidate preset group;
an updating unit configured to update the first population threshold value according to a preset threshold value increasing rule when a preset group in which the population number does not exceed the first population threshold value does not exist in the first comparison result;
And a second determining unit configured to determine a candidate preset group from the plurality of preset groups according to the updated first person count threshold.
In an exemplary embodiment, the candidate group determination unit 730 may further include:
a first difference determining unit configured to perform determination of a first difference between the group number upper limit value and the updated first person number threshold value;
a first judging unit configured to perform judgment as to whether the first difference is smaller than a preset difference;
the first execution unit is configured to execute the step of determining a candidate preset group in the plurality of preset groups according to the updated first person number threshold when the first difference is not smaller than the preset difference.
In an exemplary embodiment, the candidate group determination unit 730 may further include:
the initiation creating unit is configured to send a creation request for creating a new group to the group maintenance server when the first difference value is smaller than the preset difference value, so that the group maintenance server creates a new preset group according to the creation request and returns the current group number of the new preset group;
A third determining unit configured to perform taking the new preset group as the candidate preset group;
and a first storage unit configured to perform current population count according to the new preset group, and store the new preset group in the specified storage space.
In an exemplary embodiment, the updating unit may include:
a first calculation unit configured to calculate a sum of the first threshold and the upper limit of the population number;
and a fourth determining unit configured to perform updating of the first person count threshold value according to the intermediate value of the sum value.
In an exemplary embodiment, the apparatus may further include:
a first transmitting unit configured to perform transmitting a first group information acquisition request to a group maintenance server at a preset time interval, so that the group maintenance server determines a current group population of each of the plurality of preset groups according to the first group information acquisition request;
the second receiving unit is configured to receive the current group number of each preset group in the plurality of preset groups returned by the group maintenance server;
and the updating unit is configured to update the population number corresponding to each preset group in the designated storage space to the current population number of the corresponding preset group in the preset groups.
In an exemplary embodiment, the target group determination unit 740 may include:
a ranking unit configured to perform descending ranking of the candidate preset groups according to the population numbers of the candidate preset groups;
a fifth determining unit configured to perform determining a first number of candidate preset groups ordered first;
a first selecting unit configured to perform selecting a target preset group from the first number of candidate preset groups.
In an exemplary embodiment, the target group determining unit 740 may further include:
a third acquisition unit configured to execute a request number of times of acquiring the group entering information acquisition request within a unit time;
a second calculation unit configured to perform calculation of a product of the number of requests and the preset time interval;
a third calculation unit configured to calculate a second difference between the group number upper limit value and the first number threshold;
a sixth determining unit configured to perform determining the first number based on the product and the second difference.
In an exemplary embodiment, the group entering information generating unit 750 may include:
a second transmitting unit configured to perform a second group information acquisition request for transmitting group entry link information for the target preset group to a group maintenance server;
A third receiving unit configured to perform receiving a group name and group-entering link information of the target preset group returned by the group maintenance server in response to the second group information acquisition request;
and the generation subunit is configured to execute group name and group entering link information according to the target preset group and generate the group entering information.
In an exemplary embodiment, the third receiving unit is specifically configured to perform receiving a group name and a group entering two-dimensional code returned by the group maintenance server in response to the second group information acquisition request, where the group entering two-dimensional code carries group entering link information of the target preset group.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
In an exemplary embodiment, there is also provided an electronic device including a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement the steps of any of the group information generation methods of the above embodiments when executing instructions stored on the memory.
The electronic device may be a terminal, a server, or a similar computing device, which is exemplified by a server, fig. 8 is a block diagram of an electronic device for generating group entering information, which electronic device 800 may vary greatly depending on configuration or performance, may include one or more central processing units (Central Processing Units, CPU) 810 (the processor 810 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 830 for storing data, one or more storage media 820 (e.g., one or more mass storage devices) for storing applications 823 or data 822, and the like. Wherein memory 830 and storage medium 820 can be transitory or persistent. The program stored on storage medium 820 may include one or more modules, each of which may include a series of instruction operations in an electronic device. Still further, the central processor 810 may be arranged to communicate with the storage medium 820 and to execute a series of instruction operations in the storage medium 820 on the electronic device 800. The electronic device 800 may also include one or more power supplies 860, one or more wired or wireless network interfaces 850, one or more input/output interfaces 840, and/or one or more operating systems 821, such as Windows ServerTM, mac OS XTM, unixTM, linuxTM, freeBSDTM, and the like.
The input-output interface 840 may be used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the electronic device 800. In one example, the input-output interface 840 includes a network adapter (Network Interface Controller, NIC) that may connect to other network devices through a base station to communicate with the internet. In an exemplary embodiment, the input-output interface 840 may be a Radio Frequency (RF) module for communicating with the internet wirelessly.
It will be appreciated by those of ordinary skill in the art that the configuration shown in fig. 8 is merely illustrative and is not intended to limit the configuration of the electronic device described above. For example, electronic device 800 may also include more or fewer components than shown in FIG. 8, or have a different configuration than shown in FIG. 8.
In an exemplary embodiment, there is also provided a computer-readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the group entry information generation method provided in any one of the above embodiments.
In an exemplary embodiment, there is also provided a computer program product comprising a computer program/instruction which, when executed by a processor, implements the group entry information generation method provided in any of the above embodiments.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (19)
1. A group entering information generating method, comprising:
receiving a group entering information acquisition request sent by a client; the group entering information acquisition request is generated by the client in response to a triggering operation aiming at a group entry, and the group entry is associated with a plurality of preset groups;
responding to the group entering information acquisition request, and acquiring the number of group persons in each preset group in the plurality of preset groups from a designated storage space;
Acquiring a first person number threshold; the first threshold is less than an upper group population limit;
if a preset group with the number of people not exceeding the first threshold of people exists, taking the preset group with the number of people not exceeding the first threshold of people as a candidate preset group; if no preset group of which the number of groups does not exceed the first threshold exists, updating the first threshold according to a preset threshold increasing rule, and determining candidate preset groups in the preset groups according to the updated first threshold; the preset threshold increasing rule is used for realizing gradient increase of the first person number threshold;
according to the number of the group population of the candidate preset group, the candidate preset group is arranged in a descending order; determining a first number of candidate preset groups ranked first; selecting a target preset group from the first number of candidate preset groups;
generating group entering information according to the group entering link information of the target preset group, and returning the group entering information to the client so that the client can display the group entering information.
2. The method of generating group entry information according to claim 1, wherein prior to determining a candidate preset group of the plurality of preset groups based on the updated first person count threshold, the method further comprises:
Determining a first difference between the upper population limit and the updated first population threshold;
judging whether the first difference value is smaller than a preset difference value or not;
and if the first difference value is not smaller than the preset difference value, executing the step of determining the candidate preset group in the plurality of preset groups according to the updated first person number threshold value.
3. The group entering information generating method according to claim 2, characterized in that the method further comprises:
if the first difference value is smaller than the preset difference value, sending a creation request for creating a new group to a group maintenance server, so that the group maintenance server creates a new preset group according to the creation request, and returning the current group number of the new preset group;
taking the new preset group as the candidate preset group;
and storing the new preset group into the designated storage space according to the current population number of the new preset group.
4. The method of generating group entry information according to claim 1, wherein updating the first person count threshold according to a preset threshold increase rule comprises:
calculating the sum of the first threshold and the upper limit value of the population number;
And updating the first person number threshold according to the intermediate value of the sum.
5. The group entering information generating method according to claim 1, wherein before the group number of each of the plurality of preset groups is acquired from a specified storage space in response to the group entering information acquisition request, the method further comprises:
a first group information acquisition request is sent to a group maintenance server according to a preset time interval, so that the group maintenance server determines the current group number of each preset group in the plurality of preset groups according to the first group information acquisition request;
receiving the current group number of each preset group in the plurality of preset groups returned by the group maintenance server;
updating the population number corresponding to each preset group in the designated storage space to the current population number of the corresponding preset group in the preset groups.
6. The method of generating group entry information according to claim 5, wherein prior to said determining a first number of candidate preset groups ordered first, the method further comprises:
acquiring the request times of the group information acquisition requests in unit time;
calculating the product of the request times and the preset time interval;
Calculating a second difference between the upper limit of the population number and the first threshold of the population number;
the first number is determined from the product and the second difference.
7. The method of claim 1, wherein the generating the group entry information according to the group entry link information of the target preset group includes:
sending a second group information acquisition request of group-entering link information aiming at the target preset group to a group maintenance server;
receiving a group name and group entering link information of the target preset group returned by the group maintenance server in response to the second group information acquisition request;
and generating group entering information according to the group name and the group entering link information of the target preset group.
8. The method of claim 7, wherein receiving the group name and the group-in link information of the target preset group returned by the group maintenance server in response to the second group information acquisition request comprises:
and receiving a group name and a group entering two-dimensional code returned by the group maintenance server in response to the second group information acquisition request, wherein the group entering two-dimensional code carries group entering link information of the target preset group.
9. A group entry information generating apparatus comprising:
a first receiving unit configured to perform receiving a group entering information acquisition request sent by a client; the group entering information acquisition request is generated by the client in response to a triggering operation aiming at a group entry, and the group entry is associated with a plurality of preset groups;
a first acquisition unit configured to perform acquisition of a population number of each of the plurality of preset groups from a specified storage space in response to the group entry information acquisition request;
a candidate group determination unit configured to perform acquisition of a first population threshold value, the first population threshold value being smaller than a population upper limit value; if a preset group with the number of people not exceeding the first threshold of people exists, taking the preset group with the number of people not exceeding the first threshold of people as a candidate preset group; if no preset group of which the number of groups does not exceed the first threshold exists, updating the first threshold according to a preset threshold increasing rule, and determining candidate preset groups in the preset groups according to the updated first threshold; the preset threshold increasing rule is used for realizing gradient increase of the first person number threshold;
A target group determination unit configured to perform a descending order of the candidate preset groups according to the population numbers of the candidate preset groups; determining a first number of candidate preset groups ranked first; selecting a target preset group from the first number of candidate preset groups;
and the group entering information generating unit is configured to execute group entering information generation according to the group entering link information of the target preset group, and return the group entering information to the client so that the client can display the group entering information.
10. The group entering information generating apparatus according to claim 9, wherein the candidate group determination unit further comprises:
a first difference determining unit configured to perform determining a first difference between the group number upper limit value and the updated first number of persons threshold value;
a first judging unit configured to perform judgment as to whether the first difference is smaller than a preset difference;
and the first execution unit is configured to execute the step of determining the candidate preset groups in the plurality of preset groups according to the updated first person number threshold value when the first difference value is not smaller than the preset difference value.
11. The group entering information generating apparatus according to claim 10, wherein the candidate group determination unit further comprises:
the initiation creating unit is configured to send a creation request for creating a new group to the group maintenance server when the first difference value is smaller than the preset difference value, so that the group maintenance server creates a new preset group according to the creation request and returns the current population number of the new preset group;
a third determining unit configured to perform taking the new preset group as the candidate preset group;
and a first storage unit configured to perform storing the new preset group to the designated storage space according to the current population number of the new preset group.
12. The group entering information generating apparatus according to claim 9, wherein the candidate group determining unit includes:
a first calculation unit configured to perform calculation of a sum of the first threshold of people and the upper limit value of the population number;
and a fourth determining unit configured to perform updating of the first person count threshold according to an intermediate value of the sum value.
13. The group entering information generating apparatus according to claim 9, wherein the apparatus further comprises:
A first transmitting unit configured to perform transmitting a first group information acquisition request to a group maintenance server at a preset time interval, so that the group maintenance server determines a current group population of each preset group of the plurality of preset groups according to the first group information acquisition request;
the second receiving unit is configured to receive the current group number of each preset group in the plurality of preset groups returned by the group maintenance server;
the updating unit is configured to update the population number corresponding to each preset group in the designated storage space to the current population number of the corresponding preset group in the preset groups.
14. The group entering information generating apparatus according to claim 13, wherein the target group determining unit further comprises:
a third acquisition unit configured to execute a request number of times of acquiring the group information acquisition request within a unit time;
a second calculation unit configured to perform calculation of a product of the number of requests and the preset time interval;
a third calculation unit configured to perform calculation of a second difference value of the group number upper limit value and the first number threshold value;
A sixth determining unit configured to perform determining the first number according to the product and the second difference.
15. The group entering information generating apparatus according to claim 9, wherein the group entering information generating unit includes:
a second transmission unit configured to perform a second group information acquisition request for transmitting group-entering link information for the target preset group to a group maintenance server;
a third receiving unit configured to perform receiving a group name and group-entering link information of the target preset group returned by the group maintenance server in response to the second group information acquisition request;
and the generation subunit is configured to execute group name and group entering link information according to the target preset group and generate the group entering information.
16. The apparatus of claim 15, wherein the third receiving unit is specifically configured to perform receiving a group name and a group two-dimensional code returned by the group maintenance server in response to the second group information acquisition request, and the group two-dimensional code carries group link information of the target preset group.
17. An electronic device, comprising:
A processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of generating group entry information of any one of claims 1 to 8.
18. A computer readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the group entry information generation method of any one of claims 1 to 8.
19. A computer program product comprising computer programs/instructions which when executed by a processor implement the method of generating group entry information of any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110065078.1A CN112967145B (en) | 2021-01-18 | 2021-01-18 | Group information generation method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110065078.1A CN112967145B (en) | 2021-01-18 | 2021-01-18 | Group information generation method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112967145A CN112967145A (en) | 2021-06-15 |
CN112967145B true CN112967145B (en) | 2024-03-26 |
Family
ID=76271596
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110065078.1A Active CN112967145B (en) | 2021-01-18 | 2021-01-18 | Group information generation method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112967145B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114442869B (en) * | 2022-02-08 | 2024-06-21 | 武汉夜莺科技有限公司 | User distribution processing method, device, electronic equipment and storage medium |
CN116132206B (en) * | 2023-01-10 | 2024-09-17 | 深圳市东博信息技术有限公司 | Dynamic allocation method, device, equipment and storage medium |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105634930A (en) * | 2016-03-01 | 2016-06-01 | 腾讯科技(深圳)有限公司 | Method and device for inviting user to join session group |
CN106506475A (en) * | 2016-10-24 | 2017-03-15 | 广州酷狗计算机科技有限公司 | Group management and device |
CN106651575A (en) * | 2016-12-30 | 2017-05-10 | 中国建设银行股份有限公司 | Data processing method and device |
CN107113590A (en) * | 2014-10-22 | 2017-08-29 | 高通股份有限公司 | Based on whether meeting for the quorum condition of peer-to-peer group optionally to trigger communication operation |
CN107181671A (en) * | 2017-05-26 | 2017-09-19 | 北京小米移动软件有限公司 | Social information treating method and apparatus |
CN109347720A (en) * | 2018-09-26 | 2019-02-15 | 上海掌门科技有限公司 | It determines group member, send the method and apparatus that the request of group is added |
CN110286854A (en) * | 2019-06-12 | 2019-09-27 | 北京达佳互联信息技术有限公司 | The method, apparatus of group members management and group's Message Processing, equipment and storage medium |
CN111224795A (en) * | 2019-11-21 | 2020-06-02 | 北京达佳互联信息技术有限公司 | Group application processing method and device, electronic equipment and storage medium |
CN111404702A (en) * | 2020-03-18 | 2020-07-10 | 腾讯科技(成都)有限公司 | Group entering method, group entering device, group management system, computer equipment and storage medium |
CN111431727A (en) * | 2020-02-19 | 2020-07-17 | 北京达佳互联信息技术有限公司 | Group display method, device, terminal, server and system |
CN112000924A (en) * | 2020-07-23 | 2020-11-27 | 广州市百果园信息技术有限公司 | Group management method and device, computer equipment and storage medium |
-
2021
- 2021-01-18 CN CN202110065078.1A patent/CN112967145B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107113590A (en) * | 2014-10-22 | 2017-08-29 | 高通股份有限公司 | Based on whether meeting for the quorum condition of peer-to-peer group optionally to trigger communication operation |
CN105634930A (en) * | 2016-03-01 | 2016-06-01 | 腾讯科技(深圳)有限公司 | Method and device for inviting user to join session group |
CN106506475A (en) * | 2016-10-24 | 2017-03-15 | 广州酷狗计算机科技有限公司 | Group management and device |
CN106651575A (en) * | 2016-12-30 | 2017-05-10 | 中国建设银行股份有限公司 | Data processing method and device |
CN107181671A (en) * | 2017-05-26 | 2017-09-19 | 北京小米移动软件有限公司 | Social information treating method and apparatus |
CN109347720A (en) * | 2018-09-26 | 2019-02-15 | 上海掌门科技有限公司 | It determines group member, send the method and apparatus that the request of group is added |
CN110286854A (en) * | 2019-06-12 | 2019-09-27 | 北京达佳互联信息技术有限公司 | The method, apparatus of group members management and group's Message Processing, equipment and storage medium |
CN111224795A (en) * | 2019-11-21 | 2020-06-02 | 北京达佳互联信息技术有限公司 | Group application processing method and device, electronic equipment and storage medium |
CN111431727A (en) * | 2020-02-19 | 2020-07-17 | 北京达佳互联信息技术有限公司 | Group display method, device, terminal, server and system |
CN111404702A (en) * | 2020-03-18 | 2020-07-10 | 腾讯科技(成都)有限公司 | Group entering method, group entering device, group management system, computer equipment and storage medium |
CN112000924A (en) * | 2020-07-23 | 2020-11-27 | 广州市百果园信息技术有限公司 | Group management method and device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112967145A (en) | 2021-06-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107784516B (en) | Advertisement putting method and device | |
CN109788020B (en) | Agent distribution method and related equipment | |
US20180211335A1 (en) | Method and apparatus for estimating user influence on social platform | |
CN112967145B (en) | Group information generation method and device, electronic equipment and storage medium | |
CN106911487B (en) | Method and device for voice chat | |
JP2017501497A (en) | Method and apparatus for pushing target information | |
CN111770355B (en) | Media server determination method, device, server and storage medium | |
CN113094521A (en) | Multimedia resource searching method, device, system, equipment and storage medium | |
CN107995013B (en) | Customer service distribution method and device | |
CN113763043B (en) | Advertisement landing page display method and device, storage medium and computer equipment | |
US20240145087A1 (en) | Systems and methods for machine learning-based predictive matching | |
CN113992460A (en) | Message sending method and device, electronic equipment and storage medium | |
JP5473100B1 (en) | Assistant management device, assistant management method, and assistant management system | |
CN112818144A (en) | Media content sharing method and device, storage medium and electronic equipment | |
CN112169312A (en) | Queuing scheduling method, device, equipment and storage medium for cloud game service | |
CN112838980A (en) | Message processing method, system, device, electronic equipment and storage medium | |
CN105516247A (en) | Information recommendation method and apparatus for communication application | |
CN114205320B (en) | Message display method and device, electronic equipment and storage medium | |
CN113473240B (en) | Data processing method and device for live broadcasting room, electronic equipment and storage medium | |
CN108306812B (en) | Data processing method and server | |
JP6118476B1 (en) | Transmitter / receiver management apparatus, transmitter / receiver management method, and transmitter / receiver management system | |
US10516673B2 (en) | User identification marking method, apparatus, and system | |
CN114741124B (en) | Style information determining method, style information determining device, electronic equipment and storage medium | |
JP5870127B2 (en) | Assistant management device, assistant management method, and assistant management system | |
CN115134405B (en) | Data processing method and device, electronic equipment and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |