Abstract:
A method and apparatus for adding friend are described. The method includes: scanning to acquire a two-dimension code shared by a two-dimension code sharing user; parsing the two-dimension code to obtain a responsive user identifier; judging a relationship between the user identifier and a user identifier of the two-dimension code sharing user; and if the relationship is a stranger relationship, entering a friend adding interface and adding the two-dimension code sharing user as a friend. The present method is capable of avoiding leakage of user information.
Abstract:
When location information and a user Identification (ID) is received from a client terminal device of a user X, a grid Y, to which the location information belongs, is determined. The user ID and the location information of the user X is stored in a list of the grid Y. The grid Y is in a grid array obtained by dividing a surface of the earth into the grids and areas of the grids are the same. Users in the grid Y and other grids are searched. The grid Y and the other grids form an N-grid and the grid Y is a center of the N-grid. The users are ranked in an ascending order of distances between the users and the user X. The ranked user IDs and distances between the users and the user X are sent to the client terminal device of the user X.
Abstract:
A method and device for publishing promotion contents and computer storage medium are described. The compatibility of the promotion content publishing method can be enhanced and an accurate delivery of the promotion content can be achieved. In the method, a description file is issued to the client. The client then downloads promotion content suitable for its own operation system platform and device according to the description file. Thus the method can be used in different platforms and devices including iOS, Android, WinCE, S60v3, S60v5 and etc. The server can identify the platform of the client, the type of the device and the function opened on the client, thus an accurate delivery of promotion content to specific type of client can be achieved.