CN112448825A - Session creation method, device, terminal and storage medium - Google Patents

Session creation method, device, terminal and storage medium Download PDF

Info

Publication number
CN112448825A
CN112448825A CN201910825647.0A CN201910825647A CN112448825A CN 112448825 A CN112448825 A CN 112448825A CN 201910825647 A CN201910825647 A CN 201910825647A CN 112448825 A CN112448825 A CN 112448825A
Authority
CN
China
Prior art keywords
user
matching
session
target
polyhedron
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.)
Granted
Application number
CN201910825647.0A
Other languages
Chinese (zh)
Other versions
CN112448825B (en
Inventor
沙莎
肖仙敏
刘立强
钟庆华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910825647.0A priority Critical patent/CN112448825B/en
Publication of CN112448825A publication Critical patent/CN112448825A/en
Application granted granted Critical
Publication of CN112448825B publication Critical patent/CN112448825B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1813Arrangements for providing special services to substations for broadcast or conference, e.g. multicast for computer conferences, e.g. chat rooms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1813Arrangements for providing special services to substations for broadcast or conference, e.g. multicast for computer conferences, e.g. chat rooms
    • H04L12/1822Conducting the conference, e.g. admission, detection, selection or grouping of participants, correlating users to one or more conference sessions, prioritising transmission
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computing Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a session creating method, a session creating device, a session creating terminal and a session creating medium, wherein the method comprises the following steps: displaying a polyhedron used for session matching in a session request interface, wherein the polyhedron comprises a selected state surface, and the selected state surface is a surface positioned at a preset position in the polyhedron; responding to the rotation operation of a first user for the polyhedron, and determining a target matching factor corresponding to the selected state face according to the rotation operation; matching a second user for the first user according to the target matching factor; a target session is established between the first user and the second user. The embodiment of the invention can improve the participation sense of the user and the interestingness of session creation in the process of establishing the target session.

Description

Session creation method, device, terminal and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a session creation method, a session creation apparatus, a terminal, and a computer storage medium.
Background
With the development of internet technology, more and more terminals can provide communication session services for users; a communication session, also referred to as a session for short, refers to a conversation in which at least two users exchange and transfer information via some kind of behavior or medium. In practical applications, a terminal needs to create a target session between at least two users, so that each user can exchange and transfer information through the target session.
Currently, when a terminal creates a target session, a second user is directly matched for a first user in a random matching manner after a session request operation of the first user is detected, so as to establish the target session between the first user and the second user. The inventor finds in practice that the session creation method of the target easily makes the matched second user possibly fail to meet the requirement of the first user well by adopting a random matching manner. In addition, the whole session creation process is less interesting, and the first user is easily lost in the session creation process. Therefore, how to better establish the target session becomes a research hotspot.
Disclosure of Invention
The embodiment of the invention provides a session creation method, a session creation device, a terminal and a computer storage medium, which can improve the participation sense of a user and the interestingness of session creation in the process of establishing a target session.
In one aspect, an embodiment of the present invention provides a session creation method, where the session creation method includes:
displaying a polyhedron used for session matching in a session request interface, wherein the polyhedron comprises a selected state surface, and the selected state surface is a surface positioned at a preset position in the polyhedron;
responding to the rotation operation of a first user for the polyhedron, and determining a target matching factor corresponding to the selected state face according to the rotation operation;
matching a second user for the first user according to the target matching factor;
a target session is established between the first user and the second user.
In another aspect, an embodiment of the present invention provides a session creating apparatus, where the session creating apparatus includes:
the display unit is used for displaying a polyhedron used for session matching in a session request interface, wherein the polyhedron comprises a selected state surface, and the selected state surface is a surface positioned at a preset position in the polyhedron;
the processing unit is used for responding to the rotation operation of a first user on the polyhedron, and determining a target matching factor corresponding to the selected state face according to the rotation operation;
the processing unit is used for matching a second user for the first user according to the target matching factor;
a session unit, configured to establish a target session between the first user and the second user.
In another aspect, an embodiment of the present invention provides a terminal, where the terminal includes an input device and an output device, and the terminal further includes:
a processor adapted to implement one or more instructions; and the number of the first and second groups,
a computer storage medium storing one or more instructions adapted to be loaded by the processor and to perform the steps of:
displaying a polyhedron used for session matching in a session request interface, wherein the polyhedron comprises a selected state surface, and the selected state surface is a surface positioned at a preset position in the polyhedron;
responding to the rotation operation of a first user for the polyhedron, and determining a target matching factor corresponding to the selected state face according to the rotation operation;
matching a second user for the first user according to the target matching factor;
a target session is established between the first user and the second user.
In yet another aspect, an embodiment of the present invention provides a computer storage medium, where one or more instructions are stored, and the one or more instructions are adapted to be loaded by a processor and execute the following steps:
displaying a polyhedron used for session matching in a session request interface, wherein the polyhedron comprises a selected state surface, and the selected state surface is a surface positioned at a preset position in the polyhedron;
responding to the rotation operation of a first user for the polyhedron, and determining a target matching factor corresponding to the selected state face according to the rotation operation;
matching a second user for the first user according to the target matching factor;
a target session is established between the first user and the second user.
According to the embodiment of the invention, when the target session is established, the polyhedron used for session matching can be displayed in the session request interface to attract the first user to rotate the polyhedron, so that the participation sense of the first user in the session establishing process can be increased, and the interestingness of the whole session establishing process is improved to avoid the loss of the first user in the session establishing process. After the selection operation of the first user on the polyhedron is detected, the target matching factor corresponding to the selected state face can be determined according to the rotation operation; and then matching the first user with the second user according to the target matching factor, thereby establishing a target session between the first user and the second user. Because the target matching factor is set by the first user through the rotation operation of the polyhedron, the second user meeting the requirement of the first user can be matched more accurately according to the target matching factor, and the satisfaction degree of the first user on the target conversation is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1a is a schematic architecture diagram of a communication session system according to an embodiment of the present invention;
FIG. 1b is a schematic structural diagram of a polyhedron according to an embodiment of the present invention;
FIG. 1c is a schematic diagram of a polyhedron according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a session creation method according to an embodiment of the present invention;
FIG. 3a is a schematic diagram of a selected state face of a polyhedron according to an embodiment of the present invention;
FIG. 3b is a schematic diagram of another selected state face of a polyhedron according to an embodiment of the present invention;
FIG. 3c is a schematic diagram of the structure and rotation of a polyhedron according to an embodiment of the present invention;
FIG. 3d is a schematic diagram of a first rotational operation of a polygon provided by an embodiment of the present invention;
fig. 3e is a schematic diagram of a correspondence relationship between facets of a polyhedron and navigation elements according to an embodiment of the present invention;
FIG. 3f is a schematic illustration of a second rotational operation of a polygon provided by embodiments of the present invention;
FIG. 3g is another schematic illustration of a second rotational operation of a polygon provided by embodiments of the present invention;
fig. 3h is a schematic diagram of structural division of a polyhedron according to an embodiment of the present invention;
FIG. 3i is a schematic diagram illustrating a third rotational operation of a polygon provided by an embodiment of the present invention;
fig. 4 is a flowchart illustrating a session creation method according to another embodiment of the present invention;
fig. 5a is an application scenario diagram of a session creation method according to another embodiment of the present invention;
fig. 5b is a diagram of another application scenario of a session creation method according to another embodiment of the present invention;
fig. 5c is a diagram of another application scenario of a session creation method according to another embodiment of the present invention;
fig. 5d is a diagram of another application scenario of a session creation method according to another embodiment of the present invention;
fig. 5e is a diagram of another application scenario of a session creation method according to another embodiment of the present invention;
fig. 5f is a diagram of another application scenario of a session creation method according to another embodiment of the present invention;
fig. 5g is a diagram of another application scenario of a session creation method according to another embodiment of the present invention;
fig. 5h is a diagram of another application scenario of a session creation method according to another embodiment of the present invention;
fig. 5i is a diagram of another application scenario of a session creation method according to another embodiment of the present invention;
fig. 5j is a diagram of another application scenario of a session creation method according to another embodiment of the present invention;
fig. 5k is a diagram of another application scenario of a session creation method according to another embodiment of the present invention;
fig. 5l is a diagram of another application scenario of a session creation method according to another embodiment of the present invention;
fig. 5m is a diagram of another application scenario of a session creation method according to another embodiment of the present invention;
fig. 5n is a diagram of another application scenario of a session creation method according to another embodiment of the present invention;
fig. 5o is a diagram of another application scenario of a session creation method according to another embodiment of the present invention;
fig. 6 is a flowchart illustrating a session creation method according to another embodiment of the present invention;
fig. 7a is an application scenario diagram of a session creation method according to another embodiment of the present invention;
fig. 7b is a diagram of another application scenario of a session creation method according to another embodiment of the present invention;
fig. 7c is a diagram of another application scenario of a session creation method according to another embodiment of the present invention;
fig. 7d is a diagram of another application scenario of a session creation method according to another embodiment of the present invention;
fig. 7e is a diagram of another application scenario of a session creation method according to another embodiment of the present invention;
fig. 7f is a diagram of another application scenario of a session creation method according to another embodiment of the present invention;
fig. 7g is a diagram of another application scenario of a session creation method according to another embodiment of the present invention;
fig. 7h is a diagram of another application scenario of a session creation method according to another embodiment of the present invention;
fig. 7i is a diagram of another application scenario of a session creation method according to another embodiment of the present invention;
fig. 8 is a flowchart illustrating a session creation method according to another embodiment of the present invention;
fig. 9a is an application scenario diagram of a session creation method according to another embodiment of the present invention;
FIG. 9b is a flowchart illustrating a method for obtaining a recommended group according to another embodiment of the invention;
fig. 9c is an application scenario diagram of a session creation method according to another embodiment of the present invention;
fig. 9d is a diagram of another application scenario of a session creation method according to another embodiment of the present invention;
FIG. 9e is a flowchart illustrating matching a second user according to another embodiment of the present invention;
fig. 9f is a diagram of another application scenario of a session creation method according to another embodiment of the present invention;
fig. 9g is a diagram of another application scenario of a session creation method according to another embodiment of the present invention;
fig. 9h is a diagram of another application scenario of a session creation method according to another embodiment of the present invention;
fig. 9i is a diagram of another application scenario of a session creation method according to another embodiment of the present invention;
fig. 9j is a diagram of another application scenario of a session creation method according to another embodiment of the present invention;
fig. 9k is a diagram of another application scenario of a session creation method according to another embodiment of the present invention;
fig. 9l is a diagram of another application scenario of a session creation method according to another embodiment of the present invention;
fig. 9m is a diagram of another application scenario of a session creation method according to another embodiment of the present invention;
fig. 10 is a schematic structural diagram of a session creation apparatus according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
The embodiment of the invention provides a session creation scheme to realize better session creation and improve the participation sense of a first user in the session creation process and the interestingness of the whole session creation process; the first user here refers to any user having a conversation need. The session creation scheme may be applied in a conversation session system as shown in fig. 1a, which may comprise a server 11 and at least two terminals 12. Among them, the server 11 may include but is not limited to: data processing servers, web servers, application servers, and the like; the server 11 may be a single independent service device, or may be a cluster device formed by a plurality of service devices. Terminals 12 may include, but are not limited to: portable devices such as smart phones, laptop computers, and tablet computers, as well as desktop computers, and the like. In one implementation, the session creation scheme proposed in the embodiment of the present invention may be executed by any one of the terminals 12; in yet another embodiment, the session creation scheme may also be performed by a communication client running in the terminal 12, where the communication client refers to a client (APP) with a session creation function, which may include but is not limited to: instant messaging APPs (e.g., Tencent QQ, WeChat, etc.), social APPs (e.g., microblog, etc.), and so on.
In addition, the embodiment of the invention can also apply the session creation scheme to different application scenes, such as friend session scenes, extension session scenes and the like, according to actual service requirements. The friend session scene refers to a scene in which a second user is matched from a friend list for a first user so as to establish a target session, that is, the second user in the friend session scene is a friend user known by the first user. The expansion is a popular word of the network, which particularly refers to a friend making way for expanding a friend list by making new friends; correspondingly, the expansion session scene refers to a scene in which the first user matches a second user from other strange users outside the friend list to establish a target session, that is, the second user in the expansion session scene is a strange user unknown to the first user. For convenience of illustration, the second user mentioned later refers to an unknown user that the first user does not know, unless otherwise specified.
The following explains the main principle of the session creation scheme by taking as an example that the session creation scheme is applied in an extended session scene, and the instant messaging APP in the terminal 12 executes the session creation scheme to create a target session for the first user; the target session may be a single chat session between the first user and one second user, i.e., a C2C session (user-to-one session), or a group session between the first user and at least two second users. In a specific implementation: when the target session is a single chat session, the instant messaging APP may output a polyhedron for session matching in the session request interface based on the appeal of the single chat session, so as to allow the first user to rotate the polyhedron. The polyhedron is a three-dimensional figure formed by four or more polygons, such as a tetrahedron, a hexahedron, a dodecahedron and the like shown in fig. 1 b. When the first user rotates the polyhedron, the polyhedron can be controlled to rotate through gestures, and the polyhedron can also be controlled to rotate through control equipment such as a mouse and the like; for convenience of illustration, the following description will be given by taking the example of controlling the rotation of the polyhedron through gestures. The instant messaging APP can match a plurality of matched users for the first user according to the rotation operation of the first user, and can display the user identifications of the plurality of matched users in a limited two-dimensional space by utilizing the pattern of a polyhedron. The instant messaging APP may obtain a second user from the plurality of matching users by random matching for the first user, or determine the second user according to the selection operation of the first user on the plurality of matching users, thereby establishing a C2C session between the first user and the second user. When the target session is a group session, the instant messaging APP may match a plurality of recommendation groups for the first user based on the rotation operation of the first user on the polyhedron, and may display the session contents of the plurality of recommendation groups in a limited two-dimensional space by using a style of the polyhedron, so that the first user may select the session. Correspondingly, the instant messaging APP can take each user in the target group selected by the first user as the second user, so as to establish a group session between the first user and a plurality of second users.
Therefore, the session creation scheme provided by the embodiment of the invention mainly comprises the following innovations: the three-dimensional characteristics of the polyhedron are utilized, so that more information (such as user identification of matched users, conversation content of groups and the like) can be displayed in a two-dimensional plane; therefore, more choices are provided for the first user, and the selection efficiency and the interestingness of the first user are improved. Secondly, a plurality of matching playing methods are provided by utilizing a polyhedron, so that in the process of session creation, the matching is not limited to point-to-point C2C matching, and the method can also be expanded to group matching comprising a plurality of second users; therefore, the session creation scheme provided by the embodiment of the invention has a wider application range. And the interaction mode and the style of the simulated magic cube provide a novel matching mode with more operation feeling through the polyhedron, and the interestingness and the user participation feeling in the session establishing process are increased.
As can be seen from the above, the session creation scheme proposed by the embodiment of the present invention is mainly innovative based on polyhedrons; therefore, in order to facilitate the subsequent understanding, the following first explains the display principle of the polyhedron adopted in the embodiment of the present invention:
in the embodiment of the invention, each surface of the polyhedron is respectively taken as an independent view, and the polyhedron is displayed in the session request interface by splicing the views. In the specific implementation, each face of the polyhedron can form a view through UIView (base class of view control), and then each formed view is added into a container of views, so that the display of the polyhedron is realized; in this way, a polyhedron can be understood as a container of several views. Each face of the polyhedron is taken as a view, so that the elements in each view can be independently put; when various elements (such as user representation, conversation content and the like) are freely put in any view, the elements are not influenced by other views.
In the process of rotating the polyhedron by the first user, the terminal can correspondingly rotate in 3D for each view, so that the first user can be presented with corresponding 3D rotation vision of the polyhedron in the session request interface. Specifically, the terminal may adopt a structure to implement 3D rotation on each view, where the structure may be catform 3D, CGAffineTransform, or the like; for convenience of explanation, the following description will be given taking the structure as cattransform 3D as an example. In the process that the terminal rotates the polyhedron, the rotation direction of the polyhedron can be determined according to the rotation operation input by the first user, and then the polyhedron is rotated three-dimensionally according to the determined rotation direction. Taking a polyhedron as an example, the polyhedron usually involves five rotational directions, which are mainly the switching of the upper and lower faces and the 90-degree rotation between adjacent faces. In the specific implementation, the terminal adds gesture processing to the contiaviw by using a uipangesture recognizizer (gesture class), and converts a gesture coordinate system into a coordinate system in the contiview, so that when a first user performs a rotation operation in the contiview, the terminal can perform rotation processing in a corresponding direction on the polyhedron.
In a specific implementation process, the embodiment of the present invention determines the rotation direction of the polygon according to the rotation operation input by the first user through the processing result returned by the processing function in the uipangesture recognizizer. The processing result may include information related to the point (dragged pixel caused by the rotation operation) of the rotation operation, such as coordinate information (values of x and y), the speed (vector) in the x direction and the y direction in the coordinate system in the contienview, and the like. The terminal can firstly determine which area of the polyhedron the point is in according to the values of x and y of the point; as shown in fig. 1c, a schematic diagram of a polyhedron (taking a hexahedron as an example) may be roughly divided into four regions, and each region is set aside by a certain angle (for example, 10 degrees) to serve as an indication region for switching up and down. Specifically, if the value of x is a negative number, it indicates that point is in two areas on the left side of the y axis; otherwise, point is represented in two areas to the right of the y-axis. If the value of y is a negative number, point is represented in two areas below the x axis; otherwise, point is represented in the upper two regions of the x-axis. After judging which area of the four areas the point is in according to the values of x and y, determining the rotation direction by combining the angle; the angle here can be found from the speed of point in the x-direction and y-direction. For example, if the point is in the upper left corner area and the angle is 0-80 degrees, the rotation direction can be determined to be 90 degrees towards the upper left corner; if point is in the upper left corner area and the angle is 80-90 degrees, the rotation direction can be determined to be the switching of the upper and lower surfaces, and the like. It should be noted that, in the process of rotating the polyhedron according to the rotation direction, the contiaview may be rotated first, so that a plurality of views are rotated simultaneously, rather than the views of one surface being rotated separately.
Based on the above description, the embodiment of the present invention provides a session creation method, which may be executed by the above-mentioned terminal or a communication client running in the terminal; for convenience of explanation, the session creation method performed by the terminal is described as an example. Referring to fig. 2, the session creation method may include the following steps S201 to S204:
s201, displaying a polyhedron used for conversation matching in a conversation request interface.
As can be seen from the foregoing, the polyhedron is a three-dimensional figure surrounded by four or more polygons, and may be a tetrahedron, a hexahedron, a dodecahedron, or the like. For convenience of explanation, the embodiments of the present invention all use polyhedrons as cubes for explanation; the cube may be called a regular hexahedron, and refers to a regular polyhedron composed of six square faces. The polyhedron may include a selected face, which is a face of the polyhedron at a predetermined position. Wherein, predetermine the position and can set up according to actual demand: for example, the top position of the polyhedron may be set as a preset position, where the top position refers to a position at the topmost end in the polyhedron, and then the selected state surface is a surface located at the top position of the polyhedron; if the face A of the cube is positioned at the top, the selected state face is the face A of the polyhedron; if the cube is rotated so that the B-face is at the top position, the selected state face is the B-face of the cube, as shown in FIG. 3 a. For another example, the front position of the polyhedron can be set as a preset position, the front position refers to the position at the forefront in the polyhedron, and the selected state surface is the surface located at the front position of the polyhedron; if the face C of the cube is positioned at the front position, the selected state face is the face C of the polyhedron; if the cube is rotated so that the A-face is in the front position, then the selected state face is the A-face of the cube, as shown in FIG. 3 b. It should be noted that, for convenience of illustration, the preset positions mentioned later are all described by taking the top position as an example.
According to the embodiment of the invention, a corresponding matching factor can be preset for each surface of the polyhedron according to the service requirement; the matching factor is a state factor for matching, and the matching is a process of accurately finding an object meeting the requirement for a user based on some common attributes. The matching factors may include, but are not limited to: session topics, one or more session topics under the session topics and other state factors; among them, the conversation topic may include but is not limited to: mood themes, music themes, game themes, idol themes, fighting image themes (fighting images refers to fighting with images), and so forth. The conversation theme generally can comprise a plurality of topics for information exchange, and the conversation theme refers to a certain topic in the conversation theme; for example, the mood theme may include mood status themes for information exchange such as "open heart", "injured heart", "excited", "acid" (a word representing jealousy mood), etc., and the conversation theme may be "open heart", "injured heart", "excited", or "acid", etc.; as another example, a musical theme may include "pure tone," "pop," "rock," etc. musical type titles for information exchange, and then a conversation theme may be "pure tone," "pop," or "rock," etc.
S202, responding to the rotation operation of the first user for the polyhedron, and determining a target matching factor corresponding to the selected state surface according to the rotation operation.
As can be seen from the foregoing, each face of the polyhedron corresponds to a matching factor; thus, the first user may set the target matching factor by rotating the polygon. In one embodiment, each face of the polyhedron may include a region; the structure of the polyhedron in this case may be similar to that of a first order cube, as shown in the left diagram in figure 3 c. In this embodiment, the first user may complete the setting of the target matching factor by performing a rotation operation on the polyhedron to rotate the face corresponding to the matching factor that the first user wants to select to a preset position (e.g., a top position) of the polyhedron. In order to facilitate the first user to perform the rotation operation on the polyhedron, the embodiment of the invention provides at least two rotation operations for the polyhedron similar to the first-order magic cube; referring to the right drawing of fig. 3c, the rotation operation may include a first rotation operation and a second rotation operation, and the first user may select any one of the rotation operations to rotate the polyhedron.
For the first rotation operation: in order to avoid the collision operation of the gestures, the embodiment of the invention defines a preset sliding range in advance for the polyhedron; only when the first user performs gesture sliding in the preset sliding range, the polyhedron is triggered to rotate correspondingly. Correspondingly, the first rotation operation is an operation of sliding within a preset sliding range of the polyhedron to rotate the face of the polyhedron, the target face rotated to the preset position through the first rotation operation is used as the selected state face, and the matching factor corresponding to the target face is used as the target matching factor corresponding to the selected state face. The preset sliding range may be set according to an empirical value or an actual service requirement, for example, a range formed by diagonal lines of the polyhedron may be set as the preset sliding range. Then, the first user may gesture swipe within the diagonal range to rotate the polygon; specifically, the first user may slide left and right within a diagonal range to switch adjacent sides, or slide up and down to switch bottoms, as shown in fig. 3 d.
It should be noted that, the first user may perform one or more first rotation operations on the polyhedron; the terminal can respond to each first rotation operation, rotate the polyhedron, determine a selected state face and a target matching factor, and update the target matching factor determined according to the last first rotation operation by adopting the target matching factor determined according to the current first rotation operation, so that the final target matching factor is obtained. For example, in fig. 3d, the first user has performed two first rotation operations on the polygon: the first user firstly performs gesture sliding on the polyhedron leftwards, and the terminal can switch the side faces of the polyhedron leftwards; at this time, the target surface rotated to the preset position (taking the top position as an example) by the first rotation operation is still the a surface, so that the terminal may use the a surface as the selected state surface and the matching factor corresponding to the a surface as the target matching factor. Then, the first user performs upward gesture sliding on the polyhedron, and the terminal can switch the top surface and the bottom surface of the polyhedron upwards; at this time, the target surface rotated to the preset position by the first rotation operation is changed into an F surface, so that the F surface is a selected state surface, and the matching factor corresponding to the F surface updates the last obtained target matching factor, that is, the final target matching factor is the matching factor corresponding to the F surface.
For the second rotation operation: the session request interface may further include polyhedral rotational navigation, where the rotational navigation includes multiple navigation elements and a selected position for indicating a selected target navigation element, the navigation elements are used to represent matching factors, and one matching factor corresponds to one surface, and the correspondence relationship may be shown in fig. 3 e; correspondingly, the second rotation operation is an operation of rotating the rotational navigation of the polyhedron to rotate the faces of the polyhedron, the matching factor represented by the target navigation element rotated to the selected position by the second rotation operation is a target matching factor, and the face corresponding to the target matching factor is rotated to the preset position to serve as the selected state face. When the first user rotates the rotational navigation of the polyhedron, the rotation of the rotational navigation can be controlled through left-right sliding; for example, if the matching factor is a session topic, and the first user wants to set the target matching factor as the topic 6, the first user may rotate the navigation element for representing the topic 6 to the selected position by sliding left, so that the terminal takes the topic 6 represented by the navigation element (target navigation element) as the target matching factor, and rotates the F-plane corresponding to the topic 6 to the preset position as the selected state plane, as shown in fig. 3F. The first user can also click the navigation element corresponding to the matching factor to be selected, so that the terminal rotates the clicked navigation element to the selected position, and the rotation of the rotary navigation is realized; for example, if the first user clicks the navigation element, the terminal may rotate the navigation element to the selected position as the target navigation element, use the topic 6 represented by the navigation element as the target matching factor, and rotate the F-plane corresponding to the topic 6 to the preset position as the selected state plane, as shown in fig. 3 g. It should be noted that, similar to the first rotation operation, the first user may also perform one or more second rotation operations on the polyhedron.
In another embodiment, in order to achieve more accurate matching, the embodiment of the present invention may further simulate a structure of a magic cube, and divide the polyhedron into a plurality of sub-polyhedrons with smaller sizes; the structure of the polyhedron in this case may be similar to that of an n-th order cube (n being a positive integer greater than 1), each face of the polyhedron may comprise a plurality of sub-regions, as shown in figure 3 h; each sub-region corresponds to a matching element, and the matching element can be a conversation topic under a conversation topic; the terminal can also display the element identifications of the matching elements in the corresponding sub-regions for the first user to view. Wherein, the element identifier may include an element name, an element icon, and the like of the matching element; for example, the matching element (session topic) is "acid", the element identification may include an element name (acid), an element icon (lemon icon), etc.; as another example, the session topic is "happy," and the element identification may include an element name (happy), an element icon (smiley icon), and the like. For the convenience of distinguishing, in the embodiment of the present invention, a sub-region in the selected state surface is referred to as a first sub-region, and sub-regions in other surfaces except the selected state surface are referred to as second sub-regions; the first user may complete the setting of the target matching factor by performing a rotation operation on the sub-region in one or more faces of the polyhedron to rotate the sub-region corresponding to the one or more matching elements that the first user wants to select to a preset position (e.g., a top position) of the polyhedron. Correspondingly, the third rotation operation is an operation of rotating the N first sub-regions in the selected state surface to another surface, as shown in fig. 3 i; and N is a positive integer, and the value of N is not more than the number of the first subregions in the selected state surface. Referring to fig. 3i, when the N first sub-regions (represented by white regions) are rotated to other surfaces, a corresponding number N of second sub-regions (represented by gray regions) enter the selected state surface; therefore, in response to the third rotation operation, the terminal may adopt the matching elements corresponding to the sub-regions in the selected state surface after the third rotation operation to form the target matching factor, that is, the target matching factor includes the matching elements corresponding to the N second sub-regions rotated into the selected state surface and the matching elements corresponding to the first sub-region in the selected state surface that is not rotated.
And S203, matching a second user for the first user according to the target matching factor.
S204, a target session is established between the first user and the second user.
In steps S203-S204, after the terminal obtains the target matching factor, a user request may be generated according to the target matching factor and the user identifier of the first user, and the user request is sent to the server, so that the server matches the second user for the first user according to the user request. The number of the second users can be one or more; when the target session is a single chat session, the number of the second users is one; when the target session is a group session, the number of the second users is multiple. After determining a second user matched with the first user, the terminal may directly establish a target session between the first user and the second user; a session request may also be sent to the server to cause the server to establish a target session between the first user and the second user. In other embodiments, the execution subject of step S204 may also be a server; that is, after the server matches a second user for a first user, a target session may be established directly between the first user and the second user. After the target session is established, a session window of the target session can be output, so that the first user and the second user can exchange information in the session window. The first user may also add the second user as a friend by clicking on the user avatar of the second user.
According to the embodiment of the invention, when the target session is established, the polyhedron used for session matching can be displayed in the session request interface to attract the first user to rotate the polyhedron, so that the participation sense of the first user in the session establishing process can be increased, and the interestingness of the whole session establishing process is improved to avoid the loss of the first user in the session establishing process. After the selection operation of the first user on the polyhedron is detected, the target matching factor corresponding to the selected state face can be determined according to the rotation operation; and then matching the first user with the second user according to the target matching factor, thereby establishing a target session between the first user and the second user. Because the target matching factor is set by the first user through the rotation operation of the polyhedron, the second user meeting the requirement of the first user can be matched more accurately according to the target matching factor, and the satisfaction degree of the first user on the target conversation is improved.
Fig. 4 is a schematic diagram illustrating another session creation method according to an embodiment of the present invention. In the embodiment of the invention, the target session is a single chat session between a first user and a second user; referring to fig. 4, the session creation method may include the following steps S401 to S407:
s401, displaying a polyhedron used for conversation matching in a conversation request interface.
When a first user wants to make friends through expansion, an application interface of the instant messaging application can be opened; and may click on the expand button displayed in the application interface to enter the expand square, as shown in fig. 5 a. After entering the expansion square, the first user can click an expansion friend-making button in an interface of the expansion square; after detecting the click operation of the first user on the expanded friend-making button, the terminal may output an expanded friend-making interface, as shown in fig. 5 b. In the embodiment of the present invention, the session request interface may be the same as the friend-making extension interface, i.e. the session request interface can be seen in the right diagram of fig. 5 b. The structure of a polyhedron in the session request interface is similar to that of a first-order magic cube, and each face of the polyhedron corresponds to a session theme respectively.
S402, responding to the rotation operation of the first user for the polyhedron, determining a target matching factor corresponding to the selected state surface according to the rotation operation, wherein the target matching factor corresponding to the selected state surface is a target conversation theme.
The first user can set a target matching factor (i.e., a target conversation topic) by performing a rotation operation on the polyhedron; the rotation operation here includes a first rotation operation that slides within a preset slide range of the polyhedron to rotate the face of the polyhedron or a second rotation operation that rotates the rotational navigation of the polyhedron to rotate the face of the polyhedron. If the selection operation includes a first rotation operation, the terminal may determine, in performing the step S402, a target surface rotated to a preset position from the polyhedron according to the first rotation operation in response to the first rotation operation; and then determining the target surface as the selected state surface, and determining the matching factor corresponding to the target surface as the target matching factor corresponding to the selected state surface. If the selecting operation includes a second rotating operation, in the process of executing step S402, the terminal may determine, in response to the second rotating operation, a target navigation element rotated to the selected position from the rotational navigation according to the second rotating operation, use a matching factor represented by the target navigation element as a target matching factor, and rotate a surface corresponding to the target matching factor to a preset position as a selected state surface.
S403, acquiring user identifications of a plurality of matched users matched with the first user according to the target conversation theme.
In a specific implementation process, a matching request can be generated according to a target conversation theme and a user identifier of a first user; and sending a matching request to the server so that the server acquires the user data of the first user according to the user identification of the first user, matches a plurality of matching users for the first user according to the user data of the first user and the target session topic, and returns the user identifications of the plurality of matching users. Accordingly, after receiving the matching request sent by the terminal, the server may obtain the user profile of the first user from the database according to the user identifier of the first user, where the user profile may include, but is not limited to: information in one or more dimensions, such as keywords (such as keywords in a column expansion sticker), addresses, genders, ages, constellations, popularity values and the like, set by a user during social contact; the popularity value here refers to a numerical value reflecting the degree of popularity of the user, and a higher popularity value indicates a higher popularity of the user. The server can obtain a plurality of candidate users which also select the target conversation theme from a user matching pool containing a plurality of users to be matched according to the target conversation theme in the matching request, and obtain user data of the candidate users; then, the matching degree between the first user and each candidate user can be respectively calculated according to the user profile of the first user and the user profiles of the candidate users. Specifically, for any candidate user, the server may determine the weight of each dimension in the user profile, and the weight of each dimension may be set according to actual business requirements, for example, the weight of the keyword dimension is set to 0.3, the weight of the address dimension is set to 0.3, the weight of the gender dimension is set to 0.2, the weight of the constellation dimension is set to 0.1, and the weight of the popularity dimension is set to 0.1. The server can respectively calculate matching values under all dimensions according to the user data of the first user and the user data of the candidate users; and then, carrying out weighted summation on the weight of each dimension and the matching value under each dimension to obtain the matching degree between the first user and the candidate user.
When the matching value under the keyword dimension is calculated, the similarity between the keyword of the first user and the keyword of the candidate user can be calculated, and the calculated similarity is used as the matching value under the keyword dimension. When the matching value under the address dimension is calculated, the user distance between the first user and the candidate user can be calculated according to the address of the first user and the address of the candidate user; and according to the corresponding relation between the preset distance and the matching value, taking the matching value corresponding to the user distance as the matching value under the address dimension. When calculating the matching value in the gender dimension, it can be determined whether the gender of the first user is the same as that of the candidate user, and the matching value in the gender dimension is determined according to the determination result. For example, if the determination result indicates that the genders of the first user and the candidate user are the same, it may be determined that the matching value in the gender dimension is 1; or, if the judgment result indicates that the gender of the first user is different from that of the candidate user, the matching value under the gender dimension can be determined to be 1. When the matching value under the constellation dimension is calculated, the matching value under the constellation dimension can be determined by judging whether the constellations of the first user and the candidate user are the same or not; the principle is the same as the determination method of the sex dimension, and the description is omitted here. Or calculating the constellation similarity between the first user and the candidate user according to the constellation attribute of the first user and the constellation attribute of the candidate user; and taking the calculated constellation similarity as a matching value under the constellation dimension. When a matching value under the popularity value dimensionality is calculated, calculating a popularity difference value between a first user and a candidate user according to the popularity value of the first user and the popularity value of the candidate user; and according to the corresponding relation between the preset popularity difference value and the matching value, taking the matching value corresponding to the calculated popularity difference value as the matching value under the popularity value dimensionality. Or according to a preset corresponding relation between the popularity value and the matching value (the popularity is in direct proportion to the matching value), taking the matching value corresponding to the popularity value of the candidate user as the matching value under the popularity dimension. It should be noted that the embodiment of the present invention only exemplifies the calculation manner of the matching value in each dimension, and is not exhaustive.
After the server calculates the matching degrees between the first user and each candidate user, the server may filter a plurality of matching users from the plurality of candidate users according to the matching degrees between the first user and each candidate user, and return the user identifiers of the plurality of matching users to the terminal. Accordingly, the terminal may receive the user identifications of the multiple matching users returned by the server, where the user identifications may include but are not limited to: a user avatar, a user nickname, a user's social account number, and so on. When the server filters a plurality of matching users from a plurality of candidate users according to the matching degree between the first user and each candidate user, the method at least comprises the following implementation modes: if the number of the candidate users is small (smaller than the preset number), each candidate user can be directly used as a matching user. If the number of the candidate users is large (larger than or equal to the preset number), the candidate users can be arranged in a descending order according to the matching degree between the first user and each candidate user, and then the candidate users with the preset number are sequentially selected as the matching users from high to low. Respectively judging whether the matching degree between the first user and each candidate user is greater than a matching threshold (lowerPower), and directly taking the candidate user with the matching degree greater than the matching threshold as a matching user; or randomly selecting a preset number of candidate users as matching users from the candidate users with the matching degree larger than the matching threshold.
S404, displaying the user identifications of the multiple matched users in the selected state face of the polyhedron.
After obtaining the user identifiers of the multiple matching users, the terminal may display the user identifiers of the multiple matching users in the selected state surface of the polyhedron. In one embodiment, the terminal can randomly display the user identifications of a plurality of matched users in the selected state face of the polyhedron; in this embodiment, the display forms of the user identifiers of the multiple matching users in the selected state surface are the same, and the display forms may include display sizes, display colors, and the like. In another embodiment, the terminal performs differentiated display on the user identifier of each matching user according to the matching degree between each matching user and the first user. In specific implementation, the matching degree between each matching user and the first user can be obtained; determining the display form of the user identification of each matched user according to the matching degree between each matched user and the first user, wherein different matching degrees correspond to different display forms; and displaying the user identification of each matched user in the selected state surface of the polyhedron according to the display form of the user identification of each matched user.
For example: if the first user rotates the navigation element for representing the theme 2 to the selected position of the rotational navigation through the second rotation operation, the terminal may use the theme 2 as the target conversation theme through step S402, and rotate the surface corresponding to the theme 2 to a preset position (top position) as the selected state surface. Moreover, the user identifications of a plurality of matching users matching the first user may also be obtained through step S403, and then the user identifications of the plurality of matching users are displayed in step S404; taking the user identifier as the user avatar, the display form as the display size, and the greater the matching degree, the greater the user avatar, the more detailed diagram thereof may be as shown in fig. 5 c. By displaying the user identifications of the multiple matched users in the selected state surface, a hot atmosphere can be brought to the first user. It should be noted that, in another embodiment, the terminal may further highlight the user identifier of the matching user with the largest matching degree in the selected state face in the form of an enlarged bubble, as shown in fig. 5 d. The user identification of the matching user with the maximum matching degree is highlighted in an enlarged bubble mode, so that the first user can select the matching user with the maximum matching degree as the second user quickly, the selection efficiency is improved, and the selection cost (such as time cost) of the first user is reduced.
S405, user selection operation input based on the user identification displayed in the selected state surface is obtained.
S406, selecting a second user from the plurality of matched users according to the user selection operation.
S407, a target session is established between the first user and the second user.
In the specific implementation process of steps S406 to S407, there may be at least two following implementation modes:
the first embodiment: the first user may select a designated user from a plurality of matching users for the session. Since the user identifications of a plurality of matching users are displayed on the selected state face of the polyhedron, the first user can specify the second user by clicking the user identification of the matching user which the first user wants to select. Correspondingly, the user selection operation may include an operation of clicking any user identifier displayed in the selected state surface; in this case, when the terminal executes step S406, the clicked user identifier in the selected state surface may be determined according to the user selection operation; then, the matching user indicated by the clicked user identification is selected from the plurality of matching users as a second user. After the second user is determined, a target session between the first user and the second user may be directly established in step S407; or, in step S407, a session request carrying the user identifier of the second user is generated, and the session request is sent to the server, so that the server establishes a target session between the first user and the second user according to the session request.
After the target session is successfully established, the terminal may display a session window of the target session so that the first user and the second user can exchange information in the session window, as shown in fig. 5 e. In one embodiment, since the second user is a user designated by the first user, there may be a case where the second user does not want to exchange information with the first user; therefore, in order to avoid the situation that the first user frequently sends the conversation message to cause unnecessary trouble to the second user, the embodiment of the invention can also set the target conversation to be a limited conversation so as to reduce the harassment phenomenon in the social contact of strangers. A limited session here refers to a session with a limited number of sessions, and a limited session may specify: before the second user sends the session message, the first user can only send a preset number (for example, 3) of session messages; that is, after the number of session messages sent by the first user exceeds the preset number, the session messages cannot be sent again; the first user may continue to send the session message only after receiving the session message sent by the second user. In order to implement a limited session, the terminal may detect in real time whether a session message sent by the second user is received and whether the number of session messages sent by the first user is equal to a preset number in the display process of the session window. If the session message sent by the second user is not received and the number of the session messages sent by the first user is equal to the preset number in the display process of the session window, the state of the message sending inlet in the session window can be set to be a shielding state, so that the first user cannot continuously send the session message. For example, if the number of the preset messages is 3, after detecting that the number of the session messages sent by the first user is equal to 3, the message sending entry may be set to gray to block the operation of the first user, as shown in fig. 5 f. In another embodiment, in order to avoid the situation that the first user can still send the session message to the second user after the number of the session messages sent by the first user exceeds 3 because the terminal is cracked (or has a fault); when detecting that the number of the session messages sent by the first user is equal to the preset number and the session messages sent by the second user are not received, the terminal can also send a shielding request to the server, so that the server shields the subsequent session messages sent by the first user, the session messages sent by the first user cannot be successfully sent to the second user, and the second user is further protected from being disturbed.
The second embodiment: the session request interface may further include a random match button, and the first user may further randomly select one of the users to have a session by clicking the random match button. Accordingly, the user selection operation may include an operation of clicking the random matching button; in this case, a specific implementation of step S406 may be: and directly generating a user selection instruction according to the user selection operation, and sending the user selection instruction to the server so that the server selects a second user from the multiple matched users according to the matching degree between each matched user and the first user. Correspondingly, after receiving the user selection instruction, the server can select a second user from the plurality of matched users according to the matching degree between each matched user and the first user; for example, the server may select a matching user corresponding to the maximum matching degree from the multiple matching users as the second user; as another example, the server may randomly select a matching user from a plurality of matching users as the second user, and so on. After the server determines the second user, the server can issue the user identifier of the second user to the terminal; accordingly, the terminal may receive the user identifier of the second user returned by the server.
The second user selected by the server is possibly in a busy state at the moment, and information exchange with the first user cannot be carried out; therefore, the terminal can also match the second user for the first user according to the click time of the first user clicking the random matching button. Accordingly, another specific implementation of step S406 may be: firstly, acquiring the click time of a clicked random matching button according to the operation selected by a user; and generating a user selection instruction carrying the click time, and sending the user selection instruction to the server, wherein the user selection instruction is used for indicating the server to select a second user from the multiple matched users according to the click time and the matching degree between each matched user and the first user. Correspondingly, after receiving the user selection instruction, the server can select a second user from the plurality of matched users according to the click time and the matching degree between each matched user and the first user. Specifically, the server can screen one or more target users from the multiple matching users according to the click time, wherein the target users are users who click the random matching button and have time difference values between the click time and the click time carried by the user selection instruction within a preset time range; if the number of the target users is one, the target users can be directly used as second users; if the number of the target users is multiple, one target user can be randomly selected from the multiple target users as the second user, or the target user corresponding to the maximum matching degree is selected from the multiple target users as the second user. It should be noted that, if the target user is failed to be screened, the server may further select the target user from the matching pool according to the click time, the target session topic, and the matching degree between each user to be matched and the first user in the matching pool, and then select the second user from the target user.
After the terminal determines the second user through step S406, a target session between the first user and the second user may be established through step S407. However, it should be understood that, since the second embodiment is the server determining the second user, the server may also establish the target session between the first user and the second user directly after determining the second user; in this case, the terminal may not need to perform step S407 any more.
After successfully establishing the target session, the terminal may display a session window of the target session. In one embodiment, the terminal may directly display a session window of the target session, so that the first user and the second user can exchange information in the session window, as shown in fig. 5 g. After the first user clicks the random matching button, the terminal and the server need short time to determine the second user, so that in order to improve the attention of the first user, further strengthen the substitution feeling of the first user and avoid the loss of the first user in the matching process, the embodiment of the invention can also present corresponding matching animation in the matching process. Based on this, in another embodiment, the terminal may respond to the user selection operation to obtain the matching animation corresponding to the target conversation topic; and playing the acquired matching animation in a session request interface. For example, the matching animation corresponding to the acquired target conversation theme is an animation in which the lemon drops downward from the top of the screen, and then the terminal may play the animation after detecting that the first user clicks the random matching button, as shown in fig. 5 h. After receiving the user identifier of the second user sent by the server, the terminal may end the playing of the matching animation and directly output the session window between the first user and the second user, as shown in fig. 5 i. Or, the playing of the matching animation may also be ended, and a prompt interface of the matching result is output, where the prompt interface may include user identifications (e.g., user head portraits) of the second user and the first user; and then outputs the conversation window between the first user and the second user as shown in fig. 5 j.
In an implementation manner, when the second user is an unknown strange user unknown to the first user, in order to promote that the first user and the second user can grasp the time for information exchange, the embodiment of the invention may further set the target session to be a time-limited session, so as to bring a sense of urgency to the time to the user. The time-limited session herein refers to a session with a limited duration, and the time-limited session may specify: the first user and the second user can only exchange information within a preset time length; that is, when the session duration between the first user and the second user is equal to the preset duration, the first user and the second user cannot exchange information through the session window of the target session; the preset time period may be set according to actual service requirements, for example, set to 300 seconds. In order to realize time-limited conversation, the terminal can acquire the display duration of a conversation window in real time; and if the display duration of the conversation window is equal to the preset duration, closing the conversation window. By closing the conversation window, the second user cannot check the information such as the user data of the first user through the conversation window, and the privacy appeal of the first user can be met.
It should be noted that, in order to reduce the selection cost of the first user, after the polyhedron for session matching is displayed on the session request interface in step S401, the embodiment of the present invention may also provide a shortcut operation for session creation, where the shortcut operation is an operation of shaking the terminal. When a shortcut operation of shaking the terminal by the first user is detected, the terminal may switch from the session request interface to the shake matching interface, and a polyhedron in the shake matching interface may be in a rotated state, as shown in fig. 5 k. At this time, the terminal can directly send the user identifier of the first user to the server, so that the server obtains the user data of the first user according to the user identifier of the first user, and matches a second user for the first user according to the user data of the first user, the user data of each user to be matched in the matching pool and the online condition. After the server matches the second user, the server can issue the user identifier of the second user to the terminal; accordingly, after the terminal receives the user identifier of the second user, the animation for opening the polyhedron may be further displayed in the shake matching interface, and the user identifier of the second user is displayed, as shown in fig. 5 l. After displaying the user identification of the second user, the terminal may directly output a conversation window between the first user and the second user, as shown in fig. 5 m; or a prompt interface of the matching result may be output first, and then a conversation window between the first user and the second user is output, as shown in fig. 5 n. It should be noted that, as can be seen from fig. 5k or fig. 5l, the shake matching interface may further include a stop button for stopping matching; the first user may return to the previous interface (e.g. session request interface) by clicking the stop button in case the network status is not good or the time to wait for matching is too long, so that the terminal stops the matching operation, as shown in fig. 5 o.
According to the embodiment of the invention, when the target session is established, the polyhedron used for session matching can be displayed in the session request interface to attract the first user to rotate the polyhedron, so that the participation sense of the first user in the session establishing process can be increased, and the interestingness of the whole session establishing process is improved to avoid the loss of the first user in the session establishing process. After the selection operation of the first user on the polyhedron is detected, the target matching factor corresponding to the selected state face can be determined according to the rotation operation; and then matching the first user with the second user according to the target matching factor, thereby establishing a target session between the first user and the second user. Because the target matching factor is set by the first user through the rotation operation of the polyhedron, the second user meeting the requirement of the first user can be matched more accurately according to the target matching factor, and the satisfaction degree of the first user on the target conversation is improved.
Fig. 6 is a schematic diagram illustrating another session creation method according to an embodiment of the present invention. In the embodiment of the invention, the target session is a single chat session between a first user and a second user; referring to fig. 6, the session creation method may include the following steps S601-S607:
s601, displaying a polyhedron used for conversation matching in a conversation request interface.
When the first user wants to make an expanded list of friends, the expanded list of friends making interface may be opened first, and the specific opening manner may be referred to the related description of step S401 in the above embodiment, which is not described herein again. Referring to FIG. 5b, an exact match button may be included in the expanded friends-making interface; the first user can enter a session request interface by clicking the accurate matching button; accordingly, after detecting the click operation of the first user on the precise matching button, the terminal may switch from the friend-making expansion interface to the conversation request interface, as shown in fig. 7 a. In the embodiment of the present invention, the session request interface can be seen from the right diagram in fig. 7 a; the structure of the polyhedron in the conversation request interface is similar to that of the n-order magic cube, namely, each face of the polyhedron comprises a plurality of sub-regions, each sub-region corresponds to one matching element, element identifiers of the matching elements are displayed in the sub-regions, and the matching elements are conversation topics under conversation topics; the surface of the polyhedron at the preset position is a selected state surface, and the target matching factor corresponding to the selected state surface comprises matching elements corresponding to each sub-region of the selected state surface. It should be noted that a polyhedron may correspond to one conversation theme, and at this time, the conversation topics corresponding to each sub-region in the polyhedron belong to the same conversation theme; the polyhedron can also correspond to a plurality of conversation topics, and the conversation topics corresponding to each sub-region in the polyhedron belong to different conversation topics; for convenience of illustration, the following description will take the case that the polyhedron corresponds to a session topic.
In one embodiment, when the terminal displays the polyhedron, a default conversation theme (such as a music theme) can be set for the polyhedron, and a polyhedral theme selection function is provided for the first user, so that the first user can select a target conversation theme for the polyhedron according to the self requirement when the first user is not interested in the default conversation theme. In a specific implementation, the terminal may output a theme selection window of the conversation theme in the conversation request interface, where the theme selection window includes a plurality of theme selection buttons, for example, theme selection buttons of conversation themes such as a mood theme, a music theme, and a game theme. In one embodiment, the terminal may directly display a theme selection window in the session request interface; in yet another embodiment, the session request interface may include a theme trigger button; the terminal may output a theme selection window in the session request interface after detecting the clicking operation of the first user on the theme trigger button, as shown in fig. 7 b. The first user can select the target conversation theme which the first user wants to select by clicking the corresponding main body selection button in the theme selection window, and the terminal can update the polyhedral conversation theme according to the selection operation of the first user on the plurality of theme selection buttons. For example, if the first user clicks the theme selection button of the mood theme, the terminal may update the conversation theme corresponding to the polyhedron from the music theme to the mood theme, and update the matching elements corresponding to each sub-region in the polyhedron from the conversation theme under the music theme to the conversation theme under the mood theme, as shown in fig. 7 c. It should be noted that, when the session topic corresponding to the polyhedron is a music topic, the first user may also click on each sub-region in the polyhedron to play music corresponding to the session topic, as shown in fig. 7 d.
In another embodiment, since the structure of the polyhedron in the embodiment of the present invention is similar to that of the n-th-order magic cube, when the terminal displays the polyhedron, a default order (e.g., second order) may be set for the polyhedron, where the order is used to determine the number of sub-regions included in each face of the polyhedron; for example, if the order of the polyhedron is 2, it may be determined that each face of the polyhedron includes 4(2 times 2) sub-regions; as another example, if the order of the polyhedron is 3, it may be determined that each face of the polyhedron includes 9(3 times 3) subregions. The higher the order of the polyhedron is, the more sub-regions are included in each face of the polyhedron, so that the subsequent matching can be more accurate; and, the higher the order of the polyhedron is, the greater the difficulty of the rotation operation for the polyhedron is, so that a stronger operation feeling can be brought to the first user. Based on this, in order to facilitate that the first user can adjust the order of the polyhedron according to the self requirement, the embodiment of the invention can also provide the order selection function of the polyhedron for the first user. In a specific implementation, the terminal may output a polyhedral order selection window in the session request interface, where the order selection window includes a plurality of order selection buttons, for example, order selection buttons of orders of second order, third order, fourth order, and the like. In one embodiment, the terminal may directly display the order selection window in the session request interface; in yet another embodiment, the session request interface may include an order trigger button; the terminal may output the order selection window in the session request interface after detecting a click operation of the first user on the order trigger button, as shown in fig. 7 e. The first user can select a target order which the first user wants to select in the order selection window, and the terminal can update the orders of the polyhedron and the number of the sub-regions included in each face according to the selection operation of the first user on the plurality of order selection buttons. For example, if the first user clicks the order selection button of third order, the terminal may update the order of the polyhedron from second order to third order, and update the number of sub-regions included in each face of the polyhedron from 4 to 9, as shown in fig. 7 f. For convenience of illustration, the order of the polyhedron is taken as the second order for illustration.
S602, responding to the rotation operation of the first user for the polyhedron, and determining a target matching factor corresponding to the selected state surface according to the rotation operation.
From the foregoing, when each face of the polyhedron includes a plurality of sub-regions, the first user may rotate the sub-region corresponding to the matching element or elements that the first user wants to select to a preset position (e.g., a top position) of the polyhedron by performing a rotation operation on the sub-region in one or more faces of the polyhedron, so as to complete the setting of the target matching factor. Therefore, the rotation operation in the embodiment of the present invention includes a third rotation operation that is an operation of rotating the N first sub-regions in the selected state face to another face. Correspondingly, in the process of executing step S602, the terminal may determine, in response to a third rotation operation, N second sub-regions rotated into the selected state surface according to the third rotation operation, where the second sub-regions are used to replace the rotated first sub-region in the selected state surface; and then, obtaining a target matching factor corresponding to the selected state surface according to the matching elements corresponding to the N second sub-regions and the matching elements corresponding to the first sub-region which is not rotated in the selected state surface. See, for example, fig. 7g for: the matching elements (i.e., session topics) corresponding to the first sub-area are all "acids", the first user rotates 2 first sub-areas (the first sub-area a and the first sub-area b) in the selected state surface out of the selected state surface, and rotates 2 second sub-areas (the second sub-area a and the second sub-area b) in the surface located at the right position into the selected state surface, and then the target matching factors corresponding to the selected state surface may include the matching element "acids" corresponding to the first sub-area c that is not rotated, the matching element "acids" corresponding to the first sub-area d, the matching element "open heart" corresponding to the second sub-area a, and the matching element "open heart" corresponding to the second sub-area b.
S603, acquiring the weight of each matching element in the target matching factor and the display information of the element identifier of each matching element in the target matching factor in the selected state surface, wherein the display information comprises a display area and a display number.
In one embodiment, the terminal may obtain the weight of each matching element in the target matching factor according to a preset corresponding relationship between the matching element and the weight; it should be noted that, if the sum of the weights of the matching elements obtained according to the correspondence is not equal to 1, normalization processing may be further performed on the weights of the matching elements to update the weights of the matching elements. For example, the target matching factor includes two matching elements of "acid" and "happy", and the weight of the "acid" obtained according to the correspondence is 0.2 and the weight of the "happy" is 0.3; since the sum of the weights of the two matching elements is not equal to 1, the weights of the two elements can be normalized: 0.2/(0.2+0.3) ═ 0.4, 0.3/(0.2+0.3) ═ 0.6; and then, respectively updating the weight of each matching element by adopting each normalized value, namely the updated weight of the acid is 0.4, and the updated weight of the distraction is 0.6.
In another embodiment, the terminal may further determine the weight of each matching element according to the displayed number of the element identifier of the matching element displayed by each sub-region in the selected state, where the sub-region includes a first sub-region that is not rotated and a second sub-region that is rotated into the selected state surface. Specifically, the total number of the element identifiers of the matching elements in the target matching factor may be determined according to the display number of the element identifiers of the matching elements displayed in each sub-region in the selected state; then, the total number of the element identifications of each matching element in the target matching factor is normalized to obtain the weight of each matching element in the target matching factor. For example, the number of display of the element identifiers (lemon icons) of the matching element "acid" displayed in the first sub-region c in the selected state face is 2, the number of display of the element identifiers (lemon icons) of the matching element "acid" displayed in the first sub-region d is 4, the number of display of the element identifiers (smiley icons) of the matching element "open heart" displayed in the second sub-region a is 1, and the number of display of the element identifiers (smiley icons) of the matching element "open heart" displayed in the second sub-region b is 3; then the total number of the element identifications matching the element "acid" in the target matching factor can be determined to be 6, and the total number of the element identifications matching the element "happy" is determined to be 4; and (3) normalizing the total number of the element identifications of each matched element: since 6/(6+4) is 0.6 and 4/(6+4) is 0.4, the weight of the matching element "acid" in the target matching factor is 0.6, and the weight of the matching element "open heart" in the target matching factor is 0.4. Therefore, in this embodiment, the first user can set the target matching factor by rotating the polyhedron, so as to customize the weight of each matching element in the target matching factor, and then perform user matching based on the weight customized by the first user; practice shows that the method can enhance the operation feeling of the first user and make the matching result more in line with the expectation of the first user, namely, the matching result is more accurate.
After acquiring the weight of each matching element in the target matching factor, the terminal may display the acquired weight of each matching element in the target matching factor in a session request interface, as shown in fig. 7 g. When the first user sets a target matching factor and wants to perform user matching according to the target matching factor, the first user may click an acknowledgement button (e.g., the "just you are" button in fig. 7 g) in the session request interface; the terminal may perform steps S604 to S605 upon detecting a click operation of the confirmation button by the first user.
S604, generating matching information according to the weight of each matching element in the target matching factor and the display information of the element identifier of each matching element in the target matching factor.
S605, sending the matching information to the server so that the server matches the first user with a second user according to the matching information.
The matching information may include display information of the weight of each matching element in the target matching factor and the element identifier of each matching element in the target matching factor, and the display information includes a display area and a display number of the element identifier of the matching element in the selected state plane. After receiving the matching information, the server may match a second user to the first user according to the matching information, and the specific implementation process may include the following steps s11-s 12:
and s11, calculating the matching degree between each user to be matched and the first user in the matching pool according to the matching information.
In one embodiment, the server may calculate the matching degree between each user to be matched in the matching pool and the first user only according to the matching information. For any user to be matched in the matching pool, the server may first obtain matching information sent by the user to be matched. And secondly, calculating the element similarity of each matching element in the target matching factor between the user to be matched and the first user according to the matching information of the user to be matched and the matching information of the first user. In specific implementation, for any matching element in the target matching factor, whether the matching information of the user to be matched contains the display information of the element identifier of the matching element can be judged. If yes, judging whether the display information of the element identifier of the matching element in the matching information of the user to be matched is consistent with the display information in the matching information of the first user. If the matching element is consistent with the first user, determining that the element similarity of the matching element between the user to be matched and the first user is 1; if not, the element similarity of the matching element between the user to be matched and the first user can be determined to be 0. For example, the target matching factor includes a matching element "acid", the element is identified as a lemon icon, and the matching information of the user to be matched includes display information of the lemon icon; and, the display information of the lemon icon in the matching information of the first user includes: the display area is a first sub-area c, and the display number is 2. Then, if the display information of the lemon icon in the matching information of the user to be matched includes: the display area is a first sub-area c, the display number is 2, and the element similarity of the acid between the first user and the user to be matched is 1; if the display information of the lemon icon in the matching information of the user to be matched comprises: the display area is a first sub-area c, and the display number is 1; or, the display area is the first sub-area d, the display number is 2, and the element similarity of the "acid" between the first user and the user to be matched is 0.
After the element similarity between the user to be matched and the first user of each matching element in the target matching factor is calculated and obtained based on the element similarity calculation method, the weight of each matching element in the target matching factor and the element similarity between the user to be matched and the first user of each matching element can be adopted to carry out weighted summation to obtain the matching degree between each matching user and the first user. For example, the target matching factor includes 4 matching elements: "acid" (weight of 0.2, element similarity of 1), "open heart" (weight of 0.3, element similarity of 0), "sad" (weight of 0.3, element similarity of 1), and "angry" (weight of 0.2, element similarity of 1), then the degree of match is equal to 0.2 x 1+0.3 x 0+0.3 x 1+0.2 x 1-0.7.
It should be noted that, if at least two sub-regions exist in the selected state plane and show the element identifiers of the same matching element in the target matching factor, the element similarity between the user to be matched and the first user when the matching element is in different sub-regions can be calculated by taking the sub-regions as a unit; that is, the matching element calculated in this case has a plurality of element similarities. In the process of calculating the matching degree through weighted summation, the weight of the matching element can be subjected to mean processing according to the number of element similarities of the matching element to update the weight of the matching element, and then the matching degree is obtained through weighted summation based on the updated weight of the matching element. See, for example, the right diagram of FIG. 7 h: the first sub-area c and the first sub-area d in the selected state surface both display element identifications (lemon icons) matching the element "acid"; then, by taking the sub-region as a unit, the element similarity corresponding to the matching element "acid" in the first sub-region c is calculated to be 1, and the element similarity corresponding to the matching element "acid" in the first sub-region d is calculated to be 1. Similarly, the second sub-area a and the second sub-area b in the selected state surface both display element identifiers (smiley face icons) matching the element "happy"; then, by taking the sub-region as a unit, the element similarity corresponding to the matching element "happy" in the second sub-region a is 1, and the element similarity corresponding to the matching element "happy" in the second sub-region b is 1. As can be seen, the "acid" in the target matching factor has two element similarities (both 1), and the "happy" has two element similarities (0 and 1), so the weight of the "acid" (for example, 0.6) can be averaged according to the number of the element similarities of the "acid", and the updated weight of the "acid" is 0.6/2 — 0.3; and averaging the weight (such as 0.4) of the "open heart" according to the number of element similarities of the "open heart", so as to obtain an updated weight of the "open heart" of 0.4/2-0.2. Finally, weighting and summing the updated weight of each matching element in the target matching factor and the element similarity of each matching element between the user to be matched and the first user to obtain the matching degree; i.e. the degree of matching equals: 0.3 × 1+0.2 × 0 ═ 0.8.
In another embodiment, the server may calculate, in combination with the matching information and the user profile of the first user, a matching degree between each user to be matched in the matching pool and the first user. Aiming at any user to be matched in the matching pool, the server can obtain a first matching weight corresponding to the matching information and a second matching weight corresponding to the user data; the first matching weight and the second matching weight may be set according to actual service requirements or empirical values. Calculating a first matching degree between the first user and the user to be matched according to the matching information of the first user and the matching information of the user to be matched, wherein the specific calculation mode can refer to the above-mentioned related description of calculating the matching degree between each user to be matched and the first user in the matching pool only according to the matching information, and is not repeated herein; and calculating a second matching degree between the first user and the user to be matched according to the user profile of the first user and the user profile of the user to be matched, wherein the specific calculation manner may refer to the related description of step 403 in the foregoing embodiment, which is not described herein again. Then, the first matching degree, the first matching weight, the second matching degree and the second matching weight can be used for weighted summation to obtain the matching degree between the user to be matched and the first user. For example, the first matching weight and the second matching weight are both 0.5; if the first matching degree calculated according to the matching information of the first user and the matching information of the user to be matched is 1 (namely 100%), and the second matching degree calculated according to the user profile of the first user and the user profile of the user to be matched is 0.8 (namely 80%), the matching degree between the user to be matched and the first user is equal to: 1 × 0.5+0.8 × 0.5 ═ 0.9 (i.e., 90%).
And s12, screening one or more matching users from the matching pool according to the calculated matching degree.
In a specific implementation, for any user, whether the matching degree between the user and the first user is greater than a matching threshold value or not can be compared; if so, taking the user as a matched user; by traversing all the users to be matched in the user matching pool in the mode, one or more matched users can be obtained. Then, a second user can be selected from the screened matched users; in an embodiment, one of the screened matching users may be randomly selected as the second user, or the matching user with the maximum matching degree may be selected as the first user.
S606, receiving the user identification of the second user returned by the server.
S607, a target session is established between the first user and the second user.
In the specific implementation process of steps S606-S607, after the terminal receives the user identifier of the second user through step S606, it may directly execute step S607 and output the session window of the target session. In another embodiment, after receiving the user identifier of the second user through step S606, the terminal may output a prompt interface of the matching result, as shown in fig. 7 h. And after detecting the session request operation input by the first user (e.g. clicking a "start chat" button in the prompt interface), executing step S607 and outputting a session window of the target session, as shown in fig. 7 i. In one embodiment, the target session may be a time-limited session.
According to the embodiment of the invention, when the target session is established, the polyhedron used for session matching can be displayed in the session request interface to attract the first user to rotate the polyhedron, so that the participation sense of the first user in the session establishing process can be increased, and the interestingness of the whole session establishing process is improved to avoid the loss of the first user in the session establishing process. After the selection operation of the first user on the polyhedron is detected, the target matching factor corresponding to the selected state face can be determined according to the rotation operation; and then matching the first user with the second user according to the target matching factor, thereby establishing a target session between the first user and the second user. Because the target matching factor is set by the first user through the rotation operation of the polyhedron, the second user meeting the requirement of the first user can be matched more accurately according to the target matching factor, and the satisfaction degree of the first user on the target conversation is improved.
Fig. 8 is a schematic diagram illustrating another session creation method according to an embodiment of the present invention. In the embodiment of the invention, the target session is a group session between a first user and at least two second users; referring to fig. 8, the session creation method may include the following steps S801 to S808:
s801, displaying a polyhedron used for conversation matching in a conversation request interface.
When the first user wants to make an expanded list of friends, the expanded list of friends making interface may be opened first, and the specific opening manner may be referred to the related description of step S401 in the above embodiment, which is not described herein again. Referring to fig. 5b, the expanded friend-making interface may default to a request interface for a single chat session; the friend-making interface can comprise a switching button for single chat session and group session; the first user can enter a session request interface by clicking the switching button; accordingly, after detecting the click operation of the first user on the switch button, the terminal may switch from the friend-making expansion interface to the conversation request interface, as shown in fig. 9 a. In the embodiment of the present invention, the session request interface is a request interface of a group session, which can be specifically shown in the right diagram of fig. 9 a; the structure of the polyhedron in the session request interface is similar to that of the first-order magic cube, and the polyhedron can further comprise a selected state surface, wherein the selected state surface is a surface located at a preset position in the polyhedron.
When detecting that a first user performs a request interface (namely a session request interface) of a group session by clicking a switching button, the terminal may further send a group push request to the server, where the group push request carries a user identifier of the first user, and the group push request is used to request the server to push x (x is a positive integer) recommendation groups to the terminal, so that the terminal displays session contents of the x recommendation groups in the session request interface, and one recommendation group corresponds to one session topic; a specific flowchart thereof can be seen in fig. 9 b. Correspondingly, after receiving the group pushing request sent by the terminal, the server may first obtain the user data of the first user according to the user identifier of the first user; secondly, calculating the group matching degree between the first user and each group to be matched according to the user data of the first user and the attribute information (such as group data) of each group to be matched in the group matching pool; and the group to be matched with the group matching degree larger than the matching threshold value can be used as a candidate matching group; then, x candidate matching groups can be randomly selected from the candidate matching groups as recommendation groups, or the x candidate matching groups can be sequentially selected from the candidate matching groups from high to low as recommendation groups. And then, the session content of the recommended group and the group identifier are sent to the terminal, where the group identifier may include a group name, a group avatar, a group account, and the like. It should be noted that, if the server fails to acquire the recommended group from the group matching pool according to the user data of the first user, for example, there is no group to be matched in the group matching pool, or the group matching degree between the first user and the group to be matched is smaller than the matching threshold, both of these cases may result in failure to acquire the recommended group; the server may also enter the creation flow of anonymous time-limited groups. In the creating process of the anonymous time-limited group, the server can obtain at least two recommended users from the user matching pool according to the user data of the first user, and create a recommended group by adopting the obtained at least two recommended users, so that the first user can join the interested time-limited chat group, and the experience is improved.
Correspondingly, after receiving the session content and the group identifier of each recommendation group issued by the server, the terminal may respectively display the session content of each recommendation group in each face of the polyhedron, as shown in the right diagram of fig. 9 a; displaying the conversation content of a recommendation group on one side, wherein one recommendation group corresponds to one conversation theme; therefore, each face of the polyhedron corresponds to one conversation theme. It should be noted that the value of x is greater than or equal to the number of visible surfaces in the polyhedron, where the visible surfaces are the surfaces of the polyhedron that can be seen by the first user; as shown in the right diagram of fig. 9a, the polyhedron includes 3 visible faces, i.e., x is greater than or equal to 3, such as a face at the front position, a face at the top position, and a face at the right position. After acquiring the session contents of x recommendation groups, the terminal may display the session contents of the recommendation groups in a corresponding number only on the polyhedral visual surface, that is, the terminal may display the session contents of 3 recommendation groups only on the polyhedral visual surface; when the first user is not interested in the 3 recommendation groups, the 4 th conversation theme can be selected by rotating the polyhedron, and at the moment, the terminal can display the conversation content of the recommendation group corresponding to the 4 th conversation theme on the selected dynamic surface; by displaying the session content only in the visual plane, the display resources of the terminal can be saved. In addition, in the embodiment of the present invention, a smaller value may be set for x, for example, if the number of the visible surfaces is 3, x may be set to be equal to 4; when the xth recommended group is displayed on the selected state surface, the terminal can pull the group identifier and the session content of a new recommended group from the server and store the group identifier and the session content in the local space as a standby, so as to push the group identifier and the session content. Therefore, the terminal can be prevented from acquiring more recommendation groups from the server at one time, and the memory of the local space of the terminal is prevented from being excessively occupied. In addition, in order to avoid the problem that the uninteresting groups are repeatedly recommended to the first user, the terminal can feed back the uninteresting groups of the first user to the server in real time according to the rotation operation of the first user, so that the server can filter the uninteresting groups of the first user fed back by the terminal in the subsequent pushing process.
S802, responding to the rotation operation of the first user for the polyhedron, determining a target matching factor corresponding to the selected state surface according to the rotation operation, wherein the target matching factor corresponding to the selected state surface is a target conversation theme.
The first user can rotate the face corresponding to the conversation theme to be viewed to a preset position through rotating the polyhedron, so that the group content of the recommendation group under the conversation theme is viewed in the selected state face, and the recommendation group under the target conversation theme corresponding to the selected state face is the target group. Correspondingly, the terminal can respond to the rotation operation of the first user and determine a target matching factor corresponding to the selected state surface according to the rotation operation; the rotation operation here includes a first rotation operation or a second rotation operation. It should be noted that, for a specific implementation of step S802, reference may be made to the related description of step S402 in the foregoing embodiment, and details are not described herein again.
And S803, acquiring the group identification and the conversation content of a target group matched with the first user according to the target conversation theme, wherein the target group comprises at least two users.
And S804, displaying the acquired conversation content of the target group in the selected state surface of the polyhedron.
In the specific implementation process of steps S803-S804, it can be known from the foregoing that the session content and the group identifier of the recommended group under each session topic displayed in the polyhedron by the terminal are both acquired from the server in advance; therefore, after the target conversation topic is determined, the terminal can directly acquire the group identifier and the conversation content of the target group matched with the first user from the local space according to the target conversation topic. The obtained conversation content of the target group can be displayed in the selected state face of the polyhedron, so that the first user can better view the conversation content of the target group.
S805, a group selection operation input based on the session content displayed in the selected state is detected, and a group selection instruction is generated according to the group selection operation.
S806, the group selection instruction is sent to the server, so that the server matches the first user with at least two second users according to the group selection instruction.
And S807, receiving the user identifications of the at least two second users returned by the server.
And S808, establishing a target session between the first user and the second user.
In the specific implementation process of steps S805 to S808, since the selected state face of the polyhedron displays the session content of the target group; therefore, the first user can check the conversation content of the target group in real time and judge whether the target group is interested according to the information such as the activity of the target group. In one embodiment, if the first user is interested in the target group, each user in the target group may be designated as the second user by clicking the session content displayed in the selected state plane, so as to join the target group. Correspondingly, the group selection operation can comprise an operation of clicking the conversation content displayed in the selected state surface; in this case, when generating the group selection instruction according to the group selection operation, the terminal may directly generate the group selection instruction carrying the group identifier of the target group, where the group selection instruction is used to instruct the server to use each user in the target group as the second user. Correspondingly, after receiving the group selection instruction, the server may take each user in the target group as a second user, return the user identifier of the second user to the terminal, and establish a target session between the first user and at least two users. After the target session is established, the terminal may output a session window of the target session, as shown in fig. 9 c.
In another embodiment, if the first user is not interested in the target group, the terminal may further provide a group creation function for the first user, so that the first user can set a group establishment password according to the own requirement, thereby implementing matching of the second user to the first user according to the group establishment password and establishment of the target session. In a specific implementation, the session request interface may further include a group creation button, and the first user may further enter the group password input interface by clicking the group creation button. Accordingly, the group selection operation may include an operation of clicking a group creation button; in this case, when generating the group selection command according to the group selection operation, the terminal may output a group password input interface in response to the group selection operation, where the group password input interface includes a password polyhedron for setting a group password, as shown in fig. 9 d. That is, in the group password input interface, the first user can see a password polyhedron, and a default password can be displayed in a selected state surface of the password polyhedron; the first user can rotate the password polyhedron through a third rotation operation to switch the default password, so that the group building password which the first user wants is set; the first user, after completing the setting of the group password, may click a confirmation button (e.g., "enter group x" button) in the group password input interface. At this time, the terminal may determine the group establishment password input by the first user according to a rotation operation (i.e., a third rotation operation) on the password polyhedron, and generate a group selection instruction carrying the group establishment password, where the group selection instruction is used to instruct the server to match at least two second users for the first user according to the group establishment password.
Correspondingly, after receiving the group selection instruction, the server may match the first user with at least two second users according to the group establishment password, and a specific matching process may be as shown in fig. 9 e. The server can detect whether at least the group password of the group to be matched is the same as the group establishing password carried in the group selection instruction or the password similarity is larger than a preset value in the group matching pool; and if so, taking each user in the group to be matched as a second user. If not, detecting whether the group cipher to be matched is the same as the group cipher carried in the group selection instruction or the cipher similarity is larger than a preset value in a cache space storing a plurality of group ciphers to be matched; if the group establishment password to be matched is the same as the group establishment password carried in the group selection instruction or the similarity of the passwords is greater than a preset value, the user sending the group establishment password to be matched can be used as a second user; and if not, the second user is considered to fail to be matched according to the group building password. The calculation method of the password similarity may refer to the calculation method of the matching degree mentioned in step S11 in step S605 in the above embodiment of the present invention, and details are not repeated here. After the server matches the first user with at least two second users according to the group building password, the user identifications of the at least two second users can be returned to the terminal. In the process that the server matches the first user with the second user according to the group password, the terminal also displays a scanning animation (e.g., an animation of scanning up and down a scan line) in the group password input interface, as shown in fig. 9 f. After the terminal receives the user identifier of the second user, a target session between the first user and the second user may be established, and a session window may be output, as shown in fig. 9 g. In one embodiment, the target session may also be a time-limited session, and the life cycle (duration) of the target session may be set according to an empirical value, for example, set to 24 hours. When the life cycle of the target session is over (e.g., the duration of the target session is equal to 24 hours), the target session is closed, i.e., the group formed by the first user and the second user is dismissed.
If the server is not successfully matched with the second user according to the group building password (namely, the second user is unsuccessfully matched according to the group building password), response information can be sent to the terminal; correspondingly, if the terminal receives the response information of the matching failure returned by the server, the terminal may output a prompt message in the group password input interface, where the prompt message is used to prompt the first user to cache the group establishment password, as shown in fig. 9 h. If the first user wants to continue to create a group according to the group establishment password, the first user can input a feedback operation (such as an operation of sliding a finger upwards in a screen); correspondingly, the terminal can respond to the feedback operation aiming at the prompt message and send a cache instruction to the server so that the server stores the group establishment password into the cache space, and at least two second users are continuously matched for the first user according to the group establishment password at the next time. At this time, the terminal may also output a buffer space interface, as shown in fig. 9 i. A return button may also be included in the cache space interface, which the first user may click to enter the group password entry interface to reset the group password. Accordingly, the terminal may switch from the cache space interface to the group password input interface in response to the click operation of the first user on the return button, as shown in fig. 9 j.
Therefore, the embodiment of the invention expands the function that the first user sets the group establishing password by utilizing the polyhedron, so that the terminal can match the second user for the first user according to the group establishing password, thereby establishing the group session; therefore, the randomness of group chat can be increased, the first user has more chances to encounter other strangers, and the expansion of the friend relationship chain is promoted. Moreover, as can be seen from the above embodiments, in the session creation process, the embodiments of the present invention provide multiple user matching manners, which can satisfy multiple social demands of the first user and really precipitate social relationships.
It should be noted that, when the target session is a single chat session between the first user and one second user, or a group session between the first user and at least two second users, after the target session is established, the terminal may further add a session identifier of the target session to the message list, where the session identifier includes a session avatar of the second user in the target session or a group avatar of the group session. In practice, the first user may enter the message list by clicking a message button in the expanded friend-making interface, as shown in fig. 9 k. When there is a new session message, the message list will have a message reminder. In one embodiment, when the target session is a limited time session, in order to provide a sense of urgency of time to the first user, thereby prompting the first user to more actively chat and friend with the second user, the terminal may further control the session identifier in the message list to gradually disappear as time elapses to provide the sense of urgency to the user, thereby prompting the user to chat and friend. Specifically, the terminal can obtain the total duration of the display of the session identifier and the display control strategy of the session identifier; and dynamically displaying and controlling the display of the session identifier according to the display control strategy and the display duration of the session identifier within the total duration range allowing the display of the session identifier. The conversation mark comprises a visual area, and the size of the visual area is smaller than or equal to that of the conversation mark; the display control policy includes at least one of: gradually decreasing the size of the visual area as the display duration of the session identifier increases until the size of the visual area becomes zero, as shown in fig. 9 l; and when the remaining display duration of the session identifier is equal to the preset remaining duration, displaying a countdown icon in the session identifier, and controlling the countdown icon to perform countdown display, as shown in fig. 9 m; the preset remaining time period may be set according to actual service requirements, for example, may be set to 60 seconds.
According to the embodiment of the invention, when the target session is established, the polyhedron used for session matching can be displayed in the session request interface to attract the first user to rotate the polyhedron, so that the participation sense of the first user in the session establishing process can be increased, and the interestingness of the whole session establishing process is improved to avoid the loss of the first user in the session establishing process. After the selection operation of the first user on the polyhedron is detected, the target matching factor corresponding to the selected state face can be determined according to the rotation operation; and then matching the first user with the second user according to the target matching factor, thereby establishing a target session between the first user and the second user. Because the target matching factor is set by the first user through the rotation operation of the polyhedron, the second user meeting the requirement of the first user can be matched more accurately according to the target matching factor, and the satisfaction degree of the first user on the target conversation is improved.
Based on the description of the above embodiment of the session creating method, the embodiment of the present invention also discloses a session creating apparatus, which may be a computer program (including a program code) running in a terminal. The session creation apparatus may perform the methods shown in the flowcharts of fig. 2, 4, 6, 8, etc. Referring to fig. 10, the session creation apparatus may operate as follows:
the display unit 101 is configured to display a polyhedron used for session matching in a session request interface, where the polyhedron includes a selected state surface, and the selected state surface is a surface located at a preset position in the polyhedron;
the processing unit 102 is configured to, in response to a rotation operation of a first user on the polyhedron, determine a target matching factor corresponding to the selected state face according to the rotation operation;
the processing unit 102 is configured to match a second user for the first user according to the target matching factor;
a session unit 103, configured to establish a target session between the first user and the second user.
In one embodiment, the rotation operation includes a first rotation operation that is an operation of sliding within a preset sliding range of the polyhedron to rotate a face of the polyhedron; correspondingly, when the processing unit 102 is configured to, in response to a rotation operation of the first user on the polyhedron, determine the target matching factor corresponding to the selected state face according to the rotation operation, specifically: in response to the first rotation operation, determining a target face rotated to the preset position from the polyhedron according to the first rotation operation; and determining the target surface as a selected state surface, and determining the matching factor corresponding to the target surface as a target matching factor corresponding to the selected state surface.
In another embodiment, the session request interface further includes a rotational navigation of the polyhedron, where the rotational navigation includes a plurality of navigation elements and a selected position for indicating a selected target navigation element, where the navigation elements are used to represent matching factors, and one matching factor corresponds to one surface; the second rotation operation is an operation of rotating the rotational navigation of the polyhedron to rotate the faces of the polyhedron, the matching factor represented by the target navigation element rotated to the selected position by the second rotation operation is a target matching factor, and the face corresponding to the target matching factor is rotated to the preset position to serve as a selected state face.
In another embodiment, each face of the polyhedron includes a plurality of sub-regions, each sub-region corresponds to a matching element, and the matching element is a topic of a conversation under a topic of the conversation; the rotation operation comprises a third rotation operation; the third rotation operation is an operation of rotating N first subregions in the selected state surface to another surface, wherein N is a positive integer; correspondingly, when the processing unit 102 is configured to, in response to a rotation operation of the first user on the polyhedron, determine the target matching factor corresponding to the selected state face according to the rotation operation, specifically: in response to the third rotation operation, determining N second sub-regions rotated into the selected state face according to the third rotation operation, wherein the second sub-regions are used for replacing the rotated first sub-regions in the selected state face; and obtaining a target matching factor corresponding to the selected state surface according to the matching elements corresponding to the N second sub-regions rotated into the selected state surface and the matching elements corresponding to the first sub-regions not rotated in the selected state surface.
In another embodiment, the target session is a single chat session between the first user and a second user, and the target matching factor corresponding to the selected state is a target session topic; correspondingly, when the processing unit 102 is configured to match the first user with the second user according to the target matching factor, specifically, to: acquiring user identifications of a plurality of matched users matched with the first user according to the target conversation theme; displaying the user identifications of the plurality of matching users in the selected state face of the polyhedron; acquiring user selection operation input based on the user identification displayed in the selected state surface; and selecting a second user from the plurality of matched users according to the user selection operation.
In another embodiment, when the processing unit 102 is configured to obtain, according to the target conversation topic, user identifiers of a plurality of matching users that match the first user, specifically: generating a matching request according to the target conversation theme and the user identification of the first user; sending the matching request to the server, so that the server obtains the user data of the first user according to the user identification of the first user, matches a plurality of matching users for the first user according to the user data of the first user and the target conversation theme, and returns the user identifications of the plurality of matching users; and receiving the user identifications of the multiple matched users returned by the server.
In another embodiment, when the processing unit 102 is configured to display the user identifications of the multiple matching users in the selected state face of the polyhedron, it is specifically configured to: acquiring the matching degree between each matched user and the first user; determining the display forms of the user identifications of the matching users according to the matching degrees between the matching users and the first user, wherein different matching degrees correspond to different display forms; and displaying the user identification of each matched user in the selected state surface of the polyhedron according to the display form of the user identification of each matched user.
In another embodiment, the user selection operation includes an operation of clicking any user identifier displayed in the selected state surface; correspondingly, when the processing unit 102 is configured to select a second user from the multiple matching users according to the user selection operation, it may specifically be configured to: determining the clicked user identification in the selected state surface according to the user selection operation; and selecting the matched user indicated by the clicked user identification from the plurality of matched users as a second user.
In yet another embodiment, the display unit 101 can be further configured to: displaying a session window of the target session; and if the conversation messages sent by the second user are not received and the number of the conversation messages sent by the first user is equal to the preset number in the display process of the conversation window, setting the state of a message sending inlet in the conversation window to be a shielding state.
In another embodiment, the session request interface further includes a random matching button, and the user selection operation includes an operation of clicking the random matching button; correspondingly, when the processing unit 102 is configured to select a second user from the multiple matching users according to the user selection operation, it may specifically be configured to: acquiring the clicked time of the random matching button according to the user selection operation; generating a user selection instruction carrying the click time, and sending the user selection instruction to a server, wherein the user selection instruction is used for instructing the server to select a second user from the multiple matched users according to the click time and the matching degree between each matched user and the first user; and receiving the user identification of the second user returned by the server.
In yet another embodiment, the display unit 101 can be further configured to: responding to the user selection operation, and acquiring a matching animation corresponding to the target conversation theme; and playing the acquired matching animation in the session request interface.
In yet another embodiment, the display unit 101 can be further configured to: displaying a session window of the target session; and if the display duration of the conversation window is equal to the preset duration, closing the conversation window.
In another embodiment, the target session is a single chat session between the first user and a second user, each face of the polyhedron includes a plurality of sub-areas, each sub-area corresponds to a matching element, an element identifier of the matching element is displayed in the sub-area, the matching element is a topic of the session under a topic of the session, and the target matching factor corresponding to the selected state face includes matching elements corresponding to the sub-areas of the selected state face; correspondingly, when the processing unit 102 is configured to match the first user with the second user according to the target matching factor, it may specifically be configured to: acquiring the weight of each matching element in the target matching factor and display information of element identification of each matching element in the target matching factor in the selected state surface, wherein the display information comprises a display area and a display number; generating matching information according to the weight of each matching element in the target matching factor and the display information of the element identifier of each matching element in the target matching factor; sending the matching information to the server so that the server matches a second user for the first user according to the matching information; and receiving the user identification of the second user returned by the server.
In yet another embodiment, the polyhedron corresponds to a conversation topic; accordingly, the processing unit 102 is further operable to: outputting a theme selection window of a conversation theme in the conversation request interface, wherein the theme selection window comprises a plurality of theme selection buttons; and updating the conversation theme of the polyhedron according to the selection operation of the first user on the plurality of theme selection buttons.
In yet another embodiment, the processing unit 102 is further configured to: outputting an order selection window of the polyhedron in the session request interface, wherein the order selection window comprises a plurality of order selection buttons, and the order is used for determining the number of sub-regions included in each face of the polyhedron; and updating the orders of the polyhedron and the number of the sub-regions included in each face according to the selection operation of the first user on the plurality of order selection buttons.
In another embodiment, the target session is a group session between the first user and at least two second users, and the target matching factor corresponding to the selected state face is a target session topic; correspondingly, when the processing unit 102 is configured to match the first user with the second user according to the target matching factor, it may specifically be configured to: acquiring a group identifier and session content of a target group matched with the first user according to the target session theme, wherein the target group comprises at least two users; displaying the acquired conversation content of the target group in a selected state surface of the polyhedron; detecting group selection operation input based on the session content displayed in the selected state surface, and generating a group selection instruction according to the group selection operation; sending the group selection instruction to a server so that the server matches at least two second users for the first user according to the group selection instruction; and receiving the user identifications of the at least two second users returned by the server.
In another embodiment, the group selection operation includes an operation of clicking conversation content displayed in the selected state face; correspondingly, when the processing unit 102 is configured to generate the group selection instruction according to the group selection operation, it may specifically be configured to: and generating a group selection instruction carrying the group identifier of the target group, wherein the group selection instruction is used for indicating the server to take each user in the target group as a second user.
In another embodiment, the session request interface further includes a group creation button, and the group selection operation includes an operation of clicking the group creation button; correspondingly, when the processing unit 102 is configured to generate the group selection instruction according to the group selection operation, it may specifically be configured to: responding to the group selection operation, outputting a group password input interface, wherein the group password input interface comprises a password polyhedron used for setting a group password; determining a group building password input by the first user according to a rotation operation aiming at the password polyhedron; and generating a group selection instruction carrying the group establishment password, wherein the group selection instruction is used for indicating the server to match at least two second users for the first user according to the group establishment password.
In yet another embodiment, the processing unit 102 is further configured to: if response information of matching failure returned by the server is received, outputting prompt information in the group password input interface; and responding to the feedback operation aiming at the prompt message, sending a cache instruction to the server so as to enable the server to store the group building password into a cache space, and continuing to match at least two second users for the first user according to the group building password in the next time.
In another embodiment, the target session is a single chat session between the first user and one second user, or a group session between the first user and at least two second users; accordingly, the processing unit 102 is further operable to: adding a session identifier of the target session to a message list, wherein the session identifier comprises a session avatar of a second user in the target session or a group avatar of the group session; acquiring the total duration of allowing the session identifier to be displayed and a display control strategy of the session identifier; within the range of the total duration allowing the display of the session identifier, dynamically controlling the display of the session identifier according to the display duration of the session identifier and the display control strategy; wherein the session identifier comprises a visual area, and the size of the visual area is smaller than or equal to that of the session identifier; the display control policy includes at least one of: gradually reducing the size of the visual area along with the increase of the display duration of the session identifier until the size of the visual area becomes zero; and when the remaining display duration of the session identifier is equal to the preset remaining duration, displaying a countdown icon in the session identifier, and controlling the countdown icon to perform countdown display.
According to an embodiment of the present invention, the steps involved in the methods shown in the flowcharts of fig. 2, fig. 4, fig. 6, fig. 8, etc. may be performed by the units in the session creation apparatus shown in fig. 10. For example, step S201 shown in fig. 2 may be performed by the display unit 101 shown in fig. 10, steps S202 and S203 may be performed by the processing unit 102 shown in fig. 10, and step S204 may be performed by the conversation unit 103 shown in fig. 10; as another example, step S401 shown in fig. 4 may be performed by the display unit 101 shown in fig. 10, steps S402-S406 may be performed by the processing unit 102 shown in fig. 10, and step S407 may be performed by the conversation unit 103 shown in fig. 10; as another example, step S601 shown in fig. 6 may be performed by the display unit 101 shown in fig. 10, steps S602 to S606 may be performed by the processing unit 102 shown in fig. 10, and step S607 may be performed by the conversation unit 103 shown in fig. 10; as another example, step S801 shown in fig. 8 may be performed by the display unit 101 shown in fig. 10, steps S802 to S807 may be performed by the processing unit 102 shown in fig. 10, and step S808 may be performed by the conversation unit 103 shown in fig. 10; and so on.
According to another embodiment of the present invention, the units in the session creation apparatus shown in fig. 10 may be respectively or entirely combined into one or several other units to form one or several other units, or some unit(s) therein may be further split into multiple units with smaller functions to form one or several other units, which may achieve the same operation without affecting the achievement of the technical effect of the embodiment of the present invention. The units are divided based on logic functions, and in practical application, the functions of one unit can be realized by a plurality of units, or the functions of a plurality of units can be realized by one unit. In other embodiments of the present invention, the session creation apparatus may also include other units, and in practical applications, these functions may also be implemented by being assisted by other units, and may be implemented by cooperation of multiple units.
According to another embodiment of the present invention, the session creation apparatus shown in fig. 10 may be constructed by running a computer program (including program codes) capable of executing the steps involved in the respective methods shown in flowcharts of fig. 2, 4, 6, and 8 on a general-purpose computing device such as a computer including a processing element such as a Central Processing Unit (CPU), a random access storage medium (RAM), a read only storage medium (ROM), and a storage element, and implementing the session creation method of the embodiment of the present invention. The computer program may be recorded on a computer-readable recording medium, for example, and loaded and executed in the above-described computing apparatus via the computer-readable recording medium.
According to the embodiment of the invention, when the target session is established, the polyhedron used for session matching can be displayed in the session request interface to attract the first user to rotate the polyhedron, so that the participation sense of the first user in the session establishing process can be increased, and the interestingness of the whole session establishing process is improved to avoid the loss of the first user in the session establishing process. After the selection operation of the first user on the polyhedron is detected, the target matching factor corresponding to the selected state face can be determined according to the rotation operation; and then matching the first user with the second user according to the target matching factor, thereby establishing a target session between the first user and the second user. Because the target matching factor is set by the first user through the rotation operation of the polyhedron, the second user meeting the requirement of the first user can be matched more accurately according to the target matching factor, and the satisfaction degree of the first user on the target conversation is improved.
Based on the description of the method embodiment and the device embodiment, the embodiment of the invention also provides a terminal. Referring to fig. 11, the terminal includes at least a processor 201, an input device 202, an output device 203, and a computer storage medium 204. Wherein the processor 201, input device 202, output device 203, and computer storage medium 204 within the terminal may be connected by a bus or other means.
A computer storage medium 204 may be stored in the memory of the terminal, said computer storage medium 204 being adapted to store a computer program comprising program instructions, said processor 201 being adapted to execute said program instructions stored by said computer storage medium 204. The processor 201 (or CPU) is a computing core and a control core of the terminal, and is adapted to implement one or more instructions, and in particular, is adapted to load and execute the one or more instructions so as to implement a corresponding method flow or a corresponding function; in one embodiment, the processor 201 according to the embodiment of the present invention may be configured to perform a series of session creation processes, including: displaying a polyhedron for conversation matching in a conversation request interface; responding to the rotation operation of a first user for the polyhedron, and determining a target matching factor corresponding to the selected state face according to the rotation operation; matching a second user for the first user according to the target matching factor; establishing a target session between the first user and the second user, and so on.
The embodiment of the invention also provides a computer storage medium (Memory), which is a Memory device in the terminal and is used for storing programs and data. It is understood that the computer storage medium herein may include a built-in storage medium in the terminal, and may also include an extended storage medium supported by the terminal. The computer storage medium provides a storage space that stores an operating system of the terminal. Also stored in this memory space are one or more instructions, which may be one or more computer programs (including program code), suitable for loading and execution by processor 201. The computer storage medium may be a high-speed RAM memory, or may be a non-volatile memory (non-volatile memory), such as at least one disk memory; and optionally at least one computer storage medium located remotely from the processor.
In one embodiment, one or more instructions stored in a computer storage medium may be loaded and executed by processor 201 to perform the corresponding steps of the method described above in connection with the session creation embodiment; in particular implementations, one or more instructions in a computer storage medium are loaded by processor 201 and perform the session creation methods described above.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (24)

1. A session creation method, comprising:
displaying a polyhedron used for session matching in a session request interface, wherein the polyhedron comprises a selected state surface, and the selected state surface is a surface positioned at a preset position in the polyhedron;
responding to the rotation operation of a first user for the polyhedron, and determining a target matching factor corresponding to the selected state face according to the rotation operation;
matching a second user for the first user according to the target matching factor;
a target session is established between the first user and the second user.
2. The method according to claim 1, wherein the rotation operation includes a first rotation operation that is an operation of sliding within a preset sliding range of the polyhedron to rotate a face of the polyhedron;
the determining, in response to a rotation operation of a first user on the polyhedron according to the rotation operation, a target matching factor corresponding to the selected state face includes:
in response to the first rotation operation, determining a target face rotated to the preset position from the polyhedron according to the first rotation operation;
and determining the target surface as a selected state surface, and determining the matching factor corresponding to the target surface as a target matching factor corresponding to the selected state surface.
3. The method of claim 1, wherein the session request interface further comprises a rotational navigation of the polygon, the rotational navigation comprising a plurality of navigation elements and a selected position for indicating a selected target navigation element, the navigation elements being for representing matching factors, and one matching factor corresponding to one face;
the second rotation operation is an operation of rotating the rotational navigation of the polyhedron to rotate the faces of the polyhedron, the matching factor represented by the target navigation element rotated to the selected position by the second rotation operation is a target matching factor, and the face corresponding to the target matching factor is rotated to the preset position to serve as a selected state face.
4. The method of claim 1, wherein each face of the polyhedron comprises a plurality of sub-regions, each sub-region corresponding to a matching element, the matching elements being topic of a conversation under the topic of a conversation; the rotation operation comprises a third rotation operation; the third rotation operation is an operation of rotating N first subregions in the selected state surface to another surface, wherein N is a positive integer;
the determining, in response to a rotation operation of a first user on the polyhedron according to the rotation operation, a target matching factor corresponding to the selected state face includes:
in response to the third rotation operation, determining N second sub-regions rotated into the selected state face according to the third rotation operation, wherein the second sub-regions are used for replacing the rotated first sub-regions in the selected state face;
and obtaining a target matching factor corresponding to the selected state surface according to the matching elements corresponding to the N second sub-regions rotated into the selected state surface and the matching elements corresponding to the first sub-regions not rotated in the selected state surface.
5. The method of claim 1, wherein the target session is a single chat session between the first user and a second user, and the target matching factor corresponding to the selected state is a target session topic;
the matching a second user for the first user according to the target matching factor comprises:
acquiring user identifications of a plurality of matched users matched with the first user according to the target conversation theme;
displaying the user identifications of the plurality of matching users in the selected state face of the polyhedron;
acquiring user selection operation input based on the user identification displayed in the selected state surface;
and selecting a second user from the plurality of matched users according to the user selection operation.
6. The method of claim 5, wherein the obtaining user identifications of a plurality of matching users that match the first user based on the target conversation topic comprises:
generating a matching request according to the target conversation theme and the user identification of the first user;
sending the matching request to the server, so that the server obtains the user data of the first user according to the user identification of the first user, matches a plurality of matching users for the first user according to the user data of the first user and the target conversation theme, and returns the user identifications of the plurality of matching users;
and receiving the user identifications of the multiple matched users returned by the server.
7. The method of claim 5, wherein said displaying user identifications of the plurality of matching users in a selected state face of the polyhedron, comprises:
acquiring the matching degree between each matched user and the first user;
determining the display forms of the user identifications of the matching users according to the matching degrees between the matching users and the first user, wherein different matching degrees correspond to different display forms;
and displaying the user identification of each matched user in the selected state surface of the polyhedron according to the display form of the user identification of each matched user.
8. The method according to any one of claims 5 to 7, wherein the user selection operation includes an operation of clicking any user identification displayed in the selected state face; the selecting a second user from the plurality of matched users according to the user selection operation includes:
determining the clicked user identification in the selected state surface according to the user selection operation;
and selecting the matched user indicated by the clicked user identification from the plurality of matched users as a second user.
9. The method of claim 8, wherein the method further comprises:
displaying a session window of the target session;
and if the conversation messages sent by the second user are not received and the number of the conversation messages sent by the first user is equal to the preset number in the display process of the conversation window, setting the state of a message sending inlet in the conversation window to be a shielding state.
10. The method of any of claims 5-7, wherein the session request interface further comprises a random match button, the user selection operation comprising an operation of clicking on the random match button; the selecting a second user from the plurality of matched users according to the user selection operation includes:
acquiring the clicked time of the random matching button according to the user selection operation;
generating a user selection instruction carrying the click time, and sending the user selection instruction to a server, wherein the user selection instruction is used for instructing the server to select a second user from the multiple matched users according to the click time and the matching degree between each matched user and the first user;
and receiving the user identification of the second user returned by the server.
11. The method of claim 10, wherein the method further comprises:
responding to the user selection operation, and acquiring a matching animation corresponding to the target conversation theme;
and playing the acquired matching animation in the session request interface.
12. The method of claim 10, wherein the method further comprises:
displaying a session window of the target session;
and if the display duration of the conversation window is equal to the preset duration, closing the conversation window.
13. The method of claim 1, wherein the target session is a single chat session between the first and second users, each face of the polyhedron comprises a plurality of sub-regions, each sub-region corresponds to a matching element, an element identifier of the matching element is displayed in the sub-region, the matching element is a topic of the session under the topic of the session, and the target matching factor corresponding to the selected face comprises matching elements corresponding to the sub-regions of the selected face;
the matching a second user for the first user according to the target matching factor comprises:
acquiring the weight of each matching element in the target matching factor and display information of element identification of each matching element in the target matching factor in the selected state surface, wherein the display information comprises a display area and a display number;
generating matching information according to the weight of each matching element in the target matching factor and the display information of the element identifier of each matching element in the target matching factor;
sending the matching information to the server so that the server matches a second user for the first user according to the matching information;
and receiving the user identification of the second user returned by the server.
14. The method of claim 13, wherein the polyhedron corresponds to a conversation topic, the method further comprising:
outputting a theme selection window of a conversation theme in the conversation request interface, wherein the theme selection window comprises a plurality of theme selection buttons;
and updating the conversation theme of the polyhedron according to the selection operation of the first user on the plurality of theme selection buttons.
15. The method of claim 13, wherein the method further comprises:
outputting an order selection window of the polyhedron in the session request interface, wherein the order selection window comprises a plurality of order selection buttons, and the order is used for determining the number of sub-regions included in each face of the polyhedron;
and updating the orders of the polyhedron and the number of the sub-regions included in each face according to the selection operation of the first user on the plurality of order selection buttons.
16. The method of claim 1, wherein the target session is a group session between the first user and at least two second users, and the target matching factor corresponding to the selected facet is a target session topic;
the matching a second user for the first user according to the target matching factor comprises:
acquiring a group identifier and session content of a target group matched with the first user according to the target session theme, wherein the target group comprises at least two users;
displaying the acquired conversation content of the target group in a selected state surface of the polyhedron;
detecting group selection operation input based on the session content displayed in the selected state surface, and generating a group selection instruction according to the group selection operation;
sending the group selection instruction to a server so that the server matches at least two second users for the first user according to the group selection instruction;
and receiving the user identifications of the at least two second users returned by the server.
17. The method of claim 16, wherein the group selection operation includes an operation of clicking on conversation content displayed in the selected aspect; the generating a group selection instruction according to the group selection operation includes:
and generating a group selection instruction carrying the group identifier of the target group, wherein the group selection instruction is used for indicating the server to take each user in the target group as a second user.
18. The method of claim 16, wherein the session request interface further comprises a group creation button, the group selection operation comprising an operation of clicking on the group creation button; the generating a group selection instruction according to the group selection operation includes:
responding to the group selection operation, outputting a group password input interface, wherein the group password input interface comprises a password polyhedron used for setting a group password;
determining a group building password input by the first user according to a rotation operation aiming at the password polyhedron;
and generating a group selection instruction carrying the group establishment password, wherein the group selection instruction is used for indicating the server to match at least two second users for the first user according to the group establishment password.
19. The method of claim 18, wherein the method further comprises:
if response information of matching failure returned by the server is received, outputting prompt information in the group password input interface;
and responding to the feedback operation aiming at the prompt message, sending a cache instruction to the server so as to enable the server to store the group building password into a cache space, and continuing to match at least two second users for the first user according to the group building password in the next time.
20. The method of claim 1, wherein the target session is a single chat session between the first user and one second user or a group session between the first user and at least two second users; the method further comprises the following steps:
adding a session identifier of the target session to a message list, wherein the session identifier comprises a session avatar of a second user in the target session or a group avatar of the group session;
acquiring the total duration of allowing the session identifier to be displayed and a display control strategy of the session identifier;
and dynamically controlling the display of the session identifier according to the display duration of the session identifier and the display control strategy within the total duration range allowing the display of the session identifier.
21. The method of claim 20, wherein the session identifier comprises a visual area, the size of the visual area being less than or equal to the size of the session identifier;
the display control policy includes at least one of: gradually reducing the size of the visual area along with the increase of the display duration of the session identifier until the size of the visual area becomes zero; and when the remaining display duration of the session identifier is equal to the preset remaining duration, displaying a countdown icon in the session identifier, and controlling the countdown icon to perform countdown display.
22. A session creation apparatus, comprising:
the display unit is used for displaying a polyhedron used for session matching in a session request interface, wherein the polyhedron comprises a selected state surface, and the selected state surface is a surface positioned at a preset position in the polyhedron;
the processing unit is used for responding to the rotation operation of a first user on the polyhedron, and determining a target matching factor corresponding to the selected state face according to the rotation operation;
the processing unit is used for matching a second user for the first user according to the target matching factor;
a session unit, configured to establish a target session between the first user and the second user.
23. A terminal comprising an input device and an output device, further comprising:
a processor adapted to implement one or more instructions; and the number of the first and second groups,
a computer storage medium having stored thereon one or more instructions adapted to be loaded by the processor and to perform a session creation method according to any of claims 1-21.
24. A computer storage medium having stored thereon one or more instructions adapted to be loaded by a processor and to perform a session creation method as claimed in any one of claims 1 to 21.
CN201910825647.0A 2019-08-30 2019-08-30 Session creation method, device, terminal and storage medium Active CN112448825B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910825647.0A CN112448825B (en) 2019-08-30 2019-08-30 Session creation method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910825647.0A CN112448825B (en) 2019-08-30 2019-08-30 Session creation method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN112448825A true CN112448825A (en) 2021-03-05
CN112448825B CN112448825B (en) 2022-03-15

Family

ID=74734909

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910825647.0A Active CN112448825B (en) 2019-08-30 2019-08-30 Session creation method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN112448825B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113222000A (en) * 2021-05-06 2021-08-06 西安电子科技大学 Method and system for dynamically creating and resolving group according to position

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080261660A1 (en) * 2007-04-20 2008-10-23 Huh Han Sol Mobile terminal and screen displaying method thereof
CN101360197A (en) * 2007-08-03 2009-02-04 三星电子株式会社 Broadcast receiver and user input device having item matching function, and method thereof
CN101957719A (en) * 2009-07-14 2011-01-26 Lg电子株式会社 Portable terminal and display control method thereof
EP2363792A1 (en) * 2010-03-02 2011-09-07 GryfTechnologia sp. z o.o. A controlling system with a polyhedral graphical user interface
CN102385476A (en) * 2010-08-31 2012-03-21 Lg电子株式会社 Mobile terminal and controlling method thereof
US20130063423A1 (en) * 2011-09-09 2013-03-14 National Taiwan University Of Science And Technology User interface of an electronic device
CN105407035A (en) * 2015-10-26 2016-03-16 深圳市乐唯科技开发有限公司 Method of establishing friend relation and apparatus
CN105407040A (en) * 2015-11-11 2016-03-16 掌赢信息科技(上海)有限公司 Instant messaging method and equipment
CN106161575A (en) * 2015-04-28 2016-11-23 腾讯科技(深圳)有限公司 User matching method and device
CN109189288A (en) * 2017-09-05 2019-01-11 南京知行新能源汽车技术开发有限公司 Data processing system, computer implemented method and non-transitory machine-readable media
CN109936493A (en) * 2017-07-22 2019-06-25 长沙军鸽软件有限公司 A kind of methods, devices and systems of intelligence exchange contact person

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080261660A1 (en) * 2007-04-20 2008-10-23 Huh Han Sol Mobile terminal and screen displaying method thereof
CN101360197A (en) * 2007-08-03 2009-02-04 三星电子株式会社 Broadcast receiver and user input device having item matching function, and method thereof
CN101957719A (en) * 2009-07-14 2011-01-26 Lg电子株式会社 Portable terminal and display control method thereof
EP2363792A1 (en) * 2010-03-02 2011-09-07 GryfTechnologia sp. z o.o. A controlling system with a polyhedral graphical user interface
CN102385476A (en) * 2010-08-31 2012-03-21 Lg电子株式会社 Mobile terminal and controlling method thereof
US20130063423A1 (en) * 2011-09-09 2013-03-14 National Taiwan University Of Science And Technology User interface of an electronic device
CN106161575A (en) * 2015-04-28 2016-11-23 腾讯科技(深圳)有限公司 User matching method and device
CN105407035A (en) * 2015-10-26 2016-03-16 深圳市乐唯科技开发有限公司 Method of establishing friend relation and apparatus
CN105407040A (en) * 2015-11-11 2016-03-16 掌赢信息科技(上海)有限公司 Instant messaging method and equipment
CN109936493A (en) * 2017-07-22 2019-06-25 长沙军鸽软件有限公司 A kind of methods, devices and systems of intelligence exchange contact person
CN109189288A (en) * 2017-09-05 2019-01-11 南京知行新能源汽车技术开发有限公司 Data processing system, computer implemented method and non-transitory machine-readable media

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113222000A (en) * 2021-05-06 2021-08-06 西安电子科技大学 Method and system for dynamically creating and resolving group according to position
CN113222000B (en) * 2021-05-06 2024-02-09 西安电子科技大学 Method and system for dynamically creating and dismissing groups according to positions

Also Published As

Publication number Publication date
CN112448825B (en) 2022-03-15

Similar Documents

Publication Publication Date Title
US8734255B2 (en) Methods and systems for providing a game center having player specific options and statistics
EP2883168A1 (en) A user recommendation method and a user recommendation system using the same
EP3321876A1 (en) Methods and devices for carrying out service operation on the basis of a chat group and acquiring group member information
US11154774B2 (en) System and method for providing recommendations for in-game events
US20170054662A1 (en) Systems and methods for facilitating gameplay within messaging feeds
CN113350793B (en) Interface element setting method and device, electronic equipment and storage medium
US20210075747A1 (en) Systems, methods, and storage media configured to integrate artificial intelligence chatbots into a communication between real-world users
CN111464430A (en) Dynamic expression display method, dynamic expression creation method and device
WO2012166639A1 (en) Personalized information for a non-acquired asset
WO2023056741A1 (en) Grouping method and apparatus for game, and device and storage medium
CN112448825B (en) Session creation method, device, terminal and storage medium
CN116688526A (en) Virtual character interaction method and device, terminal equipment and storage medium
WO2023138184A1 (en) Prompt information display method and apparatus, storage medium and electronic device
CN115686300A (en) User interaction method, device, equipment and storage medium
CN115193043A (en) Game information sending method and device, computer equipment and storage medium
KR101493145B1 (en) Method of processing game event, server performing the same and storage media storing the same
AU2015100300B4 (en) Methods and systems for providing a game center having player specific options and statistics
KR102479764B1 (en) Method and apparatus for generating a game party
WO2023160056A1 (en) Virtual character processing method and apparatus, device, storage medium, and program product
CN117618899A (en) Game configuration interface display method and device
KR20220061546A (en) Method and apparatus for controlling game
CN117861208A (en) Game interaction method, game interaction device, electronic equipment and computer readable storage medium
CN115933929A (en) Online interaction method, device, equipment and storage medium
CN117041646A (en) Method, apparatus, device and storage medium for generating media content
CN116739572A (en) Method and device for picking up virtual resources, computer equipment and storage medium

Legal Events

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

Ref country code: HK

Ref legal event code: DE

Ref document number: 40040472

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant