CN110333919B - Method and equipment for presenting social object information - Google Patents
Method and equipment for presenting social object information Download PDFInfo
- Publication number
- CN110333919B CN110333919B CN201910364533.0A CN201910364533A CN110333919B CN 110333919 B CN110333919 B CN 110333919B CN 201910364533 A CN201910364533 A CN 201910364533A CN 110333919 B CN110333919 B CN 110333919B
- Authority
- CN
- China
- Prior art keywords
- social object
- page
- session
- current
- object information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 238000009877 rendering Methods 0.000 claims abstract description 35
- 230000015654 memory Effects 0.000 claims description 35
- 238000004891 communication Methods 0.000 description 9
- 238000004590 computer program Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 9
- 235000012054 meals Nutrition 0.000 description 8
- 230000005291 magnetic effect Effects 0.000 description 7
- 230000004044 response Effects 0.000 description 4
- 235000015170 shellfish Nutrition 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000003993 interaction Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000009182 swimming Effects 0.000 description 2
- 101100498818 Arabidopsis thaliana DDR4 gene Proteins 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000005294 ferromagnetic effect Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000001902 propagating effect Effects 0.000 description 1
- 238000001228 spectrum Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/01—Social networking
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Tourism & Hospitality (AREA)
- Economics (AREA)
- Primary Health Care (AREA)
- Strategic Management (AREA)
- Human Resources & Organizations (AREA)
- General Health & Medical Sciences (AREA)
- General Business, Economics & Management (AREA)
- Marketing (AREA)
- Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Information Transfer Between Computers (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application aims to provide a method and equipment for presenting social object information, wherein the method comprises the following steps: detecting whether an access operation on a target social object in a current conversation page exists or not; if the access operation exists, acquiring member information of the target social contact object from a corresponding server; generating social object information corresponding to the member information; and inserting the social object information into the current session page, and re-rendering the current session page. According to the method and the device, the social object information is directly presented on the current session page, so that the operation efficiency of the user is improved, and the use experience of the user is improved.
Description
Technical Field
The present application relates to the field of communications, and more particularly, to a technique for presenting social object information.
Background
With the development of the times, people gradually come up with a plurality of social software, such as WeChat, QQ and the like, and the social software draws the distance between people in the society, so that the world becomes a unified whole. In current social software, when a user chats between a conversation page and a social object, the user needs to click on the avatar of the social object and open a new page to view information of the social object.
Disclosure of Invention
One object of the present application is to provide a method and apparatus for presenting social object information.
According to one aspect of the present application, there is provided a method of presenting social object information, the method comprising:
detecting whether an access operation on a target social object in a current conversation page exists or not;
if the access operation exists, acquiring member information of the target social contact object from a corresponding server;
generating social object information corresponding to the member information;
and inserting the social object information into the current session page, and re-rendering the current session page.
According to another aspect of the present application, there is provided a method of presenting social object information, the method comprising:
detecting whether an access operation on a target social object in a current session page exists or not;
if the access operation exists, acquiring member information of the target social contact object corresponding to the access operation from a corresponding server;
updating a target session message corresponding to the access operation according to the member information, wherein the member information is newly added to the target session message;
and re-rendering the current session page to present the updated target session message.
According to an aspect of the present application, there is provided an apparatus for presenting social object information, the apparatus comprising:
the one-to-one module is used for detecting whether an access operation to a target social object in a current conversation page exists;
a second module, configured to obtain member information of the target social object from a corresponding server if the access operation exists;
the three modules are used for generating social object information corresponding to the member information;
and a fourth module, configured to insert the social object information in the current session page, and re-render the current session page.
According to another aspect of the present application, there is provided an apparatus for presenting social object information, the apparatus comprising:
the second module is used for detecting whether an access operation on a target social object in the current session page exists or not;
a second module, configured to, if the access operation exists, obtain member information of the target social object corresponding to the access operation from a corresponding server;
a second module and a third module, which are used for updating the target session message corresponding to the access operation according to the member information, wherein the member information is newly added to the target session message;
and a fourth module, configured to re-render the current session page to present the updated target session message.
According to an aspect of the present application, there is provided an apparatus for presenting social object information, wherein the apparatus comprises:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to perform the operations of any of the methods described above.
According to one aspect of the application, there is provided a computer-readable medium storing instructions that, when executed, cause a system to perform the operations of any of the methods described above.
Compared with the prior art, the method and the device have the advantages that the head portrait of a certain social object or the session message corresponding to the social object is clicked on the session page, the social object information is directly presented on the current session page, and the situation that the social object information can be checked only by frequently opening a new page is avoided; furthermore, the method and the device can avoid missing new session information of the current session page when the social object information is checked, so that the operation efficiency of the user is improved, and the use experience of the user is improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
FIG. 1 illustrates a flow diagram of a method of presenting social object information, according to one embodiment of the present application;
FIG. 2 illustrates a flow diagram of a method of presenting social object information, according to one embodiment of the present application;
FIG. 3 illustrates a presentation diagram for presenting social object information, according to one embodiment of the present application;
FIG. 4 illustrates a presentation diagram for presenting social object information, according to one embodiment of the present application;
FIG. 5 illustrates a block diagram of a device for presenting social object information, according to one embodiment of the present application;
FIG. 6 illustrates a block diagram of a device for presenting social object information, according to one embodiment of the present application;
FIG. 7 illustrates an exemplary system that can be used to implement the various embodiments described herein;
FIG. 8 illustrates a presentation diagram for presenting social object information, according to one embodiment of the present application.
The same or similar reference numbers in the drawings identify the same or similar elements.
Detailed Description
The present application is described in further detail below with reference to the attached drawing figures.
In a typical configuration of the present application, the terminal, the device serving the network, and the trusted party each include one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
The device referred to in this application includes, but is not limited to, a user device, a network device, or a device formed by integrating a user device and a network device through a network. The user equipment includes, but is not limited to, any mobile electronic product, such as a smart phone, a tablet computer, etc., capable of performing human-computer interaction with a user (e.g., human-computer interaction through a touch panel), and the mobile electronic product may employ any operating system, such as an android operating system, an iOS operating system, etc. The network device includes an electronic device capable of automatically performing numerical calculation and information processing according to a preset or stored instruction, and hardware thereof includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like. The network device includes but is not limited to a computer, a network host, a single network server, a plurality of network server sets or a cloud of a plurality of servers; here, the Cloud is composed of a large number of computers or web servers based on Cloud Computing (Cloud Computing), which is a kind of distributed Computing, one virtual supercomputer consisting of a collection of loosely coupled computers. Including, but not limited to, the internet, a wide area network, a metropolitan area network, a local area network, a VPN network, a wireless Ad Hoc network (Ad Hoc network), etc. Preferably, the device may also be a program running on the user device, the network device, or a device formed by integrating the user device and the network device, the touch terminal, or the network device and the touch terminal through a network.
Of course, those skilled in the art will appreciate that the foregoing is by way of example only, and that other existing or future devices, which may be suitable for use in the present application, are also encompassed within the scope of the present application and are hereby incorporated by reference.
In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
FIG. 1 shows a flowchart of a method for presenting social object information, which includes step S11, step S12, step S13, and step S14, according to an embodiment of the present application. In step S11, the user equipment detects whether there is an access operation to a target social object in the current session page; in step S12, if the access operation exists, the user equipment obtains member information of the target social object from a corresponding server; in step S13, the user equipment generates social object information corresponding to the member information; in step S14, the user device inserts the social object information in the current session page and re-renders the current session page.
In step S11, the user device detects whether there is an access operation to the target social object in the current conversation page. In some embodiments, the access operation includes, but is not limited to, a user clicking on an avatar of a target social object in the current conversation page or a user clicking on a conversation message sent by a target social object in the conversation page. For example, a message "eat and go today" sent by the user a is presented in the current session page, the user clicks the avatar corresponding to the user a, or the user clicks the session message "eat and go today", and the current session page presents the information of the user a.
In step S12, if the access operation exists, the user equipment obtains the member information of the target social object from the corresponding server. In some embodiments, the member information includes, but is not limited to, a nickname, a gender, a location, interests, and the like of the target social object, and the member information is stored in a cache or a database of a server corresponding to the social application. For example, the user clicks the head portrait of the user a on the session page, a request for acquiring the member information of the user a is sent to the server, the server receives the request, compares the time with the time of the last request for the member information of the user a, directly returns the member information of the user a (for example, nickname: "beibei", gender: "male", region: "pu dong new district of shanghai", interest: "swimming") stored in the cache to the user equipment as the response result of the request if the time interval is less than the cache expiration time (for example, 5 minutes), and searches the member information of the user a from the database and returns the member information of the user a to the user equipment as the response result of the request if the time interval is greater than or equal to the cache expiration time.
In step S13, the user device generates social object information corresponding to the member information. In some embodiments, the social object information is used to render a view control to be presented on the session page, where the view control includes a text box, a picture control, a button, and the like, and the social object information includes text information, text box size information, and the like to be displayed in the text box of the session page. For example, the user equipment acquires member information (nickname: "babe", gender: "male") of the user A from the server, and generates social object information corresponding to the member information of the user A (text box 1: { content: "babe", height: "100 pixels", width: "300 pixels", font size: "10 no", font color: "black", margin: "30 pixels in vertical margin from the head pixel of the user A", alignment mode: "horizontal alignment", text box 2: "content:" male ", height:" 80 pixels ", width:" 250 pixels ", font size:" 8 ", font color:" black ", margin:" 10 pixels in vertical margin from the text box 1 ", alignment mode:" horizontal alignment ").
In step S14, the user device inserts the social object information in the current session page and re-renders the current session page. And the user equipment inserts the social object information corresponding to the member information into the conversation page and re-renders the conversation page so as to present the social object information. For example, social object information corresponding to the member information of user A (text box 1: { content: "Beibei", height: "100 pixels", width: "300 pixels", font size: "10", font color: "black", edge distance: "30 pixels from the vertical edge distance of the head pixel of user A", alignment manner: "horizontal alignment" }, text box 2: { content: "man", height: "80 pixels", width: "250 pixels", font size: "8", font color: "black", edge distance: "10 pixels from the vertical edge distance of text box 1", alignment manner: "horizontal alignment" }), the social object information is inserted into the current conversation page and the current conversation page is re-rendered to present text box 1 at 30 pixels below the head pixel of user A, the content of text box 1 is "Beibei bei", text box 2 is presented at the lower 10 pixels of text box 1, the content of text box 2 being "male".
In some embodiments, the step S14 includes: and the user equipment inserts the social object information into the current session page according to the position information of the target session message corresponding to the access operation in the current session page, and re-renders the current session page, wherein the social object information and the target session message are adjacent in position in the current session page. The target session message includes, but is not limited to, a session message corresponding to a click operation of the user, for example, the current session page includes view controls corresponding to a plurality of session messages, where a session message includes an avatar of a social object and a session message sent by the social object, and a view control corresponding to a session message includes a picture control corresponding to the avatar of the social object and a text box corresponding to the session message sent by the social object. The current session page comprises an array or a linked list consisting of session information, wherein each item in the array or the linked list can be a session message or social object information, the social object information corresponding to the target social object is inserted into a set position in the data or the linked list according to the position of the target session message corresponding to the click operation in the data or the linked list, wherein the set position is adjacent to the position of the target session message in the data or the linked list, the data or the linked list is updated, and the current session page is re-rendered to present the updated session page including the social object information. For example, there are 5 session messages in the current session page, the user clicks on the 3 rd session message, the position of the 3 rd session message in the array corresponding to the current session page is 2 (the position in the array is marked from 0), the social object corresponding to the 3 rd session message is user a, the social object information of the user a is inserted into the array, wherein the position of the social object information in the inserted array is adjacent to the position of the target session message in the inserted array, the position of the social object information in the inserted array is 2 or 3, and the current session page is re-rendered to present the social object information of the user a.
In some embodiments, the step S14 includes: the user equipment determines the display position of the social object information in the current conversation page according to the position information of the target conversation message in the current conversation page; inserting the social object information into the current session page according to the display position, and re-rendering the current session page, wherein the social object information and the target session message are adjacent in position in the current session page. For example, according to the position information of the target session message in the current session page, the social object information is determined to be displayed above or below the target session message, the social object information is inserted above or below the target session message, and the current session page is re-rendered so as to present the social object information on the current session page. For example, there are 5 session messages in the previous session page, the user clicks on the 3 rd session message, the social object of the 3 rd session message object is user a, the social object information of user a is above or below the display position of the 3 rd session message at the display position of the current session, the social object information of user a is inserted above or below the display position of the 3 rd session message, and the current session page is re-rendered to present the social object information of user a.
In some embodiments, the step S14 further includes a step S141 before re-rendering the session page, and the step S141 includes: and the user equipment updates the position information of the target session message in the current session page and/or the position information of other session messages positioned behind the target session message. For example, according to the position of the target session message in the array or linked list corresponding to the current session page, the position of the social object information in the array or linked list is determined, the social object information is inserted into the position in the array or linked list, and meanwhile, the positions of other session messages behind the position in the array or linked list are sequentially moved backward by one bit. For example, 5 session messages exist in the current session page, the user clicks the 3 rd session message, the position of the 3 rd session message in the array is 2, the social object corresponding to the 3 rd session message is user a, the social object information of the user a is inserted into the position 3 of the array, the original positions 3 and 4 of the 4 th and 5 th session messages in the array are sequentially shifted backward by one bit, and the positions of the updated 4 th and 5 th session messages in the array are 4 and 5 respectively.
In some embodiments, the method further comprises step S15: in step S15, the ue receives a second session message in the session to which the current session page belongs, where the second session message is a latest session message received by the server; and inserting the second session message at the end of the current session page, and re-rendering the current session page. For example, the current session page corresponds to an array or a linked list, and at this time, the user equipment receives a new session message of the current session sent by the server, inserts the new session message to the end of the array or the linked list, and re-renders the current session page to present the latest received session message. For example, there are 5 session messages in the current session page, the user device receives a new session message (sender: "user B", sender avatar: "www.abc.com/userB. png", message content: "I go to sleep"), inserts the new session message to the end of the array, the position of the new session message in the array is 5, re-renders the current session page to present the received new session message.
In some embodiments, the method further comprises step S16: in step S16, if the maximum distance between the social object information and the second session message in the current session page is greater than or equal to the predetermined distance threshold information, re-determining the display position of the social object information in the current session page; reinserting the social object information in the current conversation page according to the display position, and re-rendering the current conversation page, wherein the maximum distance between the social object information and the second conversation message in the current conversation page is smaller than the distance threshold information. If the current session page presents the social object information, at this time, the user equipment receives a new session message of the current session sent by the server, inserts the new session message into the end of the array or the linked list corresponding to the current session page to present the social object information and the new session message at the same time, where a maximum distance between the social object information and the new session message is a distance difference (usually in units of pixels) from an upper edge of a view control corresponding to the social object information to a lower edge of the view control corresponding to the new session message, and if the maximum distance is greater than or equal to predetermined distance threshold information, which may be a page height (usually in units of pixels) of the current session page, the social object information and the new session message cannot be displayed in the current session page at the same time, and one of the social object information and the new session message cannot be displayed outside the current session page, therefore, the display position of the social object information in the current conversation page needs to be adjusted, the new display position of the social object information in the current conversation page is determined, and the social object information is removed from the old display position and inserted into the new display position, so that the social object information and the new conversation message are simultaneously displayed in the current conversation page. For example, there are 10 session messages in the current session page, the user clicks on the 1 st session message, the position of the 1 st session message in the array is 0, the social object corresponding to the 1 st session message is user A, the social object information of the user A is inserted into the position 1 of the array, to display the social object information of user a below the 1 st conversation message, at which point the user device receives the new conversation message, inserts the new conversation message to the end of the array, since the maximum distance between the social object information of the user a and the new session message is greater than the predetermined distance threshold information at this time, the social object information of the user a and the new session information cannot be displayed at the same time, the social object information is removed from the position 1 of the array, and inserted into the position 10 of the array, and the conversation page is re-rendered to simultaneously display the social object information of the user a and the new conversation message.
In some embodiments, said re-determining the display position of said social object information in said current session page comprises: searching a third session message corresponding to the target social object in the current session page by the user equipment, wherein the maximum distance between the third session message and the second session message in the session page is smaller than the distance threshold information; and if the third session message exists, taking the position information of the third session message in the current session page as the redetermined display position of the social object information in the current session page. For example, the current conversation page corresponds to an array, a conversation message which is sent by a target social object most recently is searched in the current conversation page, if the maximum distance between the conversation message and a new conversation message is smaller than the preset distance threshold information, the display position of the conversation message in the current conversation page is used as the new display position of the social object information in the current conversation page, the social object information is removed from the old display position and inserted into the new display position, and the social object information and the new conversation message are displayed on the current conversation page at the same time. For example, there are 10 session messages in the current session page, the user clicks the 1 st session message, the position of the 1 st session message in the array is 0, the social object corresponding to the 1 st session message is user a, the social object information of user a is inserted into position 1 of the array to display the social object information of user a below the 1 st session message, at this time, the user equipment receives the new session message, the new session message is inserted into the end of the array, that is, position 11, since the maximum distance between the social object information of user a and the new session message is greater than the predetermined distance threshold information at this time, the social object information of user a and the new session information cannot be simultaneously displayed, the message that user a has most recently sent is the 9 th session message, the maximum distance between the 9 th session message and the new session message is less than the predetermined distance threshold information, the social object information is removed from position 1 of the array and inserted into position 9 of the array, and the conversation page is re-rendered to display the social object information of user A below the 9 th conversation message.
In some embodiments, the method further includes step S17 (not shown), in step S17, if the social object information is not visible in the display window of the current conversation page, re-determining the display position of the social object information in the current conversation page; reinserting the social object information in the current conversation page according to the display position, and re-rendering the current conversation page, wherein the social object information and the second conversation message are simultaneously visible in a display window of the current conversation page. For example, a current session page presents a new session message, by monitoring a sliding event of the current session page, whether a certain session message or social object information is visible in a display window of the current session page can be obtained in a callback of the sliding event, if the social object information is not visible in the display window of the current session page, a new display position of the social object information in the current session page is re-determined, the social object information is removed from an old display position and inserted into a new display position, and the current session page is re-rendered, so that the social object information and the new session message are simultaneously visible in the display window of the current session page.
In some embodiments, the method further includes step S18 (not shown), and in step S18, the display positions of other conversation messages in the current conversation page between the adjusted pre-and post-positions of the social object information are updated accordingly, and the current conversation page is re-rendered. For example, the current conversation page has 5 conversation messages, the position of the 3 rd conversation message in the array is 2, the social object corresponding to the 3 rd conversation message is user a, the social object information of user a is displayed below the 3 rd conversation message, the position of the social object information of user a in the array is 3, at this time, the user equipment receives the new conversation message, inserts the new conversation message to the end of the array, that is, the position of the new conversation message in the array is 6, at this time, the current conversation page already presents the new conversation message, since the social object of user a is not visible in the display window of the current conversation page at this time, the position of the social object information of user a in the array is adjusted from 3 to 5, correspondingly, the display positions of the conversation messages located at the original positions 4 and 5 of the array are updated to the positions 3 and 4 of the array, and re-rendering the current conversation page to simultaneously display the social object information and the new conversation message on the current conversation page.
In some embodiments, the current session page further includes indication information for characterizing an association between the social object information and the target social object. The indication information includes but is not limited to highlighting the target social object, and pointing to the target social object with an arrow on a view control corresponding to the social object information, so that the user can clearly obtain the target social object corresponding to the social object information. For example, the user clicks the avatar of user a on the session page, the social object information of user a is presented below the avatar of user a, and the avatar of user a clicked by the user is highlighted at this time, so that the user can clearly know that the social object information of user a is currently presented. As shown in fig. 8, in the current session page, a triangle arrow points to the avatar of the first social object in the first row on the view control corresponding to the social object information, which indicates that the current session page presents the social object information of the first social object in the first row, but not the social object information of other social objects in the current session page.
In some embodiments, the social object information further includes one or more operation keys, wherein at least one of the one or more operation keys is adapted to the friend relationship information of the target social object and the current user. For example, if the target social contact object is a friend of the current user, the social contact object information of the target social contact object includes operation keys such as sending a session message and an audio/video call, and if the target social contact object is not a friend of the current user, the social contact object information of the target social contact object includes operation keys such as adding a friend. As shown in fig. 3, in the current session page, the target social object is not a friend of the current user, and the operation buttons presented on the view control corresponding to the target social object information include setting remarks and labels, displaying more friend circles, and adding to the address book. As shown in fig. 4, in the current session page, the target social object is a friend of the current user, and the operation buttons presented on the view control corresponding to the information of the target social object include setting notes and signatures, displaying more information, displaying more circles of friends, sending messages, and audio-video calls.
In some embodiments, the method further comprises step S19: in step S19, the user device detects whether there is a cancel presentation operation with respect to the social object information; and if the operation of canceling the presentation exists, deleting the social object information in the current session page, updating the position information of other session messages behind the social object information in the current session page, and re-rendering the current session page. The access canceling operation includes but is not limited to clicking a blank area of a current conversation page, clicking an avatar of a target social object with presented social object information or a conversation message corresponding to the target social object, and the like. And if the access canceling operation exists, removing the social object information from the array or the linked list corresponding to the current session page, sequentially moving the positions of other session messages behind the social object information in the array or the linked list forward by one bit, and re-rendering the current session page to cancel the presentation of the social object information. For example, the user clicks the avatar of the user a, inserts the social object information of the user a into the array corresponding to the current session page, renders the current session page to present the social object information of the user a, then the user clicks the avatar of the user a again, removes the social object information from the array, and moves forward the positions of other session messages behind the social object information in the array by one bit in sequence, re-renders the current session page to cancel the presentation of the social object information of the user a.
Fig. 2 is a flowchart illustrating a method for presenting session member information according to an embodiment of the present application, the method including step S21, step S22, step S23, and step S24. In step S21, the user equipment detects whether there is an access operation to a target social object in the current session page; in step S22, if the access operation exists, the user equipment obtains member information of the target social object corresponding to the access operation from a corresponding server; in step S23, the user equipment updates a target session message corresponding to the access operation according to the member information, where the member information is newly added to the target session message; in step S24, the user device re-renders the current conversation page to present the updated target conversation message.
In step S21, the user device detects whether there is an access operation to the target social object in the current conversation page. Step S21 is substantially the same as or similar to the implementation of step S11, and is not repeated here.
In step S22, if the access operation exists, the user equipment obtains member information of the target social object corresponding to the access operation from a corresponding server. Step S22 is substantially the same as or similar to the implementation of step S12, and is not repeated here.
In step S23, the user equipment updates the target session message corresponding to the access operation according to the member information, where the member information is newly added to the target session message. And the user equipment adds the social object information of the target social object into the target session message and then updates the target session message, wherein the updated target session message comprises the social object information. For example, a user clicks a certain entry of user A to mark a session message (height: "500 pixels", width: "page width of current session page", picture control: "www.abc.com/userB.png", height: "50 pixels", width: "50 pixels" }, text box: { content: "which meal today", height: "50 pixels", width: "100 pixels", font size: "5", font color: "black", and }), the user equipment acquires member information of user A (nickname: "Beibei", gender: "male") from the server, so as to generate social object information { content: "shellfish", height: "100 pixels", width: "300 pixels", font size: "No. 10", font color: "black" }, text box 2{ content: "male", height: "80 pixels", width: "250 pixels", font size: "8", font color: "black", edge spacing: "the vertical margin from the text box 1 is 10 pixels" }, the social object information of the user A is added to the target session message, the target session message after addition is (height: "500 pixels", width: "page width of the current session page", picture control: { picture address: "www.abc.com/userB.png", height: "50 pixels", width: "50 pixels" }, text box: { content: "which meal today", height: "50 pixels", width: "100 pixels", font size: "5 #", font color: "black", } text box 1: { content: "bei", height: "100 pixels", width: "300 pixels", font size: "10 #", font color: "black" }, text box 2: "content," male height, "80 pixels", width: "250 pixels", font size: "8", font color: "black", edge spacing: "10 pixels" from the vertical margin of the text box 1).
In step S24, the user device re-renders the current conversation page to present the updated target conversation message. Step S22 is substantially the same as or similar to the implementation of step S14, and is not repeated here.
In some embodiments, the step S23 includes: the user equipment generates social object information corresponding to the member information, wherein the social object information comprises the member information; and updating a target session message corresponding to the target social object, wherein the social object information is newly added to the target session message. And the user equipment generates corresponding social object information according to the member information, adds the social object information into the target session message, and then updates the target session message, wherein the updated target session message comprises the social object information. For example, a user clicks a certain entry of user A to mark a session message (height: "500 pixels", width: "page width of current session page", picture control: "www.abc.com/userB.png", height: "50 pixels", width: "50 pixels" }, text box: { content: "which meal today", height: "50 pixels", width: "100 pixels", font size: "5", font color: "black", and }), the user device acquires member information of user A (nickname: "Beibei", gender: "male") from the server, so as to generate social object information { text box 1: { content: "shellfish", height: "100 pixels", width: "300 pixels", font size: "No. 10", font color: "black" }, text box 2: { content: "male", height: "80 pixels", width: "250 pixels", font size: "8", font color: "black", margin: "vertical margin from text box 1 is 10 pixels" } ", the social object information of user A is added to the target session message, the target session message after addition is (height:" 500 pixels ", width:" page width of current session page ", picture control: { picture address:" www.abc.com/userB.png ", height:" 50 pixels ", width:" 50 pixels "}, text box: { content:" which meal today ", height:" 50 pixels ", width:" 100 pixels ", font size:" 5 ", font color:" black "}, social object information:" social object information of user A ", display position:" right edge of display area to which target session message corresponds, and is rendered centered in vertical direction), "current session page, the social object information of user A is presented at a specified position inside the display area to which target session message corresponds, the specified position is a position that is at the right edge of the display area and is centered with respect to the display area in the vertical direction.
Those skilled in the art will appreciate that the embodiments shown in fig. 1 are also applicable to the present disclosure, and therefore, the description thereof is omitted here, and the embodiments are included herein by reference only.
Fig. 3 illustrates a presentation diagram for presenting session member information according to an embodiment of the present application.
As shown in fig. 3, the current session page presents social object information of the 4 th social object from top to bottom, the social object is not a friend of the current user, the social object information includes 4 view controls, respectively, a button 1 (content is "setup notes and tags"), a textbox (content is "personal signature peace and peace, simple list |"), a button 2 (content is "circle of friends"), and a button 3 (content is "add to address book"). When the user clicks the avatar of the 4 th social object, the social object information is presented below the avatar of the social object, and the view control corresponding to the social object information is rendered on the current session page.
FIG. 4 illustrates a presentation diagram for presenting session member information according to one embodiment of the present application.
As shown in fig. 4, the current session page presents social object information of the 4 th social object from top to bottom, the social object is a friend of the current user, the social object information includes 5 view controls, which are a key 1 (content is "set remark and tag"), a key 2 (content is "more information"), a key 3 (content is "friend circle", picture address is "cloud storage address corresponding to the previous 5 pictures of the friend circle"), a key 4 (content is "messaging", picture address is "local storage address of the messaging picture in the social software"), and a key 5 (content is "audio and video call", picture address is "local storage address of the audio and video call picture in the social software"). When the user clicks the avatar of the 4 th social object, the social object information is presented below the avatar of the social object, and the view control corresponding to the social object information is rendered on the current session page.
Fig. 5 shows an apparatus for presenting session member information according to an embodiment of the present application, which includes a one-module 11, a two-module 12, a three-module 13, and a four-module 14. A module 11, configured to detect whether there is an access operation to a target social object in a current session page; a second module 12, configured to obtain member information of the target social object from a corresponding server if the access operation exists; a third module 13, configured to generate social object information corresponding to the member information; a fourth module 14, configured to insert the social object information in the current session page, and re-render the current session page.
A module 11, configured to detect whether there is an access operation to a target social object in the current session page. In some embodiments, the access operation includes, but is not limited to, a user clicking on an avatar of a target social object in the current conversation page or a user clicking on a conversation message sent by a target social object in the conversation page. For example, a message "eat and go today" sent by the user a is presented in the current session page, the user clicks the avatar corresponding to the user a, or the user clicks the session message "eat and go today", and the current session page presents the information of the user a.
And a secondary module 12, configured to obtain member information of the target social object from a corresponding server if the access operation exists. In some embodiments, the member information includes, but is not limited to, a nickname, a gender, a location, interests, and the like of the target social object, and the member information is stored in a cache or a database of a server corresponding to the social application. For example, a user clicks the head portrait of the user A on a session page, a request for acquiring the member information of the user A is sent to a server, the server receives the request and compares the time with the time of the previous request for the member information of the user A, if the time interval is less than the cache expiration time (for example, 5 minutes), the member information of the user A (for example, a nickname: "Beibei", a gender: "man", a region where the nickname: "Shanghai Pudong New zone", and an interest preference: "swimming") stored in the cache is directly returned to the user equipment as a response result of the request, and if the time interval is greater than or equal to the cache expiration time, the member information of the user A is searched from a database and returned to the user equipment as a response result of the request.
And a third module 13, configured to generate social object information corresponding to the member information. In some embodiments, the social object information is used to render a view control to be presented on the session page, where the view control includes a text box, a picture control, a button, and the like, the social object information includes text information, text box size information, and the like to be displayed in the text box of the session page, and when all the view controls on the session page are rendered, the view control is generated or the view attribute corresponding to the view control is updated according to the social object information corresponding to each view control. For example, the user equipment acquires member information (nickname: "babe", gender: "male") of the user A from the server, and generates social object information corresponding to the member information of the user A (text box 1: { content: "babe", height: "100 pixels", width: "300 pixels", font size: "10 no", font color: "black", margin: "30 pixels in vertical margin from the head pixel of the user A", alignment mode: "horizontal alignment", text box 2: "content:" male ", height:" 80 pixels ", width:" 250 pixels ", font size:" 8 ", font color:" black ", margin:" 10 pixels in vertical margin from the text box 1 ", alignment mode:" horizontal alignment ").
A fourth module 14, configured to insert the social object information in the current session page, and re-render the current session page. And the user equipment inserts the social object information corresponding to the member information into the conversation page and re-renders the conversation page so as to present the social object information. For example, social object information corresponding to the member information of user A (text box 1: { content: "Beibei", height: "100 pixels", width: "300 pixels", font size: "10", font color: "black", edge distance: "30 pixels from the vertical edge distance of the head pixel of user A", alignment manner: "horizontal alignment" }, text box 2: { content: "man", height: "80 pixels", width: "250 pixels", font size: "8", font color: "black", edge distance: "10 pixels from the vertical edge distance of text box 1", alignment manner: "horizontal alignment" }), the social object information is inserted into the current conversation page and the current conversation page is re-rendered to present text box 1 at 30 pixels below the head pixel of user A, the content of text box 1 is "Beibei bei", text box 2 is presented at the lower 10 pixels of text box 1, the content of text box 2 being "male".
In some embodiments, the one-four module 14 is configured to: and inserting the social object information into the current session page according to the position information of the target session message corresponding to the access operation in the current session page, and re-rendering the current session page, wherein the social object information and the target session message are adjacent in position in the current session page. The target session message includes, but is not limited to, a session message corresponding to a click operation of the user, for example, the current session page includes view controls corresponding to a plurality of session messages, where a session message includes an avatar of a social object and a session message sent by the social object, and a view control corresponding to a session message includes a picture control corresponding to the avatar of the social object and a text box corresponding to the session message sent by the social object. The current session page comprises an array or a linked list consisting of session information, wherein each item in the array or the linked list can be a session message or social object information, the social object information corresponding to the target social object is inserted into a set position in the data or the linked list according to the position of the target session message corresponding to the click operation in the data or the linked list, wherein the set position is adjacent to the position of the target session message in the data or the linked list, the data or the linked list is updated, and the current session page is re-rendered to present the updated session page including the social object information. For example, there are 5 session messages in the current session page, the user clicks on the 3 rd session message, the position of the 3 rd session message in the array corresponding to the current session page is 2 (the position in the array is marked from 0), the social object corresponding to the 3 rd session message is user a, the social object information of the user a is inserted into the array, wherein the position of the social object information in the inserted array is adjacent to the position of the target session message in the inserted array, the position of the social object information in the inserted array is 2 or 3, and the current session page is re-rendered to present the social object information of the user a.
In some embodiments, the one-four module 14 is configured to: determining the display position of the social object information in the current conversation page according to the position information of the target conversation message in the current conversation page; inserting the social object information into the current session page according to the display position, and re-rendering the current session page, wherein the social object information and the target session message are adjacent in position in the current session page. For example, according to the position information of the target session message in the current session page, the social object information is determined to be displayed above or below the target session message, the social object information is inserted above or below the target session message, and the current session page is re-rendered so as to present the social object information on the current session page. For example, there are 5 session messages in the previous session page, the user clicks on the 3 rd session message, the social object of the 3 rd session message object is user a, the display position of the social object information of user a in the current session display is above or below the display position of the 3 rd session message, the social object information of user a is inserted above or below the display position of the 3 rd session message, and the current session page is re-rendered to present the social object information of user a.
In some embodiments, the fourth module 14 further includes a fourth module 141 before re-rendering the conversation page, and the fourth module 141 is configured to update the location information of the target conversation message in the current conversation page and/or the location information of other conversation messages located after the target conversation message. For example, according to the position of the target session message in the array or linked list corresponding to the current session page, the position of the social object information in the array or linked list is determined, the social object information is inserted into the position in the array or linked list, and meanwhile, the positions of other session messages behind the position in the array or linked list are sequentially moved backward by one bit. For example, 5 session messages exist in the current session page, the user clicks the 3 rd session message, the position of the 3 rd session message in the array is 2, the social object corresponding to the 3 rd session message is user a, the social object information of the user a is inserted into the position 3 of the array, the original positions 3 and 4 of the 4 th and 5 th session messages in the array are sequentially shifted backward by one bit, and the positions of the updated 4 th and 5 th session messages in the array are 4 and 5 respectively.
In some embodiments, the apparatus further includes a fifth module 15, where the fifth module 15 is configured to receive a second session message in the session to which the current session page belongs, where the second session message is a latest received session message, and the second session message is sent by the server; and inserting the second session message at the end of the current session page, and re-rendering the current session page. For example, the current session page corresponds to an array or a linked list, and at this time, the user equipment receives a new session message of the current session sent by the server, inserts the new session message into the end of the array or the linked list, and re-renders the current session page to present the latest received session message. For example, there are 5 session messages in the current session page, the user device receives a new session message (sender: "user B", sender avatar: "www.abc.com/userB. png", message content: "I go to sleep"), inserts the new session message to the end of the array, the position of the new session message in the array is 5, re-renders the current session page to present the received new session message.
In some embodiments, the apparatus further includes a sixth module 16 (not shown), where the sixth module 16 is configured to determine a display position of the social object information in the current conversation page again if the maximum distance between the social object information and the second conversation message in the current conversation page is greater than or equal to a predetermined distance threshold information; reinserting the social object information in the current conversation page according to the display position, and re-rendering the current conversation page, wherein the maximum distance between the social object information and the second conversation message in the current conversation page is smaller than the distance threshold information. If the current session page presents the social object information, at this time, the user equipment receives a new session message of the current session sent by the server, inserts the new session message into the end of the array or the linked list corresponding to the current session page to present the social object information and the new session message at the same time, where a maximum distance between the social object information and the new session message is a distance difference (usually in units of pixels) from an upper edge of a view control corresponding to the social object information to a lower edge of the view control corresponding to the new session message, and if the maximum distance is greater than or equal to predetermined distance threshold information, which may be a page height (usually in units of pixels) of the current session page, the social object information and the new session message cannot be displayed in the current session page at the same time, and one of the social object information and the new session message cannot be displayed outside the current session page, therefore, the display position of the social object information in the current conversation page needs to be adjusted, the new display position of the social object information in the current conversation page is determined, and the social object information is removed from the old display position and inserted into the new display position, so that the social object information and the new conversation message are simultaneously displayed in the current conversation page. For example, there are 10 session messages in the current session page, the user clicks on the 1 st session message, the position of the 1 st session message in the array is 0, the social object corresponding to the 1 st session message is user A, the social object information of the user A is inserted into the position 1 of the array, to display the social object information of user a below the 1 st conversation message, at which point the user device receives the new conversation message, inserts the new conversation message to the end of the array, since the maximum distance between the social object information of the user a and the new session message is greater than the predetermined distance threshold information at this time, the social object information of the user a and the new session information cannot be displayed at the same time, the social object information is removed from the position 1 of the array, and inserted into position 10 of the array to re-render the conversation page to display both user a's social object information and the new conversation message.
In some embodiments, said re-determining the display position of the social object information in the current conversation page comprises: searching a third session message corresponding to the target social object in the current session page, wherein the maximum distance between the third session message and the second session message in the session page is smaller than the distance threshold information; and if the third session message exists, taking the position information of the third session message in the current session page as the redetermined display position of the social object information in the current session page. For example, the current conversation page corresponds to an array, a conversation message sent by a target social object most recently is searched in the current conversation page, if the maximum distance between the conversation message and a new conversation message is smaller than the preset distance threshold information, the display position of the conversation message in the current conversation page is used as a new display position of the social object information in the current conversation page, and the social object information is removed from the old display position and inserted into the new display position, so that the social object information and the new conversation message are displayed on the current conversation page at the same time. For example, there are 10 session messages in the current session page, the user clicks the 1 st session message, the position of the 1 st session message in the array is 0, the social object corresponding to the 1 st session message is user a, the social object information of user a is inserted into position 1 of the array to display the social object information of user a below the 1 st session message, at this time, the user equipment receives the new session message, the new session message is inserted into the end of the array, that is, position 11, since the maximum distance between the social object information of user a and the new session message is greater than the predetermined distance threshold information at this time, the social object information of user a and the new session information cannot be simultaneously displayed, the message that user a has most recently sent is the 9 th session message, the maximum distance between the 9 th session message and the new session message is less than the predetermined distance threshold information, the social object information is removed from position 1 of the array and inserted into position 9 of the array, and the conversation page is re-rendered to display the social object information of user A below the 9 th conversation message.
In some embodiments, the apparatus further includes a seventh module 17 (not shown), where the seventh module 17 is configured to, if the social object information is not visible in the display window of the current conversation page, re-determine the display position of the social object information in the current conversation page; reinserting the social object information in the current conversation page according to the display position, and re-rendering the current conversation page, wherein the social object information and the second conversation message are simultaneously visible in a display window of the current conversation page. For example, a current session page presents a new session message, by monitoring a sliding event of the current session page, whether a certain session message or social object information is visible in a display window of the current session page can be acquired in a callback of the sliding event, if the social object information is not visible in the display window of the current session page, a new display position of the social object information in the current session page is re-determined, the social object information is removed from an old display position and inserted into a new display position, and the current session page is re-rendered, so that the social object information and the new session message are simultaneously visible in the display window of the current session page.
In some embodiments, the apparatus further includes an eight-module 18 (not shown), and the eight-module 18 is configured to update the display positions of other conversation messages located between the adjusted pre-and post-adjustment positions of the social object information in the current conversation page, and re-render the current conversation page. For example, the current conversation page has 5 conversation messages, the position of the 3 rd conversation message in the array is 2, the social object corresponding to the 3 rd conversation message is user a, the social object information of user a is displayed below the 3 rd conversation message, the position of the social object information of user a in the array is 3, at this time, the user equipment receives the new conversation message, inserts the new conversation message to the end of the array, that is, the position of the new conversation message in the array is 6, at this time, the current conversation page already presents the new conversation message, since the social object of user a is not visible in the display window of the current conversation page at this time, the position of the social object information of user a in the array is adjusted from 3 to 5, correspondingly, the display positions of the conversation messages located at the original positions 4 and 5 of the array are updated to the positions 3 and 4 of the array, and re-rendering the current conversation page to simultaneously display the social object information and the new conversation message on the current conversation page.
In some embodiments, the current session page further includes indication information for characterizing an association between the social object information and the target social object. The indication information includes, but is not limited to, highlighting the target social object, and pointing to the target social object with an arrow on a view control corresponding to the social object information, so that the user can clearly obtain the target social object corresponding to the social object information. For example, the user clicks the avatar of user a on the session page, the social object information of user a is presented below the avatar of user a, and the avatar of user a clicked by the user is highlighted at this time, so that the user can clearly know that the social object information of user a is currently presented. As shown in fig. 8, in the current session page, a triangle arrow points to the avatar of the first social object in the first row on the view control corresponding to the social object information, which indicates that the current session page presents the social object information of the first social object in the first row, but not the social object information of other social objects in the current session page.
In some embodiments, the social object information further includes one or more operation keys, wherein at least one of the one or more operation keys is adapted to the friend relationship information of the target social object and the current user. For example, if the target social object is a friend of the current user, the social object information of the target social object includes operation keys such as a session sending message and an audio/video call, and if the target social object is not a friend of the current user, the social object information of the target social object includes operation keys such as a friend adding. As shown in fig. 3, in the current session page, the target social object is not a friend of the current user, and the operation buttons presented on the view control corresponding to the target social object information include setting notes and labels, displaying more friend circles, and adding to the address book. As shown in fig. 4, in the current session page, the target social object is a friend of the current user, and the operation buttons presented on the view control corresponding to the information of the target social object include setting notes and signatures, displaying more information, displaying more circles of friends, sending messages, and audio-video calls.
In some embodiments, the apparatus further comprises a nine-module 19, the nine-module 19 being configured to detect whether there is an operation to cancel presentation of the social object information; and if the operation of canceling the presentation exists, deleting the social object information in the current session page, updating the position information of other session messages behind the social object information in the current session page, and re-rendering the current session page. The access canceling operation includes but is not limited to clicking a blank area of a current conversation page, clicking an avatar of a target social object with presented social object information or a conversation message corresponding to the target social object, and the like. And if the access canceling operation exists, removing the social object information from the array or the linked list corresponding to the current session page, sequentially moving the positions of other session messages behind the social object information in the array or the linked list forward by one bit, and re-rendering the current session page to cancel the presentation of the social object information. For example, the user clicks the avatar of the user a, inserts the social object information of the user a into the array corresponding to the current session page, renders the current session page to present the social object information of the user a, then the user clicks the avatar of the user a again, removes the social object information from the array, and moves forward the positions of other session messages behind the social object information in the array by one bit in sequence, re-renders the current session page to cancel the presentation of the social object information of the user a.
Fig. 6 shows an apparatus for presenting session member information according to an embodiment of the present application, which includes a two-to-one module 21, a two-to-two module 22, a two-to-three module 23, and a two-to-four module 24. A second-first module 21, configured to detect whether an access operation to a target social object in a current session page exists; a second module 22, configured to, if the access operation exists, obtain member information of the target social object corresponding to the access operation from a corresponding server; a second and third module 23, configured to update a target session message corresponding to the access operation according to the member information, where the member information is newly added to the target session message; a twenty-four module 24, configured to re-render the current session page to present the updated target session message.
A second module 21, configured to detect whether there is an access operation to a target social object in the current session page. The two-to-one module 21 is substantially the same as or similar to the implementation of the one-to-one module 11, and is not described herein again.
A second module 22, configured to, if the access operation exists, obtain member information of the target social object corresponding to the access operation from a corresponding server. The implementation of the first-second module 22 is substantially the same as or similar to that of the first-second module 12, and is not described herein again.
And a second and third module 23, configured to update, according to the member information, a target session message corresponding to the access operation, where the member information is newly added to the target session message. And the user equipment adds the social object information of the target social object into the target session message and then updates the target session message, wherein the updated target session message comprises the social object information. For example, a user clicks a certain entry of user A to mark a session message (height: "500 pixels", width: "page width of current session page", picture control: "www.abc.com/userB.png", height: "50 pixels", width: "50 pixels" }, text box: { content: "which meal today", height: "50 pixels", width: "100 pixels", font size: "5", font color: "black", and }), the user equipment acquires member information of user A (nickname: "Beibei", gender: "male") from the server, so as to generate social object information { content: "shellfish", height: "100 pixels", width: "300 pixels", font size: "No. 10", font color: "black" }, text box 2{ content: "male", height: "80 pixels", width: "250 pixels", font size: "8", font color: "black", edge spacing: "the vertical margin from the text box 1 is 10 pixels" }, the social object information of the user A is added to the target session message, the target session message after addition is (height: "500 pixels", width: "page width of the current session page", picture control: { picture address: "www.abc.com/userB.png", height: "50 pixels", width: "50 pixels" }, text box: { content: "which meal today", height: "50 pixels", width: "100 pixels", font size: "5 #", font color: "black", } text box 1: { content: "bei", height: "100 pixels", width: "300 pixels", font size: "10 #", font color: "black" }, text box 2: "content," male height, "80 pixels", width: "250 pixels", font size: "8", font color: "black", margin: "10 pixels" from the vertical margin of the text box 1).
A twenty-four module 24, configured to re-render the current session page to present the updated target session message. The two-four module 24 is substantially the same as or similar to the implementation of the one-four module 14, and is not described herein again.
In some embodiments, the two and three modules 23 are configured to: generating social object information corresponding to the member information, wherein the social object information comprises the member information; and updating a target session message corresponding to the target social object, wherein the social object information is newly added to the target session message. And the user equipment generates corresponding social object information according to the member information, adds the social object information into the target session message, and then updates the target session message, wherein the updated target session message comprises the social object information. For example, a user clicks a certain entry of user A to mark a session message (height: "500 pixels", width: "page width of current session page", picture control: "www.abc.com/userB.png", height: "50 pixels", width: "50 pixels" }, text box: { content: "which meal today", height: "50 pixels", width: "100 pixels", font size: "5", font color: "black", and }), the user device acquires member information of user A (nickname: "Beibei", gender: "male") from the server, so as to generate social object information { text box 1: { content: "shellfish", height: "100 pixels", width: "300 pixels", font size: "No. 10", font color: "black" }, text box 2: { content: "male", height: "80 pixels", width: "250 pixels", font size: "8", font color: "black", edge spacing: "the vertical margin from the text box 1 is 10 pixels" } ", the social object information of the user A is added to the target session message, the target session message after the addition is (height:" 500 pixels ", width:" page width of the current session page ", picture control: { picture address:" www.abc.com/userB.png ", height:" 50 pixels ", width:" 50 pixels "}, text box: { content:" which meal today ", height:" 50 pixels ", width:" 100 pixels ", font size:" 5 ", font color:" black ", } social object information:" social object information of the user A ", display position:" right edge of the display area corresponding to the target session message, and centered in the vertical direction "}), the current session page is rendered, the social object information of the user A is presented at a specified position inside the display area corresponding to the target session message, the specified position is a position that is at the right edge of the display area and is centered with respect to the display area in the vertical direction.
Those skilled in the art will appreciate that the embodiments corresponding to fig. 5 are also applicable to the present solution, and therefore, the description thereof is omitted here, and the embodiments are only included by way of reference.
FIG. 7 illustrates an exemplary system that can be used to implement the various embodiments described in this application.
In some embodiments, as shown in FIG. 7, the system 300 can be implemented as any of the devices in the various embodiments described. In some embodiments, system 300 may include one or more computer-readable media (e.g., system memory or NVM/storage 320) having instructions and one or more processors (e.g., processor(s) 305) coupled with the one or more computer-readable media and configured to execute the instructions to implement modules to perform the actions described herein.
For one embodiment, system control module 310 may include any suitable interface controllers to provide any suitable interface to at least one of processor(s) 305 and/or any suitable device or component in communication with system control module 310.
The system control module 310 may include a memory controller module 330 to provide an interface to the system memory 315. Memory controller module 330 may be a hardware module, a software module, and/or a firmware module.
System memory 315 may be used, for example, to load and store data and/or instructions for system 300. For one embodiment, system memory 315 may include any suitable volatile memory, such as suitable DRAM. In some embodiments, the system memory 315 may include a double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).
For one embodiment, system control module 310 may include one or more input/output (I/O) controllers to provide an interface to NVM/storage 320 and communication interface(s) 325.
For example, NVM/storage 320 may be used to store data and/or instructions. NVM/storage 320 may include any suitable non-volatile memory (e.g., flash memory) and/or may include any suitable non-volatile storage device(s) (e.g., one or more Hard Disk Drives (HDDs), one or more Compact Disc (CD) drives, and/or one or more Digital Versatile Disc (DVD) drives).
NVM/storage 320 may include storage resources that are physically part of the device on which system 300 is installed or may be accessed by the device and not necessarily part of the device. For example, NVM/storage 320 may be accessible over a network via communication interface(s) 325.
Communication interface(s) 325 may provide an interface for system 300 to communicate over one or more networks and/or with any other suitable device. System 300 may wirelessly communicate with one or more components of a wireless network according to any of one or more wireless network standards and/or protocols.
For one embodiment, at least one of the processor(s) 305 may be packaged together with logic for one or more controller(s) (e.g., memory controller module 330) of the system control module 310. For one embodiment, at least one of the processor(s) 305 may be packaged together with logic for one or more controller(s) of the system control module 310 to form a System In Package (SiP). For one embodiment, at least one of the processor(s) 305 may be integrated on the same die with logic for one or more controller(s) of the system control module 310. For one embodiment, at least one of the processor(s) 305 may be integrated on the same die with logic for one or more controller(s) of the system control module 310 to form a system on a chip (SoC).
In various embodiments, system 300 may be, but is not limited to being: a server, a workstation, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a holding computing device, a tablet, a netbook, etc.). In various embodiments, system 300 may have more or fewer components and/or different architectures. For example, in some embodiments, system 300 includes one or more cameras, a keyboard, a Liquid Crystal Display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an Application Specific Integrated Circuit (ASIC), and speakers.
The present application also provides a computer readable storage medium having stored thereon computer code which, when executed, performs a method as in any one of the preceding.
The present application also provides a computer program product, which when executed by a computer device performs the method of any of the preceding claims.
The present application further provides a computer device, comprising:
one or more processors;
a memory for storing one or more computer programs;
the one or more computer programs, when executed by the one or more processors, cause the one or more processors to implement the method of any preceding claim.
It should be noted that the present application may be implemented in software and/or a combination of software and hardware, for example, implemented using Application Specific Integrated Circuits (ASICs), general purpose computers or any other similar hardware devices. In one embodiment, the software programs of the present application may be executed by a processor to implement the steps or functions described above. Likewise, the software programs (including associated data structures) of the present application may be stored in a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. Additionally, some of the steps or functions of the present application may be implemented in hardware, for example, as circuitry that cooperates with the processor to perform various steps or functions.
Additionally, some portions of the present application may be applied as a computer program product, such as computer program instructions, which, when executed by a computer, may invoke or provide the method and/or solution according to the present application through the operation of the computer. Those skilled in the art will appreciate that the form in which the computer program instructions reside on a computer-readable medium includes, but is not limited to, source files, executable files, installation package files, and the like, and that the manner in which the computer program instructions are executed by a computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Computer-readable media herein can be any available computer-readable storage media or communication media that can be accessed by a computer.
Communication media includes media by which communication signals, including, for example, computer readable instructions, data structures, program modules, or other data, are transmitted from one system to another. Communication media may include conductive transmission media such as cables and wires (e.g., fiber optics, coaxial, etc.) and wireless (non-conductive transmission) media capable of propagating energy waves such as acoustic, electromagnetic, RF, microwave, and infrared. Computer readable instructions, data structures, program modules, or other data may be embodied in a modulated data signal, for example, in a wireless medium such as a carrier wave or similar mechanism such as is embodied as part of spread spectrum techniques. The term "modulated data signal" means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. The modulation may be analog, digital or hybrid modulation techniques.
By way of example, and not limitation, computer-readable storage media may include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, program modules or other data. For example, computer-readable storage media include, but are not limited to, volatile memory such as random access memory (RAM, DRAM, SRAM); and non-volatile memory such as flash memory, various read-only memories (ROM, PROM, EPROM, EEPROM), magnetic and ferromagnetic/ferroelectric memories (MRAM, FeRAM); and magnetic and optical storage devices (hard disk, tape, CD, DVD); or other now known media or later developed that can store computer-readable information/data for use by a computer system.
An embodiment according to the present application comprises an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the apparatus to perform a method and/or a solution according to the aforementioned embodiments of the present application.
It will be evident to those skilled in the art that the application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it will be obvious that the term "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Claims (14)
1. A method of presenting social object information, wherein the method comprises:
detecting whether an access operation of a session message sent to a target social object in a current session page exists;
if the access operation exists, acquiring member information of the target social contact object from a corresponding server;
generating social object information corresponding to the member information;
inserting the social object information into the current session page and re-rendering the current session page;
wherein the method further comprises:
receiving a second session message in the session to which the current session page belongs, wherein the second session message is sent by the server, and the second session message is a latest received session message;
inserting the second session message at the end of the current session page, and re-rendering the current session page to present the second session message;
if the social object information is not visible in the display window of the current conversation page, re-determining the display position of the social object information in the current conversation page;
reinserting the social object information in the current conversation page according to the display position, and re-rendering the current conversation page, wherein the social object information and the second conversation message are simultaneously visible in a display window of the current conversation page.
2. The method of claim 1, wherein the inserting the social object information in the current conversation page and re-rendering the current conversation page comprises:
and inserting the social object information into the current session page according to the position information of the target session message corresponding to the access operation in the current session page, and re-rendering the current session page, wherein the social object information and the target session message are adjacent in position in the current session page.
3. The method of claim 2, wherein the inserting the social object information in the current conversation page and re-rendering the current conversation page comprises:
determining the display position of the social object information in the current conversation page according to the position information of the target conversation message in the current conversation page;
inserting the social object information into the current session page according to the display position, and re-rendering the current session page, wherein the social object information and the target session message are adjacent in position in the current session page.
4. The method of claim 2 or 3, wherein the inserting the social object information in the current conversation page and re-rendering the current conversation page further comprises, before re-rendering the current conversation page:
and updating the position information of the target session message and/or the position information of other session messages positioned after the target session message in the current session page.
5. The method of claim 1, wherein the method further comprises:
if the maximum distance between the social object information and the second session message in the current session page is greater than or equal to the preset distance threshold information, re-determining the display position of the social object information in the current session page;
reinserting the social object information in the current conversation page according to the display position, and re-rendering the current conversation page, wherein the maximum distance between the social object information and the second conversation message in the current conversation page is smaller than the distance threshold information.
6. The method of claim 5, wherein said re-determining a display location of the social object information in the current conversation page comprises:
searching a third session message corresponding to the target social object in the current session page, wherein the maximum distance between the third session message and the second session message in the session page is smaller than the distance threshold information;
and if the third session message exists, taking the position information of the third session message in the current session page as the redetermined display position of the social object information in the current session page.
7. The method of claim 5 or 6, wherein the method further comprises:
and correspondingly updating the display positions of other session messages between the positions before and after the adjustment of the social object information in the current session page, and re-rendering the current session page.
8. The method of claim 1, wherein the current session page further comprises indication information characterizing an association between the social object information and the target social object.
9. The method of claim 1, wherein the generating social object information corresponding to the member information comprises:
and generating social object information corresponding to the target social object according to the member information and the friend relation information of the target social object and the current user.
10. The method of claim 9, wherein the social object information further comprises one or more operation keys, wherein at least one of the one or more operation keys is adapted to the friend relationship information of the target social object and the current user.
11. The method of claim 1, wherein the method further comprises:
detecting whether a cancel presentation operation related to the social object information exists;
and if the operation of canceling the presentation exists, deleting the social object information in the current session page, updating the position information of other session messages behind the social object information in the current session page, and re-rendering the current session page.
12. A method of presenting social object information, wherein the method comprises:
detecting whether an access operation of a session message sent to a target social object in a current session page exists;
if the access operation exists, acquiring member information of the target social contact object corresponding to the access operation from a corresponding server;
generating social object information corresponding to the member information, wherein the social object information comprises the member information;
updating a target session message corresponding to the target social object, wherein the social object information is newly added to the target session message;
re-rendering the current session page to present the updated target session message;
wherein the method further comprises:
receiving a second session message in the session to which the current session page belongs, wherein the second session message is sent by the server, and the second session message is a latest received session message;
inserting the second session message at the end of the current session page, and re-rendering the current session page to present the second session message;
if the social object information is not visible in the display window of the current conversation page, re-determining the display position of the social object information in the current conversation page;
reinserting the social object information in the current conversation page according to the display position, and re-rendering the current conversation page, wherein the social object information and the second conversation message are simultaneously visible in a display window of the current conversation page.
13. An apparatus for presenting social object information, wherein the apparatus comprises:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to perform the method of any one of claims 1 to 12.
14. A computer readable medium storing instructions that, when executed, cause a system to perform the method of any of claims 1 to 12.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910364533.0A CN110333919B (en) | 2019-04-30 | 2019-04-30 | Method and equipment for presenting social object information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910364533.0A CN110333919B (en) | 2019-04-30 | 2019-04-30 | Method and equipment for presenting social object information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110333919A CN110333919A (en) | 2019-10-15 |
CN110333919B true CN110333919B (en) | 2022-07-12 |
Family
ID=68139767
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910364533.0A Active CN110333919B (en) | 2019-04-30 | 2019-04-30 | Method and equipment for presenting social object information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110333919B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111209417A (en) | 2019-12-24 | 2020-05-29 | 北京达佳互联信息技术有限公司 | Information display method, server, terminal and storage medium |
CN111314210B (en) * | 2020-02-13 | 2021-12-24 | 上海掌门科技有限公司 | Method and equipment for social interaction |
CN112685121B (en) * | 2020-12-30 | 2024-05-31 | 上海掌门科技有限公司 | Method and equipment for presenting session entry |
CN113094441A (en) * | 2021-04-29 | 2021-07-09 | 支付宝(杭州)信息技术有限公司 | Data synchronization method and device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102436336A (en) * | 2010-09-29 | 2012-05-02 | 腾讯科技(深圳)有限公司 | Method and device for displaying user data |
CN103941955A (en) * | 2013-01-18 | 2014-07-23 | 腾讯科技(深圳)有限公司 | Method and device for displaying individual information on social network platform |
CN104506412A (en) * | 2014-12-05 | 2015-04-08 | 广州华多网络科技有限公司 | Display method for user information, related device and system |
CN107104879A (en) * | 2017-04-05 | 2017-08-29 | 北京飞锐科技有限公司 | A kind of method and device of network interaction |
US20180068658A1 (en) * | 2016-09-02 | 2018-03-08 | Disney Enterprises Inc. | Dialog Knowledge Acquisition System and Method |
CN108616443A (en) * | 2018-03-30 | 2018-10-02 | 北京三快在线科技有限公司 | Associated person information methods of exhibiting and device |
CN109460545A (en) * | 2018-10-26 | 2019-03-12 | 上海连尚网络科技有限公司 | A kind of user matching method and its terminal, server based on content of text |
-
2019
- 2019-04-30 CN CN201910364533.0A patent/CN110333919B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102436336A (en) * | 2010-09-29 | 2012-05-02 | 腾讯科技(深圳)有限公司 | Method and device for displaying user data |
CN103941955A (en) * | 2013-01-18 | 2014-07-23 | 腾讯科技(深圳)有限公司 | Method and device for displaying individual information on social network platform |
CN104506412A (en) * | 2014-12-05 | 2015-04-08 | 广州华多网络科技有限公司 | Display method for user information, related device and system |
US20180068658A1 (en) * | 2016-09-02 | 2018-03-08 | Disney Enterprises Inc. | Dialog Knowledge Acquisition System and Method |
CN107104879A (en) * | 2017-04-05 | 2017-08-29 | 北京飞锐科技有限公司 | A kind of method and device of network interaction |
CN108616443A (en) * | 2018-03-30 | 2018-10-02 | 北京三快在线科技有限公司 | Associated person information methods of exhibiting and device |
CN109460545A (en) * | 2018-10-26 | 2019-03-12 | 上海连尚网络科技有限公司 | A kind of user matching method and its terminal, server based on content of text |
Also Published As
Publication number | Publication date |
---|---|
CN110333919A (en) | 2019-10-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110333919B (en) | Method and equipment for presenting social object information | |
US11112942B2 (en) | Providing content via multiple display devices | |
US9984408B1 (en) | Method, medium, and system for live video cooperative shopping | |
US12032820B2 (en) | Fast data copying method and electronic device | |
US8515990B2 (en) | Mobile terminal and method of managing video using metadata therein | |
US10346523B1 (en) | Content synchronization across devices | |
CN110290058B (en) | Method and equipment for presenting session message in application | |
CN110780955A (en) | Method and equipment for processing emoticon message | |
KR20200104899A (en) | Digital component background rendering | |
CN111817945B (en) | Method and equipment for replying communication information in instant communication application | |
US10990267B2 (en) | Two step content selection | |
CN111314210B (en) | Method and equipment for social interaction | |
CN110430253B (en) | Method and equipment for providing novel update notification information | |
CN113157162B (en) | Method, apparatus, medium and program product for revoking session messages | |
CN107862035A (en) | Network reading method and device for conference record, intelligent tablet and storage medium | |
US20150356058A1 (en) | Method for displaying images and electronic device for implementing the same | |
CN112684961B (en) | Method and equipment for processing session information | |
CN112911367B (en) | Video playing interface processing method and device and electronic equipment | |
WO2021036561A1 (en) | Method and apparatus for transferring information during video call | |
US11122324B2 (en) | Method for displaying video related service, storage medium, and electronic device therefor | |
CN107749892B (en) | Network reading method and device for conference record, intelligent tablet and storage medium | |
WO2016200715A1 (en) | Transitioning command user interface between toolbar user interface and full menu user interface based on use context | |
KR20160112217A (en) | Electronic device and method for processing information the electronic device | |
CN110308833B (en) | Method and equipment for controlling resource allocation in application | |
CN115061985A (en) | Method, apparatus, medium, and program product for presenting a session message |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |