CN107391587A - Link is shared and access method, server, terminal and computer-readable storage medium - Google Patents

Link is shared and access method, server, terminal and computer-readable storage medium Download PDF

Info

Publication number
CN107391587A
CN107391587A CN201710488796.3A CN201710488796A CN107391587A CN 107391587 A CN107391587 A CN 107391587A CN 201710488796 A CN201710488796 A CN 201710488796A CN 107391587 A CN107391587 A CN 107391587A
Authority
CN
China
Prior art keywords
short chain
chain code
shared
url
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710488796.3A
Other languages
Chinese (zh)
Inventor
郭思勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710488796.3A priority Critical patent/CN107391587A/en
Publication of CN107391587A publication Critical patent/CN107391587A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9558Details of hyperlinks; Management of linked annotations

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses one kind link to share and access method, the short chain code of unique mark is distributed by the URL (URL) for page to be shared, and the short chain code is shared with as the link of page to be shared and is shared terminal.Afterwards, after the short chain access request for being shared terminal is received, corresponding URL is found with URL corresponding relation according to short chain code, and returns to this and is shared terminal, allow the browser for being shared terminal redirected according to the URL of return have access to corresponding to share page.In addition the present invention also provide a kind of link share and access server, terminal and computer-readable storage medium.In the present invention due to by the link that terminal shows on platform is shared being finally short chain code, it can effectively ensure that the link shared can effectively be shown on the platform for shared terminal, redirect to be shared terminal and can effectively have access to by short chain code again and share the page, validity of the user to Information Sharing is ensure that, drastically increases Consumer's Experience.

Description

Link is shared and access method, server, terminal and computer-readable storage medium
Technical field
The present invention relates to areas of information technology, share more specifically to one kind link and access method, server, Terminal and computer-readable storage medium.
Background technology
With the continuous development of information technology, the interaction for information is also just very general with sharing in daily life by people Time.Currently, for people when carrying out Information Sharing, a kind of universal mode is that (i.e. unified resource positions by the link of information page Symbol (Uniform Resource Locator, URL) address) it is shared with and is shared terminal.
In current link sharing method, share terminal can will the page (such as active page, model etc.) be shared it is complete Whole link is all sent to and is shared terminal, and the full concatenation is being shared into platform (such as QQ, wechat, the microblogging of terminal Deng) on show for user click on check, share display interface for example, see shown in Fig. 1.But user is sharing one During individual information page, the link of information page is often very long, is unfavorable for propagating, and some existing platforms, for that can receive simultaneously There is limitation in the link length of display, this is resulted in after some links are sent to and are shared terminal, is being shared terminal The whole link of the imperfect page to be shared can not be shown or shown on platform, share display interface for example, see shown in Fig. 2 By therefrom, the link of display is imperfect, can not have access to the page to be shared so as to cause to be shared terminal, have a strong impact on Consumer's Experience.
The content of the invention
The technical problem to be solved in the present invention is:The link length that can be received and show due to some existing platforms pair In the presence of limitation, can cause some to be linked at nothing on the platform for shared terminal when sharing link by current link sharing method Method shows or shown imperfect, can not have access to the page to be shared so as to cause to be shared terminal, have a strong impact on Consumer's Experience. For the technical problem, the invention provides one kind link sharing method, server and computer-readable storage medium.
In order to solve the above technical problems, the present invention provides a kind of link sharing method, the link sharing method includes:
According to the URL shared request, obtain page to be shared for sharing terminal transmission;
The short chain code of unique mark is distributed for the URL, and preserves the short chain code and the unified money The corresponding relation of source finger URL;The short chain code is used to receive described shared with the corresponding relation of URL After the short chain access request of terminal, URL corresponding to lookup, described shared terminal to return to;
Using the short chain code, the link of page to be shared as described in is shared.
Further, the short chain code that unique mark is distributed for the URL includes:
The URL is handled using condition code algorithm, generates multidigit character string;
M positions character string is taken out from the multidigit character string form short chain code according to default fetch bit rule;The M be more than etc. In 1 positive integer.
Further, the default fetch bit rule includes:Order fetch bit, backward fetch bit, random fetch bit;
It is described to include according to default fetch bit rule from multidigit character string taking-up M positions character string composition short chain code:
Judge whether the short chain code that the M positions character string taken out according to default fetch bit rule is formed is existing;
If so, taking out (M+1) position character string from the multidigit character string according to default fetch bit rule forms the short chain code.
Further, after the URL for obtaining page to be shared, in addition to:
The current short chain code that preservation corresponding with the URL whether be present of detection;
If so, the short chain code is extracted, and the link of page to be shared as described in is shared using the short chain code.
Further, the corresponding relation for preserving the short chain code and the URL includes:
The corresponding relation of the short chain code and URL is stored in internal memory;
When meeting that corresponding relation removes condition, by the corresponding relation of the short chain code and URL from described Removed in internal memory.
Further, using the short chain code link of page to be shared as described in shared including:
According to it is described share request in include shared object, the short chain code is sent to and is shared terminal;
And/or the short chain code is returned and shares terminal to described, share terminal according to demand to described short for described Chain code is shared.
Further, the invention provides links and accesses method, the links and accesses method to include:
When receiving the short chain access instruction that user issues, the short chain access that short chain code is carried to server transmission please Ask;
Receive the URL that the server is returned according to the short chain code;The URL with The short chain code uniquely corresponds to;
Conducted interviews according to the URL to sharing page.
Further, the invention provides a kind of server, the server to include:First memory, first processor And it is stored in the link that can be run on the first memory and on the first processor and shares program;
The communicator is used for sharing terminal and being communicatively coupled by terminal is shared;
The step of first processor operation link shares program to realize above-mentioned link sharing method.
Further, the invention provides a kind of terminal, the terminal to include:Second memory, second processor and deposit Store up the Link Access Procedure that can be run on the second memory and in the second processor;
The second processor runs the Link Access Procedure to perform operations described below:
When receiving the short chain access instruction that user issues, the short chain access that short chain code is carried to server transmission please Ask;
Receive the URL that the server is returned according to the short chain code;The URL with The short chain code uniquely corresponds to;
Conducted interviews according to the URL to sharing page.
Further, the invention provides a kind of computer-readable storage medium, chain is stored with the computer-readable storage medium Connect and share program, the step of above-mentioned link sharing method is realized when program is executed by processor is shared in the link.
Beneficial effect
A kind of link sharing method, links and accesses method, server, terminal and computer storage provided by the invention are situated between Matter, server is by the URL shared request, obtain page to be shared that is sent according to terminal is shared, for the system One URLs distributes the short chain code of unique mark, preserves the corresponding relation of the short chain code and the URL, and The short chain code is shared with as the link of the page to be shared and is shared terminal.Afterwards, shared terminal and receive short chain visit After asking request, it can be sent to server comprising the short chain access request for carrying short chain code, server accesses according to the short chain please Ask and short chain code finds corresponding URL with the corresponding relation of URL, and return to the quilt Share terminal.The URL according to return for being shared terminal can redirect have access to corresponding to share Page.So, it is linked as a short chain code by share that terminal shows on platform due to being shared with, you can be effectively ensured what is shared Link can effectively show on the platform for shared terminal, then redirected by short chain code shared terminal can Effectively have access to and share the page, ensure that validity of the user to Information Sharing, drastically increase Consumer's Experience.
Brief description of the drawings
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Fig. 1 is to share display interface figure when the long link that background of invention provides completely is shown;
Fig. 2 is to share display interface figure when the long link that background of invention provides can not completely be shown;
Fig. 3 is the hardware architecture diagram for realizing each optional server of embodiment one of the present invention;
Fig. 4 is the hardware architecture diagram for realizing each optional terminal of embodiment one of the present invention;
Fig. 5 is a kind of link sharing method schematic flow sheet that first embodiment of the invention provides,;
Fig. 6 is that a kind of of first embodiment of the invention offer shares display interface figure using short chain code as during link;
Fig. 7 is a kind of links and accesses method flow schematic diagram that first embodiment of the invention provides;
Fig. 8 is a kind of specifically short chain according to corresponding to generating URL that first embodiment of the invention provides The method flow schematic diagram of code;
Fig. 9 is the specific link sharing method implementing procedure figure of one kind that second embodiment of the invention provides;
Figure 10 is a kind of server architecture schematic diagram that third embodiment of the invention provides;
Figure 11 be third embodiment of the invention provide it is a kind of share terminal, shared terminal and server interaction knot Structure schematic diagram;
Figure 12 is that one kind that third embodiment of the invention provides is shared terminal structure schematic diagram;
Figure 13 is a kind of interactive structure schematic diagram shared terminal and shared terminal that fifth embodiment of the invention provides.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only Be advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix Ground uses.
As shown in figure 3, to realize the hardware architecture diagram of each optional server of embodiment one of the present invention, the clothes Business device comprises at least:Input and output (IO) bus 31, processor 32, memory 33, internal memory 34 and communicator 35.Wherein,
Input and output (IO) bus 31 respectively with itself belonging to server other parts (processor 32, memory 33, Internal memory 34 and communicator 35) connection, and provide transmission lines for other parts.
Processor 32 generally controls the overall operation of the server belonging to itself.For example, processor 32 perform calculate and really The operation such as recognize.Wherein, processor 32 can be central processing unit (CPU).
Memory 33 stores the software code that processor is readable, processor is executable, and it, which is included, is used for control processor 32 Perform the instruction (i.e. software perform function) of functions described herein.
Wherein, the software code that program is shared in link provided by the invention is storable in memory 33, and by processor 32 perform or are performed after compiling.
Internal memory 34, typically using semiconductor memory cell, including random access memory (RAM), read-only storage (ROM), with And cache (CACHE), RAM are most important of which memories.Internal memory 34 is one of part important in computer, and it is The bridge linked up with CPU32, in computer the operation of all programs all carried out in internal memory, its act on be used for it is temporary Operational data in Shi Cunfang CPU32, and the data exchanged with external memory storages such as hard disks, as long as computer is in operation, CPU32 will carry out computing needing the data of computing to be transferred in internal memory, and CPU32 again sends out result after the completion of computing Come.
Communicator 35, generally includes one or more assemblies, and it allows the server and radio communication system belonging to itself Radio communication between system or network.
As shown in figure 4, it is realizes a kind of hardware architecture diagram of terminal of each embodiment of the present invention, the present invention is respectively Terminal can be implemented in a variety of manners in individual embodiment.For example, the terminal described in the present invention can include such as mobile phone, put down The mobile terminals such as plate computer, notebook computer, palm PC, wearable device, and digital TV, desktop computer etc. are solid Determine terminal.
The terminal 400 can include:RF (Radio Frequency, radio frequency) unit 401, WiFi module 402, audio are defeated Go out unit 403, A/V (audio/video) input block 404, sensor 405, display unit 406, user input unit 407, connect The parts such as mouth unit 408, memory 409, processor 410 and power supply 411.It will be understood by those skilled in the art that in Fig. 4 The restriction of the terminal structure shown not structure paired terminal, terminal can be included than illustrating more or less parts, or group Close some parts, or different parts arrangement.
The all parts of terminal are specifically introduced with reference to Fig. 4:
Radio frequency unit 401 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station Downlink information receive after, handled to processor 410;In addition, up data are sent to base station.In addition, radio frequency unit 401 It can also be communicated by radio communication with network and other equipment.
Terminal can help user to send and receive e-mail, browse webpage and access streaming video etc. by WiFi module 402, It has provided the user wireless broadband internet and accessed.
Audio output unit 403 can be in call signal reception pattern, call mode, logging mode, language in terminal 400 It is receiving or depositing by radio frequency unit 401 or WiFi module 402 when under the isotypes such as sound recognition mode, broadcast reception mode It is sound that the voice data stored in reservoir 409, which is converted into audio signal and exported,.
A/V input blocks 404 are used to receive audio or video signal.A/V input blocks 404 can include graphics processor 4041 and microphone 4042, graphics processor 4041 in video acquisition mode or image capture mode by image capture apparatus The static images or the view data of video that (such as camera) obtains are handled.Microphone 4042 can be in telephone relation mould In formula, logging mode, speech recognition mode etc. operational mode sound (voice data), and energy are received via microphone 4042 It is voice data enough by such acoustic processing.
Terminal 400 also includes at least one sensor 405, such as optical sensor, motion sensor, fingerprint sensor, pressure Force snesor, iris sensor, molecule sensor, gyroscope, barometer, hygrometer, thermometer, infrared ray sensor etc..
Display unit 406 is used for the information for showing the information inputted by user or being supplied to user.Display unit 406 can wrap Display panel 4061 is included, display panel 4061 can be configured using forms such as liquid crystal display, Organic Light Emitting Diodes.
User input unit 407 can be used for the numeral or character information for receiving input, and produces and set with the user of terminal Put and the input of key signals that function control is relevant.Specifically, user input unit 407 may include contact panel 4071 and its His input equipment 4072.Contact panel 4071, also referred to as touch screen, collect touch operation (ratio of the user on or near it Such as user is using finger, any suitable object of stylus or annex on contact panel 4071 or near contact panel 4071 Operation), and corresponding attachment means are driven according to formula set in advance.Except contact panel 4071, user input unit 407 can also include other input equipments 4072.Specifically, other input equipments 4072 can include but is not limited to secondary or physical bond One or more in disk, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc., tool Body does not limit herein.
Further, contact panel 4071 can cover display panel 4061, detect thereon when contact panel 4071 or After neighbouring touch operation, processor 410 is sent to determine the type of touch event, is followed by subsequent processing device 410 according to touch thing The type of part provides corresponding visual output on display panel 4061.Although in Fig. 4, contact panel 4071 and display panel 4061 be the part independent as two to realize the input of terminal and output function, but in some embodiments it is possible to will Contact panel 4071 is integrated with display panel 4061 and realizes input and the output function of terminal, does not limit herein specifically.
Interface unit 408 is connected the interface that can pass through as at least one external device (ED) with terminal 400.Interface unit 408 can be used for receiving the input (for example, data message, electric power etc.) from external device (ED) and pass the input received Defeated one or more elements in terminal 400 can be used for transmitting data between terminal 400 and external device (ED).
Memory 409 can be used for storage software program and various data.Memory 409 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Voice data, phone directory etc.) etc..In addition, memory 409 can include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 410 is the control centre of terminal, using various interfaces and the various pieces of the whole terminal of connection, is led to Cross operation or perform the software program and/or module being stored in memory 409, and call and be stored in memory 409 Data, the various functions and processing data of terminal are performed, so as to carry out integral monitoring to terminal.Processor 410 may include one Or multiple processing units;Preferably, processor 410 can integrate application processor and modem processor, wherein, using processing Device mainly handles operating system, user interface and application program etc., and modem processor mainly handles radio communication.It can manage Solution, above-mentioned modem processor can not also be integrated into processor 410.
Terminal 400 can also include the power supply 411 (such as battery) to all parts power supply, it is preferred that power supply 411 can be with It is logically contiguous by power-supply management system and processor 410, so as to by power-supply management system realize management charging, electric discharge, with And the function such as power managed.
Although Fig. 4 is not shown, terminal 400 can also will not be repeated here including bluetooth module etc..
It is described in detail below by way of specific embodiment.
First embodiment
After sharing in order to avoid some links and shared terminal, it can not show or show on the platform for shared terminal Show the appearance of incomplete situation, the invention provides one kind to link sharing method, reference picture 5, and Fig. 5 is implemented for the present invention first The link sharing method schematic flow sheet that example provides, including:
S501:According to the URL shared request, obtain page to be shared for sharing terminal transmission;
In the present embodiment, share terminal and share request in transmission, the web page address letter for treating sharing web page can be added Breath, i.e. URL.It should be appreciated that the page to be shared according to corresponding to being found URL.
S502:The short chain code of unique mark is distributed for the URL, and preserves short chain code and determines with unified resource The corresponding relation of position symbol;
It should be appreciated that in the present embodiment, short chain code can be made up of one section of character string, can also be by single character structure Into it need to meet that the length after forming is less than the limit length of platform.
In the present embodiment, the short chain code for the distribution of a certain URL should possess uniqueness, namely different The short chain code of its distribution of URL should be different, should possess one-to-one corresponding between short chain code and URL Relation.
In the present embodiment, the short chain code for URL distribution can be the URL corresponding to Generate, such as according to short chain code corresponding to the regular part conduct taken in corresponding URL of setting.
, can not also the unified resource positioning corresponding to for the short chain code of URL distribution in the present embodiment Symbol is generated, but is directly generated short chain code according to setting rule and carried out corresponding distribution.For example, according to lexicographic order and its Built-up sequence generates short chain code and is sequentially allocated the URL to acquisition, such as first unified resource to acquisition Finger URL distribution short chain code is A, and it is B ... the to acquisition the 27th to distribute short chain code to second URL of acquisition Individual URL distribution short chain code is AA, and it is AB ... to distribute short chain code to the 28th URL of acquisition The like, capitalization and combinations thereof be assigned after can also introduce lowercase or numeral or its combination etc. come for The URL got carries out corresponding distribution.
, can be by the unified money after short chain code corresponding to being assigned with for a URL in the present embodiment Corresponding association is carried out between source finger URL and the short chain code to preserve, that is, is preserved between the URL and the short chain code Corresponding relation.In fact, the corresponding relation between substantial amounts of URL and short chain code can be produced in this method, for just In management and scheduling, the corresponding relation between all URLs and short chain code can be entered by forms such as charts The corresponding storage of row, such as stored by the form of following table one, so producing new URL and short chain code Corresponding relation after, need to only add it in mapping table as shown in Table 1.
Table one
URL Short chain code
URL A Short chain code 1
URL B Short chain code 2
URL C Short chain code 3
URL D Short chain code 4
S503:The short chain code of distribution is shared as the link of page to be shared.
It is worth noting that, in the present embodiment, server, can first root after a URL is got According to the corresponding relation of the URL stored and short chain code, the existing and URL pair is detected whether The short chain code that should be preserved.As existed, then the short chain code is directly extracted, and divided using the short chain code as the link of page to be shared Enjoy.Now, it is not necessary to distribute short chain code again for the URL again.
In the present embodiment, share terminal when request is shared in transmission, at least in the presence of two kinds of situations, one:Share terminal to exist What is sent shares the object for not including and being shared in request, and now short chain code can be returned and shared in terminal by server, by dividing Enjoy terminal and the short chain code is sent to the object shared.
Secondly:Share terminal and include the object shared in request in sharing for transmission, now server can directly by Short chain code is sent to the object shared.Such as user A has been specified and will be waited to share when sending by sharing terminal and share request Page is shared with the user B in wechat, and now short chain code corresponding to page to be shared directly can be sent to the use in wechat by server Family B, the short chain code division of (assuming that short chain code is JAD610) shown in Figure 6 enjoy surface chart.Or simultaneously by short chain code be sent to by The object shared, and short chain code is returned to and shares terminal.It is worth noting that, only short chain code can also be sent out in such cases Also to sharing in terminal, the short chain code is sent to the object shared by sharing terminal.
It should be appreciated that described in the present embodiment shared object should include targeted customer (such as user B) and divide Platform (such as wechat) is enjoyed, the terminal where now logging in the sharing platform of targeted customer is to be shared terminal.
I.e. in the present embodiment, using short chain code as when the link for sharing page is shared, short chain code can be returned To terminal is shared, short chain code can also be sent to terminal to be shared, can also by short chain code simultaneously be sent to share terminal and Shared terminal.
It is worth noting that, the short chain code and the corresponding relation of URL that are stored in the present embodiment can be used for After the short chain access request for being shared terminal is received, URL corresponding to lookup, shared end to return to End.
In the present embodiment, a kind of links and accesses method is also provided, referring to Fig. 7, including:
S701:Shared terminal when receiving the short chain access instruction that user issues, carried to server transmission short The short chain access request of chain code;
It should be appreciated that the short chain access instruction that user issues herein refers to, user on platform by showing Short chain code requires the instruction for sharing the page corresponding to access, and the instruction can touch the forms such as the short chain code of display come real by user Now send out.
S702:Receive the URL that the server is returned according to the short chain code;
It should be appreciated that server is according to the short chain code, and call the short chain code and URL of storage Corresponding relation, so as to search to obtain the short chain code uniquely corresponding URL.
S703:Conducted interviews according to the URL to sharing page.
It should be appreciated that the URL that now server is returned need not be shown in platform, but Directly called by the browser for being shared terminal, therefore will not be by therefrom.
It should be appreciated that server in the present embodiment is the server that can provide corresponding short chain code service, it can be with It is in the existing server shared and additionally set in link, specially to provide corresponding short chain code service;Now share terminal hair Send when sharing request, sharing request can share outside transmission route in existing link, be sent to this and special provide corresponding short chain On the server of code service.
It should be appreciated that the server of corresponding short chain code service or existing link are provided in the present embodiment Received during sharing share terminal transmission share request server (such as browser server, content server, or its His transfer server etc.).
It is worth noting that, in the present embodiment, short chain code share shared terminal when, sensing should be carried and provided The positional information of the server of corresponding short chain code service, the positional information can be arranged in the short chain code;Can also with institute State short chain code parallel to exist, be sent to and shared in terminal together with short chain code when being sent to short chain code and being shared terminal.
In the present embodiment, if the short chain code according to corresponding to generating URL, a kind of specific method is, referring to Fig. 8, including:
S801:URL is handled using condition code algorithm, generates multidigit character string;
In the present embodiment, MD3 (Message-Digest Algorithm 3, md5-challenge 3), MD4 can be utilized (Message-Digest Algorithm 4, md5-challenge 4), MD5 (Message-Digest Algorithm 5, letter Breath-digest algorithm 5), SHA1 (Secure Hash Algorithm 1, SHA 1) scheduling algorithms to unified resource position Symbol is handled, so as to generate corresponding multidigit character string.For example, URL is handled by MD5 algorithms The character string of one 32 can be generated;And can be generated by carrying out processing to URL by SHA1 algorithms by one 64 The character string of position.
S802:M positions character string is taken out from the multidigit character string form short chain code according to default fetch bit rule.
It should be appreciated that M is the positive integer more than or equal to 1 in the present embodiment.
Simultaneously it should be appreciated that in the present embodiment, it can be order fetch bit to preset fetch bit rule, now can be from generation Continuous M positions character string is taken out successively according to the sequencing of each character arrangements in multidigit character string, forms short chain code.For example, If the multidigit character string of generation is 32 character strings " chinaKJnbeukmhdjhslmiuwajlsumhau ", and M is 6;Then take Continuous 6 character strings are " chinaK ", and " chinaK " is used as short chain code.
In the present embodiment, it can also be backward fetch bit to preset fetch bit rule, can now be pressed from the multidigit character string of generation According to putting in order for each character, continuous M positions character string is taken out successively from the front to the back, form short chain code.For example, still above example 32 Exemplified by position character string " chinaKJnbeukmhdjhslmiuwajlsumhau ", if M is 6;Continuous 6 character strings are then taken to be " uahmus ", " uahmus " are used as short chain code.
In the present embodiment, it can also be random fetch bit to preset fetch bit rule, now can be at random from the multidigit character string of generation Middle taking-up M positions character string, form short chain code, it is noted that M positions character string now may be in for former multidigit character string Continuous one section, it is also possible to be that discontinuous M character is formed in former multidigit character string.
, can be according to corresponding to distributed for URL during short chain code it is worth noting that, in the present embodiment The short chain code of preservation and the corresponding relation of URL, whether detection short chain code has been present, if in the presence of changing Beginning fetch bit point takes out a M positions character string as short chain code from multidigit character string again.For example, with said sequence fetch bit Exemplified by example, if 6 character strings " chinaK " taken out are existing, change starting fetch bit point, such as postpone one and carry out fetch bit, Retrieve 6 character strings " hinaKJ ", continue detect " hinaKJ " it is whether existing, such as exist, then continue to postpone to take Position, untill 6 character strings taken out are not present in the short chain code and the corresponding relation of URL preserved.
It should be appreciated that if the M positions character string taken out according to default fetch bit rule is all present in the short chain preserved Code takes out (M+1) position character string with the corresponding relation of URL, then continuing according to default fetch bit rule, and repeats Detection above and fetch bit process.For example, still by by taking the example in said sequence fetch bit as an example, if 6 character strings taken out " chinaK ", " hinaKJ " ..., " sumhau " it is existing, then take out 7 character strings " chinaKJ " in turn, and detect 7 Whether position character string " chinaKJ " is existing, if existing, continues to take 7 character strings " hinaKJn ", then detected.
It should be appreciated that if (M+1) position character string still former capital taken out according to default fetch bit rule is present in having protected In the short chain code and the corresponding relation of URL deposited, then continue to take out (M+2) position character according to default fetch bit rule String, (M+3) position character string ..., until the character string taken out is in the short chain code pass corresponding with URL preserved Untill being not present in system.
In the present embodiment, the corresponding relation of short chain code and URL can be stored in internal memory by server, So as to ensure that server can call the corresponding relation to realize related detection within a short period of time, and quickly according to being shared The short chain access request of terminal is searched and returns to corresponding URL, so as to lift the performance of server.
Although it should be appreciated that the corresponding relation of short chain code and URL, which is stored in internal memory, to be obtained Larger service performance is obtained, but is stored in by all short chain code relations corresponding with URL in internal memory When, other business of server can be impacted.Therefore, in the present embodiment, can also meet corresponding relation remove condition when, The corresponding relation of the short chain code and URL is removed from internal memory.
Wherein, corresponding relation, which removes condition, to be:The corresponding relation of a certain short chain code and URL is not The called time exceeds preset value.For example, preset value is set as one week, if a certain short chain code is corresponding with URL Relation was not called upon more than one week, then was removed the corresponding relation of the short chain code and URL from internal memory.
Corresponding relation removes condition and can also be:The corresponding relation of a certain short chain code and URL is in quilt in the recent period The number of calling is less than preset value.For example, set preset value as 5 times, if being in the recent period nearest one month, if a certain short chain code with uniformly The number that the corresponding relation of URLs was called in nearly one month is less than 5 times, then is determined the short chain code with unified resource The corresponding relation of position symbol removes from internal memory.
It should be appreciated that it is only for ease of going out exemplified by understanding in the present embodiment that above two corresponding relation, which removes condition, Two kinds of specific corresponding relations remove conditions, do not represent the present embodiment and be only capable of removing conditions using both specific corresponding relations.
, can be with when the corresponding relation of the short chain code and URL is removed from internal memory in the present embodiment The corresponding relation of the short chain code and URL is directly discharged, if unification money has been arrived in hereafter server reacquisition Source finger URL, then short chain code can be distributed for it again, now the short chain code of sub-distribution may be same with former short chain code-phase again, it is also possible to no Together.
In the present embodiment, when the corresponding relation of the short chain code and URL is removed from internal memory, may be used also Not discharged the corresponding relation of the short chain code and URL, but it is moved out to other memories (such as Hard disk) in stored, if hereafter server reacquire arrived the URL, although server is in internal memory Short chain code corresponding with the URL is not found, but can be found in hard disk, it is not necessary to is determined again for the unified resource again Position symbol redistributes short chain code.Now, a kind of feasible mode is:A short chain code is established in internal memory to position with unified resource The mapping table of symbol, while also establish in other memories the corresponding relation of a short chain code and URL Table, when needing to remove a certain corresponding relation, it is clipped to from the table in internal memory in the table in memory.
In the present embodiment, the short chain code that unique mark is distributed for URL can be real by browser page Existing, for example, set (such as on address field side) short chain code to generate button in the interface box of browser, user waits to share inputting Short chain code corresponding to can generating is clicked on after the address of page;In the present embodiment, for URL distribution only The short chain code of one mark can also be generated by the interface being provided previously by, and now user is sharing certain page to be shared When, directly invoke the interface and short chain code corresponding to generation can be achieved.
It should be appreciated that each step in the present embodiment can independently be realized by server as shown in Figure 3, tool Body, by realizing that program is shared in the link of above-mentioned each step in the memory storage of memory 32, and transfer to processor 32 to perform, by Processor 32 come obtain the URL of page to be shared and for URL distribute unique mark short chain code, And preserve the corresponding relation of URL and short chain code;By communicator 35 come receive from share terminal share please The short chain access request of terminal is shared in summation, and issues link of the short chain code as page to be shared to being shared terminal.
It should be appreciated that the link sharing method provided in the present embodiment can also be by sharing terminal and being shared Terminal is cooperateed with to be realized.
Now, share terminal and sharing one when the link of the page is shared, you can treated by sharing terminal itself for this Share the page URL distribute short chain code (distribution of short chain code and generating process with it is real by server It is current consistent).Share terminal when being shared, short chain code and the short chain code and URL can be sent simultaneously Corresponding relation shows short chain code to being shared in terminal, by the platform for being shared terminal, and is being shared user's point of terminal When hitting short chain code, the browser for being shared terminal calls the corresponding relation of the short chain code received and URL, URL corresponding to obtaining shares the page so as to have access to.
It is worth noting that, sharing terminal can record and preserve generated URL and short chain code in itself Corresponding relation, now share terminal for the page enjoyed before by short chain code division, no longer redistribute short chain code;Together When, share the corresponding relation that terminal can not also preserve generated URL and short chain code in itself, i.e., divide every time When enjoying a page, a short chain code is all redistributed.Include needing platform due to being shared the information that terminal receives and show The short chain code and the corresponding relation of the short chain code and URL shown, therefore no matter share whether terminal preserves what is generated The corresponding relation of URL and short chain code, shared terminal can find page to be shared according to the short chain code received URL, so as to realize access.
It should be appreciated that the link sharing method provided in the present embodiment can be by sharing terminal and being shared end When end collaboration is to be realized, shares terminal and may refer to shown in Fig. 4 with a kind of concrete structure for being shared terminal.
Specifically, can realize that program is shared in the link of said process in the memory storage of memory 409 for sharing terminal, and hand over Performed by the processor 410 for sharing terminal, given birth to by the processor 410 for sharing terminal for the URL of page to be shared Composition matches somebody with somebody the short chain code of unique mark, and preserves the corresponding relation of URL and short chain code;By sharing penetrating for terminal Frequency unit 401 or WiFi module 402 are by the short chain code of generation, and the corresponding relation of the short chain code and URL hair Give and shared terminal.
Shared terminal and the information shared terminal and sent is received by corresponding radio frequency unit 401 or WiFi module 402, and The short chain code is shown on platform by display unit 406;Pass through user input unit in the user for being shared terminal During 407 click short chain code, being shared the processor 410 of terminal can position according to the short chain code and unified resource received URL corresponding to the corresponding relation acquisition of symbol, calls browser to conduct interviews.
Meanwhile in the present embodiment, a kind of computer-readable storage medium is also provided, such as floppy disk, CD, hard disk, flash memory, USB flash disk, CF Card, SD card, mmc card etc., it is stored with the computer-readable storage medium and realizes that program is shared in the link of above-mentioned each step, is serviced The processor of device can read and perform the link stored in the computer-readable storage medium and share program, so as to realize above-mentioned link Each step of sharing method.
The present embodiment provide link sharing method, by according to share terminal send share request, obtain and wait to share The URL of page, the short chain code of unique mark is being distributed for the URL, is preserving the short chain code with being somebody's turn to do The corresponding relation of URL, and the short chain code is shared with as the link of the page to be shared and is shared terminal.It Afterwards, after the short chain access request for being shared terminal is received, looked into according to the corresponding relation of short chain code and URL Find corresponding URL, and return to this and shared terminal, allow this shared the browser of terminal according to The URL of return redirect have access to corresponding to share page.So, terminal is shared flat due to being shared with What is shown on platform is linked as a short chain code, you can the link shared is effectively ensured can be effectively aobvious on the platform for shared terminal Show to come, then redirect by short chain code to be shared terminal and can effectively have access to and share the page, ensure that user couple The validity of Information Sharing, drastically increases Consumer's Experience.
Second embodiment
The present embodiment is on the basis of first embodiment, with server short chain code generating method according to Fig. 8, to root 32 character strings are generated according to URL, and carry out order fetch bit obtains the situation for the short chain code that 6 character strings are formed Exemplified by, present invention work is further illustrated.
Referring to Fig. 9, Fig. 9 is the specific link sharing method implementing procedure figure of one kind that second embodiment of the invention provides, Including:
S901:According to the URL shared request, obtain page to be shared for sharing terminal transmission;
S902:The URL got is handled using condition code algorithm, generates 32 character strings;
S903:According to generation 32 character strings character arrangements order, using first character in 32 character strings as Starting fetch bit point takes out 6 character strings and forms short chain code successively;
S904:Whether existing detect the short chain code;If existing, S905 is gone to;Otherwise, S906 is gone to;
S905:According to the character arrangements order of 32 character strings, one is postponed as starting fetch bit point and takes out 6 words successively Symbol string forms short chain code, and goes to S904;
Here, if the short Chain Code Detection that all 6 character strings being removed are formed is all existing, according to 32 character strings Character arrangements order, using first character in 32 character strings as originate fetch bit point take out successively 7 character strings formed it is short Chain code;And repeat step S904, now, when thering is the S904 to go to S905, postpone one as starting fetch bit point taken out should The short chain code formed for 7 character strings.
Similarly, if the short Chain Code Detection of all 7 character strings compositions is all existing, according to the character of 32 character strings Put in order, taking out 8 character strings successively as starting fetch bit point using first character in 32 character strings is formed short chain code;If The short Chain Code Detection that 8 all character strings are formed is all existing, then according to the character arrangements order of 32 character strings, with 32 First character takes out 9 character strings as starting fetch bit point and forms short chain code successively in character string;..., until the word taken out The short chain code testing result that symbol string is formed is in the absence of untill.
It should be appreciated that to reduce the short chain code of generation as far as possible in the short chain code and URL preserved Corresponding relation in already present probability, ensure the diversity of the short chain code of generation, server pair can be set in the present embodiment The short chain code of generation is case sensitive.
It should be appreciated that the generation distribution of short chain code can be carried out in the present embodiment by the page, can also be carried out by interface The generation distribution of short chain code.
S906:The short chain code and the corresponding relation of the URL obtained are preserved, and using the short chain code as treating The link for sharing page is shared with and is shared terminal.
It should be appreciated that server is shared terminal the short chain code is shared with as the link of page to be shared, meeting Inform the address information for being shared terminal book server.
Shared terminal accessed according to the short chain code that receives share the page (i.e. foregoing wait share the page) when, that is, exist When receiving the short chain access instruction that user issues, the short chain access request for including the short chain code, service can be sent to server Device can parse the short chain access request and obtain short chain code after the short chain access request is received, and according to the short chain code of preservation With the corresponding relation of URL, obtain corresponding URL and return to be shared terminal, hereafter, quilt The browser for sharing terminal directly conducts interviews according to the URL of return to sharing the page.
It should be appreciated that short chain code and URL can be cached in the present embodiment in the internal memory of server Corresponding relation, so as to ensure after the short chain access request for being shared terminal is received, can quickly return corresponding to unified money Source finger URL, realize the redirection for being shared terminal.
The link sharing method that the present embodiment provides, it is one short by being provided for the URL of the page to be shared Small short chain code, long URL is replaced to be shared using the short chain code as new link so that the chain shared Connect effectively to show on platform so that it can effectively be had access to by participator by being shared terminal and share the page, Validity of the user to Information Sharing is ensure that, drastically increases Consumer's Experience.
3rd embodiment
After sharing in order to avoid some links and shared terminal, it can not show or show on the platform for shared terminal Show the appearance of incomplete situation, the invention provides a kind of server 10.Reference picture 10, Figure 10 are third embodiment of the invention A kind of structural representation of the server 10 provided, including:First memory 101, first processor 102, internal communication bus 103 and first communication device 104.Wherein:
Internal communication bus 103 be used for realize first processor 102, first memory 101 and first communication device 104 it Between connection communication;
First communication device 104 leads to for entering row information with the terminal in wireless communication system or network and/or server Letter.
Program is shared in the link that being stored with first memory 101 can run on first processor 102;
First processor 102 can run the link and share program to perform operations described below:
According to the URL shared request, obtain page to be shared for sharing terminal transmission;
The short chain code of unique mark is distributed for the URL, and preserves the short chain code and URL Corresponding relation;
Using the short chain code, the link of page to be shared as described in is shared.
It should be appreciated that first processor 102 using the short chain code as described in when the link for sharing page is shared, Specifically, it is to call first communication device 104 to be shared using the short chain code as the link of the page to be shared.
In the present embodiment, share terminal, shared terminal and the interactive structure of server 10 can be found in Figure 11, share end Request is shared in end 111 be sent to server 10, can add the web page address information for treating sharing web page, i.e. unified resource Finger URL.It should be appreciated that the page to be shared according to corresponding to being found URL.
In the present embodiment, short chain code can be made up of one section of character string, can also be made up of single character, it needs to meet Length after composition is less than the limit length of platform.
In the present embodiment, first processor 102 should possess only for the short chain code that different URLs distributes One property, namely short chain code of different URLs its distribution should be different, short chain code and URL it Between should possess one-to-one relationship.
In the present embodiment, first processor 102 is that the short chain code of URL distribution can be corresponding to URL generation, such as the part in corresponding URL is taken as corresponding according to setting rule Short chain code.
In the present embodiment, first processor 102 is that the short chain code of URL distribution can not also be according to corresponding URL generated, but directly generate short chain code according to setting rule and carry out corresponding distribution.For example, according to Lexicographic order and its built-up sequence generation short chain code are simultaneously sequentially allocated the URL to acquisition.
In the present embodiment, after the short chain code corresponding to be assigned with for a URL of first processor 102, It can will carry out corresponding association between the URL and the short chain code to preserve, i.e., first processor 102 can be unified by this Corresponding relation between URLs and the short chain code is saved in the corresponding region of first memory 101.
In fact, the corresponding relation between substantial amounts of URL and short chain code can be produced in this method, for just In management and scheduling, first memory 101 can by the forms such as chart by all URLs and short chain code it Between corresponding relation carry out corresponding storage, so after corresponding relation of the new URL with short chain code is produced, the One need of processor 102 are added it in the mapping table of the storage of first memory 101.
It is worth noting that, in the present embodiment, first processor 102 after a URL is got, The existing and unified resource can be detected whether first according to the corresponding relation of the URL stored and short chain code The corresponding short chain code preserved of finger URL.As existed, first processor 102 can directly extract the short chain code, and the short chain code is made Link for page to be shared is shared.Now, first processor 102 need not distribute for the URL again again Short chain code.
In the present embodiment, share terminal 111 when request is shared in transmission, at least in the presence of two kinds of situations, one:Share terminal 111 sharing in request not comprising the object shared in transmission, now server 10 can call first communication device 104 will be short Chain code, which is returned, to be shared in terminal 111, and the short chain code is sent into the object shared by sharing terminal 111.
Secondly:Share terminal 111 and include the object shared in request in sharing for transmission, now server 10 is adjustable Short chain code is directly sent to the object shared with first communication device 104;Or call first communication device 104 simultaneously will be short Chain code is sent to the object shared, and short chain code is returned to and shares terminal 111.It is worth noting that, take in such cases Business device 10 can also call first communication device 104 only to return short chain code to share in terminal 111, should by sharing terminal 111 Short chain code is sent to the object shared.
It should be appreciated that being shared object and should include targeted customer and sharing platform described in the present embodiment, this Terminal where Shi Denglu has the sharing platform of targeted customer is to be shared terminal 112.
I.e. in the present embodiment, first processor 102 is calling first communication device 104 using short chain code as page to be shared When link is shared, short chain code can be returned to terminal 111 is shared, short chain code can also be sent to terminal to be shared 111, short chain code can also be sent to simultaneously and share terminal 111 and shared terminal 112.
It is worth noting that, the short chain code and the corresponding relation of URL that are stored in the present embodiment can be used for After first communication device 104 receives and shared the short chain access request of terminal 112, searched correspondingly by first processor 102 URL, shared terminal 112 to call first communication device 104 to return to.
In addition, one kind is also provided in the present embodiment is shared terminal 112, referring to Figure 12, including:Second memory 1121, Second processor 1122 and secondary communication device 1123.
Secondary communication device 1123 be used for remaining terminal in wireless communication system or network and/or server (including The server 10 that the present embodiment provides) communicate.
The Link Access Procedure that can be run in second processor 1122 is stored with second memory 1121;
Second processor 1122 can run the Link Access Procedure to perform operations described below:
When receiving the short chain access instruction that user issues, the short chain access for carrying short chain code is sent to server 10 Request;
The URL that the reception server 10 is returned according to the short chain code;
Conducted interviews according to the URL to sharing page.
It should be appreciated that the short chain access instruction that user issues in the present embodiment refers to, user on platform by showing Share the instruction of the page corresponding to the short chain code requirement access shown, the instruction can pass through user and touch the shapes such as the short chain code of display Formula issues to realize.
In the present embodiment, second processor 1122 is when receiving the short chain access instruction that user issues, to server 10 The unified resource that the short chain access request for carrying short chain code and the reception server 10 are returned according to the short chain code is sent to position Fu Shi, specifically, be call secondary communication device 1123 sent to server 10 carry the short chain access request of short chain code with And the URL that the reception server 10 is returned according to the short chain code.
In the present embodiment, the URL that server 10 is returned with it is short in the short chain access request sent Chain code has unique corresponding relation.
It should be appreciated that the URL that now server 10 is returned need not be shown in platform, and It is directly to be called by the browser for being shared terminal 112, therefore will not be by therefrom.
It should be appreciated that the server 10 in the present embodiment is the server 10 that can provide corresponding short chain code service, its Can be in the existing server 10 shared and additionally set in link, specially to provide corresponding short chain code service;Now share When request is shared in the transmission of terminal 111, sharing request can share outside transmission route in existing link, be sent to the special offer On the server 10 of corresponding short chain code service.
It should be appreciated that the server 10 of corresponding short chain code service or existing chain are provided in the present embodiment Connect and server 10 (such as browser server 10, the content clothes of sharing request of sharing the transmission of terminal 111 are received during sharing Business device 10, or other transfer servers 10 etc.).
It is worth noting that, in the present embodiment, short chain code share shared terminal 112 when, sensing should be carried The positional information of the server 10 of corresponding short chain code service is provided, the positional information can be arranged in the short chain code;Also may be used To exist parallel with the short chain code, it is sent to and is divided together with short chain code when being sent to short chain code and being shared terminal 112 Enjoy in terminal 112.
It should be appreciated that the server 10 in the present embodiment can also be by server architecture as shown in Figure 3 Lai independent Realize, specifically, by realizing that program is shared in the link of above-mentioned each step in memory 32 or the memory storage of internal memory 34, and transfer to Processor 32 is performed, and the URL of page to be shared is obtained by processor 32 and is distributed only for URL The short chain code of one mark, and preserve the corresponding relation of URL and short chain code;Come from by communicator 35 to receive Share sharing for terminal to ask and shared the short chain access request of terminal, and issue link of the short chain code as page to be shared To being shared terminal.
It should be appreciated that the terminal 112 of being shared in the present embodiment can also be by terminal structure as shown in Figure 4 Lai solely It is vertical to realize, specifically, by processor 410 when receiving the short chain access instruction that user issues, radio frequency unit 401 is called to clothes Business device 10 sends the short chain access request for carrying short chain code;Meanwhile receive service in radio frequency unit 401 by processor 410 After the URL that device 10 is returned, conducted interviews according to the URL to sharing page.
It should be appreciated that in the present embodiment, can also be by computer-readable storage medium, such as floppy disk, CD, hard disk, sudden strain of a muscle Deposit, USB flash disk, CF cards, SD card, mmc card etc., share program to store link, the first processor 102 of server 10 can be read simultaneously Perform the link stored in the computer-readable storage medium and share program.
The server that the present embodiment provides, unique mark is distributed by the URL that processor is page to be shared Short chain code, and preserve the corresponding relation of the short chain code and the URL;And wait to share using the short chain code as this The link of page, which is shared with, is shared terminal.Afterwards, according to the short chain access request for being shared terminal, provided based on short chain code with unified The corresponding relation of source finger URL finds URL corresponding to short chain code, and returns to this and shared terminal, makes this Shared the browser of terminal can be redirected according to the URL of return have access to corresponding to share page.This Sample, it is linked as a short chain code by share that terminal shows on platform due to being shared with, you can the link shared is effectively ensured Can effectively be shown on the platform for shared terminal, then redirected by short chain code shared terminal can be effective Have access to and share the page, ensure that validity of the user to Information Sharing, drastically increase Consumer's Experience.
Fourth embodiment
The present embodiment is on the basis of 3rd embodiment, is corresponded to a kind of specifically generated according to URL Short chain code in case of, carry out further illustration is done to technical scheme.
Referring still to the server 10 shown in Figure 10, first processor 102 can utilize condition code algorithm to unified resource Finger URL is handled, and generates multidigit character string, and take out M positions character string structure from the multidigit character string according to default fetch bit rule Into short chain code.It should be appreciated that M is the positive integer more than or equal to 1 in the present embodiment.
In the present embodiment, utilizable condition code algorithm includes:MD3, MD4, MD5, SHA1 scheduling algorithm.
In the present embodiment, preset fetch bit rule can be order fetch bit, now can from the multidigit character string of generation according to The sequencing of each character arrangements takes out continuous M positions character string successively, forms short chain code.
In the present embodiment, it can also be backward fetch bit to preset fetch bit rule, can now be pressed from the multidigit character string of generation According to putting in order for each character, continuous M positions character string is taken out successively from the front to the back, form short chain code.
In the present embodiment, it can also be random fetch bit to preset fetch bit rule, now can be at random from the multidigit character string of generation Middle taking-up M positions character string, form short chain code, it is noted that M positions character string now may be in for former multidigit character string Continuous one section, it is also possible to be that discontinuous M character is formed in former multidigit character string.
It is worth noting that, in the present embodiment, the short chain corresponding to distributed for URL of first processor 102 During code, whether can be existed according to the short chain code and the corresponding relation of URL preserved, detection short chain code, if In the presence of then change starting fetch bit point takes out a M positions character string as short chain code from multidigit character string again.
It should be appreciated that if the M positions character string that first processor 102 takes out according to default fetch bit rule is all present in In the short chain code and the corresponding relation of URL that have preserved, then continue to take out (M+1) position according to default fetch bit rule Character string, reinspection of laying equal stress on are surveyed and fetch bit process.
If it should be appreciated that (M+1) position character string still former capital that first processor 102 takes out according to default fetch bit rule It is present in the corresponding relation of the short chain code and URL preserved, then continues to take out according to default fetch bit rule (M+2) position character string, (M+3) position character string ..., until the character string taken out is determined in the short chain code preserved with unified resource Untill being not present in the corresponding relation of position symbol.
In the present embodiment, the corresponding relation of short chain code and URL can be stored in by first processor 102 In the internal memory of first memory 101, so as to ensure that it is related that server 10 can call the corresponding relation to realize within a short period of time Detection, and quickly searched according to the short chain access request for being shared terminal 112 and return to corresponding URL, So as to lift the performance of server 10.
Although it should be appreciated that the corresponding relation of short chain code and URL, which is stored in internal memory, to be obtained Larger service performance is obtained, but is stored in by all short chain code relations corresponding with URL in internal memory When, other business of server 10 can be impacted.Therefore, in the present embodiment, first processor 102 can also meet to correspond to When relation removes condition, the corresponding relation of the short chain code and URL is removed from internal memory.
Wherein, corresponding relation, which removes condition, to be:The corresponding relation of a certain short chain code and URL is not The called time exceeds preset value;Or the corresponding relation of a certain short chain code and URL is in time called in the recent period Number is less than preset value etc..
In the present embodiment, in first processor 102 by the corresponding relation of the short chain code and URL from internal memory During middle removal, the corresponding relation of the short chain code and URL can directly be discharged, if hereafter first processor 102 The URL has been reacquired, then can distribute short chain code again for it, then the short chain code of sub-distribution may be short with original Chain code is identical, it is also possible to different.
In the present embodiment, in first processor 102 by the corresponding relation of the short chain code and URL from internal memory During middle removal, the corresponding relation of the short chain code and URL can not also be discharged, but be moved out to Stored in other regions (such as hard disk) of first memory 101, if the system has been arrived in the hereafter reacquisition of first processor 102 One URLs, although not finding short chain code corresponding with the URL in internal memory then, it can be looked in hard disk Arrive, first processor 102 need not redistribute short chain code for the URL again again.Now, a kind of feasible side Formula is:The mapping table of a short chain code and URL is established in internal memory, while in other areas of memory Also the mapping table of a short chain code and URL is established in domain, needs to remove in first processor 102 a certain During corresponding relation, first processor 102 clips to from the table in internal memory it in table in memory.
In the present embodiment, first processor 102 is that the short chain code of URL distribution unique mark can pass through Browser page is realized, for example, setting short chain code generation button, user (such as on address field side) in the interface box of browser Short chain code corresponding to can generating is clicked on after the address of page to be shared is inputted;In the present embodiment, first processor The 102 short chain codes that unique mark is distributed for URL can also be generated by the interface being provided previously by, this When user sharing certain when the page is shared, directly invoke the interface i.e. can be achieved generation corresponding to short chain code.
The server that the present embodiment provides, is handled URL to obtain multi-bit word using condition code algorithm Symbol string, then short chain code is formed from multidigit character string extraction partial character, and whether the short chain code of constantly detection generation is existing Other corresponding URLs, only in the absence of when can just assign them to the URL that gets.This Allow for that the generation of short chain code is very flexible, will not cause to conflict with the URL got before;Meanwhile by A short chain code is linked as by share that terminal shows on platform, you can the link shared is effectively ensured can be in quilt in being shared with Share and effectively shown on the platform of terminal, then redirected by short chain code and to be shared terminal and can effectively have access to Share the page, ensure that validity of the user to Information Sharing, drastically increase Consumer's Experience.
5th embodiment
After sharing in order to avoid some links and shared terminal, it can not show or show on the platform for shared terminal Show the appearance of incomplete situation, present invention also offers a kind of system including sharing terminal with being shared terminal, now, divides The interactive structure enjoyed terminal and shared between terminal can be found in Figure 13.
Now, share terminal 131 and sharing one when the link of the page is shared, you can by sharing terminal 131 itself Distribute short chain code for the URL of the page to be shared and (distribution of short chain code and generating process and pass through clothes Business device 10 is consistent when realizing, for details, reference can be made to the record of embodiment three and example IV).Share terminal 131 shared When, short chain code and the short chain code can be sent simultaneously with the corresponding relation of URL to being shared in terminal, by being divided The platform for enjoying terminal 132 shows short chain code, and when the user for being shared terminal 132 clicks on short chain code, shared terminal 132 Browser call the corresponding relation of the short chain code that receives and URL, obtain corresponding to unified resource positioning Symbol shares the page so as to have access to.
It is worth noting that, share terminal 131 itself can record and preserve generated URL with it is short The corresponding relation of chain code, now share terminal 131 for the page enjoyed before by short chain code division, no longer redistribute short chain Code;Meanwhile share the corresponding relation that terminal 131 itself can not also preserve generated URL and short chain code, When sharing a page every time, a short chain code is all redistributed.Include needing due to being shared the information that terminal 131 receives There are the short chain code and the corresponding relation of the short chain code and URL that platform is shown, therefore no matter sharing terminal 131 is The no corresponding relation for preserving generated URL and short chain code, being shared terminal 132 can be according to receiving Short chain code finds the URL of page to be shared, and is accessed so as to realize.
It should be appreciated that in the present embodiment, sharing terminal 131 can use as shown in Figure 4 with terminal 132 is shared Concrete structure.Now,
It can realize that program is shared in the link of said process in the memory storage of memory 409 for sharing terminal 131, and transfer to point The processor 410 for enjoying terminal 131 performs, by sharing the processor 410 of terminal 131 come the URL for page to be shared The short chain code of generation distribution unique mark, and preserve the corresponding relation of URL and short chain code;By sharing terminal 131 Radio frequency unit 401 or WiFi module 402 by the short chain code of generation, and the corresponding pass of the short chain code and URL System, which is sent to, is shared terminal 132.
Shared terminal 132 and share what terminal 131 was sent by corresponding radio frequency unit 401 or the reception of WiFi module 402 Short chain code, and the corresponding relation of the short chain code and URL, and put down the short chain code by display unit 406 Shown on platform;Once the user for being shared terminal 132 clicks on the short chain code by user input unit 407, shared end The processor 410 at end 132 can be according to corresponding to obtaining the corresponding relation of the short chain code and URL received URL, browser is called to conduct interviews.
What this implementation provided includes sharing terminal and being shared the system of terminal, shares terminal by for the page to be shared URL generation distribution short chain code, and the short chain code and the short chain code and URL are sent simultaneously Corresponding relation is to being shared terminal so that the short chain code shared can effectively show on the platform for shared terminal, with When short chain code is clicked at family, the corresponding relation for being shared terminal and directly invoking the short chain code received and URL obtains To the URL for sharing the page, call the URL is i.e. achievable to enter to sharing the page by browser Row accesses, and the validity of Information Sharing has been effectively ensured, has drastically increased Consumer's Experience.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, computer, clothes Be engaged in device 10, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot Form, these are belonged within the protection of the present invention.

Claims (10)

1. one kind link sharing method, it is characterised in that the link sharing method includes:
According to the URL shared request, obtain page to be shared for sharing terminal transmission;
The short chain code of unique mark is distributed for the URL, and preserves the short chain code and determines with the unified resource The corresponding relation of position symbol;The corresponding relation of the short chain code and URL is used to described be shared terminal receiving Short chain access request after, URL corresponding to lookup, described shared terminal to return to;
Using the short chain code, the link of page to be shared as described in is shared.
2. link sharing method as claimed in claim 1, it is characterised in that described to be distributed only for the URL The step of short chain code of one mark, includes:
The URL is handled using condition code algorithm, generates multidigit character string;
M positions character string is taken out from the multidigit character string form short chain code according to default fetch bit rule;The M is more than or equal to 1 Positive integer.
3. link sharing method as claimed in claim 2, it is characterised in that the default fetch bit rule includes:Order fetch bit, Backward fetch bit, random fetch bit;
Described the step of taking out M positions character string composition short chain code from the multidigit character string according to default fetch bit rule, includes:
Judge whether the short chain code that the M positions character string taken out according to default fetch bit rule is formed is existing;
If so, taking out (M+1) position character string from the multidigit character string according to default fetch bit rule forms the short chain code.
4. link sharing method as claimed in claim 1, it is characterised in that the unified resource positioning for obtaining page to be shared After symbol, in addition to:
The current short chain code that preservation corresponding with the URL whether be present of detection;
If so, the short chain code is extracted, and the link of page to be shared as described in is shared using the short chain code.
5. link sharing method as claimed in claim 1, it is characterised in that the preservation short chain code provides with the unification The step of corresponding relation of source finger URL, includes:
The corresponding relation of the short chain code and URL is stored in internal memory;
When meeting that corresponding relation removes condition, by the corresponding relation of the short chain code and URL from the internal memory Middle removal.
6. the link sharing method as described in claim any one of 1-5, it is characterised in that described using the short chain code as institute Stating the step of the link of page to be shared is shared includes:
According to it is described share request in include shared object, the short chain code is sent to and is shared terminal;
And/or the short chain code is returned and shares terminal to described, share terminal according to demand to the short chain code for described Shared.
A kind of 7. links and accesses method, it is characterised in that the links and accesses include:
When receiving the short chain access instruction that user issues, the short chain access request for carrying short chain code is sent to server;
Receive the URL that the server is returned according to the short chain code;The URL with it is described Short chain code uniquely corresponds to;
Conducted interviews according to the URL to sharing page.
8. a kind of server, it is characterised in that the server includes:First memory, first processor and it is stored in described On first memory and program is shared in the link that can be run on the first processor;
The communicator is used for sharing terminal and being communicatively coupled by terminal is shared;
The first processor operation link shares program to realize the link as any one of claim 1 to 6 The step of sharing method.
A kind of 9. terminal, it is characterised in that including:Second memory, second processor and it is stored on the second memory And the Link Access Procedure that can be run in the second processor;
The second processor runs the Link Access Procedure to perform operations described below:
When receiving the short chain access instruction that user issues, the short chain access request for carrying short chain code is sent to server;
Receive the URL that the server is returned according to the short chain code;The URL with it is described Short chain code uniquely corresponds to;
Conducted interviews according to the URL to sharing page.
A kind of 10. computer-readable storage medium, it is characterised in that it is stored with link on the computer-readable storage medium and shares program, The link sharing method realized when program is executed by processor as any one of claim 1 to 6 is shared in the link Step.
CN201710488796.3A 2017-06-23 2017-06-23 Link is shared and access method, server, terminal and computer-readable storage medium Pending CN107391587A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710488796.3A CN107391587A (en) 2017-06-23 2017-06-23 Link is shared and access method, server, terminal and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710488796.3A CN107391587A (en) 2017-06-23 2017-06-23 Link is shared and access method, server, terminal and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN107391587A true CN107391587A (en) 2017-11-24

Family

ID=60332659

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710488796.3A Pending CN107391587A (en) 2017-06-23 2017-06-23 Link is shared and access method, server, terminal and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN107391587A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108810259A (en) * 2018-05-28 2018-11-13 努比亚技术有限公司 A kind of information sharing method, mobile terminal and computer readable storage medium
CN109543123A (en) * 2018-11-28 2019-03-29 上海大汉三通数据通信有限公司 A kind of short network address generation method, device, system, equipment and readable storage medium storing program for executing
CN110011896A (en) * 2018-11-06 2019-07-12 阿里巴巴集团控股有限公司 A kind of data processing method and device, a kind of calculating equipment and storage medium
CN110083768A (en) * 2019-04-29 2019-08-02 北京字节跳动网络技术有限公司 A kind of information sharing method, device, equipment and medium
CN111538927A (en) * 2020-04-21 2020-08-14 北京达佳互联信息技术有限公司 Link processing method and device, and link access method and device
CN111866155A (en) * 2020-07-26 2020-10-30 陈军 Network disk file sharing method and system based on USB flash disk
CN115150350A (en) * 2022-06-27 2022-10-04 上海哔哩哔哩科技有限公司 Resource content sharing method and system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984287A (en) * 2012-11-19 2013-03-20 青岛海信传媒网络技术有限公司 Microblog application server and microblog platform chained address sharing method thereof
CN104657432A (en) * 2015-01-28 2015-05-27 北京金和软件股份有限公司 Method for reducing repetitive rate of converting long address into short addresses
CN104994183A (en) * 2015-06-19 2015-10-21 小米科技有限责任公司 Short network address determining method and device
CN106210161A (en) * 2016-06-24 2016-12-07 中国银联股份有限公司 A kind of short chain delivers a child into method and system
CN106202187A (en) * 2016-06-28 2016-12-07 北京京东尚科信息技术有限公司 The method and apparatus that a kind of short chain of process in a browser connects
US20160360341A1 (en) * 2015-06-05 2016-12-08 Apple Inc. Cloud-Based Proximity Pairing and Switching for Peer-to-Peer Devices
CN106375189A (en) * 2016-08-31 2017-02-01 北京炎黄新星网络科技有限公司 Long and short link switching method and system
CN106790916A (en) * 2016-12-11 2017-05-31 乐视控股(北京)有限公司 Information transferring method, device and server

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984287A (en) * 2012-11-19 2013-03-20 青岛海信传媒网络技术有限公司 Microblog application server and microblog platform chained address sharing method thereof
CN104657432A (en) * 2015-01-28 2015-05-27 北京金和软件股份有限公司 Method for reducing repetitive rate of converting long address into short addresses
US20160360341A1 (en) * 2015-06-05 2016-12-08 Apple Inc. Cloud-Based Proximity Pairing and Switching for Peer-to-Peer Devices
CN104994183A (en) * 2015-06-19 2015-10-21 小米科技有限责任公司 Short network address determining method and device
CN106210161A (en) * 2016-06-24 2016-12-07 中国银联股份有限公司 A kind of short chain delivers a child into method and system
CN106202187A (en) * 2016-06-28 2016-12-07 北京京东尚科信息技术有限公司 The method and apparatus that a kind of short chain of process in a browser connects
CN106375189A (en) * 2016-08-31 2017-02-01 北京炎黄新星网络科技有限公司 Long and short link switching method and system
CN106790916A (en) * 2016-12-11 2017-05-31 乐视控股(北京)有限公司 Information transferring method, device and server

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108810259A (en) * 2018-05-28 2018-11-13 努比亚技术有限公司 A kind of information sharing method, mobile terminal and computer readable storage medium
CN110011896A (en) * 2018-11-06 2019-07-12 阿里巴巴集团控股有限公司 A kind of data processing method and device, a kind of calculating equipment and storage medium
CN109543123A (en) * 2018-11-28 2019-03-29 上海大汉三通数据通信有限公司 A kind of short network address generation method, device, system, equipment and readable storage medium storing program for executing
CN110083768A (en) * 2019-04-29 2019-08-02 北京字节跳动网络技术有限公司 A kind of information sharing method, device, equipment and medium
CN111538927A (en) * 2020-04-21 2020-08-14 北京达佳互联信息技术有限公司 Link processing method and device, and link access method and device
CN111538927B (en) * 2020-04-21 2023-12-12 北京达佳互联信息技术有限公司 Link processing method and device, and link access method and device
CN111866155A (en) * 2020-07-26 2020-10-30 陈军 Network disk file sharing method and system based on USB flash disk
CN111866155B (en) * 2020-07-26 2023-01-24 陈军 Network disk file sharing method and system based on USB flash disk
CN115150350A (en) * 2022-06-27 2022-10-04 上海哔哩哔哩科技有限公司 Resource content sharing method and system

Similar Documents

Publication Publication Date Title
CN107391587A (en) Link is shared and access method, server, terminal and computer-readable storage medium
TWI684148B (en) Grouping processing method and device of contact person
CN108665403A (en) Data waterprint embedded method, extracting method, device and digital watermarking system
US8166203B1 (en) Server selection based upon time and query dependent hashing
CN104572843B (en) The loading method and device of a kind of page
CN102939579A (en) Method and apparatus for binding user interface elements and granular reflective processing
CN101482882A (en) Method and system for cross-domain treatment of COOKIE
CN107665233A (en) Database data processing method, device, computer equipment and storage medium
CN102713904A (en) Method and apparatus for utilizing a scalable data structure
WO2015106692A1 (en) Webpage pushing method, client, server, and system
WO2016173185A1 (en) Information pushing method and apparatus
CN106462635A (en) Intelligent web page content blocking
EP2862338A1 (en) Method, server, and client for pushing and displaying splash screen
WO2014102456A1 (en) Method and apparatus for secure advertising
CN110069769B (en) Application label generation method and device and storage device
KR101035327B1 (en) Method and System for Providing Auto Evolution Type Webpage Using Log Analysis
CN103593442B (en) The De-weight method and device of daily record data
CN106502833A (en) Data back up method and device
CN1836237A (en) Method of caching data assets
CN108012558B (en) Telephone number normalization and information discoverability
CN108595672A (en) The method, apparatus and readable storage medium storing program for executing of file type are downloaded in a kind of identification
CN107943921A (en) Page sharing information generation method, device, computer equipment and storage medium
CN106557706A (en) Date storage method, device and mobile terminal
CN117527804A (en) Network request information forwarding method and device
CN107145488A (en) The method and apparatus of data item is chosen in a kind of record results page

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20171124

RJ01 Rejection of invention patent application after publication