CN110619193B - Method, device, server and storage medium for providing network pictures - Google Patents

Method, device, server and storage medium for providing network pictures Download PDF

Info

Publication number
CN110619193B
CN110619193B CN201910767774.XA CN201910767774A CN110619193B CN 110619193 B CN110619193 B CN 110619193B CN 201910767774 A CN201910767774 A CN 201910767774A CN 110619193 B CN110619193 B CN 110619193B
Authority
CN
China
Prior art keywords
network
network picture
picture
terminal
address
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
CN201910767774.XA
Other languages
Chinese (zh)
Other versions
CN110619193A (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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201910767774.XA priority Critical patent/CN110619193B/en
Publication of CN110619193A publication Critical patent/CN110619193A/en
Application granted granted Critical
Publication of CN110619193B publication Critical patent/CN110619193B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/12Payment architectures specially adapted for electronic shopping systems
    • G06Q20/123Shopping for digital content

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Software Systems (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Finance (AREA)
  • Multimedia (AREA)
  • Technology Law (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application is applicable to the technical field of computers, and provides a method for providing a network picture, which comprises the following steps: receiving link request information for accessing a first network picture sent by a terminal, and generating identification information of the terminal based on the link request information; generating a two-dimensional code based on the identification information, the virtual network address and the operation guide information of the terminal; synthesizing the two-dimensional code in a second network picture stored in advance, and sending the two-dimensional code to the terminal; and when the link request information which is sent again after the payment of the terminal based on the two-dimensional code is successful is received, sending a first network picture to the terminal. The method and the device can realize effective payment without registering and logging in by the user, and the virtual network address is adopted to ensure that the website before and after the payment does not change, so that the risk of picture cracking can be effectively avoided while the network picture browsing efficiency is improved, and the experience effect of the user is improved.

Description

Method, device, server and storage medium for providing network pictures
Technical Field
The present application belongs to the field of computer technologies, and in particular, to a method, an apparatus, a server, and a storage medium for providing a network picture.
Background
Pictures with practical value usually need to be made successfully by investing a large amount of manpower and material resources, such as a night-scene picture needing long-time exposure, a commercial picture which can be shot only by professional photographers needing a large amount of light arrangement and multi-angle debugging, and the like. Sometimes, a picture owner uploads a picture of the picture owner to a network to display the picture on the internet in a network picture mode, and the picture owner sets corresponding conditions when displaying the picture on the network in order to protect the labor achievement of the picture owner, for example, a user needs to register and log in and pay for purchase to preview the complete picture, so that the browsing efficiency of the picture is influenced, partial users give up purchasing, and the experience effect of the user is influenced. Meanwhile, the network picture with the fixed address is easy to crack at the front end, and the loss of the picture owner can be caused.
Disclosure of Invention
In view of this, embodiments of the present application provide a method, an apparatus, a server, and a storage medium for providing a network picture, so as to solve the problem in the prior art that some users do not want to leave related personal information when browsing and purchasing a network picture, but choose to forgo to continue purchasing due to potential security hazards of the network. Meanwhile, the risk that the network picture is cracked at the front end is avoided, and the rights and interests of the picture are protected.
A first aspect of an embodiment of the present application provides a method for providing a network picture, including:
when link request information which is sent by a terminal and used for requesting to access a first network picture is acquired, generating identification information of the terminal based on the link request information;
generating a two-dimensional code based on the identification information of the terminal, a preset virtual network address and preset operation guide information;
synthesizing the two-dimensional code in a second network picture stored in advance, and sending the two-dimensional code to the terminal;
and when link request information which is sent again by the terminal based on the successful payment of the two-dimensional code is received, sending the first network picture to the terminal.
Optionally, when acquiring link request information sent by a terminal and used for indicating that access to a first network picture is requested, generating identification information of the terminal based on the link request information includes:
acquiring link request information which is sent by a terminal and used for indicating that a first network picture is requested to be accessed;
and extracting preset identification information from the link request information, wherein the preset identification information is taken as the identification information of the terminal, and the preset identification information comprises an IP address, user agent information and/or browser cache information.
Optionally, before receiving link request information for accessing a first network picture sent by a terminal, and generating identification information of the terminal based on the link request information, the method includes:
acquiring the first network picture and the second network picture;
allocating the virtual network addresses to the first network picture and the second network picture respectively;
determining a storage address of the first network picture according to a predetermined first mapping relation, wherein the first mapping relation is a mapping relation between the virtual network address and the storage address of the first network picture;
and determining the storage address of the second network picture according to a predetermined second mapping relation, wherein the second mapping relation is a mapping relation between the virtual network address and the storage address of the second network picture.
Optionally, when receiving link request information that is sent again by the terminal after the payment based on the two-dimensional code is successful, sending the first network picture to the terminal includes:
acquiring the virtual network address when acquiring the link request information which is sent again after the terminal successfully pays based on the two-dimensional code;
determining a storage address of a first network picture corresponding to the virtual network address according to a predetermined first mapping relation;
and acquiring the first network picture, and sending the first network picture to the terminal through the virtual network address.
Optionally, the synthesizing the two-dimensional code into a second network picture stored in advance and sending the second network picture to the terminal includes:
determining to send a data type corresponding to the target picture based on a data type contained in a request header of the link request information;
and sending the second network picture containing the two-dimensional code to the terminal in a corresponding data type.
A second aspect of the embodiments of the present application provides an apparatus for providing a network picture, including:
the terminal comprises a first generation module, a second generation module and a third generation module, wherein the first generation module is used for generating identification information of the terminal based on link request information when the link request information which is sent by the terminal and used for requesting to access a first network picture is acquired;
the second generation module is used for generating a two-dimensional code based on the identification information of the terminal, a preset virtual network address and preset operation guide information;
the first sending module is used for synthesizing the two-dimensional code into a second network picture which is stored in advance and sending the second network picture to the terminal;
and the second sending module is used for sending the first network picture to the terminal when receiving the link request information which is sent again after the terminal successfully pays based on the two-dimensional code.
Optionally, the first generating module comprises:
the receiving unit is used for receiving link request information for accessing the first network picture, which is sent by the terminal;
and the extracting unit is used for extracting preset identification information from the link request information, the preset identification information is taken as the identification information of the terminal, and the preset identification information comprises an IP address, user agent information and/or browser cache information.
Optionally, the method further comprises:
the acquisition module is used for acquiring the first network picture and the second network picture;
the distribution module is used for distributing the virtual network addresses to the first network picture and the second network picture respectively;
a first determining module, configured to determine a storage address of the first network picture according to a predetermined first mapping relationship, where the first mapping relationship is a mapping relationship between the virtual network address and the storage address of the first network picture;
a second determining module, configured to determine a storage address of the second network picture according to a predetermined second mapping relationship, where the second mapping relationship is a mapping relationship between the virtual network address and the storage address of the second network picture.
A third aspect of the embodiments of the present application provides a server, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor, when executing the computer program, implements the steps of the method for providing a network picture according to any one of the above embodiments.
A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the method for providing a network picture according to any one of the embodiments.
Compared with the prior art, the embodiment of the application has the advantages that: when link request information which is sent by a terminal and used for indicating that a request for accessing a first network picture is obtained, identification information of the terminal is generated based on the link request information; generating a two-dimensional code based on the identification information of the terminal, a preset virtual network address and preset operation guide information; synthesizing the two-dimensional code in a pre-stored second network picture to obtain a target picture, wherein the second network picture comprises part of the first network picture; sending the target picture to the terminal; and when the link request information which is sent again after the information that the terminal pays successfully based on the two-dimensional code is obtained, sending the first network picture to the terminal. The method comprises the steps of generating identification information of a terminal through link request information sent by the terminal, judging the permission of the terminal for browsing a network picture, generating a two-dimensional code based on the identification information, a virtual network address and operation guide information of the terminal, sending a target picture synthesized with the two-dimensional code to the terminal for a user to scan and pay, effectively paying and obtaining corresponding picture browsing permission without registering and logging in the user, and effectively avoiding the risk of picture cracking while improving the browsing efficiency of the network picture and improving the experience effect of the user because the picture adopts the virtual network address to ensure that the website before and after payment does not change.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart of an implementation of a method for providing a network picture according to a first embodiment of the present application;
FIG. 2 is a flowchart illustrating an embodiment of S101 shown in FIG. 1;
fig. 3 is a flowchart of an implementation of a method for providing a network picture according to a second embodiment of the present application;
FIG. 4 is a functional block diagram of an apparatus for providing network pictures provided in the present application;
fig. 5 is a schematic structural diagram of a server provided in the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples. As shown in fig. 1, it is a flowchart of an implementation of a method for providing a network picture according to a first embodiment of the present application, and an execution subject of this embodiment is a server. The details are as follows:
s101, when link request information which is sent by a terminal and used for requesting to access a first network picture is acquired, identification information of the terminal is generated based on the link request information.
When a user accesses a network picture through a terminal, such as a mobile terminal of a mobile phone, an IPad and the like, or a computer and the like, if the picture is provided with an access authority, the user often needs to perform operation steps of registration, login and the like to acquire the browsing authority, the operation process is complicated, and part of users are easy to give up to continuously browsing the network picture due to potential safety hazards of the network.
In this embodiment, when obtaining the link request information sent by the terminal and used for indicating that a request for accessing the first network picture is made, the user does not need to perform operations such as registration and login, and the identification information of the terminal is directly generated according to the link request information sent by the terminal, and further, whether the terminal has the authority to access the first network picture can be determined according to the identification information of the terminal, and usually, the terminal does not have the authority to access the first network picture when accessing for the first time, obtains the second network picture from the storage address of the second network picture, generates the two-dimensional code according to the link request information, synthesizes the two-dimensional code in the second network picture, and sends the two-dimensional code to the terminal. Specifically, the first network picture is a complete network picture uploaded by a picture owner, and in this embodiment, identification information of a terminal is used as an identifier for temporarily marking user identity information.
Specifically, as shown in fig. 2, it is a flowchart of the specific implementation of S101 in fig. 1. As can be seen from fig. 2, S101 includes:
and S1011, acquiring the link request information which is sent by the terminal and used for indicating that the access to the first network picture is requested.
Specifically, the link request information is a network request data packet sent by the terminal to the virtual network address of the picture, and the IP address, user agent information (usergent), browser cache information (cookie), and the like can be extracted.
S1012, extracting preset identification information from the link request information, where the preset identification information is used as identification information of the terminal, and the preset identification information includes an IP address, user agent information (usergent), and/or browser cache information.
Specifically, the IP address and the user agent information (usergent) are usually fixed for a short time, and the browser cache information (cookie) may be lost, for example, the browser cache information (cookie) may be lost due to a browser crash of the terminal. Therefore, the identification information of the terminal is transient temporary identification information.
Further, an ID number may be temporarily assigned and recorded in the browser cache information (cookie) as the identification information of the terminal.
And S102, generating a two-dimensional code based on the identification information of the terminal, a preset virtual network address and preset operation guide information.
Specifically, a first mapping relationship exists between the virtual network address and a storage address of a first network picture, and a second mapping relationship exists between the virtual network address and a storage address of a second network picture; the operation guiding information includes operation steps for prompting the terminal to acquire the complete network picture, such as information for prompting the user to pay and the like. Specifically, the size of the two-dimensional code is dynamic with the size of the network picture, for example, in an embodiment, the size of the two-dimensional code is one third of the minimum side length of the network picture, and it can be understood that the experience effect of the user is affected when the size of the two-dimensional code is too small or too large.
S103, synthesizing the two-dimensional code into a second network picture stored in advance, and sending the second network picture to the terminal;
specifically, the second network picture is obtained after the first network picture is subjected to operations such as shielding processing or blurring processing, the first network picture and the second network picture are both pictures issued by a picture owner, and the first network picture is a complete network picture.
In an implementation manner, the storage address of the second network picture may be determined according to a predetermined second mapping relationship between the virtual network address and the storage address of the second network picture, the second network picture is obtained from the storage address of the second network picture, and the two-dimensional code is synthesized in the second network picture to obtain the target picture.
It should be noted that the second network picture and the first network picture have the same virtual network address.
In an optional implementation manner, the data type corresponding to the second network picture including the two-dimensional code is determined to be sent according to a data type (accept) included in a request header of the link request information.
For example, if the request header of the link request message contains a data type (accept) as: determining to send the target picture in a webpage data type if text/html; if the request header of the link request information contains a data type (accept) as follows: and determining to send the target picture by the picture data type.
Specifically, the data type of the target picture browsed by the terminal is determined according to the data type contained in the request header of the link request information, and the target picture is determined to be sent to the terminal in the corresponding data type according to the data type of the target picture browsed by the terminal.
In an implementation manner, the target picture is sent to the terminal in a corresponding picture type or a webpage type through the virtual network address.
For example, if it is determined that the terminal browses the target picture in a picture data type, the target picture is sent to the terminal in a picture data type through the virtual network address, and if it is determined that the terminal browses the target picture in a web page data type, the target picture is sent to the terminal in a web page data type through the virtual network address.
Optionally, the webpage includes a button for a refresh function implemented by the JS script.
And S104, when the link request information which is sent again after the payment of the terminal based on the two-dimensional code is successful is obtained, the first network picture is sent to the terminal.
It should be noted that when link request information that is sent again after the terminal successfully pays based on the two-dimensional code is obtained, the virtual network address is obtained, the storage address of the first network picture corresponding to the virtual network address is determined according to a predetermined first mapping relationship, the first network picture is obtained from the storage address of the first network picture, and the first network picture is sent to the terminal through the virtual network address, where the first mapping relationship is a mapping relationship between the virtual network address and the storage address of the first network picture.
It can be understood that after the payment of the terminal based on the two-dimensional code is successful, if the target picture is of a picture type, the access request is triggered by clicking a predetermined refresh button. Specifically, the predetermined refresh button may be a refresh button on browser software corresponding to a browsing page where the target picture is located, or may be a refresh button in a menu.
After receiving the access request, the server determines a storage address of the first network picture corresponding to the virtual network address according to the first mapping relation, acquires the first network picture from the storage address of the first network picture, and sends the first network picture to the terminal through the virtual network address.
Further, if the target picture is of a webpage type, the access request can be triggered by clicking to refresh the webpage.
After receiving the access request, the server determines a storage address of the first network picture corresponding to the virtual network address according to the first mapping relation, acquires the first network picture from the storage address of the first network picture, and sends the first network picture to the terminal through the virtual network address.
Optionally, the webpage includes a button with a refresh function implemented by the JS script, and the access request can be triggered by clicking the refresh button.
According to the embodiment, the method for providing the network picture comprises the steps that when link request information which is sent by a terminal and used for indicating that the first network picture is requested to be accessed is obtained, identification information of the terminal is generated based on the link request information; generating a two-dimensional code based on the identification information of the terminal, a preset virtual network address and preset operation guide information; synthesizing the two-dimensional code in a pre-stored second network picture, and sending the two-dimensional code to the terminal, wherein the second network picture comprises part of the first network picture; and when connection request information which is sent again by the terminal based on the two-dimensional code payment success is received, sending the first network picture to the terminal. The method comprises the steps of generating identification information of a terminal through link request information sent by the terminal, judging the permission of the terminal for browsing a network picture, generating a two-dimensional code based on the identification information, a virtual network address and operation guide information of the terminal, sending a second network picture synthesized with the two-dimensional code to the terminal for a user to scan the code, effectively paying and obtaining the corresponding picture browsing permission without registering and logging in the user, and effectively avoiding the risk of picture cracking while improving the browsing efficiency of the network picture because the picture adopts the virtual network address so that the website before and after payment does not change, and improving the experience effect of the user.
Fig. 3 is a flowchart illustrating an implementation of a method for providing a network picture according to a second embodiment of the present application. As shown in fig. 3, in this embodiment, compared with the embodiment shown in fig. 1, the implementation processes of S305-S309 are the same as the implementation processes of S101-S105, except that S301-S304 are included before S305. Specifically, the implementation process of S301 to S304 is detailed as follows:
s301, the first network picture and the second network picture are obtained.
Specifically, the first network picture and the second network picture uploaded by a picture owner are obtained, and the second network picture is a picture including a part of the first network picture.
S302, the virtual network addresses are respectively allocated to the first network picture and the second network picture.
Specifically, the virtual network addresses are predetermined, and when the first network picture and the second network picture uploaded by the picture owner are received, the same virtual network addresses are respectively allocated to the first network picture and the second network picture, so that the picture owner issues the second network picture through the virtual network addresses, and the first network picture can be displayed through the virtual network addresses.
S303, determining a storage address of the first network picture according to a predetermined first mapping relationship, where the first mapping relationship is a mapping relationship between the virtual network address and the storage address of the first network picture.
Specifically, a naming rule of a picture corresponding to a virtual network address and a naming rule of a first network picture are preset, a name of the virtual network picture is obtained according to the naming rule of the virtual network picture, a name of the first network picture is obtained according to the naming rule of the first network picture, and the first mapping relation is determined according to a corresponding relation between the name of the virtual network picture and the name of the first network picture.
S304, determining the storage address of the second network picture according to a predetermined second mapping relation, wherein the second mapping relation is the mapping relation between the virtual network address and the storage address of the second network picture.
Specifically, a naming rule of a picture corresponding to the virtual network address and a naming rule of a second network picture are preset, a name of the virtual network picture is obtained according to the naming rule of the virtual network picture, a name of the second network picture is obtained according to the naming rule of the second network picture, and the second mapping relation is determined according to a corresponding relation between the name of the virtual network picture and the name of the second network picture. In general, there is a certain correspondence between the name of the first network picture and the name of the second network picture, for example, the name of the first network picture is 1-1, and the name of the corresponding second network picture is 1-2.
The method for providing the network picture comprises the steps of receiving link request information for accessing the first network picture sent by a terminal, and generating identification information of the terminal based on the link request information; generating a two-dimensional code based on the identification information of the terminal, a preset virtual network address and preset operation guide information; synthesizing the two-dimensional code in a pre-stored second network picture, and sending the two-dimensional code to the terminal, wherein the second network picture comprises part of the first network picture; (ii) a And when the link request information which is sent again after the information that the terminal pays successfully based on the two-dimensional code is received, sending the first network picture to the terminal. The method comprises the steps of generating identification information of a terminal through link request information sent by the terminal, judging the permission of the terminal for browsing a network picture, generating a two-dimensional code based on the identification information, a virtual network address and operation guide information of the terminal, sending a second network picture synthesized with the two-dimensional code to the terminal for a user to scan the code, effectively paying and obtaining the corresponding picture browsing permission without registering and logging in the user, and effectively avoiding the risk of picture cracking while improving the browsing efficiency of the network picture because the picture adopts the virtual network address so that the website before and after payment does not change, thereby improving the experience effect of the user.
Fig. 4 is a functional module schematic diagram of an apparatus for providing a network picture provided by the present application. As shown in fig. 4, the apparatus 4 for providing a network picture according to this embodiment includes: a first generation module 410, a second generation module 420, an obtaining module 430, a sending module 440, and an obtaining module 450. Wherein the content of the first and second substances,
a first generating module 410, configured to, when link request information sent by a terminal and used for indicating that access to a first network picture is requested is acquired, generate identification information of the terminal based on the link request information; (ii) a
A second generating module 420, configured to generate a two-dimensional code based on the identification information of the terminal, a preset virtual network address, and preset operation guidance information;
the first sending module 430 is configured to synthesize the two-dimensional code in a second network picture stored in advance, and send the second network picture to the terminal;
the second sending module 440 is configured to send the first network picture to the terminal when receiving link request information that is sent again after the terminal successfully pays based on the two-dimensional code.
Preferably, the first generating module 410 comprises:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring link request information which is sent by a terminal and used for indicating that the terminal requests to access a first network picture;
and the extracting unit is used for extracting preset identification information from the link request information, the preset identification information is taken as the identification information of the terminal, and the preset identification information comprises an IP address, user agent information and/or browser cache information.
Preferably, the method further comprises the following steps:
the acquisition module is used for acquiring the first network picture and the second network picture;
the distribution module is used for distributing the virtual network addresses to the first network picture and the second network picture respectively;
a first determining module, configured to determine a storage address of the first network picture according to a predetermined first mapping relationship, where the first mapping relationship is a mapping relationship between the virtual network address and the storage address of the first network picture;
a second determining module, configured to determine a storage address of the second network picture according to a predetermined second mapping relationship, where the second mapping relationship is a mapping relationship between the virtual network address and the storage address of the second network picture.
Preferably, the acquisition module comprises:
the first acquisition unit is used for acquiring the virtual network address when acquiring the link request information which is sent again after the terminal successfully pays based on the two-dimensional code;
the first determining unit is used for determining a storage address of a first network picture corresponding to the virtual network address according to a first mapping relation determined in advance;
and the second acquisition unit is used for acquiring the first network picture and sending the first network picture to the terminal through the virtual network address.
Preferably, the second sending module 440 includes:
a second determining unit, configured to determine, based on a data type included in a request header of the link request information, a data type corresponding to sending the target picture;
and the sending unit is used for sending the target picture to the terminal in a corresponding data type.
Fig. 5 is a schematic structural diagram of a server provided in the present application. As shown in fig. 5, the server 5 of this embodiment includes: a processor 50, a memory 51 and a computer program 52 stored in said memory 51 and executable on said processor 50, such as a program providing a network picture. The processor 50, when executing the computer program 52, implements the steps in the above-mentioned embodiments of the method for providing a network picture, such as the steps 101 to 104 shown in fig. 1. Alternatively, the processor 50, when executing the computer program 52, implements the functions of the modules/units in the above-mentioned device embodiment for providing network pictures, such as the functions of the modules 410 to 440 shown in fig. 4.
Illustratively, the computer program 52 may be partitioned into one or more modules/units, which are stored in the memory 51 and executed by the processor 50 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 52 in the server 5. For example, the computer program 52 may be divided into a first generating module, a second generating module, a first sending module, and a second sending module (module in the virtual device), and the specific functions of each module are as follows:
the terminal comprises a first generation module, a second generation module and a third generation module, wherein the first generation module is used for generating identification information of the terminal based on link request information when the link request information which is sent by the terminal and used for requesting to access a first network picture is acquired;
the second generation module is used for generating a two-dimensional code based on the identification information of the terminal, a preset virtual network address and preset operation guide information;
the first sending module is used for synthesizing the two-dimensional code into a second network picture which is stored in advance and sending the second network picture to the terminal;
and the second sending module is used for sending the first network picture to the terminal when receiving the link request information which is sent again after the terminal successfully pays based on the two-dimensional code.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. 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 application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of communication units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one 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.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. . Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (9)

1. A method for providing a network picture, comprising:
when link request information which is sent by a terminal and used for requesting to access a first network picture is acquired, generating identification information of the terminal based on the link request information;
generating a two-dimensional code based on the identification information of the terminal, a preset virtual network address and preset operation guide information;
synthesizing the two-dimensional code in a second network picture stored in advance, and sending the two-dimensional code to the terminal; the second network picture and the first network picture have the same virtual network address; a first mapping relation exists between the virtual network address and the storage address of the first network picture, and a second mapping relation exists between the virtual network address and the storage address of the second network picture; the second network picture is obtained from a storage address of the second network picture, and the storage address of the second network picture is determined according to a predetermined second mapping relation between the virtual network address and the storage address of the second network picture;
when an access request sent again after the terminal successfully pays based on the two-dimensional code is obtained, the virtual network address is obtained;
determining a storage address of a first network picture corresponding to the virtual network address according to a predetermined first mapping relation;
and acquiring the first network picture, and sending the first network picture to the terminal through the virtual network address.
2. The method for providing a network picture according to claim 1, wherein the generating identification information of the terminal based on the link request information when acquiring the link request information sent by the terminal for indicating that access to the first network picture is requested comprises:
acquiring link request information which is sent by a terminal and used for indicating that a first network picture is requested to be accessed;
and extracting preset identification information from the link request information, wherein the preset identification information is taken as the identification information of the terminal, and the preset identification information comprises any one or at least two of an IP address, user agent information and browser cache information.
3. The method for providing a network picture according to claim 1, wherein before the generating identification information of the terminal based on the link request information when the link request information for requesting access to the first network picture sent by the terminal is acquired, the method comprises:
acquiring the first network picture and the second network picture;
allocating the virtual network addresses to the first network picture and the second network picture respectively;
determining a storage address of the first network picture according to a predetermined first mapping relation, wherein the first mapping relation is a mapping relation between the virtual network address and the storage address of the first network picture;
and determining the storage address of the second network picture according to a predetermined second mapping relation, wherein the second mapping relation is a mapping relation between the virtual network address and the storage address of the second network picture.
4. The method for providing a network picture according to claim 1, wherein the synthesizing the two-dimensional code into a second network picture stored in advance and sending the second network picture to the terminal comprises:
determining a data type corresponding to a target picture to be sent based on a data type contained in a request header of the link request information;
and sending the second network picture containing the two-dimensional code to the terminal in a corresponding data type.
5. An apparatus for providing a network picture, comprising:
the terminal comprises a first generation module, a second generation module and a third generation module, wherein the first generation module is used for generating identification information of the terminal based on link request information when the link request information which is sent by the terminal and used for requesting to access a first network picture is acquired;
the second generation module is used for generating a two-dimensional code based on the identification information of the terminal, a preset virtual network address and preset operation guide information;
the first sending module is used for synthesizing the two-dimensional code into a second network picture which is stored in advance and sending the second network picture to the terminal; the second network picture and the first network picture have the same virtual network address; a first mapping relation exists between the virtual network address and the storage address of the first network picture, and a second mapping relation exists between the virtual network address and the storage address of the second network picture; the second network picture is obtained from a storage address of the second network picture, and the storage address of the second network picture is determined according to a predetermined second mapping relation between the virtual network address and the storage address of the second network picture;
and the second sending module is used for obtaining the virtual network address when the terminal sends the access request again after the two-dimension code payment is successful, determining the storage address of the first network picture corresponding to the virtual network address according to a predetermined first mapping relation, obtaining the first network picture, and sending the first network picture to the terminal through the virtual network address.
6. The apparatus for providing network pictures according to claim 5, wherein the first generating module comprises:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring link request information which is sent by a terminal and used for indicating that the terminal requests to access a first network picture;
and the extracting unit is used for extracting preset identification information from the link request information, the preset identification information is taken as the identification information of the terminal, and the preset identification information comprises an IP address, user agent information and/or browser cache information.
7. The apparatus for providing network pictures according to claim 5, further comprising:
the acquisition module is used for acquiring the first network picture and the second network picture;
the distribution module is used for distributing the virtual network addresses to the first network picture and the second network picture respectively;
a first determining module, configured to determine a storage address of the first network picture according to a predetermined first mapping relationship, where the first mapping relationship is a mapping relationship between the virtual network address and the storage address of the first network picture;
a second determining module, configured to determine a storage address of the second network picture according to a predetermined second mapping relationship, where the second mapping relationship is a mapping relationship between the virtual network address and the storage address of the second network picture.
8. A server comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor when executing the computer program implements the steps of the method for providing a network picture according to any one of claims 1 to 4.
9. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for providing a network picture according to any one of claims 1 to 4.
CN201910767774.XA 2019-08-20 2019-08-20 Method, device, server and storage medium for providing network pictures Active CN110619193B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910767774.XA CN110619193B (en) 2019-08-20 2019-08-20 Method, device, server and storage medium for providing network pictures

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910767774.XA CN110619193B (en) 2019-08-20 2019-08-20 Method, device, server and storage medium for providing network pictures

Publications (2)

Publication Number Publication Date
CN110619193A CN110619193A (en) 2019-12-27
CN110619193B true CN110619193B (en) 2022-02-15

Family

ID=68922418

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910767774.XA Active CN110619193B (en) 2019-08-20 2019-08-20 Method, device, server and storage medium for providing network pictures

Country Status (1)

Country Link
CN (1) CN110619193B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302548A (en) * 2016-10-18 2017-01-04 许遥 Distinguish user right to provide the mechanism of map network image data service
CN108933814A (en) * 2018-05-31 2018-12-04 康键信息技术(深圳)有限公司 electronic device, image processing method and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9854270B2 (en) * 2013-12-19 2017-12-26 Qualcomm Incorporated Device and method for scalable coding of video information
CN109936504B (en) * 2019-02-21 2021-10-26 Oppo广东移动通信有限公司 Picture display method and device, server equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302548A (en) * 2016-10-18 2017-01-04 许遥 Distinguish user right to provide the mechanism of map network image data service
CN108933814A (en) * 2018-05-31 2018-12-04 康键信息技术(深圳)有限公司 electronic device, image processing method and storage medium

Also Published As

Publication number Publication date
CN110619193A (en) 2019-12-27

Similar Documents

Publication Publication Date Title
CN103546498B (en) It is a kind of that the method and apparatus accessing webpage is provided for mobile terminal
US8671342B2 (en) Desired font rendering
CN104410546B (en) The method of testing and device of real time processing system
JP2019503533A (en) Information processing method, server, and computer storage medium
CN104219230B (en) Identify method and the device of malicious websites
CN108959619A (en) Content screen method, user equipment, storage medium and device
CN103973635A (en) Page access control method, and related device and system
CN109615415B (en) Advertisement previewing method and device
CN106686151A (en) IP address obtaining method and device
CN109302493B (en) User information sharing method and device, electronic equipment and storage medium
CN114386059A (en) Webpage text confusion anti-crawler method and device, electronic equipment and storage medium
CN106411978B (en) Resource caching method and device
CN110619193B (en) Method, device, server and storage medium for providing network pictures
US20160343029A1 (en) Content presentation based on access point location
CN109325192A (en) A kind of method and apparatus of the anti-shielding of advertisement
CN111339461A (en) Page access method of application program and related product
CN114022590B (en) Picture rendering method and related equipment
WO2020026011A1 (en) Material docking method and apparatus, and device/terminal/server and computer-readable storage medium
KR20100022281A (en) Wireless internet service system for blocking access to harmful site and method thereof
CN108255843B (en) Method, device and equipment for loading cookie mapping script
JP2016071404A (en) Information processing system, information processing method, and information processing program
CN107634976A (en) Information push, acquisition, advertisement pushing, acquisition methods and device
CN105530260B (en) A kind of setting method and device of the safety identification information for website
CN104468475A (en) Information processing method and electronic equipment
KR101605377B1 (en) Virtual browsing method using application and virtual browsing server

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