CN110321156B - Method for controlling preset website area of browser - Google Patents

Method for controlling preset website area of browser Download PDF

Info

Publication number
CN110321156B
CN110321156B CN201910604209.1A CN201910604209A CN110321156B CN 110321156 B CN110321156 B CN 110321156B CN 201910604209 A CN201910604209 A CN 201910604209A CN 110321156 B CN110321156 B CN 110321156B
Authority
CN
China
Prior art keywords
version
browser
cloud
operator
country
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
CN201910604209.1A
Other languages
Chinese (zh)
Other versions
CN110321156A (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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201910604209.1A priority Critical patent/CN110321156B/en
Publication of CN110321156A publication Critical patent/CN110321156A/en
Application granted granted Critical
Publication of CN110321156B publication Critical patent/CN110321156B/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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Abstract

The invention relates to the technical field of internet multimedia, and discloses a method for controlling a preset website area of a browser, which is used for meeting the customization and upgrading requirements of an operator on a preset website and enabling the browser to provide preset website contents more suitable for local users. After the browser is started, judging a control basis for controlling a browser configuration website area, if an operator is used as the control basis, comparing a local browser storage version with a cloud operator version, and if the local version is smaller than the cloud version, acquiring a configuration file of a corresponding version from a cloud; if the country is taken as a control basis, the located country code is compared with a country code locally stored by the browser, if the country code is different from the country code, country switching is carried out, the browser version number is reset to be the lowest, the version and the cloud operator version are stored comparatively, and if the local version is smaller than the cloud version, a configuration file of the corresponding version is obtained from the cloud. The method is suitable for controlling the preset website area of the browser.

Description

Method for controlling preset website area of browser
Technical Field
The invention relates to the technical field of internet multimedia, in particular to a method for controlling a preset website area of a browser.
Background
With the continuous expansion of overseas television services, internet televisions are increasingly popular in overseas countries, and browsers are used in a large amount as very popular applications. The browser can be installed in a whole machine preset mode or an application store downloading mode, generally, the browser recommends websites to users in a website preset mode, and the users can get hands more easily and obtain better use experience. However, the preset website of the browser is often single or is composed of European and American websites with stable functions and large access amount, and the user cannot modify the preset website in the later period by adopting one-time presetting.
First, because the applications in the application store have a general purpose problem, customers all over the world will download and install the applications. If an Arabic Website is preset, the Brazil user may not know the content of the Website at all and the language is not very repugnant to the display of the Website in the browser application after downloading, and if the Arabic Website is not preset, the Arabic user feels that the content in the browser is not attracted to him.
The second problem is that the overseas website sometimes has problems due to newly added functions or cooperates with the operator, and at this time, the preset website is required to be off-shelf. If the mode of application upgrading is adopted, the updating period is long and the downloading time is long. The compromise approach is to reduce the number of pre-set sites at risk.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the method for controlling the preset website area of the browser is used for meeting the requirements of an operator on the customization and the upgrading of the preset website, so that the browser can provide preset website contents more suitable for local users.
In order to solve the problems, the invention adopts the technical scheme that: the method for controlling the preset website area of the browser comprises the following steps:
after the browser is started, judging a control basis for controlling a website area configured by the browser;
if the browser configuration website area control is based on an operator as a control basis, acquiring a cloud operator version, comparing a browser local storage version with the cloud operator version, reading the browser local storage version if the browser local storage version is the same as the cloud operator version, and acquiring a configuration file of a corresponding version from a cloud end if the local version is smaller than the cloud end version;
if the browser configuration website regional control is that the country is taken as a control basis, reading a country code currently positioned by the browser, comparing the positioned country code with a country code locally stored by the browser, if the country code is different, performing country switching, resetting the browser version number to be the lowest, acquiring the version of the country corresponding to the cloud end, comparing the locally stored version of the browser with the version of the cloud end operator, if the locally stored version of the browser is the same as the version of the cloud end operator, reading the locally stored version of the browser, and if the local version is smaller than the version of the cloud end, acquiring a configuration file corresponding to the version from the cloud end.
Furthermore, the configuration file acquired from the cloud can be a json file, each preset website in the json file is taken as a unit item, the picture path is sequentially analyzed according to the number of the websites, and the pictures of the preset websites are downloaded from the cloud. The josn as a lightweight data format has the advantages of being easy to read and write by people, easy to analyze and generate by machines, and capable of effectively improving network transmission efficiency.
Furthermore, when the pictures are downloaded successfully, the downloaded json files and website pictures cover preset website files and pictures used by the browser, and the situation that the browser cannot be used due to data failure in the downloading process is avoided.
The invention has the beneficial effects that: the invention can enable the preset website to download new content from the cloud again according to operators or national regions, thereby improving user experience. A universal software version is used, so that the requirements ordered by an operator are met, and the requirements recommended by regional websites of the user are also met.
Drawings
FIG. 1 is a flowchart of the browser implementing area control in the embodiment.
Detailed Description
In order to fully meet the regional customization requirement of a user on a preset website, improve the use amount of the user, enable an operator to obtain the highest priority to meet the requirement of developing services, and simultaneously modify configuration simply and quickly and deploy the configuration to a server, the invention needs to consider the following problems:
the first is the priority problem of the operator and the country, and although the two are in mutual inclusion relationship, one operator may include a plurality of country regions, or one country region may include a plurality of operators, but the operator is often used as an order client. In contrast, the mode that the priority of the operator is higher than that of the country is adopted, and when the operator needs to be adopted, the preset website cannot be updated according to the region, and the version updating can be judged only by the operator. The system attribute of 'operator and regional priority' is adopted and stored in the whole system. When the attribute is not available, the version is judged by using the region, and when the browser downloaded from an application store or not required by operation is operated, the preset website is updated by using the country by default. After the attribute is set, the attribute can not be changed unless the software of the whole machine is upgraded.
The second is the operator and country version judgment.
The operators are stored in a system attribute mode, and the browser only needs to read the system attribute as a parameter to match with the operator version corresponding to the cloud end for comparing the versions stored by the local operators.
The country represents a particular geographical, political and cultural area by the android system standard, Locale object. The country/region parameter is a valid ISO country/region code. These codes are capitalized two letter codes defined by ISO-3166, which is replaced by "US" in the united states, for example. And matching the country version corresponding to the cloud end by using the country of the Locale as a parameter to compare the locally stored country versions.
And if the local version is lower than the cloud version, updating the preset website, otherwise, ending. And after the updating is successful, the version is saved, and the repeated updating is avoided from being started next time.
And if the country versions are compared only, the preset website is not updated or is used after the countries with the low cloud versions are possibly switched. The country name will be stored here as the corresponding country of the current version. And after the countries are switched, setting the version as the lowest version when the current country of the system is inconsistent with the stored country, storing the country name, and forcibly updating the preset website of the current country of the system once.
Based on the above consideration, the specific steps of the invention for realizing the control of the preset website area of the browser are as follows:
firstly, starting a browser, and judging a control basis for controlling a website configuration area of the browser after the browser is started;
if the browser configuration website area control is based on an operator as a control basis, acquiring a cloud operator version, comparing a browser local storage version with the cloud operator version, reading the browser local storage version if the browser local storage version is the same as the cloud operator version, and acquiring a configuration file of a corresponding version from a cloud end if the local version is smaller than the cloud end version;
if the browser configuration website regional control is that the country is taken as a control basis, reading a country code currently positioned by the browser, comparing the positioned country code with a country code locally stored by the browser, if the country code is different, performing country switching, resetting the browser version number to be the lowest, acquiring the version of the country corresponding to the cloud end, comparing the locally stored version of the browser with the version of the cloud end operator, if the locally stored version of the browser is the same as the version of the cloud end operator, reading the locally stored version of the browser, and if the local version is smaller than the version of the cloud end, acquiring a configuration file corresponding to the version from the cloud end.
In the invention, the configuration file acquired from the cloud can be a json file, each preset website in the json file is taken as a unit item, the picture path is sequentially analyzed according to the number of the websites, and the pictures of the preset websites are downloaded from the cloud. When the pictures are downloaded successfully, the downloaded json files and website pictures cover preset website files and pictures used by the browser, and the situation that the browser cannot be used due to data failure in the downloading process is avoided.
Examples
The technical solution of the present invention will be described in detail with reference to the following examples.
As shown in fig. 1, the embodiment provides a method for controlling a preset website area of a browser, which includes the following specific steps:
1. the browser is started and then reads the "persistence. If the local version of the browser is smaller than the cloud end version, a configuration file of a corresponding version is obtained from the cloud end.
2. If the system attribute of 'persistence. sys. area type' is 0 or no system attribute, judging that the browser configures website area control and the country is used as a control basis, reading the country code of a Locale object in the system, namely the country code currently positioned by the browser, comparing the country code of the Locale object with the locally stored country code, if the country code is different, judging that the country is switched, at the moment, the browser switches the country, resetting the version number of the browser to be the lowest, acquiring the version of the country corresponding to the cloud end, comparing the locally stored version of the browser with the version of a cloud end operator, if the locally stored version of the browser is the same as the locally stored version of the cloud end, and if the local version is smaller than the cloud end version, acquiring the configuration file of the corresponding version from the cloud end.
And 3, taking each preset website as a unit item in the json file, sequentially analyzing the picture paths according to the number of the websites, and downloading the pictures of the preset websites from the cloud.
4. In the process of accessing the cloud, if any one of the processes fails, the process is ended, and the synchronization is exited. When the pictures are downloaded successfully, the downloaded json files and website pictures cover preset website files and pictures used by the browser, and the situation that the browser cannot be used due to data failure in the downloading process is avoided. And finally, the end of version synchronization is stored.

Claims (3)

1. The method for controlling the preset website area of the browser is characterized by comprising the following steps of:
after the browser is started, judging a control basis for controlling a website area configured by the browser;
if the browser configuration website area control is based on an operator as a control basis, acquiring a cloud operator version, comparing a browser local storage version with the cloud operator version, reading the browser local storage version if the browser local storage version is the same as the cloud operator version, and acquiring a configuration file of a corresponding version from a cloud end if the local version is smaller than the cloud end version;
if the browser configuration website regional control is that the country is taken as a control basis, reading a country code currently positioned by the browser, comparing the positioned country code with a country code locally stored by the browser, if the country code is different, performing country switching, resetting the browser version number to be the lowest, acquiring the version of the country corresponding to the cloud end, comparing the locally stored version of the browser with the version of the cloud end operator, if the locally stored version of the browser is the same as the version of the cloud end operator, reading the locally stored version of the browser, and if the local version is smaller than the version of the cloud end, acquiring a configuration file corresponding to the version from the cloud end.
2. The method for controlling preset website areas of a browser according to claim 1, wherein the configuration file acquired from the cloud is a json file, each preset website in the json file is a unit item, the picture path is sequentially analyzed according to the number of the websites, and the pictures of the preset websites are downloaded from the cloud.
3. The method for controlling preset website areas of a browser as claimed in claim 2, wherein when all the pictures are downloaded successfully, the downloaded json file and website picture are overlaid on the preset website file and picture used by the browser.
CN201910604209.1A 2019-07-05 2019-07-05 Method for controlling preset website area of browser Active CN110321156B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910604209.1A CN110321156B (en) 2019-07-05 2019-07-05 Method for controlling preset website area of browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910604209.1A CN110321156B (en) 2019-07-05 2019-07-05 Method for controlling preset website area of browser

Publications (2)

Publication Number Publication Date
CN110321156A CN110321156A (en) 2019-10-11
CN110321156B true CN110321156B (en) 2022-02-01

Family

ID=68122787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910604209.1A Active CN110321156B (en) 2019-07-05 2019-07-05 Method for controlling preset website area of browser

Country Status (1)

Country Link
CN (1) CN110321156B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1198070A2 (en) * 2000-10-12 2002-04-17 Bose Corporation Interactive sound reproducing
CN102195971A (en) * 2011-03-24 2011-09-21 北京思创银联科技股份有限公司 Website access control method
CN102523491A (en) * 2011-10-28 2012-06-27 深圳市龙视传媒有限公司 Customization method, presentation method and system of digital TV portal
CN102882750A (en) * 2012-09-18 2013-01-16 华为软件技术有限公司 IPTV-based network access method and device
CN104796775A (en) * 2015-04-15 2015-07-22 广东长虹电子有限公司 Television system and method capable of quickly preconfiguring multi-language programs

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107948761B (en) * 2017-12-12 2021-01-01 上海哔哩哔哩科技有限公司 Bullet screen play control method, server and bullet screen play control system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1198070A2 (en) * 2000-10-12 2002-04-17 Bose Corporation Interactive sound reproducing
CN102195971A (en) * 2011-03-24 2011-09-21 北京思创银联科技股份有限公司 Website access control method
CN102523491A (en) * 2011-10-28 2012-06-27 深圳市龙视传媒有限公司 Customization method, presentation method and system of digital TV portal
CN102882750A (en) * 2012-09-18 2013-01-16 华为软件技术有限公司 IPTV-based network access method and device
CN104796775A (en) * 2015-04-15 2015-07-22 广东长虹电子有限公司 Television system and method capable of quickly preconfiguring multi-language programs

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Update the software on your Samsung smart TV;三星官网;《https://www.samsung.com/us/support/answer/ANS00062224/》;20170404;第1页 *

Also Published As

Publication number Publication date
CN110321156A (en) 2019-10-11

Similar Documents

Publication Publication Date Title
CN108074177B (en) Data reconciliation method, system and computer-readable storage medium
CN106775836B (en) Interface display method and interface display device
CN107066272B (en) Page updating method and device
CN100442712C (en) Method and system for realizing network terminal equipment configuration automatic updating
US20120324376A1 (en) Apparatus for implementing web-based user interface for communication terminal and method thereof
CN101383842B (en) System and method for displaying network information by computer background screen
US20100070566A1 (en) System and Method for Deploying Customised Web Applications
CN104657174A (en) Method and device for dynamically realizing application function
CN107391736B (en) Page display method and device
CN105704562B (en) Multi-version compatible method and device for network television cloud service platform
CN105975298A (en) Method and system for remotely controlling applications of Android terminal
CN104093075A (en) Portal page updating method and system
US20140317497A1 (en) Method, Apparatus and System for Changing Font for Application Program
CN111309320A (en) Method and system for customizing home page interface
WO2016150390A1 (en) Interface processing method, apparatus, and system
AU2015376591A1 (en) Desktop sharing method and mobile terminal
CN103218221A (en) Control switching method and device of software interface
CN107426588B (en) Method, system and storage device for acquiring television set configuration information
CN107193565B (en) Method for developing native APP (application) across mobile terminals
CN104156240A (en) Client skin template changing method and device, client and electronic device
US11561814B2 (en) Browser-driven capture of application installations for application virtualization
CN105426056A (en) Desktop launcher Launcher menu displaying method and apparatus
CN110321156B (en) Method for controlling preset website area of browser
CN107197354B (en) User interface control method and device and smart television
CN104267979A (en) Method and device for starting applications on Launcher and terminal

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