CN111953767B - Content sharing method, device, equipment and storage medium - Google Patents

Content sharing method, device, equipment and storage medium Download PDF

Info

Publication number
CN111953767B
CN111953767B CN202010790398.9A CN202010790398A CN111953767B CN 111953767 B CN111953767 B CN 111953767B CN 202010790398 A CN202010790398 A CN 202010790398A CN 111953767 B CN111953767 B CN 111953767B
Authority
CN
China
Prior art keywords
terminal
content
request
content sharing
reference region
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
Application number
CN202010790398.9A
Other languages
Chinese (zh)
Other versions
CN111953767A (en
Inventor
徐维纲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online 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 Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN202010790398.9A priority Critical patent/CN111953767B/en
Publication of CN111953767A publication Critical patent/CN111953767A/en
Application granted granted Critical
Publication of CN111953767B publication Critical patent/CN111953767B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal

Abstract

The application discloses a content sharing method, device, equipment and storage medium, and belongs to the technical field of computers. The method comprises the following steps: receiving a content sharing request sent by at least one terminal, and receiving a content obtaining request sent by at least one terminal; determining a second terminal meeting a position approaching condition and a request time approaching condition with a first terminal based on position information carried in a first content sharing request sent by the first terminal, request time of the first content sharing request, position information carried in a content obtaining request sent by at least one terminal and request time of the content obtaining request; and performing content sharing processing on the second terminal based on the content information to be shared. By the method and the device, the convenience of content sharing among users can be improved.

Description

Content sharing method, device, equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for content sharing.
Background
With the development of computer technology, it is becoming more and more common for people to address the needs of life through mobile phones.
In some application scenarios, for example, when multiple people eat at a restaurant together, a user may directly scan a two-dimensional code on a table using a first terminal, or directly enter an ordering page of the restaurant through an application program to order, when browsing a menu, the user finds a dish and wants to recommend the dish to another user, and then the user passes the first terminal to the another user so that the another user can see content information of the dish.
In the process of implementing the present application, the inventor finds that the prior art has at least the following problems:
in the process of recommending the dishes, the user recommending the dishes transmits the first terminal of the user to other users so that the other users can see the content information of the dishes recommended by the user, the process is very troublesome, and the problem that the convenience of content sharing among the users is poor is caused.
Disclosure of Invention
The embodiment of the application provides a content sharing method, device, equipment and storage medium, and can solve the problem that convenience of content sharing among users is poor. The technical scheme is as follows:
in one aspect, a method for content sharing is provided, where the method includes:
receiving a content sharing request sent by at least one terminal, and receiving a content obtaining request sent by at least one terminal, wherein the content sharing request carries position information of a corresponding terminal and content information to be shared, and the content obtaining request carries the position information of the corresponding terminal;
determining a second terminal meeting a position approaching condition and a request time approaching condition with a first terminal based on position information carried in a first content sharing request sent by the first terminal, request time of the first content sharing request, position information carried in a content obtaining request sent by at least one terminal and request time of the content obtaining request;
and performing content sharing processing on the second terminal based on the content information to be shared.
Optionally, a plurality of areas obtained by dividing the entire geographic space are recorded in advance, the position proximity condition is that the first terminal belongs to the same area of the plurality of areas, and the request time proximity condition is that a time difference between a request time of the corresponding content acquisition request and a request time of the first content sharing request is smaller than a time difference threshold.
Optionally, the determining, based on location information carried in a first content sharing request sent by a first terminal, request time of the first content sharing request, location information carried in a content obtaining request sent by at least one terminal, and request time of the content obtaining request, a second terminal that meets a location proximity condition and a request time proximity condition with the first terminal includes:
determining a first area to which a first terminal belongs based on position information carried in a first content sharing request sent by the first terminal and a plurality of pre-recorded areas;
determining at least one terminal belonging to the first area as a terminal meeting a position approaching condition with the first terminal based on position information carried in a content obtaining request sent by the at least one terminal;
and determining a second terminal, in the terminals meeting the position approaching condition with the first terminal, wherein the time difference between the request time of the corresponding content obtaining request and the request time of the first content sharing request is smaller than a time difference threshold value.
Optionally, the determining, based on location information carried in a content acquisition request sent by the at least one terminal, the at least one terminal belonging to the first area as a terminal that meets a location proximity condition with the first terminal includes:
setting the first region as a reference region;
determining user density based on the total number of terminals sending content acquisition requests and the first terminal in the reference region and the area of the reference region;
if the user density is larger than a density threshold value, determining a terminal which sends a content acquisition request in the reference area as a terminal which meets a position approaching condition with the first terminal;
if the user density is smaller than a density threshold, dividing the reference region into a plurality of sub-regions, determining a first sub-region to which the first terminal belongs based on position information carried in the first content sharing request, setting the first sub-region as the reference region, and switching to execution of the reference region based on the total number of terminals sending content obtaining requests in the reference region and the first terminal and the area of the reference region to determine the user density.
Optionally, the plurality of regions are all rectangular regions.
Optionally, the dividing the reference region into a plurality of sub-regions includes:
and performing quadtree division on the reference region to obtain a plurality of sub-regions.
In another aspect, an apparatus for content sharing is provided, the apparatus including:
the content sharing system comprises a receiving module and a content obtaining module, wherein the receiving module is used for receiving a content sharing request sent by at least one terminal and receiving a content obtaining request sent by at least one terminal, the content sharing request carries position information of a corresponding terminal and content information to be shared, and the content obtaining request carries the position information of the corresponding terminal;
the system comprises a determining module, a determining module and a processing module, wherein the determining module is used for determining a second terminal which meets a position approaching condition and a request time approaching condition with a first terminal based on position information carried in a first content sharing request sent by the first terminal, request time of the first content sharing request, position information carried in a content obtaining request sent by at least one terminal and request time of the content obtaining request;
and the sharing module is used for carrying out content sharing processing on the second terminal based on the content information to be shared.
Optionally, a plurality of areas obtained by dividing the entire geographic space are recorded in advance, the position proximity condition is that the first terminal belongs to the same area of the plurality of areas, and the request time proximity condition is that a time difference between a request time of the corresponding content acquisition request and a request time of the first content sharing request is smaller than a time difference threshold.
Optionally, the determining module is configured to:
determining a first area to which a first terminal belongs based on position information carried in a first content sharing request sent by the first terminal and a plurality of pre-recorded areas;
determining at least one terminal belonging to the first area as a terminal meeting a position approaching condition with the first terminal based on position information carried in a content obtaining request sent by the at least one terminal;
and determining a second terminal, in the terminals meeting the position approaching condition with the first terminal, wherein the time difference between the request time of the corresponding content obtaining request and the request time of the first content sharing request is smaller than a time difference threshold value.
Optionally, the determining module is configured to:
setting the first region as a reference region;
determining user density based on the total number of terminals sending content acquisition requests and the first terminal in the reference region and the area of the reference region;
if the user density is larger than a density threshold value, determining a terminal which sends a content acquisition request in the reference area as a terminal which meets a position approaching condition with the first terminal;
if the user density is smaller than a density threshold, dividing the reference region into a plurality of sub-regions, determining a first sub-region to which the first terminal belongs based on position information carried in the first content sharing request, setting the first sub-region as the reference region, and switching to execution of the reference region based on the total number of terminals sending content obtaining requests in the reference region and the first terminal and the area of the reference region to determine the user density.
Optionally, the plurality of regions are all rectangular regions.
Optionally, the determining module is configured to:
and performing quadtree division on the reference region to obtain a plurality of sub-regions.
In yet another aspect, a computer device is provided and includes a processor and a memory, where instructions are stored in the memory, and the processor executes the instructions to enable the computer device to implement the content sharing method.
In yet another aspect, a computer-readable storage medium is provided, which stores instructions that, when executed by a computer device, cause the computer device to implement the content sharing method.
The technical scheme provided by the embodiment of the application has the following beneficial effects:
according to the content sharing method and the content sharing system, the content sharing request is sent to the server through the at least one terminal, the content obtaining request is sent to the server through the at least one terminal, then the server can determine the second terminal and the corresponding first terminal which accord with the position approaching condition and the request time approaching condition according to the content sharing request and the position information and the request time in the content obtaining request, then the server sends content data corresponding to the content information to be shared sent by the first terminal to the second terminal, and then the content sharing can be achieved only by triggering the content sharing control or the content obtaining control at the respective terminal by the user, and the problem that the content sharing is poor in convenience is solved among the users.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic illustration of an implementation environment of an embodiment of the present application;
fig. 2 is a flowchart of a content sharing method according to an embodiment of the present disclosure;
fig. 3 is a schematic page diagram of a content sharing method according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a content sharing apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a terminal device provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a server apparatus according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, the following detailed description of the embodiments of the present application will be made with reference to the accompanying drawings.
The embodiment of the application provides a content sharing method, which can be realized by a first terminal, a server and a second terminal together, wherein the first terminal and the second terminal can be a mobile phone, a desktop computer, a tablet computer, a notebook computer, an intelligent wearable device and the like, and the first terminal and the second terminal can be provided with components such as a screen, an antenna and the like. The first terminal and the second terminal may have a function of transmitting data and a function of acquiring a current position. The first terminal and the second terminal may be installed with an application program, and the application program may be any application program that can share content. It should be noted that the present disclosure is described by taking a food ordering application as an example, and is not described in detail hereinafter. The server may be a background server of the ordering application program, the server may be a single server or a server group, if the server is a single server, the server may be responsible for all processing required by the server in the following scheme, if the server group is a server group, different servers in the server group may be respectively responsible for different processing in the following scheme, and the specific processing allocation condition may be arbitrarily set by a technician according to actual needs, which is not described herein again.
When a plurality of users have dinner together, the users can scan the two-dimensional code on the table by using the terminal and determine dishes of main points through offline discussion, and then the users can order dishes according to discussion results. They can also use their own terminal to scan the two-dimensional code on the table respectively, and then the server can set them into a group, as shown in fig. 1, that is to say, realize ordering together, each user can order the dishes that oneself likes, and then accomplish ordering, they can also find the corresponding restaurant directly through the application program of ordering in the terminal, and establish a group including all the above-mentioned users manually, and then each user orders the dishes that oneself likes, accomplish ordering.
Fig. 2 is a flowchart of a content sharing method according to an embodiment of the present disclosure. Referring to fig. 2, the process includes:
step 201, receiving a content sharing request sent by at least one terminal, and receiving a content obtaining request sent by at least one terminal.
The content sharing request carries the position information of the corresponding terminal and the content information to be shared, and the content obtaining request carries the position information of the corresponding terminal.
In implementation, when a plurality of users enter a restaurant together to have a meal together, the user a may scan a two-dimensional code on a table using its own terminal, or open a meal ordering application program and query the corresponding restaurant, and pull up a meal ordering group, and then the user a's terminal may display a list of dishes, which may be as shown in fig. 3, in which the dishes may be classified, for example, discounts, vegetables, meat, etc., in each classification, different dishes may be set, and a name, pricing, food material information, and a meal ordering control of each dish may be displayed, and after the meal ordering control is started, a specification selection window may be displayed, in which specification data, for example, large, small, and also a content acquisition control may be displayed in the upper right corner.
In the process of browsing the dish list, the user A finds a dish which the user A likes, but the user A does not know whether other users who eat with the user A like the dish, so that the user A can inform the other users that the user A wants to recommend the dish to the user A. Then, the user a may click on the content sharing control, for example, the user a may press a favorite dish of the dish list for a long time, and then the terminal may display a content sharing control, and the user triggers the content sharing control. Furthermore, the terminal may obtain current location information and content information to be shared, where the content information may be a link identifier or complete content data. And then, generating a content sharing request based on the position information and the content information to be shared, and sending the content sharing request to a server. When other users know that the user A wants to recommend dishes, the other users can click the content acquisition control displayed at the upper right corner of the dish list, so that the terminals of the other users can acquire the current position information, generate a content acquisition request based on the position information, and then send the content acquisition request to the server.
Furthermore, the server receives a content sharing request sent by at least one terminal and a content obtaining request sent by at least one terminal, and determines one of the at least one terminal sending the content sharing request as the first terminal, and correspondingly, the content sharing request sent by the first terminal is the first content sharing request.
Optionally, the content sharing request sent by the at least one terminal may include a request time of the content sharing request, where the request time of the content sharing request may be a time of generating the content sharing request, and the content obtaining request sent by the at least one terminal may include a request time of the content obtaining request, and the request time of the content obtaining request may be a time of generating the content obtaining request.
In implementation, when the terminal generates a content sharing request, the terminal may obtain a current time and use the current time as a request time of the content sharing request, and then package the current time, the position information of the terminal and content information to be shared together as the content sharing request. When the terminal is generating the content acquisition request, the terminal may acquire the current time and use it as the request time of the content acquisition request, and then package it together with the location information of the terminal as the content acquisition request.
Step 202, determining a second terminal meeting a position approaching condition and a request time approaching condition with the first terminal based on the position information carried in the first content sharing request sent by the first terminal, the request time of the first content sharing request, the position information carried in the content acquiring request sent by at least one terminal, and the request time of the content acquiring request.
The server records a plurality of areas obtained by dividing the whole geographic space in advance, the position approaching condition may be that the first terminal belongs to the same area of the plurality of areas, and the request time approaching condition may be that a time difference between a request time of the corresponding content acquisition request and a request time of the first content sharing request is smaller than a time difference threshold.
In implementation, after the server determines the first terminal, the server may obtain the request time carried in the first content sharing request and the location information carried in the first content sharing request, and obtain the location information carried in the content obtaining request sent by at least one terminal and the request time carried in the content obtaining request.
Optionally, the request time of the first content sharing request may also be a time when the server receives the first content sharing request, and the request time of the content obtaining request may also be a time when the server receives the content obtaining request, and accordingly, the processing of obtaining the location information carried in the first content sharing request sent by the first terminal, the request time of the first content sharing request, the location information carried in the content obtaining request sent by at least one terminal, and the request time of the content obtaining request may be as follows:
after the server determines the first terminal, the server may obtain the location information carried in the first content sharing request and the request time recorded by the server for receiving the first content sharing request, and obtain the location information carried in the content obtaining request sent by at least one terminal and the request time recorded by the server for receiving the content obtaining request.
Then, the server may determine a second terminal satisfying the location proximity condition and the request time proximity condition with the first terminal, and the process may be as follows:
the method includes the steps that a first area to which a first terminal belongs is determined based on position information carried in a first content sharing request sent by the first terminal and a plurality of pre-recorded areas.
In implementation, location information intervals corresponding to a plurality of pre-recorded areas are obtained, for example, the location information intervals may be longitude and latitude intervals, and it is determined which area the location information carried in the first content sharing request sent by the first terminal belongs to, and then the area corresponding to the location information interval including the location information is determined as the first area, for example, the location information carried in the first content sharing request sent by the first terminal is longitude and latitude coordinates, and then it is determined which longitude and latitude interval the longitude and latitude coordinates are in, and then the area corresponding to the longitude and latitude interval including the longitude and latitude coordinates is determined as the first area.
And determining at least one terminal belonging to a first area as a terminal meeting a position approaching condition with the first terminal based on position information carried in a content acquisition request sent by the at least one terminal.
For example, the server determines at least one terminal belonging to the first area as a terminal satisfying a position approaching condition with the first terminal based on the longitude and latitude coordinates carried in the content acquisition request sent by the at least one terminal and the longitude and latitude interval corresponding to the first area.
Optionally, to improve the content sharing accuracy, the server may calculate the user density of the area to determine at least one terminal belonging to the first area, and the terminal that meets the position proximity condition with the first terminal may specifically perform the following processing:
first, the first region is set as a reference region.
Next, the user density is determined based on the total number of terminals and first terminals that send content acquisition requests in the reference region, and the area of the reference region.
In an implementation, after the server sets the first region as the reference region, the server may calculate a total number of terminals sending the content acquisition request in the reference region and the first terminals, may acquire an area of the current reference region (that is, an area of the first region) according to the correspondence, or may acquire a length and a width of the reference region, multiply the length and the width to obtain the area of the reference region, and further divide the total number by the area of the reference region to determine the user density.
Then, the server may determine which terminals are the terminals satisfying the location proximity condition with the first terminal by comparing the user density of the area with the density threshold, and the specific processing may be as follows:
and judging the user density and the density threshold value.
Wherein the density threshold is used to determine which of the at least one terminal sending the content acquisition request are users having meals with the user of the first terminal.
It should be noted that, in an application scenario of eating together, distances between users are close, that is, a plurality of users may be gathered in a small area, that is, people eating together may be gathered in a small area and order a meal, and a technician designing the scheme designs a density threshold based on the above situation, so as to use the density threshold to filter at least one terminal sending a content acquisition request.
And if the user density is greater than the density threshold value, determining the terminal sending the content acquisition request in the reference area as the terminal meeting the position approaching condition with the first terminal.
For example, if the density threshold is 10 and the user density is 11, the terminal that has transmitted the content acquisition request in the reference area is determined as the terminal that satisfies the position proximity condition with the first terminal.
If the user density is smaller than the density threshold, dividing the reference area into a plurality of sub-areas, determining a first sub-area to which the first terminal belongs based on the position information carried in the first content sharing request, setting the first sub-area as the reference area, and switching to the execution of the determination of the user density based on the total number of the terminals sending the content obtaining request in the reference area and the first terminal and the area of the reference area.
For example, if the density threshold is 10 and the user density is 9, the server performs quadtree partitioning on the reference region to obtain a plurality of sub-regions, that is, a rectangular coordinate system is established based on the center of the current reference region, and the rectangular coordinate system is partitioned into four sub-regions of equal size. Then, a first sub-region to which the first terminal belongs is determined according to the position information carried in the first content sharing request, the first sub-region is set as a reference region, then, the server can calculate the total number of the terminals sending the content obtaining request in the reference region (the first sub-region) and the first terminals, can obtain the area of the current reference region (namely the area of the first sub-region) or obtain the length and the width of the reference region according to the corresponding relation, multiply the length and the width to obtain the area of the reference region, and further divide the total number by the area of the reference region to determine the user density.
Optionally, if the user density of the region to which the first terminal belongs obtained through the division is smaller than the density threshold, the server may further obtain other three sub-regions obtained through the division, and calculate the user densities of the other three sub-regions, and if the user densities of the other three sub-regions are higher than the density threshold, the sub-region with the highest user density in the three regions and the first sub-region to which the first terminal belongs are fused to generate a new reference region, and then the user density of the new region is recalculated, and if the user density of the new region is still smaller than the density threshold, the above steps are repeated. Furthermore, the probability that the situation that a plurality of people have a meal together and cannot share the content due to loose sitting positions can be reduced.
And finally, determining a second terminal of which the time difference between the request time of the corresponding content acquisition request and the request time of the first content sharing request is smaller than a time difference threshold value in the terminals meeting the position approaching condition with the first terminal.
In implementation, after a terminal satisfying a location proximity condition with the first terminal is determined, the server acquires time information in a content acquisition request sent by at least one terminal belonging to the reference area (or time information recorded by the server and received by the server, of the content acquisition request of the at least one terminal), and calculates a time difference between a request time of the content acquisition request corresponding to the at least one terminal and a request time of the first content sharing request. The server is further provided with a time difference threshold, if the time difference threshold is smaller than the time difference threshold, the content acquisition request is considered to correspond to the first content sharing request, and further, after the time difference is calculated, the server can compare the time difference with the time difference threshold, and determine at least one terminal corresponding to the time difference smaller than the time difference threshold as a second terminal.
And step 203, performing content sharing processing on the second terminal based on the content information to be shared.
In implementation, after a second terminal meeting the position approaching condition and the request time approaching condition with the first terminal is determined, content data corresponding to content information to be shared is acquired. For example, if the content information to be shared is an identifier, the corresponding content data is obtained based on the identifier, if the content information to be shared is a link, the corresponding content data is obtained according to the link, and if the content information to be shared is complete content data, the content data is directly obtained. Then, the content data is transmitted to the second terminal.
According to the content sharing method and the content sharing system, the content sharing request is sent to the server through the at least one terminal, the content obtaining request is sent to the server through the at least one terminal, then the server can determine the second terminal and the corresponding first terminal which meet the position approaching condition and the request time approaching condition according to the content sharing request and the position information and the request time in the content obtaining request, then the server sends content data corresponding to the content information to be shared, sent by the first terminal, to the second terminal, and therefore the content sharing can be achieved only by triggering the content sharing control or the content obtaining control at the respective terminals of the user, and the problem that the content sharing among the users is poor in convenience is solved.
All the above optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described herein again.
Fig. 4 is a schematic diagram of a content sharing apparatus according to an embodiment of the present disclosure. Referring to fig. 4, the apparatus may be the server described above, and includes:
a receiving module 410, configured to receive a content sharing request sent by at least one terminal, and receive a content obtaining request sent by at least one terminal, where the content sharing request carries location information of a corresponding terminal and content information to be shared, and the content obtaining request carries location information of the corresponding terminal;
a determining module 420, configured to determine, based on location information carried in a first content sharing request sent by a first terminal, request time of the first content sharing request, location information carried in a content obtaining request sent by at least one terminal, and request time of the content obtaining request, a second terminal that meets a location proximity condition and a request time proximity condition with the first terminal;
the sharing module 430 is configured to perform content sharing processing on the second terminal based on the content information to be shared.
Optionally, a plurality of areas obtained by dividing the entire geographic space are recorded in advance, the position proximity condition is that the first terminal belongs to the same area of the plurality of areas, and the request time proximity condition is that a time difference between a request time of the corresponding content acquisition request and a request time of the first content sharing request is smaller than a time difference threshold.
Optionally, the determining module 420 is configured to:
determining a first area to which a first terminal belongs based on position information carried in a first content sharing request sent by the first terminal and a plurality of pre-recorded areas;
determining at least one terminal belonging to the first area as a terminal meeting a position approaching condition with the first terminal based on position information carried in a content obtaining request sent by the at least one terminal;
and determining a second terminal, in the terminals meeting the position approaching condition with the first terminal, wherein the time difference between the request time of the corresponding content obtaining request and the request time of the first content sharing request is smaller than a time difference threshold value.
Optionally, the determining module 420 is configured to:
setting the first region as a reference region;
determining user density based on the total number of terminals sending content acquisition requests and the first terminal in the reference region and the area of the reference region;
if the user density is larger than a density threshold value, determining a terminal which sends a content acquisition request in the reference area as a terminal which meets a position approaching condition with the first terminal;
if the user density is smaller than a density threshold, dividing the reference region into a plurality of sub-regions, determining a first sub-region to which the first terminal belongs based on position information carried in the first content sharing request, setting the first sub-region as the reference region, and switching to execution of the reference region based on the total number of terminals sending content obtaining requests in the reference region and the first terminal and the area of the reference region to determine the user density.
Optionally, the plurality of regions are all rectangular regions.
Optionally, the determining module 420 is configured to:
and performing quadtree division on the reference region to obtain a plurality of sub-regions.
According to the content sharing method and the content sharing system, the content sharing request is sent to the server through the at least one terminal, the content obtaining request is sent to the server through the at least one terminal, then the server can determine the second terminal and the corresponding first terminal which accord with the position approaching condition and the request time approaching condition according to the content sharing request and the position information and the request time in the content obtaining request, then the server sends content data corresponding to the content information to be shared sent by the first terminal to the second terminal, and then the content sharing can be achieved only by triggering the content sharing control or the content obtaining control at the respective terminal by the user, and the problem that the content sharing is poor in convenience is solved among the users.
It should be noted that: in the content sharing apparatus provided in the above embodiment, when sharing content, only the division of each functional module is illustrated, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the embodiments of the content sharing method provided in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are described in detail in the embodiments of the method, and are not described herein again.
Fig. 5 shows a block diagram of a terminal 500 according to an exemplary embodiment of the present application. The terminal may be the first terminal and the second terminal, and the terminal 500 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Terminal 500 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, and the like.
In general, the terminal 500 includes: a processor 501 and a memory 502.
The processor 501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 501 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 501 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 501 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, processor 501 may also include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.
Memory 502 may include one or more computer-readable storage media, which may be non-transitory. Memory 502 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 502 is used to store at least one instruction for execution by processor 501 to implement the method of content sharing provided by method embodiments herein.
In some embodiments, the terminal 500 may further optionally include: a peripheral interface 503 and at least one peripheral. The processor 501, memory 502, and peripheral interface 503 may be connected by buses or signal lines. Each peripheral may be connected to the peripheral interface 503 by a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 504, touch screen display 505, camera 506, audio circuitry 507, positioning components 508, and power supply 509.
The peripheral interface 503 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 501 and the memory 502. In some embodiments, the processor 501, memory 502, and peripheral interface 503 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 501, the memory 502, and the peripheral interface 503 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 504 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 504 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 504 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 504 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 504 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 504 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 505 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 505 is a touch display screen, the display screen 505 also has the ability to capture touch signals on or over the surface of the display screen 505. The touch signal may be input to the processor 501 as a control signal for processing. At this point, the display screen 505 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 505 may be one, providing the front panel of the terminal 500; in other embodiments, the display screens 505 may be at least two, respectively disposed on different surfaces of the terminal 500 or in a folded design; in still other embodiments, the display 505 may be a flexible display disposed on a curved surface or on a folded surface of the terminal 500. Even more, the display screen 505 can be arranged in a non-rectangular irregular figure, i.e. a shaped screen. The Display screen 505 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and other materials.
The camera assembly 506 is used to capture images or video. Optionally, camera assembly 506 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera head assembly 506 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
Audio circuitry 507 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 501 for processing, or inputting the electric signals to the radio frequency circuit 504 to realize voice communication. The microphones may be provided in plural numbers, respectively, at different portions of the terminal 500 for the purpose of stereo sound collection or noise reduction. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 501 or the radio frequency circuit 504 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuitry 507 may also include a headphone jack.
The positioning component 508 is used for positioning the current geographic Location of the terminal 500 for navigation or LBS (Location Based Service). The Positioning component 508 may be a Positioning component based on the Global Positioning System (GPS) in the united states, the beidou System in china, the grignard System in russia, or the galileo System in the european union.
Power supply 509 is used to power the various components in terminal 500. The power source 509 may be alternating current, direct current, disposable or rechargeable. When power supply 509 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 500 also includes one or more sensors 510. The one or more sensors 510 include, but are not limited to: acceleration sensor 511, gyro sensor 512, pressure sensor 513, fingerprint sensor 514, optical sensor 515, and proximity sensor 516.
The acceleration sensor 511 may detect the magnitude of acceleration in three coordinate axes of the coordinate system established with the terminal 500. For example, the acceleration sensor 511 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 501 may control the touch screen 505 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 511. The acceleration sensor 511 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 512 may detect a body direction and a rotation angle of the terminal 500, and the gyro sensor 512 may cooperate with the acceleration sensor 511 to acquire a 3D motion of the user on the terminal 500. The processor 501 may implement the following functions according to the data collected by the gyro sensor 512: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensor 513 may be disposed on a side bezel of the terminal 500 and/or an underlying layer of the touch display screen 505. When the pressure sensor 513 is disposed on the side frame of the terminal 500, a user's holding signal of the terminal 500 may be detected, and the processor 501 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 513. When the pressure sensor 513 is disposed at the lower layer of the touch display screen 505, the processor 501 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 505. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 514 is used for collecting a fingerprint of the user, and the processor 501 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 514, or the fingerprint sensor 514 identifies the identity of the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the processor 501 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 514 may be provided on the front, back, or side of the terminal 500. When a physical button or a vendor Logo is provided on the terminal 500, the fingerprint sensor 514 may be integrated with the physical button or the vendor Logo.
The optical sensor 515 is used to collect the ambient light intensity. In one embodiment, the processor 501 may control the display brightness of the touch display screen 505 based on the ambient light intensity collected by the optical sensor 515. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 505 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 505 is turned down. In another embodiment, processor 501 may also dynamically adjust the shooting parameters of camera head assembly 506 based on the ambient light intensity collected by optical sensor 515.
A proximity sensor 516, also referred to as a distance sensor, is typically disposed on the front panel of the terminal 500. The proximity sensor 516 is used to collect the distance between the user and the front surface of the terminal 500. In one embodiment, when the proximity sensor 516 detects that the distance between the user and the front surface of the terminal 500 gradually decreases, the processor 501 controls the touch display screen 505 to switch from the bright screen state to the dark screen state; when the proximity sensor 516 detects that the distance between the user and the front surface of the terminal 500 becomes gradually larger, the processor 501 controls the touch display screen 505 to switch from the screen-rest state to the screen-on state.
Those skilled in the art will appreciate that the configuration shown in fig. 5 is not intended to be limiting of terminal 500 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
Fig. 6 is a schematic structural diagram of a server according to an embodiment of the present application, where the server may be the above server, and the server 600 may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 601 and one or more memories 602, where at least one instruction is stored in the memory 602, and the at least one instruction is loaded and executed by the processor 601 to implement the methods provided by the above method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input/output, and the server may also include other components for implementing the functions of the device, which are not described herein again.
In an exemplary embodiment, a computer-readable storage medium, such as a memory, including instructions executable by a processor in a terminal to perform the method of content sharing in the above embodiments is also provided. For example, the computer-readable storage medium may be a Read-only Memory (ROM), a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A content sharing method is applied to a server, and the method comprises the following steps:
receiving a content sharing request sent by at least one terminal after a content sharing control is clicked, and receiving a content obtaining request sent by at least one terminal after the content obtaining control is clicked, wherein the content sharing request carries position information of a corresponding terminal and content information to be shared, and the content obtaining request carries the position information of the corresponding terminal;
the method comprises the steps that a plurality of areas obtained by dividing the whole geographic space are recorded in advance, and a first area to which a first terminal belongs is determined based on position information carried in a first content sharing request sent by the first terminal and the plurality of areas recorded in advance; setting the first region as a reference region; determining user density based on the total number of terminals sending content acquisition requests and the first terminal in the reference region and the area of the reference region;
if the user density is larger than a density threshold value, determining a terminal which sends a content acquisition request in the reference area as a terminal which meets a position approaching condition with the first terminal;
if the user density is smaller than a density threshold, dividing the reference region into a plurality of sub-regions, determining a first sub-region to which the first terminal belongs based on position information carried in the first content sharing request, setting the first sub-region as the reference region, and switching to execution of the first sub-region based on the total number of terminals sending content obtaining requests in the reference region and the first terminal and the area of the reference region to determine the user density;
determining a second terminal, in the terminals meeting the position approaching condition with the first terminal, where a time difference between a request time of the corresponding content obtaining request and a request time of the first content sharing request is smaller than a time difference threshold;
and performing content sharing processing on the second terminal based on the content information to be shared.
2. The method according to claim 1, wherein the location proximity condition is that the first terminal belongs to the same one of the plurality of areas, and the request time proximity condition is that a time difference between a request time of the corresponding content acquisition request and a request time of the first content sharing request is smaller than a time difference threshold.
3. The method of claim 1, wherein the plurality of regions are all rectangular regions.
4. The method of claim 1, wherein the dividing the reference region into a plurality of sub-regions comprises:
and performing quadtree division on the reference region to obtain a plurality of sub-regions.
5. An apparatus for content sharing, the apparatus comprising:
the content sharing system comprises a receiving module and a content obtaining module, wherein the receiving module is used for receiving a content sharing request sent by at least one terminal after a content sharing control is clicked, and receiving a content obtaining request sent by at least one terminal after the content obtaining control is clicked, the content sharing request carries position information of a corresponding terminal and content information to be shared, and the content obtaining request carries position information of the corresponding terminal;
the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for recording a plurality of areas obtained by dividing the whole geographic space in advance, and determining a first area to which a first terminal belongs based on position information carried in a first content sharing request sent by the first terminal and the plurality of areas recorded in advance; setting the first region as a reference region; determining user density based on the total number of terminals sending content acquisition requests and the first terminal in the reference region and the area of the reference region;
if the user density is larger than a density threshold value, determining a terminal which sends a content acquisition request in the reference area as a terminal which meets a position approaching condition with the first terminal;
if the user density is smaller than a density threshold, dividing the reference region into a plurality of sub-regions, determining a first sub-region to which the first terminal belongs based on position information carried in the first content sharing request, setting the first sub-region as the reference region, and switching to execution of the first sub-region based on the total number of terminals sending content obtaining requests in the reference region and the first terminal and the area of the reference region to determine the user density;
determining a second terminal, in the terminals meeting the position approaching condition with the first terminal, of which the time difference between the request time of the corresponding content obtaining request and the request time of the first content sharing request is smaller than a time difference threshold value;
and the sharing module is used for carrying out content sharing processing on the second terminal based on the content information to be shared.
6. The apparatus according to claim 5, wherein the location proximity condition is that the first terminal belongs to the same one of the plurality of areas, and the request time proximity condition is that a time difference between a request time of the corresponding content acquisition request and a request time of the first content sharing request is smaller than a time difference threshold.
7. The apparatus of claim 5, wherein the plurality of regions are all rectangular regions.
8. The apparatus of claim 5, wherein the determining module is configured to:
and performing quadtree division on the reference region to obtain a plurality of sub-regions.
9. A computer device comprising a processor and a memory, the memory having stored therein at least one instruction that is loaded and executed by the processor to perform operations performed by a method of content sharing according to any one of claims 1 to 4.
10. A computer-readable storage medium having stored therein at least one instruction which is loaded and executed by a processor to perform operations performed by a method of content sharing according to any one of claims 1 to 4.
CN202010790398.9A 2020-08-07 2020-08-07 Content sharing method, device, equipment and storage medium Active CN111953767B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010790398.9A CN111953767B (en) 2020-08-07 2020-08-07 Content sharing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010790398.9A CN111953767B (en) 2020-08-07 2020-08-07 Content sharing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111953767A CN111953767A (en) 2020-11-17
CN111953767B true CN111953767B (en) 2022-11-29

Family

ID=73331818

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010790398.9A Active CN111953767B (en) 2020-08-07 2020-08-07 Content sharing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111953767B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546835A (en) * 2012-03-08 2012-07-04 腾讯科技(深圳)有限公司 Method for sharing contents, terminal, server and system
CN106912048A (en) * 2013-12-20 2017-06-30 小米科技有限责任公司 Access-in point information sharing method and device
CN108616448A (en) * 2018-04-26 2018-10-02 维沃移动通信有限公司 A kind of the path recommendation method and mobile terminal of Information Sharing
WO2019128568A1 (en) * 2017-12-27 2019-07-04 Oppo广东移动通信有限公司 Content pushing method, apparatus and device
CN110622487A (en) * 2017-10-09 2019-12-27 华为技术有限公司 File sharing method and terminal
CN110852850A (en) * 2019-11-13 2020-02-28 汉海信息技术(上海)有限公司 Shared article recommendation method and device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546835A (en) * 2012-03-08 2012-07-04 腾讯科技(深圳)有限公司 Method for sharing contents, terminal, server and system
CN106912048A (en) * 2013-12-20 2017-06-30 小米科技有限责任公司 Access-in point information sharing method and device
CN110622487A (en) * 2017-10-09 2019-12-27 华为技术有限公司 File sharing method and terminal
WO2019128568A1 (en) * 2017-12-27 2019-07-04 Oppo广东移动通信有限公司 Content pushing method, apparatus and device
CN108616448A (en) * 2018-04-26 2018-10-02 维沃移动通信有限公司 A kind of the path recommendation method and mobile terminal of Information Sharing
CN110852850A (en) * 2019-11-13 2020-02-28 汉海信息技术(上海)有限公司 Shared article recommendation method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN111953767A (en) 2020-11-17

Similar Documents

Publication Publication Date Title
CN112162671B (en) Live broadcast data processing method and device, electronic equipment and storage medium
CN110674022B (en) Behavior data acquisition method and device and storage medium
CN111079012A (en) Live broadcast room recommendation method and device, storage medium and terminal
CN112751679B (en) Instant messaging message processing method, terminal and server
US20220164159A1 (en) Method for playing audio, terminal and computer-readable storage medium
WO2020088542A1 (en) Data management method, apparatus and system, and server, terminal and storage medium
CN111479219B (en) Mobile communication method, device, terminal and storage medium
CN112667835A (en) Work processing method and device, electronic equipment and storage medium
CN111192072A (en) User grouping method and device and storage medium
CN111796990A (en) Resource display method, device, terminal and storage medium
CN112118353A (en) Information display method, device, terminal and computer readable storage medium
CN112100528A (en) Method, device, equipment and medium for training search result scoring model
CN113099378B (en) Positioning method, device, equipment and storage medium
CN111953767B (en) Content sharing method, device, equipment and storage medium
CN114329292A (en) Resource information configuration method and device, electronic equipment and storage medium
CN109189525B (en) Method, device and equipment for loading sub-page and computer readable storage medium
CN112579926A (en) Method and device for acquiring target resource, electronic equipment and storage medium
CN113301422A (en) Method, terminal and storage medium for acquiring video cover
CN112231619A (en) Conversion method, conversion device, electronic equipment and storage medium
CN110717110A (en) Multimedia resource filtering method and device, electronic equipment and storage medium
CN113052408B (en) Method and device for community aggregation
CN115379274B (en) Picture-based interaction method and device, electronic equipment and storage medium
CN111414563B (en) Webpage interaction method, device, computer equipment and storage medium
CN111275561B (en) Method, device, computer equipment and storage medium for acquiring association relation
CN111526221B (en) Domain name quality determining method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant