CN110311961B - Information sharing method and system, client and server - Google Patents

Information sharing method and system, client and server Download PDF

Info

Publication number
CN110311961B
CN110311961B CN201910532538.XA CN201910532538A CN110311961B CN 110311961 B CN110311961 B CN 110311961B CN 201910532538 A CN201910532538 A CN 201910532538A CN 110311961 B CN110311961 B CN 110311961B
Authority
CN
China
Prior art keywords
identifier
sharing
client
parameter
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910532538.XA
Other languages
Chinese (zh)
Other versions
CN110311961A (en
Inventor
刘正阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN201910532538.XA priority Critical patent/CN110311961B/en
Publication of CN110311961A publication Critical patent/CN110311961A/en
Application granted granted Critical
Publication of CN110311961B publication Critical patent/CN110311961B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to an information sharing method and system, a client and a server, and aims to solve the problem that a two-dimensional code of an applet cannot transmit complex parameters due to the fact that scene parameter length is limited in the related art, and the information sharing method comprises the following steps: receiving a sharing message sent by a first client, wherein the sharing message comprises sharing parameters of an applet target page to be shared; generating a first identifier of the sharing parameter; determining scene parameters according to the first identification, and calling an applet two-dimensional code generation interface to generate a two-dimensional code of the applet based on the scene parameters; and returning the two-dimension code to the first client, wherein the two-dimension code is used for sharing.

Description

Information sharing method and system, client and server
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and a system for sharing information, a client, and a server.
Background
The applet is an application that can be used without downloading, does not need to be installed and downloaded, can be opened by scanning or searching by a user, and can be run. In the process of operating an applet by scanning a two-dimensional code through application software (for example, WeChat), firstly, a two-dimensional code needs to be generated for the applet, the attribute transmitted by the two-dimensional code mainly includes a page path (page) and a scene (scene) parameter, wherein the page is an applet page path (such as pages/index/index) entered after code scanning, the scene parameter is a parameter placed in a scene field, after the two-dimensional code is scanned and entered into the applet, a corresponding page is opened through the page, and page content is displayed through the scene parameter.
In the related technology, a page cannot carry parameters, the parameters for generating the two-dimensional code are all placed in a scene field, the scene field has length limitation, the maximum length of 32 characters is 32 characters, that is, the length of the scene parameter must not exceed 32 characters, so that the two-dimensional code of the applet cannot transmit complex parameters, for example, if the length of the two-dimensional code wants to transmit sharing parameters, such as information of sharing people, sharing time and the like, exceeds 32-bit characters, the content length of the sharing parameters can only be reduced, and if the length of the transmitted parameters exceeds 32 characters, the length cannot be reduced, the parameters cannot be transmitted.
Disclosure of Invention
The present disclosure provides an information sharing method and system, a client and a server, so as to at least solve the problem that a two-dimensional code of a small program cannot transmit complex parameters due to the limited length of scene parameters in the related art. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided an information sharing method, which is applied to a server and includes:
receiving a sharing message sent by a first client, wherein the sharing message comprises sharing parameters of an applet target page to be shared;
generating a first identifier of the sharing parameter;
determining scene parameters according to the first identification, and calling an applet two-dimensional code generation interface to generate a two-dimensional code of the applet based on the scene parameters;
and returning the two-dimension code to the first client, wherein the two-dimension code is used for sharing.
In a possible implementation manner, the determining a scene parameter according to the first identifier includes:
and coding the first identifier to obtain a second identifier with shorter length as a scene parameter.
In a possible implementation manner, after generating the first identifier of the sharing parameter, the method further includes:
storing the corresponding relation between the first identification and the sharing parameter;
receiving a request message carrying the second identifier sent by a second client; the second identifier is obtained by the second client by scanning the two-dimensional code;
decoding the second identifier to obtain the first identifier, and determining a sharing parameter corresponding to the first identifier according to the corresponding relation;
and returning a response message carrying the sharing parameters to the second client so that the second client displays the information carried by the sharing parameters on the target page.
In a possible implementation manner, after generating the first identifier of the sharing parameter, the method further includes:
storing the corresponding relation between the first identification and the sharing parameter;
receiving a request message carrying the first identifier sent by a second client; the first identifier is obtained by the second client through scanning the two-dimensional code;
determining a sharing parameter corresponding to the first identifier according to the corresponding relation;
and returning a response message carrying the sharing parameters to the second client so that the second client displays the information carried by the sharing parameters on the target page.
According to a second aspect of the embodiments of the present disclosure, there is provided an information sharing method, which is applied to a first client side, and includes:
obtaining sharing parameters of an applet target page to be shared;
sending a sharing message carrying the sharing parameters to a server;
receiving a two-dimensional code of the applet returned by a server, wherein a scene parameter of the two-dimensional code is determined according to a first identifier of the sharing parameter;
and sharing the two-dimension code.
According to a third aspect of the embodiments of the present disclosure, there is provided an information sharing method, which is applied to a second client side, and the method includes:
obtaining scene parameters of the two-dimensional code by scanning the two-dimensional code, wherein the scene parameters are determined according to a first identifier of sharing parameters of an applet target page to be shared;
determining the first identifier according to the scene parameter, and sending a request message carrying the first identifier to a server; or
Sending a request message carrying a second identifier to a server, wherein the scene parameter comprises the second identifier, and the second identifier is a shorter identifier obtained by encoding the first identifier;
receiving a response message returned by the server, wherein the response message comprises sharing parameters corresponding to the first identifier;
and displaying the information carried by the sharing parameters on the target page.
In a possible implementation manner, the scene parameter includes a second identifier, where the second identifier is a shorter identifier obtained by encoding the first identifier;
the determining the first identifier according to the scene parameter includes:
and decoding the second identifier to obtain the first identifier.
According to a fourth aspect of the embodiments of the present disclosure, a server is provided, which includes a module configured to execute the method for information sharing in the first aspect or any possible implementation manner of the first aspect.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a first client, including a module configured to execute the method for information sharing in the second aspect or any possible implementation manner of the second aspect.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a second client, including a module configured to execute the method for information sharing in the third aspect or any possible implementation manner of the third aspect.
According to a seventh aspect of the embodiments of the present disclosure, there is provided an information sharing system, including: the server side provided by any embodiment of the disclosure, the first client side provided by any embodiment of the disclosure and a plurality of second client sides provided by any embodiment of the disclosure are connected with the first client side and the plurality of second client sides.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the scene parameter for generating the two-dimensional code is determined according to the first identifier of the sharing parameter of the small program target page to be shared, the length of the first identifier is short, and the length of the sharing parameter of the small program target page corresponding to the first identifier is not limited, so that the two-dimensional code of the small program can transmit complex parameters, namely the problem that the two-dimensional code of the small program cannot transmit the complex parameters due to the fact that the length of the scene parameter is limited in the related technology is solved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a schematic diagram illustrating the structure of an information sharing system in accordance with an exemplary embodiment;
FIG. 2 is a first block diagram of a server in accordance with an exemplary embodiment;
FIG. 3 is a second block diagram of a server in accordance with an exemplary embodiment;
FIG. 4 is a third block diagram illustrating a server according to an example embodiment;
FIG. 5 is a block diagram illustrating a first client in accordance with an exemplary embodiment;
FIG. 6 is a first block diagram illustrating a second client, according to an example embodiment;
FIG. 7 is a second block diagram illustrating a second client, according to an example embodiment;
FIG. 8 illustrates a third exemplary architecture of a second client, according to an example embodiment;
FIG. 9 is a flow diagram illustrating a method of server-side information sharing in accordance with an example embodiment;
FIG. 10 is a flow diagram illustrating a method of information sharing on a first client side in accordance with an example embodiment;
fig. 11 is a first flowchart illustrating a method of information sharing on a second client side according to an example embodiment;
fig. 12 is a second flowchart illustrating a method of information sharing on a second client side according to an example embodiment;
fig. 13 is a third flowchart illustrating a method of information sharing on the second client side, according to an example embodiment;
FIG. 14 is a first interaction diagram illustrating a method of information sharing in accordance with an exemplary embodiment;
FIG. 15 is a second interaction diagram illustrating a method of information sharing in accordance with an exemplary embodiment;
FIG. 16 is a third interaction diagram illustrating a method of information sharing in accordance with an illustrative embodiment;
FIG. 17 is a schematic diagram illustrating a structure of a client in accordance with an illustrative embodiment;
fig. 18 is a block diagram illustrating a server according to an exemplary embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure.
First, a network architecture of an application scenario of the technical solution provided by the embodiment of the present disclosure is introduced.
Fig. 1 is a schematic structural diagram of an information sharing system according to an exemplary embodiment, and as shown in fig. 1, an information sharing system provided in an embodiment of the present disclosure includes: the server 10 is connected with the first client 20 and the at least one second client 30.
Fig. 2 is a block diagram of a server shown in accordance with an example embodiment. As shown in fig. 2, the server 10 includes: the system comprises a receiving module 101, an identification generating module 102, a scene parameter determining module 103, a two-dimensional code generating module 104 and a sending module 105.
The receiving module 101 is configured to receive a sharing message sent by a first client, where the sharing message includes a sharing parameter of an applet target page to be shared.
The sharing parameters may include information such as sharing persons, sharing time, sharing content, and the like. The applet may be, for example, a WeChat applet, a Payment treasure applet, a hundred applet, or the like.
An identifier generating module 102 configured to generate a first identifier of the sharing parameter.
For example: a first identification of the sharing parameter may be generated by a database.
A scene parameter determination module 103 configured to determine a scene parameter according to the first identifier.
In some embodiments, to deposit more parameters in the scene field, the scene parameter determination module 103 is configured to:
and coding the first identifier to obtain a second identifier with shorter length as a scene parameter.
For example: the first flag may be encoded using base64 or base62, and the second flag with shorter length is obtained as a scene parameter.
A two-dimension code generating module 104 configured to invoke an applet two-dimension code generating interface to generate a two-dimension code of the applet based on the scene parameter.
A sending module 105 configured to return the two-dimensional code to the first client, where the two-dimensional code is used for sharing.
In some embodiments, as shown in fig. 3, the server 10 may further include: a storage module 106, a decoding module 107 and a sharing parameter determination module 108.
The storage module 106 is configured to, after generating the first identifier of the sharing parameter, store a corresponding relationship between the first identifier and the sharing parameter.
The receiving module 101 is further configured to: receiving a request message carrying the second identifier sent by a second client; and the second identifier is acquired by the second client by scanning the two-dimensional code.
A decoding module 107 configured to decode the second identifier to obtain the first identifier.
A sharing parameter determining module 108 configured to determine a sharing parameter corresponding to the first identifier according to the corresponding relationship.
The sending module 105 is further configured to: and returning a response message carrying the sharing parameters to the second client so that the second client displays the information carried by the sharing parameters on the target page.
In some embodiments, as shown in fig. 4, the server 10 may further include: a storage module 106 and a sharing parameter determination module 108.
The storage module 106 is configured to, after generating the first identifier of the sharing parameter, store a corresponding relationship between the first identifier and the sharing parameter.
The receiving module 101 is further configured to: receiving a request message carrying the first identifier sent by a second client; and the first identifier is acquired by the second client by scanning the two-dimensional code.
A sharing parameter determining module 108 configured to determine a sharing parameter corresponding to the first identifier according to the corresponding relationship.
The sending module 105 is further configured to: and returning a response message carrying the sharing parameters to the second client so that the second client displays the information carried by the sharing parameters on the target page.
Fig. 5 is a block diagram of a first client, shown in accordance with an example embodiment. As shown in fig. 5, the first client 20 includes: the device comprises a sharing parameter acquisition module 201, a sending module 202, a receiving module 203 and a sharing module 204.
The sharing parameter acquiring module 201 is configured to acquire a sharing parameter of an applet target page to be shared.
A sending module 202, configured to send the sharing message carrying the sharing parameter to the server.
The receiving module 203 is configured to receive a two-dimensional code of the applet returned by the server, where a scene parameter of the two-dimensional code is determined according to the first identifier of the sharing parameter.
The sharing module 204 is configured to share the two-dimensional code.
Fig. 6 is a block diagram illustrating a second client, according to an example embodiment. As shown in fig. 6, the second client 30 includes: a scene parameter obtaining module 301, an identification determining module 302, a first sending module 303, a receiving module 304 and a presenting module 305.
The scene parameter acquiring module 301 is configured to acquire a scene parameter of the two-dimensional code by scanning the two-dimensional code, where the scene parameter is determined according to a first identifier of a sharing parameter of an applet target page to be shared.
An identity determination module 302 configured to determine the first identity according to the scene parameter.
A first sending module 303, configured to send a request message carrying the first identifier to a server.
A receiving module 304, configured to receive a response message returned by the server, where the response message includes the sharing parameter corresponding to the first identifier.
A presentation module 305 configured to present the information carried by the sharing parameter on the target page.
In some embodiments, the scene parameter includes a first identification.
In other embodiments, the scene parameter includes a second identifier, where the second identifier is a shorter identifier obtained by encoding the first identifier;
as shown in fig. 7, the identification determination module 302 may include:
a decoding module 3021 configured to decode the second identifier to obtain the first identifier.
Fig. 8 is a block diagram of a second client, according to another example embodiment. As shown in fig. 8, the second client 30 includes: a scene parameter acquiring module 301, a second sending module 306, a receiving module 304 and a presenting module 305.
The scene parameter acquiring module 301 is configured to acquire a scene parameter of the two-dimensional code by scanning the two-dimensional code, where the scene parameter is determined according to a first identifier of a sharing parameter of an applet target page to be shared.
A second sending module 306, configured to send a request message carrying a second identifier to a server, where the scene parameter includes the second identifier, and the second identifier is a shorter identifier obtained by encoding the first identifier.
A receiving module 304, configured to receive a response message returned by the server, where the response message includes the sharing parameter corresponding to the first identifier.
A presentation module 305 configured to present the information carried by the sharing parameter on the target page.
The methods of the server side, the first client side and the second client side are described below, respectively.
Fig. 9 is a flowchart illustrating an information sharing method according to an exemplary embodiment, and as shown in fig. 9, on a server side, the embodiment of the present disclosure provides an information sharing method, where the method includes the following steps:
s101, receiving a sharing message sent by a first client, wherein the sharing message comprises sharing parameters of an applet target page to be shared;
s102, generating a first identifier of the sharing parameter;
s103, determining scene parameters according to the first identification, and calling an applet two-dimensional code generation interface to generate a two-dimensional code of the applet based on the scene parameters;
and S104, returning the two-dimension code to the first client, wherein the two-dimension code is used for sharing.
In a possible implementation manner, the determining, in step S103, a scene parameter according to the first identifier may include:
and coding the first identifier to obtain a second identifier with shorter length as a scene parameter.
In a possible implementation manner, after generating the first identifier of the sharing parameter, the method may further include:
storing the corresponding relation between the first identification and the sharing parameter;
receiving a request message carrying the second identifier sent by a second client; the second identifier is obtained by the second client by scanning the two-dimensional code;
decoding the second identifier to obtain the first identifier, and determining a sharing parameter corresponding to the first identifier according to the corresponding relation;
and returning a response message carrying the sharing parameters to the second client so that the second client displays the information carried by the sharing parameters on the target page.
In another possible implementation manner, after generating the first identifier of the sharing parameter, the method may further include:
storing the corresponding relation between the first identification and the sharing parameter;
receiving a request message carrying the first identifier sent by a second client; the first identifier is obtained by the second client through scanning the two-dimensional code;
determining a sharing parameter corresponding to the first identifier according to the corresponding relation;
and returning a response message carrying the sharing parameters to the second client so that the second client displays the information carried by the sharing parameters on the target page.
Fig. 10 is a flowchart illustrating a method for information sharing according to an exemplary embodiment, and as shown in fig. 10, on a first client side, the embodiment of the present disclosure provides a method for information sharing, where the method includes the following steps:
s201, obtaining sharing parameters of an applet target page to be shared;
s202, sending a sharing message carrying the sharing parameters to a server;
s203, receiving the two-dimensional code of the applet returned by the server, wherein the scene parameter of the two-dimensional code is determined according to the first identifier of the sharing parameter;
and S204, sharing the two-dimension code.
Fig. 11 is a flowchart illustrating an information sharing method according to an exemplary embodiment, and as shown in fig. 11, on the second client side, the embodiment of the present disclosure provides an information sharing method, which includes the following steps:
s301, obtaining a scene parameter of the two-dimensional code by scanning the two-dimensional code, wherein the scene parameter is determined according to a first identifier of a sharing parameter of an applet target page to be shared;
wherein the scene parameter comprises a first identification.
S302, sending a request message carrying the first identifier to a server;
s303, receiving a response message returned by the server, wherein the response message comprises the sharing parameters corresponding to the first identifier;
s304, displaying the information carried by the sharing parameters on the target page.
Fig. 12 is a flowchart illustrating a method for information sharing according to another exemplary embodiment, and as shown in fig. 12, on the second client side, the embodiment of the present disclosure provides a method for information sharing, where the method includes the following steps:
s401, obtaining scene parameters of the two-dimensional code by scanning the two-dimensional code, wherein the scene parameters are determined according to a first identifier of sharing parameters of an applet target page to be shared;
the scene parameter includes a second identifier, where the second identifier is a shorter identifier obtained by encoding the first identifier.
S402, decoding the second identifier to obtain the first identifier;
s403, sending a request message carrying the first identifier to a server;
s404, receiving a response message returned by the server, wherein the response message comprises the sharing parameters corresponding to the first identifier;
s405, displaying the information carried by the sharing parameters on the target page.
Fig. 13 is a flowchart illustrating a method for information sharing according to another exemplary embodiment, and as shown in fig. 13, on the second client side, the embodiment of the present disclosure provides a method for information sharing, where the method includes the following steps:
s501, obtaining scene parameters of the two-dimensional code by scanning the two-dimensional code, wherein the scene parameters are determined according to a first identifier of sharing parameters of an applet target page to be shared;
the scene parameter includes a second identifier, where the second identifier is a shorter identifier obtained by encoding the first identifier.
S502, sending a request message carrying a second identifier to a server;
s503, receiving a response message returned by the server, wherein the response message comprises the sharing parameters corresponding to the first identifier;
and S504, displaying the information carried by the sharing parameters on the target page.
The following describes an overall process of information sharing provided by the embodiment of the present disclosure with reference to an interactive diagram.
The first embodiment is as follows:
referring to fig. 14, an overall process of information sharing provided by the first embodiment of the present disclosure is as follows:
s601, a first client acquires sharing parameters of an applet target page to be shared;
s602, the first client sends a sharing message carrying the sharing parameters to a server;
s603, the server generates a first identifier of the sharing parameter, and stores a corresponding relation between the first identifier and the sharing parameter;
s604, the server side takes the first identifier as a scene parameter, and calls a small program two-dimensional code generating interface to generate a two-dimensional code of the small program based on the scene parameter;
s605, the server returns the two-dimension code to the first client;
s606, the first client shares the two-dimension code, namely the two-dimension code is sent to the second client;
s607, the second client obtains a scene parameter of the two-dimensional code by scanning the two-dimensional code, wherein the scene parameter comprises a first identifier;
s608, the second client sends a request message carrying the first identifier to a server;
s609, the server determines a sharing parameter corresponding to the first identifier according to the corresponding relation;
s610, the server side returns a response message carrying the sharing parameters to the second client side;
and S611, the second client displays the information carried by the sharing parameters on the target page.
Example two:
referring to fig. 15, an overall process of information sharing provided by the second embodiment of the present disclosure is as follows:
s701, a first client acquires sharing parameters of an applet target page to be shared;
s702, the first client sends a sharing message carrying the sharing parameters to a server;
s703, the server generates a first identifier of the sharing parameter, and stores a corresponding relation between the first identifier and the sharing parameter;
s704, the server encodes the first identifier to obtain a second identifier with shorter length as a scene parameter;
s705, the service terminal calls an applet two-dimensional code generating interface to generate a two-dimensional code of the applet based on the scene parameter;
s706, the server returns the two-dimension code to the first client;
s707, the first client shares the two-dimension code, namely, the two-dimension code is sent to the second client;
s708, the second client obtains a scene parameter of the two-dimensional code by scanning the two-dimensional code, wherein the scene parameter comprises a second identifier;
s709, the second client decodes the second identifier to obtain the first identifier;
s710, the second client sends a request message carrying the first identifier to a server;
s711, the server determines sharing parameters corresponding to the first identifier according to the corresponding relation;
s712, the server returns a response message carrying the sharing parameter to the second client;
and S713, the second client displays the information carried by the sharing parameters on the target page.
Example three:
referring to fig. 16, the general process of information sharing provided by the third embodiment of the present disclosure is as follows:
s801, a first client acquires sharing parameters of an applet target page to be shared;
s802, the first client sends a sharing message carrying the sharing parameters to the server;
s803, the server generates a first identifier of the sharing parameter, and stores a corresponding relation between the first identifier and the sharing parameter;
s804, the server encodes the first identifier to obtain a second identifier with shorter length as a scene parameter;
s805, the service end calls an applet two-dimensional code generating interface to generate a two-dimensional code of the applet based on the scene parameter;
s806, the server returns the two-dimension code to the first client;
s807, the first client shares the two-dimension code, namely, the two-dimension code is sent to a second client;
s808, the second client obtains a scene parameter of the two-dimensional code by scanning the two-dimensional code, wherein the scene parameter comprises a second identifier;
s809, the second client sends a request message carrying the second identifier to the server;
s810, the server decodes the second identifier to obtain the first identifier;
s811, the server determines sharing parameters corresponding to the first identifier according to the corresponding relation;
s812, the server returns a response message carrying the sharing parameters to the second client;
and S813, the second client displays the information carried by the sharing parameters on the target page.
Based on the same inventive concept, the embodiment of the present disclosure further provides a first client, including: a memory, a processor, and a computer program stored on the memory and executable on the processor;
wherein the processor is configured to:
obtaining sharing parameters of an applet target page to be shared;
sending a sharing message carrying the sharing parameters to a server;
receiving a two-dimensional code of the applet returned by a server, wherein a scene parameter of the two-dimensional code is determined according to a first identifier of the sharing parameter;
and sharing the two-dimension code.
Based on the same inventive concept, the embodiment of the present disclosure further provides a second client, including: a memory, a processor, and a computer program stored on the memory and executable on the processor;
wherein the processor is configured to:
obtaining scene parameters of the two-dimensional code by scanning the two-dimensional code, wherein the scene parameters are determined according to a first identifier of sharing parameters of an applet target page to be shared;
determining the first identifier according to the scene parameter, and sending a request message carrying the first identifier to a server; or
Sending a request message carrying a second identifier to a server, wherein the scene parameter comprises the second identifier, and the second identifier is a shorter identifier obtained by encoding the first identifier;
receiving a response message returned by the server, wherein the response message comprises sharing parameters corresponding to the first identifier;
and displaying the information carried by the sharing parameters on the target page.
As shown in fig. 17, fig. 17 is a schematic structural diagram of a client 1700 shown in the present disclosure according to an exemplary embodiment. For example, client 1700 may be a mobile phone with routing capabilities, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
Referring to fig. 17, client 1700 may include one or more of the following components: processing component 1702, memory 1704, power component 1706, multimedia component 1708, audio component 1710, input/output (I/O) interface 1712, sensor component 1714, and communications component 1716.
The processing component 1702 generally controls the overall operation of the client 1700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing component 1702 may include one or more processors 1720 to execute instructions to perform all or a portion of the steps of the above-described method. Further, processing component 1702 may include one or more modules that facilitate interaction between processing component 1702 and other components. For example, processing component 1702 may include a multimedia module to facilitate interaction between multimedia component 1708 and processing component 1702.
Memory 1704 is configured to store various types of data to support operations at client 1700. Examples of such data include instructions for any application or method operating on client 1700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1704 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power component 1706 provides power to the various components of the client 1700. The power components 1706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the client 1700.
The multimedia components 1708 include screens between the client 1700 and the user that provide an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1708 includes a front facing camera and/or a rear facing camera. When the client 1700 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
Audio component 1710 is configured to output and/or input audio signals. For example, audio component 1710 includes a Microphone (MIC) configured to receive external audio signals when client 1700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 1704 or transmitted via the communication component 1716. In some embodiments, audio component 1710 also includes a speaker for outputting audio signals.
The I/O interface 1712 provides an interface between the processing component 1702 and peripheral interface modules, such as a keyboard, click wheel, buttons, and the like. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 1714 includes one or more sensors for providing status assessment of various aspects to the client 1700. For example, sensor component 1714 may detect an open/closed state of client 1700, the relative positioning of components, such as a display and keypad of client 1700, the sensor component 1714 may also detect a change in the position of client 1700 or one of the components of client 1700, the presence or absence of user contact with client 1700, client 1700 orientation or acceleration/deceleration, and a change in the temperature of client 1700. The sensor assembly 1714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 1714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, a microwave sensor, or a temperature sensor.
The communication component 1716 is configured to facilitate communications between the client 1700 and other devices in a wired or wireless manner. Client 1700 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1716 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1716 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the client 1700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the method of information sharing as described in any of fig. 10 to 13.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided that includes instructions, such as memory 1704 that are executable by processor 1720 of client 1700 to perform the above-described method. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Based on the same inventive concept, the embodiment of the present disclosure further provides a server, including: a memory, a processor, and a computer program stored on the memory and executable on the processor;
wherein the processor is configured to:
receiving a sharing message sent by a first client, wherein the sharing message comprises sharing parameters of an applet target page to be shared;
generating a first identifier of the sharing parameter;
determining scene parameters according to the first identification, and calling an applet two-dimensional code generation interface to generate a two-dimensional code of the applet based on the scene parameters;
and returning the two-dimension code to the first client, wherein the two-dimension code is used for sharing.
As shown in fig. 18, fig. 18 is a schematic structural diagram of a server 1800 according to an exemplary embodiment. Referring to FIG. 18, the service 1800 includes a processing component 1802 that further includes one or more processors and memory resources, represented by memory 1804, for storing instructions, such as application programs, that are executable by the processing component 1802. The application programs stored in memory 1804 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1802 is configured to execute instructions to perform the method of information sharing as shown in fig. 9.
The server 1800 may also include a power component 1806 configured to perform power management of the server 1800, a wired or wireless network interface 1808 configured to connect the server 1800 to a network, and an input/output (I/O) interface 1810. The server 1800 may operate based on an operating system stored in the memory 1804, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (15)

1. The method for information sharing is applied to a server and comprises the following steps:
receiving a sharing message sent by a first client, wherein the sharing message comprises sharing parameters of an applet target page to be shared;
generating a first identifier of the sharing parameter;
determining scene parameters according to the first identification, and calling an applet two-dimensional code generation interface to generate a two-dimensional code of the applet based on the scene parameters;
and returning the two-dimension code to the first client, wherein the two-dimension code is used for sharing, and the shared two-dimension code is used for opening the target page.
2. The method of claim 1, wherein the determining a scene parameter according to the first identifier comprises:
and coding the first identifier to obtain a second identifier with shorter length as a scene parameter.
3. The method of claim 2, wherein after generating the first identification of the sharing parameter, the method further comprises:
storing the corresponding relation between the first identification and the sharing parameter;
receiving a request message carrying the second identifier sent by a second client; the second identifier is obtained by the second client by scanning the two-dimensional code;
decoding the second identifier to obtain the first identifier, and determining a sharing parameter corresponding to the first identifier according to the corresponding relation;
and returning a response message carrying the sharing parameters to the second client so that the second client displays the information carried by the sharing parameters on the target page.
4. The method of claim 1 or 2, wherein after generating the first identification of the sharing parameter, the method further comprises:
storing the corresponding relation between the first identification and the sharing parameter;
receiving a request message carrying the first identifier sent by a second client; the first identifier is obtained by the second client through scanning the two-dimensional code;
determining a sharing parameter corresponding to the first identifier according to the corresponding relation;
and returning a response message carrying the sharing parameters to the second client so that the second client displays the information carried by the sharing parameters on the target page.
5. A method for information sharing, applied to a first client side, includes:
obtaining sharing parameters of an applet target page to be shared;
sending a sharing message carrying the sharing parameters to a server;
receiving a two-dimensional code of the applet returned by a server, wherein a scene parameter of the two-dimensional code is determined according to a first identifier of the sharing parameter;
and sharing the two-dimension code.
6. A method for information sharing, the method being applied to a second client side, the method comprising:
obtaining scene parameters of the two-dimensional code by scanning the two-dimensional code, wherein the scene parameters are determined according to a first identifier of sharing parameters of an applet target page to be shared;
determining the first identifier according to the scene parameter, and sending a request message carrying the first identifier to a server; or
Sending a request message carrying a second identifier to a server, wherein the scene parameter comprises the second identifier, and the second identifier is a shorter identifier obtained by encoding the first identifier;
receiving a response message returned by the server, wherein the response message comprises sharing parameters corresponding to the first identifier;
and displaying the information carried by the sharing parameters on the target page.
7. The method of claim 6, wherein the scene parameter comprises a second flag, and the second flag is a shorter flag obtained by encoding the first flag;
the determining the first identifier according to the scene parameter includes:
and decoding the second identifier to obtain the first identifier.
8. A server, comprising:
the sharing method comprises the steps that a receiving module is configured to receive a sharing message sent by a first client, wherein the sharing message comprises sharing parameters of an applet target page to be shared;
an identifier generating module configured to generate a first identifier of the sharing parameter;
a scene parameter determination module configured to determine scene parameters according to the first identifier;
the two-dimension code generating module is configured to call an applet two-dimension code generating interface to generate a two-dimension code of the applet based on the scene parameter;
the sending module is configured to return the two-dimensional code to the first client, the two-dimensional code is used for sharing, and the shared two-dimensional code is used for opening the target page.
9. The server according to claim 8, wherein the scenario parameter determination module is configured to:
and coding the first identifier to obtain a second identifier with shorter length as a scene parameter.
10. The server according to claim 9, wherein the server further comprises: the device comprises a storage module, a decoding module and a sharing parameter determining module;
the storage module is configured to store a corresponding relationship between a first identifier of the sharing parameter and the sharing parameter after the first identifier of the sharing parameter is generated;
the receiving module is further configured to: receiving a request message carrying the second identifier sent by a second client; the second identifier is obtained by the second client by scanning the two-dimensional code;
the decoding module is configured to decode the second identifier to obtain the first identifier,
the sharing parameter determining module is configured to determine a sharing parameter corresponding to the first identifier according to the corresponding relationship;
the sending module is further configured to: and returning a response message carrying the sharing parameters to the second client so that the second client displays the information carried by the sharing parameters on the target page.
11. The server according to claim 8 or 9, wherein the server further comprises: the device comprises a storage module and a sharing parameter determining module;
the storage module is configured to store a corresponding relationship between a first identifier of the sharing parameter and the sharing parameter after the first identifier of the sharing parameter is generated;
the receiving module is further configured to: receiving a request message carrying the first identifier sent by a second client; the first identifier is obtained by the second client through scanning the two-dimensional code;
the sharing parameter determining module is configured to determine a sharing parameter corresponding to the first identifier according to the corresponding relationship;
the sending module is further configured to: and returning a response message carrying the sharing parameters to the second client so that the second client displays the information carried by the sharing parameters on the target page.
12. A first client, comprising:
the sharing parameter acquisition module is configured to acquire sharing parameters of the small program target page to be shared;
the sending module is configured to send the sharing message carrying the sharing parameters to a server;
the receiving module is configured to receive a two-dimensional code of the applet returned by a server, wherein a scene parameter of the two-dimensional code is determined according to a first identifier of the sharing parameter;
the sharing module is configured to share the two-dimensional code.
13. A second client, the second client comprising: the system comprises a scene parameter acquisition module, an identification determination module, a first sending module, a receiving module and a display module; or the second client comprises: the scene parameter acquisition module, the second sending module, the receiving module and the display module;
the scene parameter acquiring module is configured to acquire scene parameters of the two-dimensional code by scanning the two-dimensional code, wherein the scene parameters are determined according to a first identifier of sharing parameters of an applet target page to be shared;
the identification determination module is configured to determine the first identification according to the scene parameter;
the first sending module is configured to send a request message carrying the first identifier to a server;
the second sending module is configured to send a request message carrying a second identifier to a server, where the scene parameter includes the second identifier, and the second identifier is a shorter identifier obtained by encoding the first identifier;
the receiving module is configured to receive a response message returned by the server, where the response message includes the sharing parameter corresponding to the first identifier;
the display module is configured to display the information carried by the sharing parameter on the target page.
14. The second client according to claim 13, wherein the scene parameter includes a second identifier, and the second identifier is a shorter identifier obtained by encoding the first identifier;
the identification determination module comprises:
a decoding module configured to decode the second identifier to obtain the first identifier.
15. An information sharing system, comprising: the server according to any of claims 8-11, the first client according to claim 12 and the at least one second client according to claim 13 or 14, the server being connected to the first client and the at least one second client.
CN201910532538.XA 2019-06-19 2019-06-19 Information sharing method and system, client and server Active CN110311961B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910532538.XA CN110311961B (en) 2019-06-19 2019-06-19 Information sharing method and system, client and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910532538.XA CN110311961B (en) 2019-06-19 2019-06-19 Information sharing method and system, client and server

Publications (2)

Publication Number Publication Date
CN110311961A CN110311961A (en) 2019-10-08
CN110311961B true CN110311961B (en) 2022-04-22

Family

ID=68076139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910532538.XA Active CN110311961B (en) 2019-06-19 2019-06-19 Information sharing method and system, client and server

Country Status (1)

Country Link
CN (1) CN110311961B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112433788A (en) * 2020-11-23 2021-03-02 百度在线网络技术(北京)有限公司 Applet running method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107241652A (en) * 2017-06-28 2017-10-10 百视通网络电视技术发展有限责任公司 A kind of TV speech remote control system and method based on wechat small routine
CN107608602A (en) * 2017-08-31 2018-01-19 广东美芝制冷设备有限公司 Control method, mobile terminal, control system and the storage medium of on-board air conditioner
CN108120446A (en) * 2017-12-21 2018-06-05 伍军 Shared based on dynamic web page with the position of Quick Response Code and navigation methods and systems
CN109801143A (en) * 2019-01-28 2019-05-24 任向东 A kind of food and drink spelling group method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897341A (en) * 2016-07-08 2017-06-27 阿里巴巴集团控股有限公司 2 D code information querying method, server, client and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107241652A (en) * 2017-06-28 2017-10-10 百视通网络电视技术发展有限责任公司 A kind of TV speech remote control system and method based on wechat small routine
CN107608602A (en) * 2017-08-31 2018-01-19 广东美芝制冷设备有限公司 Control method, mobile terminal, control system and the storage medium of on-board air conditioner
CN108120446A (en) * 2017-12-21 2018-06-05 伍军 Shared based on dynamic web page with the position of Quick Response Code and navigation methods and systems
CN109801143A (en) * 2019-01-28 2019-05-24 任向东 A kind of food and drink spelling group method and system

Also Published As

Publication number Publication date
CN110311961A (en) 2019-10-08

Similar Documents

Publication Publication Date Title
CN109274510B (en) Message processing method, device, client, server and storage medium
US10334282B2 (en) Methods and devices for live broadcasting based on live broadcasting application
CN109521918B (en) Information sharing method and device, electronic equipment and storage medium
US9723486B2 (en) Method and apparatus for accessing network
CN108495168B (en) Bullet screen information display method and device
CN108989062B (en) Method, device, terminal, system and storage medium for updating group member data
CN112291631A (en) Information acquisition method, device, terminal and storage medium
CN110619097A (en) Two-dimensional code generation method and device, electronic equipment and storage medium
CN113259226A (en) Information synchronization method and device, electronic equipment and storage medium
CN106506808B (en) Method and device for prompting communication message
CN110311961B (en) Information sharing method and system, client and server
CN106447747B (en) Image processing method and device
CN110213062B (en) Method and device for processing message
CN110690979B (en) Group message processing method, device, server, client and storage medium
CN109150901B (en) Information source prompting method and device, electronic equipment and storage medium
CN109245992B (en) Request processing method and device, electronic equipment and storage medium
CN105656639B (en) Group message display method and device
CN109831538B (en) Message processing method, device, server, terminal and medium
CN112291581B (en) Server, terminal equipment, information processing method and device
CN112804645B (en) Positioning method, positioning device and storage medium
US9832342B2 (en) Method and device for transmitting image
CN114567790A (en) Information display method and device, electronic equipment and storage medium
CN110113256B (en) Information interaction method and device, server, user terminal and readable storage medium
CN112769677A (en) Data synchronization method, data synchronization device, electronic equipment, storage medium and program product
CN109120499B (en) Information processing method and device

Legal Events

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