CN113672830A - Loading method of friend relationship list of application software and electronic equipment - Google Patents

Loading method of friend relationship list of application software and electronic equipment Download PDF

Info

Publication number
CN113672830A
CN113672830A CN202110861782.8A CN202110861782A CN113672830A CN 113672830 A CN113672830 A CN 113672830A CN 202110861782 A CN202110861782 A CN 202110861782A CN 113672830 A CN113672830 A CN 113672830A
Authority
CN
China
Prior art keywords
friend
list
application software
relationship list
relationship
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110861782.8A
Other languages
Chinese (zh)
Inventor
舒伟
郭曼丽
谢镇广
刘政康
姚刘玲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Xinyu Network Technology Co ltd
Original Assignee
Guangzhou Xinyu Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Xinyu Network Technology Co ltd filed Critical Guangzhou Xinyu Network Technology Co ltd
Priority to CN202110861782.8A priority Critical patent/CN113672830A/en
Publication of CN113672830A publication Critical patent/CN113672830A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The application discloses a method for loading a friend relationship list of application software, electronic equipment and a storage medium, wherein the loading method comprises the following steps: receiving a loading instruction of the friend relation list, and paging the friend relation list and friend relation information corresponding to the friend relation list according to the loading instruction; the friend relation information comprises a user nickname; and reordering the friend relationship list according to the first letter of the pinyin of the nickname of the user, and storing the reordered friend relationship list to the local. By the method, the friend relationship list can be quickly loaded in the application software, so that the user experience is optimized.

Description

Loading method of friend relationship list of application software and electronic equipment
Technical Field
The present application relates to the field of application software technologies, and in particular, to a method for loading a buddy relationship list of application software and an electronic device.
Background
In application software, the data table structure is usually that user information is an independent table and user relationship is an independent table. To associate the user relationship with the user information, the following two methods are conventionally used. The first method comprises the following steps: friend information is obtained through linked list inquiry; and the second method comprises the following steps: and firstly, acquiring the ID of the friend relationship, and then acquiring the user information through the user ID. At the client side, the user list is generally sorted according to the pinyin of a nickname, which requires that the client needs to acquire all the friends to completely display the friend list.
Disclosure of Invention
The application provides a loading method of a friend relation list of application software, electronic equipment and a storage medium, and aims to solve the problem that in the prior art, when the user size is large, the full acquisition of friend list information is slow.
In order to solve the above technical problem, the present application provides a method for loading a buddy relationship list of application software, including: receiving a loading instruction of the friend relation list, and paging the friend relation list and friend relation information corresponding to the friend relation list according to the loading instruction; the friend relation information comprises a user nickname; and reordering the friend relationship list according to the first letter of the pinyin of the nickname of the user, and storing the reordered friend relationship list to the local.
Optionally, the friend relationship information further includes a preset relationship; after reordering the buddy relationship list according to the first letter of the user's nickname pinyin, the method further comprises: and moving the friend set with the preset relationship to the top of the friend relationship list.
Optionally, moving the friend with the preset relationship to the front of the friend relationship list includes: and when the friend relationship list comprises a plurality of friends with preset relationships, moving the friends with the preset relationships to the front of the friend relationship list, and sequencing the friends with the preset relationships according to the first letters of the pinyin of the nickname of the user.
Optionally, the friend relationship information further includes an active state; after reordering the buddy relationship list according to the first letter of the user's nickname pinyin, the method further comprises: and when the active state of the friend meets the preset condition, moving the friend meeting the active state of the preset condition to the top of the friend relationship list.
Optionally, moving the friend with the preset relationship to the front of the friend relationship list, further comprising: when the friend relationship list comprises a plurality of friends with preset relationships, the friends with the preset relationships are moved to the front of the friend relationship list, and the friends with the preset relationships are sequenced according to the active state.
Optionally, the method further comprises: receiving an updating instruction of the friend relationship list, and judging whether the local friend relationship list is the same as the friend relationship list of the server or not according to the updating instruction; and if not, updating the local friend relationship list according to the friend relationship list of the server.
Optionally, the method further comprises: when a user logs in application software for the first time, the application software generates a loading instruction of a friend relationship list; when a user logs in the application software for a non-first time, the application software generates an updating instruction of the friend relationship list; and when the friend updates the account information, the server sends an updating instruction of the friend relationship list to the application software.
Optionally, the method further comprises: when a user quits the application software each time, the latest friend relationship list is kept to the local before the application software quits; when the user logs in the application software again, the application software displays the friend relationship list reserved before the previous log-out, and updates the local friend relationship list according to the updating instruction.
In order to solve the above technical problem, the present application provides an electronic device, which includes a memory and a processor, wherein the memory is connected to the processor, the memory stores a computer program, and the computer program implements the above method when executed by the processor.
To solve the above technical problem, the present application provides a computer-readable storage medium storing a computer program, which when executed implements the above method.
The application provides a method for loading a friend relationship list of application software, electronic equipment and a storage medium, wherein the loading method comprises the following steps: receiving a loading instruction of the friend relation list, and paging the friend relation list and friend relation information corresponding to the friend relation list according to the loading instruction; the friend relation information comprises a user nickname; and reordering the friend relationship list according to the first letter of the pinyin of the nickname of the user, and storing the reordered friend relationship list to the local. By the method, the friend relationship list can be quickly loaded in the application software, so that the user experience is optimized.
Drawings
In order to more clearly illustrate the technical solution of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flowchart illustrating an embodiment of a method for loading a buddy relationship list of application software according to the present application;
FIG. 2 is a diagram of one embodiment of user relationships in application software;
FIG. 3 is a flowchart illustrating a method for loading a buddy relationship list of application software according to another embodiment of the present disclosure;
FIG. 4 is a diagram illustrating a method for loading a buddy relationship list of application software according to yet another embodiment of the present disclosure;
FIG. 5 is a schematic structural diagram of an embodiment of an electronic device of the present application;
FIG. 6 is a schematic structural diagram of an embodiment of a computer-readable storage medium of the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present application, the method for loading a buddy relationship list of application software, the electronic device, and the storage medium provided in the present application are described in further detail below with reference to the accompanying drawings and the detailed description.
Referring to fig. 1, fig. 1 is a flowchart illustrating an embodiment of a method for loading a buddy relationship list of application software, where in this embodiment, the method for loading the buddy relationship list of application software may specifically include the following steps:
s110: receiving a loading instruction of the friend relation list, and paging the friend relation list and friend relation information corresponding to the friend relation list according to the loading instruction; wherein the buddy relationship information includes a user nickname.
The application software may be a live APP or a social APP, which is described in this embodiment. In application software, there are generally four relationships for users: stranger people, vermicelli, concerns, friends. The fan, concern and friend relationships are key relationship chains in the application, and usually there are independent display interfaces, and the user relationship list shows personal information of the user, and some application software also shows some status information of the user in the friend list, such as: whether the buddy is online.
Referring to fig. 2, fig. 2 is a diagram illustrating an embodiment of user relationships in application software. Wherein, the user A and the user C concern each other to become friends; user A and user D are strangers; user a is interested in user B, who is a fan of user B.
The number of the friend relationships of the user is uncertain for the server, and may be few or many, if the friend relationships of the user are many, it takes a long time to acquire all the friend relationships at one time, and the user needs to wait for a long time to acquire data. Therefore, in this embodiment, the buddy relationship list and the buddy relationship information corresponding to the buddy relationship list may be obtained in a paging manner, where the buddy relationship information may include a user nickname.
S120: and reordering the friend relationship list according to the first letter of the pinyin of the nickname of the user, and storing the reordered friend relationship list to the local.
The buddy relationship list is reordered according to the first letter of the user's nickname pinyin. It is understood that when the nickname of the user is Chinese, the first letter of the pinyin of the nickname in Chinese; when the nickname of the user is English, the initial letter of the English nickname can be directly taken. The ordering order can be from A to Z according to the ordering of the 26 letter table, and the reordered friend relationship list is saved to the local.
In the method for loading the buddy relationship list according to the embodiment, the buddy relationships in the server are obtained locally in a paging full-volume manner, and are stored locally after being reordered according to the nickname of the user, so that the loading speed of the buddy relationship list is increased, and the user experience is optimized.
In some embodiments, the friend relationship information may further include a preset relationship; after reordering the buddy relationship list according to the first letter of the user's nickname pinyin, the method further comprises: and moving the friend set with the preset relationship to the top of the friend relationship list. The preset relationship may be a relationship set by the user for the friend.
Further, when the friend relationship list comprises a plurality of friends with preset relationships, the friends with the preset relationships are moved to the front of the friend relationship list, and the friends with the preset relationships are ranked according to the first letters of the pinyin of the nicknames of the users.
In some embodiments, the buddy relationship information also includes an active status; after reordering the buddy relationship list according to the first letter of the user's nickname pinyin, the method further comprises: and when the active state of the friend meets the preset condition, moving the friend meeting the active state of the preset condition to the top of the friend relationship list. Optionally, the active state may be set by the application software according to the frequency of chatting between the user and the friend; alternatively, the active status may also refer to whether the user is online, such as the user being online, the user being offline, the user being busy, and so on.
Further, when the friend relationship list comprises a plurality of friends with preset relationships, the friends with the preset relationships are moved to the front of the friend relationship list, and the friends with the preset relationships are sorted according to the active state.
In summary, the buddy relationship list is obtained in a paging full-volume manner, and then the buddy relationship list is reordered according to the nickname pinyin of the user, and the user with the preset relationship and the active state is placed at the top of the list.
Referring to fig. 3, fig. 3 is a schematic flowchart illustrating a method for loading a buddy relationship list of application software according to another embodiment of the present application. The same parts of this embodiment as those of the above embodiment will not be described herein again. The method of the embodiment specifically comprises the following steps:
s210: receiving a loading instruction of the friend relation list, and paging the friend relation list and friend relation information corresponding to the friend relation list according to the loading instruction; wherein the buddy relationship information includes a user nickname.
S220: and reordering the friend relationship list according to the first letter of the pinyin of the nickname of the user, and storing the reordered friend relationship list to the local.
S230: receiving an updating instruction of the friend relationship list, and judging whether the local friend relationship list is the same as the friend relationship list of the server or not according to the updating instruction;
if the local friend relationship list is the same as the friend relationship list of the server, ending the process; if the local buddy relationship list is not the same as the server buddy relationship list, step S240 is continuously executed.
S240: and updating the local friend relation list according to the friend relation list of the server.
In this embodiment, when the user logs in the application software for the first time, the application software may generate a loading instruction of the buddy relationship list; when the user logs in the application software for a non-first time, the application software can generate an updating instruction of the friend relationship list; when the friend updates the account information, the server may send an update instruction of the friend relationship list to the application software.
The friend relationship is two-party, one party changes to influence the change of the relationship list of the other party, and after one party initiates the change, the server side informs the two parties of changing the friend relationship list. The client updates the friend relationship list in a background operation mode, and user experience is not influenced. After the states of some friends are changed, the server side can inform the corresponding client side of the change of the friend states, and the client side updates the states of the corresponding friends in the list after receiving the change of the friend states and reorders the states according to the ordering rule.
In addition, in other embodiments, each time the user logs out of the application software, the application software may also keep the latest buddy relationship list local before logging out. When the user logs in the application software again, the application software displays the friend relationship list reserved before the previous log-out, and updates the local friend relationship list according to the updating instruction. By the method, the user can see the friend relationship list of the user in time after logging in the application software, the application software background updates the friend relationship list without sensing the user, the time for acquiring data is not needed in the friend list page, and the user experience is improved.
Referring to fig. 4, fig. 4 is a schematic diagram illustrating a method for loading a buddy relationship list of application software according to another embodiment of the present application. In the embodiment of fig. 4, user a and user B are friends in relation to each other.
When the user A or the user B logs in, the friend relationship list can be returned to the local through the server. When the relationship between the user A and the user B is changed, the server side can update the friend relationship list. And the server side can inform the user A and the user B that the friend relationship change occurs. The user A and the user B can acquire a new friend relationship or a friend relationship list through the server.
Based on the foregoing method for loading the buddy relationship list of the application software, the present application further provides an electronic device, as shown in fig. 5, where fig. 5 is a schematic structural diagram of an embodiment of the electronic device of the present application. The electronic device 500 may comprise a memory 51 and a processor 52, the memory 51 being connected to the processor 52, the memory 51 having stored thereon a computer program, which when executed by the processor 52, implements the method of any of the embodiments described above. The steps and principles thereof have been described in detail in the above method and will not be described in detail herein.
In the present embodiment, the processor 52 may also be referred to as a Central Processing Unit (CPU). Processor 52 may be an integrated circuit chip having signal processing capabilities. The processor 52 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Based on the method for loading the friend relationship list of the application software, the application also provides a computer readable storage medium. Referring to fig. 6, fig. 6 is a schematic structural diagram of an embodiment of a computer-readable storage medium according to the present application. The computer-readable storage medium 600 has stored thereon a computer program 61, which computer program 61, when being executed by a processor, carries out the method of any of the above embodiments. The steps and principles thereof have been described in detail in the above method and will not be described in detail herein.
Further, the computer-readable storage medium 600 may also be various media that can store program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic tape, or an optical disk.
It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. In addition, for convenience of description, only a part of structures related to the present application, not all of the structures, are shown in the drawings. The step numbers used herein are also for convenience of description only and are not intended as limitations on the order in which the steps are performed. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first", "second", etc. in this application are used to distinguish between different objects and not to describe a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The above description is only for the purpose of illustrating embodiments of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application or are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A method for loading a friend relation list of application software is characterized by comprising the following steps:
receiving a loading instruction of a friend relation list, and paging the friend relation list and friend relation information corresponding to the friend relation list according to the loading instruction; wherein the friend relationship information comprises a user nickname;
and reordering the friend relationship list according to the first letter of the pinyin of the nickname of the user, and storing the reordered friend relationship list to the local.
2. The method for loading a buddy relationship list of application software according to claim 1, wherein said buddy relationship information further comprises a preset relationship; after reordering the buddy relationship list according to the first letter of the user nickname pinyin, the method further comprises:
and moving the friend with the preset relationship to the forefront of the friend relationship list.
3. The method for loading the buddy relationship list of application software according to claim 2, wherein said moving the buddy with the preset relationship to the top of the buddy relationship list comprises:
and when the friend relationship list comprises a plurality of friends with preset relationships, moving the friends with the preset relationships to the forefront of the friend relationship list, and sequencing the friends with the preset relationships according to the first letters of the pinyin of the nicknames of the users.
4. The method for loading a buddy relationship list of application software according to claim 1, wherein said buddy relationship information further comprises an active status; after reordering the buddy relationship list according to the first letter of the user nickname pinyin, the method further comprises:
and when the active state of the friend meets a preset condition, moving the friend meeting the active state of the preset condition to the forefront of the friend relation list.
5. The method for loading a buddy relationship list of application software according to claim 2, wherein said moving a buddy with a preset relationship to the top of said buddy relationship list further comprises:
and when the friend relation list comprises a plurality of friends with preset relations, moving the friends with the preset relations to the forefront of the friend relation list, and sequencing the friends with the preset relations according to the active state.
6. The method for loading the buddy relationship list of application software according to claim 1, further comprising:
receiving an updating instruction of the friend relationship list, and judging whether the local friend relationship list is the same as the friend relationship list of the server or not according to the updating instruction;
and if not, updating the local friend relationship list according to the friend relationship list of the server.
7. The method for loading the buddy relationship list of application software according to claim 6, further comprising:
when a user logs in the application software for the first time, the application software generates a loading instruction of the friend relation list;
when a user logs in the application software for a non-first time, the application software generates an updating instruction of the friend relation list;
and when the friend updates the account information, the server sends an updating instruction of the friend relationship list to the application software.
8. The method for loading the buddy relationship list of application software according to claim 7, further comprising:
when a user quits the application software each time, the latest friend relationship list is kept to the local before the application software quits;
when the user logs in the application software again, the application software displays the friend relationship list reserved before the last exit, and updates the local friend relationship list according to the updating instruction.
9. An electronic device, comprising a memory and a processor, the memory being coupled to the processor, the memory storing a computer program that, when executed by the processor, implements the method of any of claims 1-8.
10. A computer-readable storage medium, characterized in that a computer program is stored which, when executed, implements the method of any one of claims 1-8.
CN202110861782.8A 2021-07-28 2021-07-28 Loading method of friend relationship list of application software and electronic equipment Pending CN113672830A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110861782.8A CN113672830A (en) 2021-07-28 2021-07-28 Loading method of friend relationship list of application software and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110861782.8A CN113672830A (en) 2021-07-28 2021-07-28 Loading method of friend relationship list of application software and electronic equipment

Publications (1)

Publication Number Publication Date
CN113672830A true CN113672830A (en) 2021-11-19

Family

ID=78540637

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110861782.8A Pending CN113672830A (en) 2021-07-28 2021-07-28 Loading method of friend relationship list of application software and electronic equipment

Country Status (1)

Country Link
CN (1) CN113672830A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010043160A1 (en) * 2008-10-16 2010-04-22 腾讯科技(深圳)有限公司 System and method for displaying instant message platform friend list
CN103049511A (en) * 2012-03-28 2013-04-17 李晶 Method and client for displaying microblog interest list and microblog contents
CN107592399A (en) * 2017-09-26 2018-01-16 广东欧珀移动通信有限公司 The display methods and mobile terminal of a kind of contact person
CN110601954A (en) * 2019-08-28 2019-12-20 李美玉 Simple information browsing method for social software
CN110807157A (en) * 2019-10-31 2020-02-18 广州市网星信息技术有限公司 Friend data pulling method, device, client, server and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010043160A1 (en) * 2008-10-16 2010-04-22 腾讯科技(深圳)有限公司 System and method for displaying instant message platform friend list
CN103049511A (en) * 2012-03-28 2013-04-17 李晶 Method and client for displaying microblog interest list and microblog contents
CN107592399A (en) * 2017-09-26 2018-01-16 广东欧珀移动通信有限公司 The display methods and mobile terminal of a kind of contact person
CN110601954A (en) * 2019-08-28 2019-12-20 李美玉 Simple information browsing method for social software
CN110807157A (en) * 2019-10-31 2020-02-18 广州市网星信息技术有限公司 Friend data pulling method, device, client, server and storage medium

Similar Documents

Publication Publication Date Title
EP1967964B1 (en) Information processing method, information processing system, and server
US10320725B1 (en) Method and apparatus and electronic device for integrating multifunctional services
US8032631B2 (en) Information providing apparatus, information providing method, and program
US20120158935A1 (en) Method and systems for managing social networks
CN106557237B (en) method and terminal for selecting copy text information
WO2017120472A1 (en) Information exchange methods and devices
CN107659611B (en) Big data-based user head portrait generation method, device and system
US9516154B2 (en) Apparatus and method for managing conversational contents with contacts in a terminal
CN108566334B (en) Auxiliary method, terminal and medium based on chat software
CN111130986A (en) Message sending method, device, equipment and storage medium
CN115967691A (en) Message processing method, message processing device, electronic equipment, storage medium and program product
US20090276436A1 (en) Method, apparatus, and computer program product for providing service invitations
US11233753B2 (en) Information processing apparatus and non-transitory computer readable medium
CN113672830A (en) Loading method of friend relationship list of application software and electronic equipment
CN110839986A (en) A intelligent gloves for sorting express delivery
WO2023284630A1 (en) Emoticon image adding method and apparatus, and device and storage medium
US9094575B2 (en) Non-transitory computer-readable medium storing program and communication device
CN107016296B (en) Data index construction method, data index reading method, data index construction device, data reading device and electronic equipment
CN111752885B (en) Method and device for processing reading authority in reading material
CN114157622A (en) Method, device, server and storage medium for adding friends
CN113904886A (en) Video group function method and system
CN114721755A (en) To-do transaction message processing method and device and storage medium
JP4292273B2 (en) Account information management system, server and method, and program and recording medium
CN108512946B (en) Identity information display method and device and terminal
CN110110200B (en) Content recommendation method and system

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