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

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

Info

Publication number
CN111787108A
CN111787108A CN202010623504.4A CN202010623504A CN111787108A CN 111787108 A CN111787108 A CN 111787108A CN 202010623504 A CN202010623504 A CN 202010623504A CN 111787108 A CN111787108 A CN 111787108A
Authority
CN
China
Prior art keywords
content
shared
page
background server
sharing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010623504.4A
Other languages
Chinese (zh)
Other versions
CN111787108B (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.)
Ping An Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China 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 Ping An Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN202010623504.4A priority Critical patent/CN111787108B/en
Publication of CN111787108A publication Critical patent/CN111787108A/en
Application granted granted Critical
Publication of CN111787108B publication Critical patent/CN111787108B/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/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • 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/55Push-based network services
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to the technical field of safety protection, and provides a content sharing method, a content sharing device, computer equipment and a storage medium, wherein the content sharing method comprises the following steps: the method comprises the steps that a first user terminal obtains current position information and uploads the position information to a background server; inquiring a second user terminal which is at a preset distance from the position information from the background server; when a function button on a page of a first user terminal receives a clicking operation of a user, triggering a sharing instruction, and calling a sharing code block corresponding to the sharing instruction from a preset code database; verifying whether the shared code block is changed; if the content is not changed, acquiring the content to be shared based on the shared code block; determining a target user terminal from the second user terminals; and sending the content to be shared to a background server so as to be pushed to a page of the target user terminal through the background server. According to the content sharing method and device, content sharing is safely carried out in the operating system.

Description

Content sharing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of security protection technologies, and in particular, to a content sharing method and apparatus, a computer device, and a storage medium.
Background
Content sharing refers to a process in which user a perceives a need to inform user B of the knowledge or processing after viewing any page (H5 page)/content (a piece of content in H5). The non-communication software refers to non-chat type working software, such as an operating system and the like.
The main form of information sharing by non-chat software is as follows: the user A shares some pages to the user B through a third-party platform such as WeChat or QQ, and the user B opens a sharing link to call software to read the sharing content. This form suffers from the following disadvantages:
1. internal information is transferred through third-party software, so that the risk of information leakage exists, and the operation is inconvenient (working software is basically always in an open state, and information sharing also needs to pass through the third-party software, so that operation steps are increased).
2. If the user B does not open the message reminding function of the communication tool such as WeChat, the user A also needs to inform the user B in the forms of telephone or information to view or process the content, and the important information cannot be processed in time.
3. If the user A pushes the information to the user B, the working software of the user B is pc online, and the page H5 in tools such as pc-end WeChat cannot directly call the pc-end working software.
4. Although the user a and the user B belong to the same company and face to face but are not friends of the social tool, the content cannot be pushed directly face to face, and the operation is required to be performed after the social friends are added, which is too cumbersome.
Based on the above disadvantages, there is a need for a scheme to perform effective information sharing in an operating system that cannot perform direct information exchange without depending on third-party software.
Disclosure of Invention
The present application mainly aims to provide a content sharing method, device, computer device, and storage medium, and aims to overcome the defect that content sharing cannot be performed safely in the current operating system.
In order to achieve the above object, the present application provides a content sharing method, including the following steps:
the method comprises the steps that a first user terminal obtains current position information and uploads the position information to a background server;
inquiring a second user terminal which is at a preset distance from the position information from the background server;
when a function button on a page of a first user terminal receives a clicking operation of a user, triggering a sharing instruction, and calling a sharing code block corresponding to the sharing instruction from a preset code database;
verifying whether the shared code block is changed;
if the content is not changed, acquiring the content to be shared based on the shared code block; the content to be shared comprises a page address of the page or data content in a clipboard;
determining a target user terminal from the second user terminals;
and sending the content to be shared to a background server so as to be pushed to a page of the target user terminal through the background server.
Further, the step of verifying whether the shared code block is changed includes:
starting an analysis engine to analyze the shared code block into a shared code;
carrying out Hash calculation on the shared code to obtain a corresponding code Hash value;
judging whether the code hash value is the same as a preset hash value or not; the preset hash value is obtained by carrying out hash calculation in advance according to a preset shared code;
if the shared code blocks are the same, judging that the shared code blocks are not changed; and if not, judging that the shared code block is changed.
Further, the content to be shared is a page address of the page, and the step of sending the content to be shared to a background server includes:
acquiring the identification information of the user and extracting a preset character conversion table; the character conversion table comprises corresponding conversion relations between identification information and characters;
converting the identification information into corresponding characters according to the character conversion table;
inserting the characters into the designated positions of the page addresses of the pages, and sending the page addresses into which the characters are inserted to the background server.
Further, the content to be shared is text content in the clipboard;
the step of sending the content to be shared to a background server includes:
acquiring the original position of the text content in the page;
judging whether the text content is continuous in the page or not;
if the text content is discontinuous, taking each discontinuous text content in the text content as a section of target content;
sequencing the target contents in sequence according to the original position of each section of the target contents in the page;
sequentially calculating the characteristic value of each section of target content; the characteristic value comprises a corresponding hash value;
sequentially taking the characteristic value of the previous section of target content as an encryption password of the next section of target content to encrypt the next section of target content; the characteristic value of the last section of target content is used as the encryption password of the first section of target content;
and combining the target contents after the encryption processing, and sending the combined target contents and the characteristic value of the last section of target contents to the background server.
Further, the content to be shared is text content in the clipboard; the step of sending the content to be shared to a background server includes:
adding the shared content to a blank layer to generate a shared picture;
acquiring the data volume of the shared picture, and judging whether the data volume is larger than a threshold value;
if the number of the shared pictures is larger than the preset value, detecting a central point of the shared pictures, and taking the central point as a geometric center to form a rectangular frame;
cutting the frame of the rectangular frame to obtain a first image in the rectangular frame and a second image outside the rectangular frame;
and respectively sending the first image and the second image to the background server.
The application also provides a content sharing device, including:
the first user terminal acquires current position information and uploads the position information to the background server;
the query unit is used for querying a second user terminal which is at a preset distance from the position information from the background server;
the system comprises a calling unit, a sharing unit and a sharing unit, wherein the calling unit is used for triggering a sharing instruction when a function button on a page of a first user terminal receives a clicking operation of a user, and calling a sharing code block corresponding to the sharing instruction from a preset code database;
a verification unit for verifying whether the shared code block is changed;
the obtaining unit is used for obtaining the content to be shared based on the sharing code block if the content is not changed; the content to be shared comprises a page address of the page or data content in a clipboard;
a determining unit, configured to determine a target user terminal from the second user terminals;
and the sending unit is used for sending the content to be shared to a background server so as to be pushed to the page of the target user terminal through the background server.
Further, the verification unit includes:
the starting unit is used for starting an analysis engine and analyzing the shared code block into a shared code;
the computing subunit is used for performing hash computation on the shared code to obtain a corresponding code hash value;
the judging subunit is used for judging whether the code hash value is the same as a preset hash value or not; the preset hash value is obtained by carrying out hash calculation in advance according to a preset shared code;
a determination subunit, configured to determine that the shared code block is not changed if the shared code block is the same as the shared code block; and if not, judging that the shared code block is changed.
Further, the content to be shared is a page address of the page, and the sending unit is specifically configured to:
acquiring the identification information of the user and extracting a preset character conversion table; the character conversion table comprises corresponding conversion relations between identification information and characters;
converting the identification information into corresponding characters according to the character conversion table;
inserting the characters into the designated positions of the page addresses of the pages, and sending the page addresses into which the characters are inserted to the background server.
Further, the content to be shared is text content in the clipboard;
the sending unit is configured to:
acquiring the original position of the text content in the page;
judging whether the text content is continuous in the page or not;
if the text content is discontinuous, taking each discontinuous text content in the text content as a section of target content;
sequencing the target contents in sequence according to the original position of each section of the target contents in the page;
sequentially calculating the characteristic value of each section of target content; the characteristic value comprises a corresponding hash value;
sequentially taking the characteristic value of the previous section of target content as an encryption password of the next section of target content to encrypt the next section of target content; the characteristic value of the last section of target content is used as the encryption password of the first section of target content;
and combining the target contents after the encryption processing, and sending the combined target contents and the characteristic value of the last section of target contents to the background server.
Further, the content to be shared is text content in the clipboard; the sending unit is configured to:
adding the shared content to a blank layer to generate a shared picture;
acquiring the data volume of the shared picture, and judging whether the data volume is larger than a threshold value;
if the number of the shared pictures is larger than the preset value, detecting a central point of the shared pictures, and taking the central point as a geometric center to form a rectangular frame;
cutting the frame of the rectangular frame to obtain a first image in the rectangular frame and a second image outside the rectangular frame;
and respectively sending the first image and the second image to the background server.
The present application further provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the method of any of the above.
The content sharing method, device, computer equipment and storage medium provided by the application comprise: the method comprises the steps that a first user terminal obtains current position information and uploads the position information to a background server; inquiring a second user terminal which is at a preset distance from the position information from the background server; when a function button on a page of a first user terminal receives a clicking operation of a user, triggering a sharing instruction, and calling a sharing code block corresponding to the sharing instruction from a preset code database; verifying whether the shared code block is changed; if the content is not changed, acquiring the content to be shared based on the shared code block; the content to be shared comprises a page address of the page or data content in a clipboard; determining a target user terminal from the second user terminals; and sending the content to be shared to a background server so as to be pushed to the page of the target user terminal through the background server, thereby realizing the safe content sharing in the operating system.
Drawings
Fig. 1 is a schematic diagram illustrating steps of a content sharing method according to an embodiment of the present application;
fig. 2 is a block diagram of a content sharing apparatus according to an embodiment of the present disclosure;
fig. 3 is a block diagram illustrating a structure of a computer device according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Referring to fig. 1, an embodiment of the present application provides a content sharing method, including the following steps:
step S1, the first user terminal obtains the current position information and uploads the position information to the background server;
step S2, inquiring a second user terminal which is at a preset distance from the position information from the background server;
step S3, when a function button on a page of a first user terminal receives a click operation of a user, triggering a sharing instruction, and calling a sharing code block corresponding to the sharing instruction from a preset code database;
step S4, verifying whether the shared code block is changed;
step S5, if not, acquiring the content to be shared based on the sharing code block; the content to be shared comprises a page address of the page or data content in a clipboard;
step S6, determining a target user terminal from the second user terminals;
step S7, sending the content to be shared to a background server, so as to be pushed to the page of the target user terminal through the background server.
In this embodiment, the method is applied to non-chat software for sharing page content, and third-party software is not required for content transfer.
Specifically, the software program is installed on a user terminal, and a user of the software program starts the working software at work (the app software can return to the background as long as a process is running). It should be noted that, in this embodiment, the user terminal that needs to perform page content sharing needs to start a corresponding location obtaining function, such as a GPS positioning function, a WIFI positioning function, and the like.
As stated in step S1, when the location obtaining function of the first user terminal is turned on, the first user terminal accesses the background through the socket, and then reports a piece of location information (the location information can be obtained from the navigator object or obtained by calling the location function of the mobile phone/computer) to the background server at preset time intervals (for example, 5S). The background server is deployed with a socket message processing code and provides functions of recording a position and inquiring nearby position sharable equipment, and other user terminals in a nearby preset range (for example, within 5 m) can be searched out according to the position information reported by the first user terminal. Therefore, the background server can push other user terminals which are searched to be within a preset range near the first user terminal to the first user terminal in a list form.
As described in the above step S2, the first user terminal may query the background server for the second user terminal located at the preset distance from the location information.
As stated in step S3, the software program on the first user terminal provides a sharing function, and when the user clicks a corresponding sharing function button on the page of the first user terminal, the sharing instruction is triggered, and a sharing code block corresponding to the sharing instruction is called from a preset code database, where the sharing code block is used to obtain the content to be shared on the current page.
As described in step S4, the process of security verification is integrated, that is, whether the program is corrupted by the trojan virus is verified, and when the program is corrupted by the trojan virus, the code file in the program is necessarily tampered with. The scheme is to verify whether the code in the program is tampered.
As described in step S5, if the shared code block is not changed, the page address of the current page or the data content in the clipboard is acquired. At this time, the page address of the page or the data content in the clipboard can be shared.
As described in step S6, during sharing, it is necessary to determine the target user terminal to be shared, and the target user terminal is selected from the second user terminals, so that the user can select the corresponding target user terminal as needed.
As described in step S7, the page address of the page or the data content in the clipboard is sent to a background server, and the content to be shared is pushed to the page of the target user terminal by forwarding through the background server.
And when the user of the second user terminal receives the shared content, the second user terminal can directly open and access the page address or directly view the data content in the clipboard, so that the whole sharing process is completed.
In an embodiment, the step S4 of verifying whether the shared code block is changed includes:
step S41, starting an analysis engine, and analyzing the shared code block into a shared code;
step S42, carrying out hash calculation on the shared code to obtain a corresponding code hash value;
step S43, judging whether the code hash value is the same as a preset hash value; the preset hash value is obtained by carrying out hash calculation in advance according to a preset shared code;
step S44, if the code blocks are the same, determining that the shared code block is not changed; and if not, judging that the shared code block is changed.
In this embodiment, in the prior art, characteristics of the trojan viruses are usually maintained in a database, and when checking and killing the trojan, matching is performed according to the characteristics of the trojan viruses, and whether a program includes a corresponding file is determined. In this embodiment, the corresponding shared code block is first obtained, the shared code block is analyzed into a shared code, hash calculation of the shared code is then performed, and if any character in the shared code is changed, the hash value of the code generated correspondingly will be changed. Therefore, a hash value obtained by performing hash calculation according to the initial shared code may be prestored in the database as a preset hash value, the calculated preset hash value is used as a judgment standard, and if the code hash value generated in the verification process is different from the preset hash value, the shared code is tampered, so that a security risk exists, and the shared code is not suitable to be shared continuously.
In an embodiment, the step S7 of sending the content to be shared to a background server includes:
step S7a, acquiring the identification information of the user and extracting a preset character conversion table; the character conversion table comprises corresponding conversion relations between identification information and characters;
step S7b, converting the identification information into corresponding characters according to the character conversion table;
step S7c, inserting the characters into the designated positions of the page addresses of the pages, and sending the page addresses into which the characters are inserted to the background server.
In this embodiment, when sharing the page address, the page address is not directly shared, but the page address is tampered by using the above method, so that the page address is changed to be unusable, and after the terminal where the shared user is located acquires the page address, the shared user can perform resolution in the same manner to acquire a correct page address.
In this embodiment, the content to be shared is text content in the clipboard;
the step S7 of sending the content to be shared to the background server includes:
step S701, acquiring the original position of the text content in the page;
step S702, judging whether the text content is continuous in the page;
step S703, if the content is discontinuous, using each discontinuous segment of the text content as a segment of target content;
step S704, sequencing the target contents in sequence according to the original positions of the target contents in the page;
step S705, calculating the characteristic value of each section of target content in sequence; the characteristic value comprises a corresponding hash value;
step S706, sequentially taking the characteristic value of the previous section of target content as the encryption password of the next section of target content to encrypt the next section of target content; the characteristic value of the last section of target content is used as the encryption password of the first section of target content;
and step S707, combining the target contents after the encryption processing, and sending the combined target contents and the feature value of the last target content to the background server.
In this embodiment, in order to enhance the security of the content to be shared in the sharing process, the text content is not directly shared but the original position of the text content in the page is obtained during sharing; judging whether the text content is continuous in the page or not; taking each discontinuous text content as a section of target content; sequencing the target contents in sequence according to the original position of each section of the target contents in the page; then calculating the characteristic value of each section of target content in sequence; the characteristic value comprises a corresponding hash value; and the hash value is used as an encryption password to encrypt the target content, and the encrypted target content is sent to the background server to be shared to other users. After the shared user terminal acquires the processed target content, the shared user terminal can perform analysis in the same manner to acquire corresponding text content.
In this embodiment, the content to be shared is text content in the clipboard; the step S7 of sending the content to be shared to the background server includes:
adding the shared content to a blank layer to generate a shared picture;
acquiring the data volume of the shared picture, and judging whether the data volume is larger than a threshold value;
if the number of the shared pictures is larger than the preset value, detecting a central point of the shared pictures, and taking the central point as a geometric center to form a rectangular frame;
cutting the frame of the rectangular frame to obtain a first image in the rectangular frame and a second image outside the rectangular frame;
and respectively sending the first image and the second image to the background server.
In this embodiment, the content to be shared is shared to the target user terminal in the form of a picture, and when the picture is uploaded, if the data size of the picture is too large, the uploading is easy to be unsuccessful, so that the clipping process needs to be performed on the picture. In this embodiment, a central point of the shared picture is detected, and a rectangular frame is formed by taking the central point as a geometric center; cutting the frame of the rectangular frame to obtain a first image in the rectangular frame and a second image outside the rectangular frame; the first image and the second image are respectively sent to the background server, and when the shared picture needs to be viewed subsequently, the first image and the second image only need to be spliced together.
Referring to fig. 2, an embodiment of the present application further provides a content sharing apparatus, including:
the uploading unit 10 is used for acquiring current position information and uploading the position information to a background server;
the query unit 20 is configured to query, from the background server, a second user terminal located at a preset distance from the location information;
the calling unit 30 is configured to trigger a sharing instruction when a function button on a page of the first user terminal receives a click operation of a user, and call a sharing code block corresponding to the sharing instruction from a preset code database;
a verifying unit 40, configured to verify whether the shared code block is changed;
an obtaining unit 50, configured to obtain, if no change occurs, content to be shared based on the shared code block; the content to be shared comprises a page address of the page or data content in a clipboard;
a determining unit 60, configured to determine a target user terminal from the second user terminals;
the sending unit 70 is configured to send the content to be shared to a background server, so as to be pushed to a page of the target user terminal through the background server.
In one embodiment, the verification unit 40 includes:
the starting unit is used for starting an analysis engine and analyzing the shared code block into a shared code;
the computing subunit is used for performing hash computation on the shared code to obtain a corresponding code hash value;
the judging subunit is used for judging whether the code hash value is the same as a preset hash value or not; the preset hash value is obtained by carrying out hash calculation in advance according to a preset shared code;
a determination subunit, configured to determine that the shared code block is not changed if the shared code block is the same as the shared code block; and if not, judging that the shared code block is changed.
In an embodiment, the content to be shared is a page address of the page, and the sending unit is specifically configured to:
acquiring the identification information of the user and extracting a preset character conversion table; the character conversion table comprises corresponding conversion relations between identification information and characters;
converting the identification information into corresponding characters according to the character conversion table;
inserting the characters into the designated positions of the page addresses of the pages, and sending the page addresses into which the characters are inserted to the background server.
In an embodiment, the content to be shared is text content in the clipboard;
the sending unit is configured to:
acquiring the original position of the text content in the page;
judging whether the text content is continuous in the page or not;
if the text content is discontinuous, taking each discontinuous text content in the text content as a section of target content;
sequencing the target contents in sequence according to the original position of each section of the target contents in the page;
sequentially calculating the characteristic value of each section of target content; the characteristic value comprises a corresponding hash value;
sequentially taking the characteristic value of the previous section of target content as an encryption password of the next section of target content to encrypt the next section of target content; the characteristic value of the last section of target content is used as the encryption password of the first section of target content;
and combining the target contents after the encryption processing, and sending the combined target contents and the characteristic value of the last section of target contents to the background server.
In an embodiment, the content to be shared is text content in the clipboard; the sending unit is configured to:
adding the shared content to a blank layer to generate a shared picture;
acquiring the data volume of the shared picture, and judging whether the data volume is larger than a threshold value;
if the number of the shared pictures is larger than the preset value, detecting a central point of the shared pictures, and taking the central point as a geometric center to form a rectangular frame;
cutting the frame of the rectangular frame to obtain a first image in the rectangular frame and a second image outside the rectangular frame;
and respectively sending the first image and the second image to the background server.
In this embodiment, please refer to the method embodiment for specific implementation of the units and sub-units in the apparatus embodiment, which will not be described herein again.
Referring to fig. 3, a computer device, which may be a server and whose internal structure may be as shown in fig. 3, is also provided in the embodiment of the present application. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer designed processor is used to provide computational and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing shared content data and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a content sharing method.
Those skilled in the art will appreciate that the architecture shown in fig. 3 is only a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects may be applied.
An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements a content sharing method. It is to be understood that the computer-readable storage medium in the present embodiment may be a volatile-readable storage medium or a non-volatile-readable storage medium.
In summary, the content sharing method, apparatus, computer device and storage medium provided in the embodiments of the present application include: the method comprises the steps that a first user terminal obtains current position information and uploads the position information to a background server; inquiring a second user terminal which is at a preset distance from the position information from the background server; when a function button on a page of a first user terminal receives a clicking operation of a user, triggering a sharing instruction, and calling a sharing code block corresponding to the sharing instruction from a preset code database; verifying whether the shared code block is changed; if the content is not changed, acquiring the content to be shared based on the shared code block; the content to be shared comprises a page address of the page or data content in a clipboard; determining a target user terminal from the second user terminals; and sending the content to be shared to a background server so as to be pushed to the page of the target user terminal through the background server, thereby realizing the safe content sharing in the operating system.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided herein and used in the examples may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), Enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only for the preferred embodiment of the present application and 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 which are directly or indirectly applied to other related technical fields, are intended to be included within the scope of the present application.

Claims (10)

1. A content sharing method, comprising:
the method comprises the steps that a first user terminal obtains current position information and uploads the position information to a background server;
inquiring a second user terminal which is at a preset distance from the position information from the background server;
when a function button on a page of a first user terminal receives a clicking operation of a user, triggering a sharing instruction, and calling a sharing code block corresponding to the sharing instruction from a preset code database;
verifying whether the shared code block is changed;
if the content is not changed, acquiring the content to be shared based on the shared code block; the content to be shared comprises a page address of the page or data content in a clipboard;
determining a target user terminal from the second user terminals;
and sending the content to be shared to a background server so as to be pushed to a page of the target user terminal through the background server.
2. The content sharing method according to claim 1, wherein the step of verifying whether the shared code block is changed comprises:
starting an analysis engine to analyze the shared code block into a shared code;
carrying out Hash calculation on the shared code to obtain a corresponding code Hash value;
judging whether the code hash value is the same as a preset hash value or not; the preset hash value is obtained by carrying out hash calculation in advance according to a preset shared code;
if the shared code blocks are the same, judging that the shared code blocks are not changed; and if not, judging that the shared code block is changed.
3. The content sharing method according to claim 1, wherein the content to be shared is a page address of the page, and the step of sending the content to be shared to a background server includes:
acquiring the identification information of the user and extracting a preset character conversion table; the character conversion table comprises corresponding conversion relations between identification information and characters;
converting the identification information into corresponding characters according to the character conversion table;
inserting the characters into the designated positions of the page addresses of the pages, and sending the page addresses into which the characters are inserted to the background server.
4. The content sharing method according to claim 1, wherein the content to be shared is text content in the clipboard;
the step of sending the content to be shared to a background server includes:
acquiring the original position of the text content in the page;
judging whether the text content is continuous in the page or not;
if the text content is discontinuous, taking each discontinuous text content in the text content as a section of target content;
sequencing the target contents in sequence according to the original position of each section of the target contents in the page;
sequentially calculating the characteristic value of each section of target content; the characteristic value comprises a corresponding hash value;
sequentially taking the characteristic value of the previous section of target content as an encryption password of the next section of target content to encrypt the next section of target content; the characteristic value of the last section of target content is used as the encryption password of the first section of target content;
and combining the target contents after the encryption processing, and sending the combined target contents and the characteristic value of the last section of target contents to the background server.
5. The content sharing method according to claim 1, wherein the content to be shared is text content in the clipboard; the step of sending the content to be shared to a background server includes:
adding the shared content to a blank layer to generate a shared picture;
acquiring the data volume of the shared picture, and judging whether the data volume is larger than a threshold value;
if the number of the shared pictures is larger than the preset value, detecting a central point of the shared pictures, and taking the central point as a geometric center to form a rectangular frame;
cutting the frame of the rectangular frame to obtain a first image in the rectangular frame and a second image outside the rectangular frame;
and respectively sending the first image and the second image to the background server.
6. A content sharing apparatus, comprising:
the uploading unit is used for acquiring the current position information and uploading the position information to the background server;
the query unit is used for querying a second user terminal which is at a preset distance from the position information from the background server;
the system comprises a calling unit, a sharing unit and a sharing unit, wherein the calling unit is used for triggering a sharing instruction when a function button on a page of a first user terminal receives a clicking operation of a user, and calling a sharing code block corresponding to the sharing instruction from a preset code database;
a verification unit for verifying whether the shared code block is changed;
the obtaining unit is used for obtaining the content to be shared based on the sharing code block if the content is not changed; the content to be shared comprises a page address of the page or data content in a clipboard;
a determining unit, configured to determine a target user terminal from the second user terminals;
and the sending unit is used for sending the content to be shared to a background server so as to be pushed to the page of the target user terminal through the background server.
7. The content sharing apparatus according to claim 6, wherein the authentication unit includes:
the starting unit is used for starting an analysis engine and analyzing the shared code block into a shared code;
the computing subunit is used for performing hash computation on the shared code to obtain a corresponding code hash value;
the judging subunit is used for judging whether the code hash value is the same as a preset hash value or not; the preset hash value is obtained by carrying out hash calculation in advance according to a preset shared code;
a determination subunit, configured to determine that the shared code block is not changed if the shared code block is the same as the shared code block; and if not, judging that the shared code block is changed.
8. The content sharing apparatus according to claim 6, wherein the content to be shared is a page address of the page, and the sending unit is specifically configured to:
acquiring the identification information of the user and extracting a preset character conversion table; the character conversion table comprises corresponding conversion relations between identification information and characters;
converting the identification information into corresponding characters according to the character conversion table;
inserting the characters into the designated positions of the page addresses of the pages, and sending the page addresses into which the characters are inserted to the background server.
9. A computer device comprising a memory and a processor, the memory having stored therein a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method according to any of claims 1 to 5.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
CN202010623504.4A 2020-06-30 2020-06-30 Content sharing method, device, computer equipment and storage medium Active CN111787108B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010623504.4A CN111787108B (en) 2020-06-30 2020-06-30 Content sharing method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010623504.4A CN111787108B (en) 2020-06-30 2020-06-30 Content sharing method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111787108A true CN111787108A (en) 2020-10-16
CN111787108B CN111787108B (en) 2023-08-22

Family

ID=72760609

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010623504.4A Active CN111787108B (en) 2020-06-30 2020-06-30 Content sharing method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111787108B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291758A (en) * 2020-10-29 2021-01-29 维沃移动通信有限公司 File sharing method, file sharing device and electronic equipment
CN114040006A (en) * 2021-11-01 2022-02-11 达维信息技术(深圳)有限公司 Multi-mobile-terminal data sharing method and system based on digital asset management

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106815316A (en) * 2016-12-23 2017-06-09 北京奇虎科技有限公司 Method, device and mobile terminal that content of pages is shared
CN106936884A (en) * 2015-12-31 2017-07-07 阿里巴巴集团控股有限公司 Content share method, device and system across mobile terminal
EP3614292A1 (en) * 2018-08-23 2020-02-26 Koninklijke KPN N.V. File transfer system comprising an upload, storage and download device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106936884A (en) * 2015-12-31 2017-07-07 阿里巴巴集团控股有限公司 Content share method, device and system across mobile terminal
CN106815316A (en) * 2016-12-23 2017-06-09 北京奇虎科技有限公司 Method, device and mobile terminal that content of pages is shared
EP3614292A1 (en) * 2018-08-23 2020-02-26 Koninklijke KPN N.V. File transfer system comprising an upload, storage and download device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
屈军锁 等: "实时路况信息共享与查询系统的设计", 西安邮电大学学报, no. 02 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291758A (en) * 2020-10-29 2021-01-29 维沃移动通信有限公司 File sharing method, file sharing device and electronic equipment
CN112291758B (en) * 2020-10-29 2023-12-05 维沃移动通信有限公司 File sharing method, file sharing device and electronic equipment
CN114040006A (en) * 2021-11-01 2022-02-11 达维信息技术(深圳)有限公司 Multi-mobile-terminal data sharing method and system based on digital asset management
CN114040006B (en) * 2021-11-01 2024-02-27 北京流通宝数据科技服务有限公司 Multi-mobile terminal data sharing method and system based on digital asset management

Also Published As

Publication number Publication date
CN111787108B (en) 2023-08-22

Similar Documents

Publication Publication Date Title
CN110365670B (en) Blacklist sharing method and device, computer equipment and storage medium
CN109766072B (en) Information verification input method and device, computer equipment and storage medium
CN111191281A (en) Data desensitization processing method and device, computer equipment and storage medium
CN110727949B (en) Data storage method and device, computer equipment and storage medium
CN109547426B (en) Service response method and server
CN110908778B (en) Task deployment method, system and storage medium
CN108924258B (en) Background information pushing method and device, computer equipment and storage medium
CN111787108B (en) Content sharing method, device, computer equipment and storage medium
CN112714040B (en) Holographic message detection method, device, equipment and storage medium
CN110659500A (en) Server security detection method and device, computer equipment and storage medium
CN113472803A (en) Vulnerability attack state detection method and device, computer equipment and storage medium
CN111291345A (en) Voiceprint data processing method and device, computer equipment and storage medium
CN111586671A (en) Embedded user identification card configuration method and device, communication equipment and storage medium
CN110083782B (en) Electronic policy checking method and device, computer equipment and storage medium
CN108418809B (en) Chat data processing method and device, computer equipment and storage medium
CN110224974B (en) Interface authentication method based on third party access and related equipment
CN111125748A (en) Judgment method and device for unauthorized query, computer equipment and storage medium
WO2021169469A1 (en) Voiceprint data processing method and apparatus, computer device, and storage medium
CN110597782B (en) Database dynamic switching method and device, computer equipment and storage medium
CN110930193B (en) Advertisement conversion rate evaluation method, advertisement conversion rate evaluation device, computer equipment and storage medium
CN110597843A (en) Waybill query method and device, computer equipment and storage medium
CN110460585B (en) Equipment identity identification method and device, computer equipment and storage medium
CN109561093B (en) Unauthorized behavior detection method and device, computer equipment and storage medium
CN111431888B (en) Method, device, equipment and storage medium for shielding key information
CN114780977A (en) File processing method, device, equipment 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