Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the above-described drawings (if any) are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The two-dimensional bar code/two-dimensional code is a pattern which is distributed on a plane (two-dimensional direction) according to a certain rule by using a certain specific geometric figure, is alternate in black and white and records data symbol information; the concept of "0" and "1" bit stream forming the internal logic basis of computer is used ingeniously in coding, several geometric forms correspondent to binary system are used to represent literal numerical information, and can be automatically read by means of image input equipment or photoelectric scanning equipment so as to implement automatic information processing.
The two-dimensional code can be used for recording Uniform Resource locators (Uniform Resource L atom, UR L) of a webpage, a user can read the webpage linked by the UR L after scanning the two-dimensional code through a terminal device, in the prior art, the terminal interacts with a server only through the UR L provided by the two-dimensional code, and in some special use scenes, for example, in a social use scene, the server allows the user to generate a personalized webpage interface and share friends, and the working mode can cause great storage and reading pressure on the server.
In order to solve the above problem, an embodiment of the present application provides an information propagation method, which can enable a next user to obtain information edited by a previous user by reading a configuration code when scanning a two-dimensional code by adding the configuration code to the two-dimensional code, thereby omitting a step of interacting with a server, and enabling the two-dimensional code to have a social attribute.
It should be noted that the method provided in the embodiments of the present application can be applied to various different usage scenarios, for example: downloading a use scene of the app by scanning the two-dimensional code; or the user enters a webpage, such as a H5 page, by scanning the code, the user puts the edited webpage interface into the two-dimensional code through the configuration code, and the next user obtains the webpage interface edited by the previous user by reading the configuration code when scanning the two-dimensional code, so that the users can share the webpage with personalized settings through the two-dimensional code. For convenience of understanding, the specific implementation of the embodiment of the present application is mainly described by taking a usage scenario of scanning, editing, and sharing a web page as an example, but the usage scenario of the present application is not limited.
The information dissemination method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings.
Referring to fig. 1, as shown in fig. 1, an embodiment of an information dissemination method according to the embodiment of the present application includes the following steps.
101. The first terminal acquires first data.
In this embodiment, optionally, the first terminal enters the webpage editing page by scanning the two-dimensional code, and acquires the editing parameter of the webpage, so as to obtain the first data, where the first data may be webpage data, such as a personalized interface and a design element of an H5 page.
102. And the first terminal converts the first data into a configuration code according to a preset rule.
In this embodiment, optionally, the preset rule may be a first corresponding relationship, where the first corresponding relationship is a corresponding relationship between the first data and the configuration code, for example, when the user selects the first design element when editing the web page, the configuration code is obtained as 1 according to the first corresponding relationship, and when the user selects the second design element when editing the web page, the configuration code is obtained as 2 according to the first corresponding relationship, so that the first data may be converted into the configuration code represented by a number according to the first corresponding relationship.
103. The first terminal adds the configuration code to the two-dimensional code.
In this embodiment, the first terminal converts the configuration code into a binary array, and then adds the binary array to the two-dimensional code, where a specific implementation manner of converting the binary array into the two-dimensional code is known to those skilled in the art and is not described herein again.
104. And the first terminal sends the two-dimensional code to the second terminal.
In this embodiment, the first terminal sends the two-dimensional code recorded with the configuration code to the second terminal, which may be any terminal except the first terminal, so that the second terminal can read the personalized web interface information set by the first terminal according to the two-dimensional code, thereby omitting a link of interacting with the server, and enabling the two-dimensional code to have a social attribute.
105. The second terminal acquires the two-dimensional code transmitted by the first terminal.
In this embodiment, the second terminal receives the two-dimensional code sent by the first terminal through the sending of the first terminal.
106. And the second terminal acquires the configuration code recorded in the two-dimensional code.
In this embodiment, because the two-dimensional code uses a plurality of geometric shapes corresponding to a binary system to represent the text numerical value information, the second terminal reads the two-dimensional code by scanning, and then analyzes a binary number group recorded in the two-dimensional code, so that the information recorded in the two-dimensional code can be obtained.
107. And the second terminal acquires the first data from the configuration code according to a preset rule.
In this embodiment, optionally, the preset rule may be the same first corresponding relationship as that pre-stored in the first terminal. That is, the second terminal obtains the first data corresponding to the configuration code according to the first corresponding relationship, where the first corresponding relationship is the corresponding relationship between the configuration code and the first data. Taking the H5 page as an example, when each terminal logs in the H5 page, the same first corresponding relationship is automatically downloaded in the background, and according to the first corresponding relationship, the second terminal can analyze the first data corresponding to the configuration code. For example, when the second terminal acquires that the configuration code is 1, acquiring a first design element selected by the first terminal when the first terminal edits a webpage according to the first corresponding relation; and when the second terminal acquires that the configuration code is 2, acquiring a second design element selected by the first terminal when the webpage is edited according to the first corresponding relation.
108. The second terminal reads the first data.
In this embodiment, after the second terminal acquires the first data, the first data is read, for example, the read first data is web page editing data, and the web page editing data is restored when the second terminal reads the first data, so that the personalized web page edited by the first terminal is obtained.
Optionally, the first data may be a web interface generated by the first terminal, for example, an interface a drawn with a map of guangdong province, a two-dimensional code B recorded with information of the interface a is obtained through the processing in the above steps 102 to 103, and when the second terminal scans the two-dimensional code B, the web interface a may be displayed at the second terminal.
Further, the first terminal can generate a screenshot A 'of the web interface A, and then the two-dimensional code B is attached to the screenshot A' to obtain a shared picture C. That is, the sharing graph C includes the screenshot a 'and the two-dimensional code B, and the first terminal sends the picture C to the second terminal, so that the second terminal can visually see the content of the web interface a through the screenshot a' when receiving the picture C, and then the second terminal enters the web interface a by scanning the two-dimensional code B. Therefore, the picture C has a more visual spreading effect in the spreading and sharing process compared with the two-dimensional code B which is simply spread.
The information transmission method provided by the embodiment of the application comprises the following steps: a first terminal acquires first data; the first terminal converts the first data into a configuration code according to a preset rule; the first terminal adds the configuration code to the two-dimension; and the first terminal sends the two-dimensional code to the second terminal. And the second terminal acquires the configuration code recorded in the two-dimensional code, acquires first data from the configuration code according to a preset rule and reads the first data. Therefore, under the condition that interaction with the server is not needed, data acquired between different terminals is transmitted only through the two-dimensional code, the storage and transmission pressure of the server is saved, and the information quantity borne by the two-dimensional code is increased.
It should be noted that the first data may be data generated by editing by the user, or may be data generated by the first terminal itself, for example, in the personalized generation of the H5 page, the first data may be a personalized interface generated after the user manually selects a webpage decoration element, or may be a personalized interface generated by the first terminal itself according to local parameters. The specific operation of the above two cases is described in detail below with reference to the accompanying drawings.
1. The first data is data generated through user editing.
In this embodiment, the first data is web page data generated by a user of the first terminal through manual editing and personalization, please refer to fig. 2, and as shown in fig. 2, an embodiment of the information dissemination method provided in the embodiment of the present application includes the following steps.
201. The first terminal acquires a data item selected by a user.
In this embodiment, the data items may be various data items that can be selected by a user, for example, an editing web page interface is taken as an example, the data items that can be selected by the user may include options such as a background, a floor, and decorative elements of an H5 page, for example, through an H5 interface shown in fig. 3a, the user selects the data items through two left and right UI controls 301a, and the obtained web page scene picture is shown in fig. 3b, the background selected by the user is apicture 301b with a sunset, the floor is alake surface 302b, the decorative elements are anarch bridge 303b, abird 304b, and awillow 305b, and the above elements jointly constitute a web page scene picture that is generated by the user in a personalized manner.
202. The first terminal takes the data item as first data.
In this embodiment, still taking fig. 3b as an example, for the data item selected by the user, the first terminal converts the data item into a data format that can be read by the terminal according to the internal protocol, and a person skilled in the art can select the specific internal protocol and data format according to an actual situation, which is not described herein again.
203. And the first terminal acquires the configuration code corresponding to the first data according to the first corresponding relation.
In this embodiment, in the working scenario shown in fig. 3b, the first corresponding relationship may be as shown in the following table one.
| Configuration code/first data | Background | Floor board | Decorative element |
| 1 | Sunset | Lake surface | Arch bridge |
| 2 | Night | Grass land | Flying bird |
| 3 | In sunny days | Desert | Willow tree |
| 4 | Rainy day | Flower field | Butterfly |
Watch 1
As shown in table one, each group of different first data corresponds to an array, where "background" is an array, "floor" is an array, and "decorative element" is an array, and when a user selects a scene data item: when the flying bird is in the sunset, the lake surface and the arch bridge, the configuration code of the background array is 1, the configuration code of the floor array is 1, and the configuration code of the decoration element array is 1 and 2, so that the first data can be converted into the two-dimensional code according to the first corresponding relation recorded in the first table according to the steps.
204. The first terminal adds the configuration code to the two-dimensional code.
205. And the first terminal sends the two-dimensional code to the second terminal.
206. The second terminal acquires the two-dimensional code transmitted by the first terminal.
207. And the second terminal acquires the configuration code recorded in the two-dimensional code.
Step 204 to step 207 can refer to steps 103 to 106, which are not described herein again.
208. And the second terminal acquires first data corresponding to the configuration code according to the first corresponding relation.
In this embodiment, the first corresponding relationship shown in table one is also pre-stored in the second terminal, so that the first data can be restored through the first corresponding relationship according to the read configuration code, for example, the second terminal reads that the configuration code of the "background" array is 1, the configuration code of the "floor" array is 1, and the configuration codes of the "decoration element" array are 1 and 2, so that it can be known that, in the webpage scene edited by the first terminal, the background is selected as "sunset", the floor is selected as "lake surface", and the decoration elements are selected as "arch bridge" and "flying bird".
209. The second terminal reads the first data.
In this embodiment, after the second terminal obtains the first data, the second terminal reads and displays the first data in the display interface of the terminal of the second terminal. Therefore, the second terminal can acquire the information edited by the first terminal only by reading the configuration code recorded in the two-dimensional code, the process does not need to pass through a server, the pressure of the server is reduced, meanwhile, the two-dimensional code can bear more information, the two-dimensional code has a social function, and users of different terminals can share own personalized webpage scenes through the two-dimensional code.
It should be noted that, the embodiment of the present application further provides a method for a terminal to generate a personalized web interface by itself, where when a user does not edit a web page according to the above method, the terminal performs personalized setting on a web page scene according to local parameters, and for convenience of understanding, the following detailed description is provided.
2. The first data is data generated by the first terminal.
In this embodiment, the first terminal may automatically generate personalized web page interface parameters according to the actual conditions of the local parameters. For the sake of understanding, the following detailed description of such a method is made with reference to the accompanying drawings. Referring to fig. 4, a third embodiment of the information dissemination method according to the embodiment of the present application includes the following steps.
401. The first terminal acquires the local parameters.
In this embodiment, the local parameter is a parameter that can be acquired by the first terminal, for example, geographical location information, weather information, and the like.
402. The first terminal acquires first data according to the local parameters.
In this embodiment, the first terminal may locally convert the local parameter into the first data according to a preset protocol, and a specific protocol manner may be selected by a person skilled in the art according to an actual requirement, which is not limited in this embodiment of the present application.
The following steps 403 to 409 may refer to the above steps 102 to 108, and are not described herein again.
In this embodiment, the first terminal obtains the first data according to the local parameter, so that manual operation of a user is avoided, and personalized content can be generated according to the actual situation of the location of the first terminal, thereby improving convenience of the method.
It should be noted that the local parameter may be geographical location information or weather information acquired by the first terminal, and the two different information types may respectively correspond to different processing manners, and for convenience of understanding, the two cases are described in detail below with reference to the accompanying drawings.
And 2.1, the local parameter is geographical location information.
In this embodiment, in the process of acquiring the first data, the first terminal acquires current geographic location information as a personalized parameter of the first data, please refer to fig. 5, and as shown in fig. 5, a fourth embodiment of the information dissemination method provided in the embodiment of the present application includes the following steps.
501. The first terminal acquires an administrative unit where the current geographic position information is located.
In this embodiment, the range of the administrative unit may be divided according to actual requirements, and the embodiment of the present application is not limited, for example, if the administrative unit is provincial, the first terminal acquires a province where the current geographic location information is located, for example, guangdong province.
502. The first terminal acquires a map-shaped contour of an administrative unit as first data.
In this embodiment, as shown in fig. 6, for example, when the current position of the first terminal is the guangdong province, the first terminal acquires anoutline shape 601 of the map of the guangdong province as the first data.
503. And the first terminal acquires the configuration code corresponding to the first data according to the first corresponding relation.
In this embodiment, the first corresponding relationship may be similar to that shown in table one, where different administrative units correspond to different configuration codes, for example, taking a province-level administrative unit as an example, the configuration code corresponding to guangdong province is 1, the configuration code corresponding to sichuan province is 2 … …, and the first terminal obtains that the configuration code is 1 according to the current location of the first terminal is guangdong province and the first corresponding relationship.
504. The first terminal adds the configuration code to the two-dimensional code.
505. And the first terminal sends the two-dimensional code to the second terminal.
506. The second terminal acquires the two-dimensional code transmitted by the first terminal.
507. And the second terminal acquires the configuration code recorded in the two-dimensional code.
The steps 504 to 507 refer to the steps 103 to 106, which are not described herein again.
508. And the second terminal acquires first data corresponding to the configuration code according to the first corresponding relation.
In this embodiment, the second terminal stores the same first correspondence relationship as that in the first terminal in advance, and according to the data described in the configuration code, the second terminal can obtain the province described in the first data through the first correspondence relationship, thereby obtaining the map-shaped contour of the administrative area in the first terminal.
509. The second terminal reads the first data.
In this embodiment, the second terminal reads the first data and displays the map outline of the Guangdong province on the display interface, so that the second terminal reads the personalized map information left by the first terminal on the webpage, and the second terminal can share the two-dimensional code of the second terminal with other terminals in the same manner as described above and add the map outline information of the province where the second terminal is located on the basis of the first terminal, so that the map outline information of the province where each terminal is located is added to the two-dimensional code in a relay manner without participation of a server, and the social attribute of the two-dimensional code is improved.
Further, the local parameter may be weather information in addition to the geographical location information, as described in detail below.
And 2.2, the local parameter is weather information.
In this embodiment, the first terminal obtains the current weather information in real time through the weather data interface to serve as a setting option for web personalization, and different weather conditions correspond to different display effects in subsequent steps.
Referring to fig. 7, as shown in fig. 7, a fifth embodiment of the information dissemination method according to the embodiment of the present application includes the following steps.
701. The first terminal acquires weather information of a current location.
In this embodiment, the first terminal obtains current weather information in real time through the weather data interface, for example, the current weather is sunny day, cloudy day, rainy day, snowing day, or the like.
702. And the first terminal acquires display information corresponding to the weather information as first data according to the second corresponding relation.
In this embodiment, the second corresponding relationship includes corresponding relationships between different weather information and display information, and specifically, the second corresponding relationship may further include at least one of the following corresponding relationships.
2.2.1, corresponding relation between the weather information and the graph.
In this embodiment, the preset pictures of sun, cloud, rain, and snowflake are used to simulate the weather condition, and if the current weather is sunny, the preset picture of "sun" is obtained; if the current weather is cloudy, acquiring a preset picture cloud; if the current weather is rainy, acquiring a preset picture rain; and if the current weather is snowing, acquiring the preset picture 'snowflake', so that the picture corresponding to the weather information can be obtained.
2.2.2, corresponding relation between weather information and color values.
In this embodiment, different weather information corresponds to different color values, so that different weather conditions can be expressed individually according to the difference in color, for example, different color information is obtained according to the difference in temperature conditions in the weather information:
presetting base color values as # DC143C (red) respectively representing temperature above 30 ℃;
#228B22 (green) represents an air temperature of 20-30 ℃;
#87CEFA (blue) represents an air temperature of 10 to 20 ℃;
#778899 (gray) represents an atmospheric temperature of 10 ℃ or lower.
Therefore, different color information can be further obtained according to different real-time air temperatures.
2.2.3, corresponding relation between weather information and color value transparency.
In this embodiment, on the basis of obtaining the color value according to the weather information, the transparency of the color value is further obtained according to different weather information, so as to further enhance the personalized effect of the web interface under different weather conditions, optionally, the basic transparency of each color is set to 0.5, and then the transparency of the basic color value is adjusted according to the weather information obtained by the current first terminal, so as to obtain the final color value, and the rule for adjusting the color transparency is as follows:
the transparency is increased by 0.3 in sunny days,
cloudy, the transparency is increased by 0.1,
snow flakes, the transparency of which is reduced by 0.3,
in rainy days, the transparency is reduced by 0.1.
Thus, according to the scheme, weather and air temperature conditions are combined, and color effects with different transparencies are displayed.
703. And the first terminal acquires the configuration code corresponding to the first data according to the first corresponding relation.
In this embodiment, the first data and the configuration code may be described in the table i, and the first correspondence records the correspondence between the different display information and the configuration code, so that the first data is converted into the configuration code that can be described in the two-dimensional code.
The following steps 704 to 709 can refer to the above steps 504 to 509, and are not described herein again.
In this embodiment, the first terminal automatically acquires current weather information through the weather interface, and acquires display effects such as different graphics, colors, transparencies and the like through the weather information, so that an individualized webpage display interface is automatically generated according to different weathers, and is integrated in the two-dimensional code through the configuration code and shared by other users, so that the two-dimensional code has the capability of recording individualized content.
Optionally, as a preferred embodiment, the two local parameters: the geographical position information and the weather information can be further combined, and the specific steps are as follows:
and filling the display information into the map shape outline.
For example, if the current geographical location information shows that the location is Guangdong province, the map shape contour of the Guangdong province is acquired, and then the current weather is clear and the temperature is 31 ℃. The first data obtained at this time is shown in fig. 8, and a graphic "sun" 802 is filled in themap outline 801 of the guangdong province to indicate that the current weather of the guangdong province is sunny, and a color value # DC143C (red) is set on astroke 803 of themap outline 801 of the guangdong province to represent that the current temperature of the guangdong province is more than 30 degrees and the transparency of the color value is 0.8, so as to further enhance the weather effect.
According to the method, the first terminal obtains the graph shown in the figure 8 in the webpage display interface for personalized editing according to the weather and geographical position information, personalized first data are automatically generated, and when the first data are converted into the configuration codes and are shared to the second terminal in the form of the two-dimensional codes, the user of the second terminal can see the graph shown in the figure 8 in the logged-in webpage by scanning the two-dimensional codes, so that the second terminal can see the personalized webpage display content shared by the first terminal. The information recorded in fig. 8 is not required to be read and stored by the server, but is directly integrated in the two-dimensional code in the form of the configuration code, and is directly shared through the two-dimensional code, so that the information sharing efficiency is greatly improved.
It should be noted that, in the embodiment of the present application, the data recorded in the two-dimensional code may further include, in addition to the configuration code, network link information and a data monitoring field, where the network link information is used to enable the terminal to access an address specified by the network link after scanning the code, and the data monitoring field is used to record at least one of a mode, time, place, and number of times that the first terminal enters the first data obtaining interface. For example, in an application scenario in which a terminal enters a web page by scanning a code, network link information is used to enable the terminal device to enter the web page H5 after scanning the code, and a data monitoring field is used to monitor information such as a code scanning location and a code scanning time of the terminal.
Referring to fig. 9, as shown in fig. 9, a sixth embodiment of the information dissemination method according to the embodiment of the present application includes the following steps.
901. The first terminal enters the webpage interface through the code scanning two-dimensional code.
In this embodiment, the two-dimensional code itself includes network link information, i.e. UR L, after the first terminal scans the two-dimensional code to obtain UR L, the first terminal enters an H5 page through UR L, and the H5 page may be as shown in fig. 3 a.
902. The first terminal acquires the data monitoring field.
In this embodiment, when the first terminal scans the two-dimensional code, the first terminal may read tag information recorded in the two-dimensional code, where the tag information is used to record the location where the two-dimensional code is located, for example, the two-dimensional code is a two-dimensional code printed on a poster, a two-dimensional code shared through other terminals, or a two-dimensional code shared through a website, and the like, according to the tag information, the first terminal obtains a data monitoring field, where the first terminal scans the two-dimensional code, so as to enter an H5 interface.
Further, the data monitoring field may further indicate more contents, for example, that the first terminal is the second user who scans the two-dimensional code, so as to record the number of users who scan the two-dimensional code. Or the time when the two-dimensional code is scanned, etc.
Steps 903 to 904 can refer to steps 101 to 102 described above, and are not described herein again.
905. The first terminal adds the network link information, the data monitoring field and the configuration code to the two-dimensional code.
In this embodiment, the network link information is used to record UR L that can enter the H5 interface, the data monitoring field records at least one of a mode, a place, a number of times, and time of scanning the two-dimensional code by the first terminal, and the configuration code records first data acquired by the first terminal.
Step 906 to step 907 can refer to steps 104 to 105 described above, and are not described herein again.
908. And the second terminal acquires the network link information, the data monitoring field and the configuration code recorded in the two-dimensional code.
909. And the second terminal enters the first data acquisition interface according to the network link information.
In this embodiment, after scanning the two-dimensional code, the second terminal obtains the network link information, the data monitoring field, and the configuration code recorded in the two-dimensional code by decoding, where the second terminal accesses the first data obtaining interface, that is, the same H5 interface that the first terminal has accessed, through UR L provided by the network link information, and then through the configuration code, the second terminal can read the web page personalized interface preset by the first terminal, that is, the information of the first data, and through the data monitoring field, the second terminal can obtain at least one of the code scanning mode, the place, the number of times, and the time that the first terminal accesses the H5 interface.
The following steps 910 to 911 may refer to the above steps 107 to 108, which are not described herein again.
In this embodiment, the two-dimensional code records not only the configuration code generated by the first terminal, but also the network link information and the data monitoring field, so that the two-dimensional code is accompanied by a data statistics function, the url access data condition corresponding to the current first data can be continuously tracked, and more statistics functions are added to the two-dimensional code.
It should be noted that, the above embodiment is only described by interaction between two devices, namely, the first terminal and the second terminal, and further, the embodiment may further include interaction between more terminals, for example, the second terminal enters the H5 interface and edits the interface to obtain a second personalized web interface, and then generates the two-dimensional code in the same manner to share the two-dimensional code to the third terminal, and the third terminal shares the personality and the web interface generated by the third terminal to the fourth terminal in the same manner, and so on, thereby implementing propagation of the information propagation method provided by the embodiment of the present application between different terminals.
The above description is directed to the solutions provided in the embodiments of the present application. It will be appreciated that the computer device, in order to implement the above-described functions, comprises corresponding hardware structures and/or software modules for performing the respective functions. Those of skill in the art will readily appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
Described in terms of hardware structures, the method may be implemented by one entity device, may also be implemented by multiple entity devices together, and may also be a logic function module in one entity device, which is not specifically limited in this embodiment of the present application.
For example, the above methods may all be implemented by the computer device in fig. 10. Fig. 10 is a schematic hardware structure diagram of a computer device according to an embodiment of the present application. The computer device includes at least oneprocessor 1001, communication lines 1002,memory 1003 and at least onecommunication interface 1004.
Theprocessor 1001 may be a general-purpose Central Processing Unit (CPU), a microprocessor, an application-specific integrated circuit (server IC), or one or more ICs for controlling the execution of programs in accordance with the present disclosure.
Communication link 1002 may include a path to communicate information between the aforementioned components.
Thecommunication interface 1004 may be any device, such as a transceiver, for communicating with other devices or communication networks, such as ethernet, Radio Access Network (RAN), wireless local area networks (W L AN), etc.
Thememory 1003 may be, but is not limited to, a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, optical disk storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory may be separate and coupled to the processor via a communication link 1002. The memory may also be integral to the processor.
Thememory 1003 is used for storing computer-executable instructions for executing the present invention, and is controlled by theprocessor 1001. Theprocessor 1001 is configured to execute computer-executable instructions stored in thememory 1003, so as to implement the methods provided by the above-described embodiments of the present application.
Optionally, the computer-executable instructions in the embodiments of the present application may also be referred to as application program codes, which are not specifically limited in the embodiments of the present application.
In particular implementations,processor 1001 may include one or more CPUs such as CPU0 and CPU1 of fig. 10, for example, as one embodiment.
In particular implementations, a computer device may include multiple processors, such asprocessor 1001 andprocessor 1007 in fig. 10, as an example. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
In particular implementations, the computer device may also include, as an example, anoutput device 1005 and aninput device 1006, theoutput device 1005 and theprocessor 1001 may communicate to display information in a variety of ways.
The computer device may be a general purpose device or a special purpose device. In a specific implementation, the computer device may be a desktop computer, a laptop computer, a web server, a Personal Digital Assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, an embedded device, or a device with a similar structure as in fig. 10. The embodiment of the application does not limit the type of the computer equipment.
In the embodiment of the present application, the storage device may be divided into the functional units according to the above method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
For example, in the case where the respective functional units are divided in an integrated manner, fig. 11 shows a schematic diagram of an information dissemination device.
As shown in fig. 11, an information dissemination device provided by the embodiment of the present application includes:
anacquisition unit 1101, theacquisition unit 1101 configured to acquire first data;
aconversion unit 1102, where theconversion unit 1102 is configured to convert the first data acquired by theacquisition unit 1101 into a configuration code according to a preset rule;
an addingunit 1103, where the addingunit 1103 is configured to add the configuration code obtained by the convertingunit 1102 to a two-dimensional code;
a sendingunit 1104, where the sendingunit 1104 is configured to send the two-dimensional code to which the configuration code is added by the addingunit 1103 to a second terminal, so that the second terminal obtains the first data according to the two-dimensional code.
Optionally, thefirst conversion unit 1102 is further configured to:
the configuration code corresponding to the first data acquired by the acquiringunit 1101 is acquired according to a first corresponding relationship, where the first corresponding relationship is a corresponding relationship between the first data and the configuration code.
Optionally, if the first data is generated by editing by a user, the first obtainingunit 1101 is further configured to:
acquiring a data item selected by a user;
the data item is taken as the first data.
Optionally, if the first data is data generated by the first terminal itself, the obtainingunit 1101 is further configured to:
acquiring local parameters, wherein the local parameters can be acquired by the first terminal through a data interface of the first terminal;
and acquiring the first data according to the local parameters.
Optionally, if the local parameter includes geographic location information, the obtainingunit 1101 is further configured to:
acquiring an administrative unit where the current geographic position information is located;
and acquiring the map shape outline of the administrative unit as the first data.
Optionally, if the local parameter includes weather information, the obtainingunit 1101 is further configured to:
acquiring weather information of a current location;
and acquiring display information corresponding to the weather information as the first data according to a second corresponding relation, wherein the second corresponding relation comprises corresponding relations between different weather information and the display information.
Optionally, the obtainingunit 1101 is further configured to further include:
the display information is filled onto the map-shaped outline.
Optionally, the addingunit 1103 is further configured to:
and adding network link information and a data monitoring field into the two-dimensional code, wherein the network link information is used for enabling the first terminal and the second terminal to enter the first data acquisition interface, and the data monitoring field is used for recording at least one of the mode, time, place and times of the first terminal entering the first data acquisition interface.
In the case where the respective functional units are divided in an integrated manner, fig. 12 shows a schematic diagram of an information dissemination device.
As shown in fig. 12, an information dissemination device provided by the embodiment of the present application includes:
a first obtainingunit 1201, where the first obtainingunit 1201 is configured to obtain a two-dimensional code sent by a first terminal;
a second obtainingunit 1202, where the second obtainingunit 1202 is configured to obtain a configuration code recorded in the two-dimensional code obtained by the first obtainingunit 1201;
a third obtainingunit 1203, where the third obtainingunit 1203 is configured to obtain the first data from the configuration code obtained by the second obtainingunit 1202 according to a preset rule;
areading unit 1204, wherein thereading unit 1204 is configured to read the first data acquired by the third acquiringunit 1203.
Optionally, the third obtainingunit 1203 is further configured to:
the second terminal obtains the first data corresponding to the configuration code obtained by the second obtainingunit 1202 according to a first corresponding relationship, where the first corresponding relationship is a corresponding relationship between the configuration code and the first data.
Optionally, if network link information and a data monitoring field are further recorded in the two-dimensional code, thereading unit 1204 is further configured to:
entering the first data acquisition interface according to the network link information;
and acquiring at least one of the mode, time, place and frequency of the first terminal entering the first data acquisition interface according to the data monitoring field.
Further, an embodiment of the present invention also provides a computer storage medium, which includes instructions that, when executed on a computer device, cause the computer device to execute the above method.
For a detailed description of the program stored in the computer storage medium provided in the embodiments of the present application, reference may be made to the above embodiments, which are not described herein again.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.