CN108121811B - Webpage content adaptation method, system, device and storage medium - Google Patents

Webpage content adaptation method, system, device and storage medium Download PDF

Info

Publication number
CN108121811B
CN108121811B CN201711444933.XA CN201711444933A CN108121811B CN 108121811 B CN108121811 B CN 108121811B CN 201711444933 A CN201711444933 A CN 201711444933A CN 108121811 B CN108121811 B CN 108121811B
Authority
CN
China
Prior art keywords
user
address
url address
url
operation log
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
CN201711444933.XA
Other languages
Chinese (zh)
Other versions
CN108121811A (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.)
Shenzhen Weizhong Credit Technology Co ltd
Original Assignee
Shenzhen Weizhong Credit Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Weizhong Credit Technology Co ltd filed Critical Shenzhen Weizhong Credit Technology Co ltd
Priority to CN201711444933.XA priority Critical patent/CN108121811B/en
Publication of CN108121811A publication Critical patent/CN108121811A/en
Application granted granted Critical
Publication of CN108121811B publication Critical patent/CN108121811B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries

Abstract

The embodiment of the invention discloses a webpage content adaptation method and a webpage content adaptation system, which are used for displaying an adapted URL address file to a user according to a geographic position in a user history operation log and a URL address corresponding to the geographic position, so that the use experience of the user is improved. The method provided by the embodiment of the invention comprises the following steps: obtaining login information of a user, wherein the login information at least comprises a user name and a current IP address; according to the current IP address, inquiring a first geographic position corresponding to the current IP address, and determining a first URL (uniform resource locator) address corresponding to the first geographic position according to the first geographic position; inquiring a historical operation log of a user according to the user name, and judging whether a first geographical position and a first URL address exist in the historical operation log; if not, displaying an adaptive URL address file to a user according to the geographic position and the URL address in the historical operation log; and if so, displaying the first URL address file to the user.

Description

Webpage content adaptation method, system, device and storage medium
Technical Field
The invention relates to the field of electronic tax, in particular to a method, a system, a device and a storage medium for adapting webpage content.
Background
The electronic tax is an electronic tax organization which can complete various management and service functions of the traditional tax bureau and provide more convenient, faster and safer services for taxpayers by utilizing an electronic information technology, particularly an internet technology, and the electronic tax is more and more liked by people along with the rapid development of the internet technology.
When the current electronic tax business system provides service for users, different branch web page contents can be adapted to different cities according to different requirements, namely, different branch main pages of the cities are displayed for the users when the users log in the system. The existing adaptation method is to automatically switch to a main page of the web content corresponding to the current geographical position according to the information of the geographical position where the current user is located. For example, when a user logs in Guangzhou, the Guangzhou outstation master page is adapted, and when the user logs in Shenzhen, the user automatically switches to the Shenzhen outstation master page.
However, this method has the following disadvantages: for example, in some cases, a user only temporarily passes through a place, and at this time, the user automatically switches to the home page of the place when logging in, but actually, the user does not want to access the web content corresponding to the place, but only accesses the web content frequently accessed as usual, so the existing method for adapting the web content causes trouble in use experience to the user, and the use experience of the user is reduced.
Disclosure of Invention
The embodiment of the invention provides a method, a system, a device and a storage medium for adapting webpage content, which are used for displaying an adapted URL address file to a user according to a geographic position in a user history operation log and a URL address corresponding to the geographic position, so that the use experience of the user is improved.
The invention provides a webpage content adaptation method in a first aspect, which comprises the following steps of;
obtaining login information of a user, wherein the login information at least comprises a user name and a current IP address;
according to the current IP address, inquiring a first geographic position corresponding to the current IP address, and determining a first URL (uniform resource locator) address corresponding to the first geographic position according to the first geographic position;
inquiring a historical operation log of a user according to the user name, and judging whether a first geographical position and a first URL address exist in the historical operation log;
if not, displaying an adaptive URL address file to a user according to the geographic position and the URL address in the historical operation log;
and if so, displaying the first URL address file to the user.
Optionally, displaying an adapted URL address file to the user according to the geographic location and the URL address in the history operation log, including:
counting a second geographical position with the most user access times in the historical operation log, and determining a second URL (uniform resource locator) address corresponding to the second geographical position;
the second URL address file is displayed to the user.
Optionally, displaying an adapted URL address file to the user according to the geographic location and the URL address in the history operation log, including:
determining a third geographical position which is visited by the user in the historical operation log recently, and determining a third URL (uniform resource locator) address corresponding to the third geographical position;
the third URL address file is displayed to the user.
Optionally, querying a first geographic location corresponding to the current IP address according to the current IP address includes:
and calling a global IP address geographical position information database through an API (application programming interface), and inquiring a first geographical position corresponding to the current IP address.
Optionally, the historical operation log includes:
the user name, the operation position, the operation time and the URL address corresponding to the operation position.
The second aspect of the present invention provides a web content adaptation system, including:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring login information of a user, and the login information at least comprises a user name and a current IP address;
the query unit is used for querying a first geographic position corresponding to the current IP address according to the current IP address and determining a first URL (uniform resource locator) address corresponding to the first geographic position according to the first geographic position;
the content matching unit is used for inquiring the historical operation log of the user according to the user name and judging whether the historical operation log has a first geographical position and a first URL (uniform resource locator) address or not;
the first content display unit is used for displaying the adaptive URL address file to the user according to the geographical position and the URL address in the historical operation log when the first geographical position and the first URL address do not exist;
and the second content display unit is used for displaying the first URL address file to the user when the first geographic position and the first URL address exist.
Optionally, the first content display unit includes:
the statistical module is used for counting a second geographical position with the most user access times in the historical operation log and determining a second URL (uniform resource locator) address corresponding to the second geographical position;
and the first display module is used for displaying the second URL address file to the user.
Optionally, the first content display unit includes:
the determining module is used for determining a third geographic position which is accessed by the user for one time recently in the historical operation log, and determining a third URL address corresponding to the third geographic position;
and the second display module is used for displaying the third URL address file to the user.
The invention also provides a computer arrangement comprising a processor which, when executing a computer program stored on a memory, is adapted to carry out the steps of:
obtaining login information of a user, wherein the login information at least comprises a user name and a current IP address;
according to the current IP address, inquiring a first geographic position corresponding to the current IP address, and determining a first URL (uniform resource locator) address corresponding to the first geographic position according to the first geographic position;
inquiring a historical operation log of a user according to the user name, and judging whether a first geographical position and a first URL address exist in the historical operation log;
if not, displaying an adaptive URL address file to a user according to the geographic position and the URL address in the historical operation log;
and if so, displaying the first URL address file to the user.
The present invention also provides a readable storage medium having stored thereon a computer program for, when executed, performing the steps of:
obtaining login information of a user, wherein the login information at least comprises a user name and a current IP address;
according to the current IP address, inquiring a first geographic position corresponding to the current IP address, and determining a first URL (uniform resource locator) address corresponding to the first geographic position according to the first geographic position;
inquiring a historical operation log of a user according to the user name, and judging whether a first geographical position and a first URL address exist in the historical operation log;
if not, displaying an adaptive URL address file to a user according to the geographic position and the URL address in the historical operation log;
and if so, displaying the first URL address file to the user.
According to the technical scheme, the embodiment of the invention has the following advantages:
the method comprises the steps of firstly obtaining a user name and an IP address, inquiring a corresponding first geographic position through the IP address, inquiring a first URL address corresponding to the first geographic position according to the first geographic position, inquiring a historical operation log of a user according to the user name, judging whether the first geographic position and the first URL address exist in the historical operation log, and displaying an adaptive URL address file to the user according to the historical operation log of the user when the first geographic position and the first URL address do not exist in the historical operation log. When the first geographical position and the first URL address do not exist in the historical operation log, the invention displays the adaptive URL address file to the user through the historical operation log of the user, namely displays the URL address file which is visited once to the user according to the existing access record of the user, thereby avoiding directly displaying a new URL address file to the user when the user is positioned at a new geographical position and improving the use experience of the user.
Drawings
FIG. 1 is a schematic diagram of an embodiment of a method for adapting web page content according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of another embodiment of a method for adapting web page content according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of another embodiment of a method for adapting web page content according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an embodiment of a system for adapting web page content according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of another embodiment of a system for adaptive webpage adaptation according to an embodiment of the present invention;
fig. 6 is a schematic diagram of another embodiment of a web page adaptive system according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a method, a system, a device and a storage medium for adapting webpage content, which are used for displaying an adapted URL address file to a user according to a geographic position in a user history operation log and a URL address corresponding to the geographic position, so that the use experience of the user is improved.
For understanding, a method for adapting web page content in the embodiment of the present invention is described in detail below, and referring to fig. 1, a schematic diagram of an embodiment of a method for adapting web page content in the embodiment of the present invention includes:
101. obtaining login information of a user, wherein the login information at least comprises a user name and a current IP address;
it is easy to understand that when a user logs in a system (such as a tax system and an accounting system), an information manager generally needs to input personal login information, such as a user name and a password, in order to manage user information; the user name may be a mailbox account, a QQ account, a wechat account, or a personal registered user name of the user, and the password may be a static password or a dynamic password, where the form of the user name and the password is not particularly limited.
While the business system in this embodiment provides system services, in order to implement personalized and differentiated services in different regions, a differentiated partition business system is provided for users, for example, a guangzhou city partition business system is provided for users in guangzhou, a shenzhen city partition business system is provided for users in shenzhen, and one user can log in business systems in different cities by using own login information, so as to implement diversified business services.
Therefore, in this embodiment, the web content adaptation system needs to acquire login information of a user when the user logs in, and displays adapted web content to the user according to the login information of the user, specifically, the web content adaptation system acquires a geographic location of the user according to an IP address, so that in this embodiment, the web content adaptation system needs to acquire a user name and an IP address in the login information of the user, it should be noted that the login information of the user may include, in addition to the user name and the IP address, a mobile phone number, an authentication code, and the like, and the content in the login information is not specifically limited here.
102. According to the current IP address, inquiring a first geographic position corresponding to the current IP address, and determining a first URL (uniform resource locator) address corresponding to the first geographic position according to the first geographic position;
after the web page content adaptation system acquires the current IP address of the user, the web page content adaptation system can call a global IP address geographic position information database through an API interface, query a first geographic position corresponding to the IP address according to the current IP address, and query a URL address corresponding to the first geographic position in a service system. Each file on the internet has a unique URL containing information indicating the location of the file and how the browser should handle it, so the home page of each partitioned service system in the service system corresponds to a URL address.
Therefore, after the web page content adaptation system queries the first geographic location according to the IP address, the URL address of the home page of the partition service system corresponding to the first geographic location can be queried in the service system according to the geographic location.
103. Inquiring a historical operation log of a user according to the user name, judging whether a first geographical position and a first URL (uniform resource locator) address exist in the historical operation log, if not, executing a step 104, and if so, executing a step 105;
after acquiring the user name in the user login information, the web content adaptation system may query the historical operation log of the user according to the user name, further determine whether the historical operation log has the first geographic location and the first URL address, execute step 105 when the historical operation log has the first geographic location and the first URL address, and execute step 104 when the historical operation log does not have the first address geographic location and the first URL address.
Specifically, the historical operation log of the user includes the operation condition of the user on the service system in a certain time period, and the specific content in the historical operation log includes a user name, an operation position, access content, and operation time, which are specifically shown in the following table:
Figure BDA0001527368610000061
TABLE 1
104. Displaying an adapted URL address file to a user according to the geographic position and the URL address in the historical operation log;
when the first geographic position and the first URL address do not exist in the historical operation log of the user, the webpage content adaptation system displays the adapted URL address file to the user according to the geographic position and the URL address in the historical operation log, the phenomenon that the webpage content adaptation system directly displays the first URL address file to the user when the first geographic position and the first URL address do not exist in the historical operation log of the user is avoided, and the use experience of the user is improved.
Specifically, how the web page content adaptation system displays the adapted URL address file to the user according to the geographic location and the URL address in the history operation log is described in detail in the following embodiments.
105. The first URL address file is displayed to the user.
When the first geographic position and the first URL address exist in the historical operation log of the user, the first URL address file is a partitioned service system frequently visited by the user, and the first URL address file is directly displayed to the user.
The method comprises the steps of firstly obtaining a user name and an IP address, inquiring a corresponding first geographic position through the IP address, inquiring a first URL address corresponding to the first geographic position according to the first geographic position, inquiring a historical operation log of a user according to the user name, judging whether the first geographic position and the first URL address exist in the historical operation log, and displaying an adaptive URL address file to the user according to the historical operation log of the user when the first geographic position and the first URL address do not exist in the historical operation log. When the first geographical position and the first URL address do not exist in the historical operation log, the invention displays the adaptive URL address file to the user through the historical operation log of the user, namely displays the URL address file which is visited once to the user according to the existing access record of the user, thereby avoiding directly displaying a new URL address file to the user when the user is positioned at a new geographical position and improving the use experience of the user.
Referring to fig. 2, a detailed description will be given below of how a web content adaptation system displays an adapted URL address file to a user according to a user history operation log, based on the embodiment described in fig. 1, where another embodiment of the web content adaptation method in the present invention includes:
201. obtaining login information of a user, wherein the login information at least comprises a user name and a current IP address;
202. according to the current IP address, inquiring a first geographic position corresponding to the current IP address, and determining a first URL (uniform resource locator) address corresponding to the first geographic position according to the first geographic position;
203. querying a historical operation log of a user according to the user name, and judging whether a first geographical position and a first URL (uniform resource locator) address exist in the historical operation log, if not, executing a step 204, and if so, executing a step 205;
it should be noted that steps 201 to 203 in this embodiment are similar to steps 101 to 103 in the embodiment described in fig. 1, and are not described again here.
204. Counting a second geographical position with the maximum user access times in the historical operation log, determining a second URL (uniform resource locator) address corresponding to the second geographical position, and displaying a second URL address file to the user;
when the first geographic position and the first URL address do not exist in the historical operation log of the user, the webpage content adaptation system directly inquires the historical operation log of the user, counts the geographic positions visited by the user in the historical operation log to obtain a second geographic position with the largest number of times of visiting the user, acquires a second URL address file corresponding to the second geographic position from the service system, and displays the second URL address file to the user.
Specifically, as shown in table 1, if the first geographic location of the user is a middle mountain, and the URL addresses corresponding to the middle mountain are http:// www.vzoom.com/zoom-comm/platform/biggerservice. html, and the web content adaptation system does not query the URL addresses corresponding to the middle mountain and the middle mountain in table 1, then statistics is respectively performed on the geographic locations visited by the user in table 1, and a city with the most number of times of visiting the geographic locations, that is, Shenzhen, is obtained, and the web content adaptation system queries the service system for the top page URL address file of the Shenzhen partition service system, and displays the top page URL address file of the Shenzhen partition service system to the user.
It is understood that table 1 is only an example of the user history operation log in the embodiment, and does not specifically limit the content of the user history operation log.
205. The first URL address file is displayed to the user.
It should be noted that step 205 in this embodiment is similar to step 105 in the embodiment described in fig. 1, and is not described herein again.
The method comprises the steps of firstly obtaining a user name and an IP address, inquiring a corresponding first geographic position through the IP address, inquiring a first URL address corresponding to the first geographic position according to the first geographic position, inquiring a historical operation log of a user according to the user name, judging whether the first geographic position and the first URL address exist in the historical operation log, and displaying an adaptive URL address file to the user according to the historical operation log of the user when the first geographic position and the first URL address do not exist in the historical operation log. When the first geographical position and the first URL address do not exist in the historical operation log, the invention displays the adaptive URL address file to the user through the historical operation log of the user, namely displays the URL address file which is visited once to the user according to the existing access record of the user, thereby avoiding directly displaying a new URL address file to the user when the user is positioned at a new geographical position and improving the use experience of the user.
Secondly, the embodiment of the invention increases the diversity of the embodiment of the invention for the target address file of the user according to the URL address corresponding to the geographical position with the most user access times in the user historical operation log.
Referring to fig. 3, the following describes in detail how the content adaptation system displays an adapted URL address file to a user according to a user history operation log, based on the embodiment described in fig. 1, and another embodiment of the content adaptation method in the present invention includes:
301. obtaining login information of a user, wherein the login information at least comprises a user name and a current IP address;
302. according to the current IP address, inquiring a first geographic position corresponding to the current IP address, and determining a first URL (uniform resource locator) address corresponding to the first geographic position according to the first geographic position;
303. inquiring a historical operation log of a user according to the user name, judging whether a first geographical position and a first URL (uniform resource locator) address exist in the historical operation log, if not, executing a step 304, and if so, executing a step 305;
it should be noted that steps 301 to 303 in this embodiment are similar to steps 101 to 103 in the embodiment described in fig. 1, and are not described again here.
304. Determining a third geographical position which is accessed by the user in the historical operation log most recently and a third URL address corresponding to the third geographical position, and displaying a third URL address file to the user;
when the first geographic location and the first URL address do not exist in the historical operation log of the user, the web content adaptation system may determine, from the historical operation log of the user, third geographic location information that the user has visited last time and a third URL address corresponding to the third geographic location, and display a third URL address file to the user.
Specifically, as shown in table 1, when the first geographic location is middle mountain and the URL address corresponding to the middle mountain does not exist in table 1, the web content adaptation system may determine a third geographical location that the user visited last time and a third URL address corresponding to the third geographical location in table 1, the geographic location that the user accessed last time (i.e., 2017-12-12-09:45:12) as recorded in Table 1 is Shenzhen and the URL address accessed is http: html www.vzoom.com/zoom-comm/platform/identification. html, the webpage content adaptation system can display the webpage address in the Shenzhen partition system as http: html, the URL address corresponding to the home page in the partition service system corresponding to shenzhen can be inquired through the service system, and the URL address file corresponding to the home page in the partition service system corresponding to shenzhen is displayed to the user.
305. The first URL address file is displayed to the user.
It should be noted that step 305 in this embodiment is similar to step 105 in the embodiment described in fig. 1, and is not described herein again.
The method comprises the steps of firstly obtaining a user name and an IP address, inquiring a corresponding first geographic position through the IP address, inquiring a first URL address corresponding to the first geographic position according to the first geographic position, inquiring a historical operation log of a user according to the user name, judging whether the first geographic position and the first URL address exist in the historical operation log, and displaying an adaptive URL address file to the user according to the historical operation log of the user when the first geographic position and the first URL address do not exist in the historical operation log. When the first geographical position and the first URL address do not exist in the historical operation log, the invention displays the adaptive URL address file to the user through the historical operation log of the user, namely displays the URL address file which is visited once to the user according to the existing access record of the user, thereby avoiding directly displaying a new URL address file to the user when the user is positioned at a new geographical position and improving the use experience of the user.
Secondly, the embodiment of the invention increases the diversity of the embodiment of the invention for the target address file of the user according to the URL address corresponding to the geographical position which is accessed by the user in the historical operation log for the last time.
In the above description of the method for adapting web page content according to the present invention, the following description of the system for adapting web page content according to the embodiment of the present invention refers to fig. 4, and the system for adapting web page content according to the embodiment of the present invention includes:
an obtaining unit 401, configured to obtain login information of a user, where the login information at least includes a user name and a current IP address;
a query unit 402, configured to query a first geographic location corresponding to a current IP address according to the current IP address, and determine a first URL address corresponding to the first geographic location according to the first geographic location;
a content matching unit 403, configured to query a historical operation log of a user according to a user name, and determine whether a first geographic location and a first URL address exist in the historical operation log;
a first content display unit 404, configured to display an adapted URL address file to a user according to a geographic location and a URL address in a history operation log when the first geographic location and the first URL address do not exist;
and a second content display unit 405, configured to display the first URL address file to the user when the first geographic location and the first URL address exist.
It should be noted that the functions of the units in the embodiment of the present invention are similar to the functions of the web content adaptation system in the embodiment described in fig. 1, and are not described herein again.
The method comprises the steps of firstly obtaining a user name and an IP address through an obtaining unit 401, inquiring a first geographic position corresponding to the IP address through an inquiring unit 402, inquiring a first URL address corresponding to the first geographic position according to the first geographic position, inquiring a historical operation log of a user according to the user name, judging whether the first geographic position and the first URL address exist in the historical operation log, and displaying an adaptive URL address file to the user through a first content display unit 404 according to the historical operation log of the user when the first geographic position and the first URL address do not exist in the historical operation log. When the first geographical position and the first URL address do not exist in the historical operation log, the invention displays the adaptive URL address file to the user through the historical operation log of the user, namely displays the URL address file which is visited once to the user according to the existing access record of the user, thereby avoiding directly displaying a new URL address file to the user when the user is positioned at a new geographical position and improving the use experience of the user.
Referring to fig. 5, the following describes in detail a web content adaptation system according to an embodiment of the present invention based on the embodiment described in fig. 4, where another embodiment of the web content adaptation system according to the embodiment of the present invention includes:
an obtaining unit 501, configured to obtain login information of a user, where the login information at least includes a user name and a current IP address;
a query unit 502, configured to query a first geographic location corresponding to a current IP address according to the current IP address, and determine a first URL address corresponding to the first geographic location according to the first geographic location;
the content matching unit 503 is configured to query a historical operation log of the user according to the user name, and determine whether a first geographic location and a first URL address exist in the historical operation log;
a first content display unit 504, configured to display an adapted URL address file to a user according to a geographic location and a URL address in a history operation log when the first geographic location and the first URL address do not exist;
and a second content display unit 505, configured to display the first URL address file to the user when the first geographic location and the first URL address exist.
Preferably, the first content display unit 504 includes:
the counting module 5041 is configured to count the second geographic location where the user has the most number of accesses in the historical operation log and the second URL address corresponding to the second geographic location;
a first display module 5042, configured to display the second URL address file to the user.
It should be noted that the functions of each unit and each module in this embodiment are similar to the functions of the web content adaptation system in the embodiment described in fig. 2, and are not described again here.
The embodiment of the invention firstly obtains a user name and an IP address through an obtaining unit 501, and inquires a corresponding first geographic position of the IP address through an inquiring unit 502, inquires a first URL address corresponding to the first geographic position according to the first geographic position, inquires a historical operation log of a user according to the user name, judges whether the first geographic position and the first URL address exist in the historical operation log, and displays an adaptive URL address file to the user through a first content display unit 504 according to the historical operation log of the user when the first geographic position and the first URL address do not exist in the historical operation log. When the first geographical position and the first URL address do not exist in the historical operation log, the invention displays the adaptive URL address file to the user through the historical operation log of the user, namely displays the URL address file which is visited once to the user according to the existing access record of the user, thereby avoiding directly displaying a new URL address file to the user when the user is positioned at a new geographical position and improving the use experience of the user.
Secondly, in the embodiment of the invention, the URL address corresponding to the geographical position with the largest number of times of user access in the user historical operation log is counted according to the counting module 5041, so that the diversity of the embodiment of the invention is increased for the target address file of the user.
Referring to fig. 6, the following describes in detail a web content adaptation system according to an embodiment of the present invention based on the system described in fig. 4, where another embodiment of the web content adaptation system according to the embodiment of the present invention includes:
an obtaining unit 601, configured to obtain login information of a user, where the login information at least includes a user name and a current IP address;
the query unit 602 is configured to query a first geographic location corresponding to a current IP address according to the current IP address, and determine a first URL address corresponding to the first geographic location according to the first geographic location;
the content matching unit 603 is configured to query a historical operation log of the user according to the user name, and determine whether a first geographic location and a first URL address exist in the historical operation log;
a first content display unit 604, configured to display an adapted URL address file to a user according to a geographic location and a URL address in a history operation log when the first geographic location and the first URL address do not exist;
the second content display unit 605 is configured to display the first URL address file to the user when the first geographic location and the first URL address exist.
Preferably, the first content display unit 604 includes:
a determining module 6041, configured to determine a third geographic location in the history operation log where the user has visited once recently and a third URL address corresponding to the third geographic location;
and a second display module 6042, configured to display the third URL address file to the user.
It should be noted that the functions of the units and the modules in this embodiment are similar to the functions of the web content adaptation system in the embodiment described in fig. 3, and are not described herein again.
The embodiment of the invention firstly obtains a user name and an IP address through an obtaining unit 601, and inquires a corresponding first geographic position of the IP address through an inquiring unit 602, inquires a first URL address corresponding to the first geographic position according to the first geographic position, inquires a historical operation log of a user according to the user name, judges whether the first geographic position and the first URL address exist in the historical operation log, and displays an adaptive URL address file to the user through a first content display unit 604 according to the historical operation log of the user when the first geographic position and the first URL address do not exist in the historical operation log. When the first geographical position and the first URL address do not exist in the historical operation log, the invention displays the adaptive URL address file to the user through the historical operation log of the user, namely displays the URL address file which is visited once to the user according to the existing access record of the user, thereby avoiding directly displaying a new URL address file to the user when the user is positioned at a new geographical position and improving the use experience of the user.
Secondly, in the embodiment of the present invention, the URL address corresponding to the geographical location that the user has visited once most recently in the user history operation log is determined by the determining module 6041, which is a target address file of the user, and the diversity of the embodiment of the present invention is increased.
The web content adaptation system in the embodiment of the present invention is described above from the perspective of the modular functional entity, and the computer apparatus in the embodiment of the present invention is described below from the perspective of hardware processing:
the computer device is used for realizing the functions of the webpage content adaptation system, and one embodiment of the computer device in the embodiment of the invention comprises the following steps:
a processor and a memory;
the memory is used for storing the computer program, and the processor is used for realizing the following steps when executing the computer program stored in the memory:
obtaining login information of a user, wherein the login information at least comprises a user name and a current IP address;
according to the current IP address, inquiring a first geographic position corresponding to the current IP address, and determining a first URL (uniform resource locator) address corresponding to the first geographic position according to the first geographic position;
inquiring a historical operation log of a user according to the user name, and judging whether a first geographical position and a first URL address exist in the historical operation log;
if not, displaying an adaptive URL address file to a user according to the geographic position and the URL address in the historical operation log;
and if so, displaying the first URL address file to the user.
In some embodiments of the present invention, the processor may be further configured to:
counting a second geographical position with the most user access times in the historical operation log and a second URL (uniform resource locator) address corresponding to the second geographical position;
the second URL address file is displayed to the user.
In some embodiments of the present invention, the processor may be further configured to:
determining a third geographical position which is accessed by a user in the historical operation log most recently and a third URL address corresponding to the third geographical position;
the third URL address file is displayed to the user.
In some embodiments of the present invention, the processor may be further configured to:
and calling a global IP address geographical position information database through an API (application programming interface), and inquiring a first geographical position corresponding to the current IP address.
It is to be understood that, when the processor in the computer apparatus described above executes the computer program, the functions of each unit in the corresponding apparatus embodiments may also be implemented, and are not described herein again. Illustratively, the computer program may be partitioned into one or more modules/units that are stored in the memory and executed by the processor to implement the invention. 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 process of the computer program in the web content adaptation system. For example, the computer program may be divided into units in the above-described web content adaptation system, and each unit may implement specific functions as described above in the description of the corresponding web content adaptation system.
The computer device can be a desktop computer, a notebook, a palm computer, a cloud server and other computing equipment. The computer device may include, but is not limited to, a processor, a memory. It will be appreciated by those skilled in the art that the processor, memory are merely examples of a computer apparatus and are not meant to be limiting, and that more or fewer components may be included, or certain components may be combined, or different components may be included, for example, the computer apparatus may also include input output devices, network access devices, buses, etc.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like which is the control center for the computer device and which connects the various parts of the overall computer device using various interfaces and lines.
The memory may be used to store the computer programs and/or modules, and the processor may implement various functions of the computer device by running or executing the computer programs and/or modules stored in the memory and invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the terminal, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The present invention also provides a computer-readable storage medium for implementing the functionality of a web content adaptation system, having a computer program stored thereon, which, when executed by a processor, may be adapted to perform the steps of:
obtaining login information of a user, wherein the login information at least comprises a user name and a current IP address;
according to the current IP address, inquiring a first geographic position corresponding to the current IP address, and determining a first URL (uniform resource locator) address corresponding to the first geographic position according to the first geographic position;
inquiring a historical operation log of a user according to the user name, and judging whether a first geographical position and a first URL address exist in the historical operation log;
if not, displaying an adaptive URL address file to a user according to the geographic position and the URL address in the historical operation log;
and if so, displaying the first URL address file to the user.
In some embodiments of the invention, the computer program stored on the computer-readable storage medium, when executed by the processor, may be specifically configured to perform the steps of:
counting a second geographical position with the most user access times in the historical operation log and a second URL (uniform resource locator) address corresponding to the second geographical position;
the second URL address file is displayed to the user.
In some embodiments of the invention, the computer program stored on the computer-readable storage medium, when executed by the processor, may be specifically configured to perform the steps of:
determining a third geographical position which is accessed by a user in the historical operation log most recently and a third URL address corresponding to the third geographical position;
the third URL address file is displayed to the user.
In some embodiments of the invention, the computer program stored on the computer-readable storage medium, when executed by the processor, may be specifically configured to perform the steps of:
and calling a global IP address geographical position information database through an API (application programming interface), and inquiring a first geographical position corresponding to the current IP address.
It will be appreciated that the integrated units, if implemented as software functional units and sold or used as a stand-alone product, may be stored in a corresponding one of the computer readable storage media. Based on such understanding, all or part of the flow of the method according to the above embodiments may be implemented by a computer program, which may be stored in a computer-readable storage medium and used by a processor to implement the steps of the above embodiments of the method. 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.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, 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 network 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 invention 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 unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will 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; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (6)

1. A method for adapting web page content, comprising:
obtaining login information of a user, wherein the login information at least comprises a user name and a current IP address;
according to the current IP address, inquiring a first geographic position corresponding to the current IP address, and determining a first URL (uniform resource locator) address corresponding to the first geographic position according to the first geographic position;
querying a historical operation log of the user according to the user name, and judging whether the first geographic position and the first URL address exist in the historical operation log;
if the current URL does not exist, determining a third geographical position which is accessed by the user for one time recently in the historical operation log, and determining a third URL address corresponding to the third geographical position;
displaying a third URL address file to the user;
and if so, displaying the first URL address file to the user.
2. The method of claim 1, wherein the querying the first geographic location corresponding to the current IP address according to the current IP address comprises:
and calling a global IP address geographical position information database through an API (application programming interface), and inquiring a first geographical position corresponding to the current IP address.
3. The method of any of claims 1-2, wherein the historical oplog comprises:
the system comprises a user name, an operation position, operation time and a URL (uniform resource locator) address corresponding to the operation position.
4. A web content adaptation system, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring login information of a user, and the login information at least comprises a user name and a current IP address;
the query unit is used for querying a first geographic position corresponding to the current IP address according to the current IP address and determining a first URL (uniform resource locator) address corresponding to the first geographic position according to the first geographic position;
the content matching unit is used for inquiring the historical operation log of the user according to the user name and judging whether the first geographic position and the first URL address exist in the historical operation log;
the first content display unit is used for displaying an adaptive URL address file to the user according to the geographical position and the URL address in the historical operation log when the first geographical position and the first URL address do not exist;
the first content display unit includes:
a determining module, configured to determine a third geographic location, in the history operation log, where the user has visited once recently, and determine a third URL address corresponding to the third geographic location;
the second display module is used for displaying a third URL address file to the user;
and the second content display unit is used for displaying a first URL address file to the user when the first geographic position and the first URL address exist.
5. A computer arrangement comprising a processor, characterized in that the processor, when executing a computer program stored on a memory, is adapted to carry out the steps in the web content adaptation method according to any of claims 1 to 3.
6. A readable storage medium, on which a computer program is stored, for implementing the steps in the web content adaptation method according to any one of claims 1 to 3 when the computer program is executed.
CN201711444933.XA 2017-12-27 2017-12-27 Webpage content adaptation method, system, device and storage medium Active CN108121811B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711444933.XA CN108121811B (en) 2017-12-27 2017-12-27 Webpage content adaptation method, system, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711444933.XA CN108121811B (en) 2017-12-27 2017-12-27 Webpage content adaptation method, system, device and storage medium

Publications (2)

Publication Number Publication Date
CN108121811A CN108121811A (en) 2018-06-05
CN108121811B true CN108121811B (en) 2021-01-12

Family

ID=62231855

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711444933.XA Active CN108121811B (en) 2017-12-27 2017-12-27 Webpage content adaptation method, system, device and storage medium

Country Status (1)

Country Link
CN (1) CN108121811B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020198882A1 (en) * 2001-03-29 2002-12-26 Linden Gregory D. Content personalization based on actions performed during a current browsing session
CN102799688A (en) * 2012-07-31 2012-11-28 东莞宇龙通信科技有限公司 Method and device for displaying historical records of webpages
CN106326284A (en) * 2015-06-30 2017-01-11 华为技术有限公司 Historical record acquisition method, server and terminal
CN105227621A (en) * 2015-08-21 2016-01-06 成都秋雷科技有限责任公司 Advertisement fixing is to put-on method

Also Published As

Publication number Publication date
CN108121811A (en) 2018-06-05

Similar Documents

Publication Publication Date Title
KR102097881B1 (en) Method and apparatus for processing a short link, and a short link server
CN110086877B (en) Application program sharing and information sharing display method, device, equipment and medium
EP3273362A1 (en) Webpage access method, apparatus, device and non-volatile computer storage medium
JP2016531518A (en) Dynamic telephone number assignment
CN107862352B (en) Two-dimensional code sharing method and two-dimensional code sharing equipment
CN109347898B (en) Scene information sending method, scene information display method, server and mobile terminal
CN105488125A (en) Page access method and apparatus
CN103440260A (en) Method and equipment used for providing representation information
CN102033952A (en) Resource recommendation method and device
US20180035367A1 (en) Method and Apparatus for Accessing Wifi Access Point in Target Shop
CN111367870A (en) Method, device and system for sharing picture book
CN111490890A (en) Hierarchical registration method, device, storage medium and equipment based on micro-service architecture
CN104618388A (en) Quick registration and login method and corresponding reset server and information server
CN109933595B (en) Internet of things equipment information sharing system and device and terminal equipment
CN111008892A (en) Business limit adjusting method and device and computer readable storage medium
CN109656592B (en) Card management method, device, terminal and computer readable storage medium
CN108062352B (en) Webpage page caching processing method, mobile terminal equipment and medium product
CN109391658B (en) Account data synchronization method and equipment, storage medium and terminal thereof
CN103188324A (en) Vehicle-mounted information displaying system
CN108121811B (en) Webpage content adaptation method, system, device and storage medium
CN108052521B (en) Coordinated data display method, application server and storage medium
CN111026926A (en) Data processing method, device, equipment and storage medium
CN110933070A (en) User identification method, system, equipment and computer readable storage medium
CN107204914B (en) Information processing method and device, computer device and storage medium
CN108108458A (en) The method and device of resources of human talents data is shared based on domain name

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Guangdong Nanshan District street of Shenzhen city in Guangdong province 518000 Shenzhen international software park a 8 Building 202 room

Applicant after: Shenzhen Weizhong credit Technology Co., Ltd

Address before: Guangdong Nanshan District street of Shenzhen city in Guangdong province 518000 Shenzhen international software park a 8 Building 202 room

Applicant before: Shenzhen micro tax silver Information Service Co., Ltd.

GR01 Patent grant
GR01 Patent grant