CN106445530A - Method and device for converting client application software into webpage software - Google Patents

Method and device for converting client application software into webpage software Download PDF

Info

Publication number
CN106445530A
CN106445530A CN201610856562.5A CN201610856562A CN106445530A CN 106445530 A CN106445530 A CN 106445530A CN 201610856562 A CN201610856562 A CN 201610856562A CN 106445530 A CN106445530 A CN 106445530A
Authority
CN
China
Prior art keywords
unit
application software
client application
domain name
plug
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.)
Granted
Application number
CN201610856562.5A
Other languages
Chinese (zh)
Other versions
CN106445530B (en
Inventor
葛山
何孟东
闫俊
林欣然
杨涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201610856562.5A priority Critical patent/CN106445530B/en
Publication of CN106445530A publication Critical patent/CN106445530A/en
Application granted granted Critical
Publication of CN106445530B publication Critical patent/CN106445530B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/72Code refactoring

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method for converting client application software into webpage software. The method comprises the following steps: registering an insert in an IE core, and generating a unique identifier of the insert, wherein the insert has a user-defined interface, the insert is configured with Gkey parameters, and the Gkey parameters are used as unique identifier code Gkey values of assigned client application software; assigning a domain name and a Gkey value to the client application software; calling data of the client application software by the insert on the basis of the domain name and the Gkey value, and operating the client application software compiled on the basis of the user-defined interface on a webpage. By adopting the method, any client application software compiled on the basis of a preset interface can be loaded by only mounting the insert once, and the client application software can be compatible with all browsers. The invention further discloses a device for converting the client application software into the webpage software.

Description

A kind of method, device that client application software is converted to webpage software
Technical field
The present invention relates to Internet technical field, more particularly, to a kind of side loading client application software based on browser Method, device.
Background technology
With scientific and technical continuous development, computer is widely available, and the work giving people and life bring all Facilitate more.Increasingly fashionable with computer game, the species of game gets more and more, and quantity is increasing.Before most Computer game is client application software, as client game, and its user needs downloading computer game installation kit to meter Calculation machine simultaneously carries out installing and could use.Because web game does not need to download, installs, logging in network address at any time can be carried out, and by Data in web game is stored in server or high in the clouds, all can be carried out on any terminal unit using account, thus Web game increasing prevalence in recent years.But in prior art, even web game and client game are with a game, due to One is that system is called, and one is that browser calls it is also desirable to be programmed respectively, as the web game with a game, Even if having been developed over client application software, it is also desirable to from the beginning programming realization again during redevelopment web game, waste time and energy.
Content of the invention
In view of the above problems it is proposed that the present invention so as to provide one kind overcome the problems referred to above or at least in part solve on State the method and the electronic equipment that load client application software based on browser of problem.
One aspect of the present invention, provides a kind of method that client application software is converted to webpage software, including:
Domain name request is sent to server or high in the clouds, and receives response message, described response message include with described The corresponding configuration information of domain name, domain name is corresponding with a client application software;
One plug-in unit is searched in system based on described response message, this plug-in unit is provided with parameter, described parameter is variable;
Assignment is carried out to described parameter according to described configuration information, and loads the plug-in unit after assignment;
Call the client application software being stored in server or high in the clouds described to run in webpage using described plug-in unit Client application software.
Optionally, described parameter includes Gkey parameter, carries out assignment according to described configuration information to described parameter, including: The unique mark Gkey value of client application software is given the described Gkey parameter in the described plug-in unit finding.
Optionally, described plug-in unit and described client application software are based on identical interface exploitation.
Optionally, without finding this plug-in unit, then obtain plug-in unit installation kit from server;
Registered using acquired plug-in unit installation kit.
Optionally, described plug-in unit is searched in system based on described response message, specifically include:
Judge whether to need to load plug-in unit based on response message, search described plug-in unit if necessary in system.
Optionally, described client application software is computer game,
The present invention also provides a kind of method that client application software is converted to webpage software, and the method includes:
Pre-set white list, described white list includes domain name list;
When accessing a client application software, give its domain name and Gkey value, according to the domain name being given to described White list is updated, the configuration information of storage client application software data, and described configuration information includes Gkey value, storage road Footpath information.
Reception domain name request, the configuration information of the client application software asked according to domain name acquisition request, will Described configuration information is sent to terminal;
Receive the call request of self terminal, by client application software data is activation to terminal, with terminal browser The described application program of upper operation.
Optionally, described step:Receive domain name request, soft according to the client application that domain name acquisition request is asked The configuration information of part, specifically includes:
Parsing domain name request, and determine whether asked domain name belongs to white list;
If belonged to, obtain the configuration information of asked client application software according to domain name, otherwise to visitor Family end returns the information of request failure.
Optionally, described client application software data storage is in browser server or third-party server.
The present invention provides a kind of termination realizing webpage software based on client application software, in, including:
Input block, for the domain name of receiving user's input;
First transmission receiving unit, for sending domain name to server or high in the clouds, and receives response message, described sound Information is answered to include the configuration information corresponding with domain name, domain name is corresponding with a client application software;
Plugin lookup unit, searches described plug-in unit based on described response message in system, and this plug-in card configuration has parameter, institute It is variable for stating parameter;
Plug-in unit loading unit, for described parameter being carried out with assignment according to described configuration information, and loads inserting after assignment Part;
Data call unit, called using described plug-in unit be stored in the client application software of server or high in the clouds with Webpage runs described client application software.
Optionally, described parameter includes Gkey parameter, and described plug-in unit loading unit includes assignment subelement, for calculating The unique mark Gkey value of machine program gives the described Gkey parameter in the described plug-in unit finding.
Optionally, described terminal also includes installation kit acquiring unit, for when not finding this plug-in unit, from server Obtain plug-in unit installation kit.
Optionally, plug-in unit loading unit specifically includes:
Judgment sub-unit, for judging whether to need to load plug-in unit based on response message;
Search subelement, for searching described plug-in unit in system in the case of needing to load plug-in unit.
Optionally described client application software is computer game,
The present invention also provides a kind of server unit realizing webpage software based on client application software, this device bag Include:
Preset unit, is used for pre-setting white list, and described white list includes domain name list;
Dispensing unit, for when accessing a client application software, giving its domain name and Gkey value, according to being given Domain name, Gkey value described white list is updated, the configuration information of storage client application software data, described configuration letter Breath includes Gkey value, store path information.
Second transmission receiving unit, for receiving domain name request;
Configuration information acquiring unit, the configuration of the client application software for being asked according to domain name acquisition request Information;
Described configuration information is sent to terminal by described second transmission receiving unit, receives the call request of self terminal, By client application software data is activation to terminal, so that described client application software to be run on terminal browser, generate net Page software.
Optionally, described configuration information acquiring unit specifically includes:
Domain name judges parsing subelement, for parsing domain name request, and determines whether asked domain name belongs to white List;
If belonged to, obtaining the configuration information of asked application program according to domain name, otherwise indicating described the Two send the information that receiving unit returns request failure to client.
Optionally, described client application software data storage is in browser server or third-party server.
The technical scheme providing in the embodiment of the present application, at least has the following technical effect that or advantage:
The application can almost all of browser (as long as the browser based on IE kernel development, such as IE6- IE11, Webkit etc.) load the client application software write with predetermined interface, compatibility is very strong.
The application can by way of distinguishing using user input domain name loading application programs, and utilize webpage embedded Application software, by way of page download client application software, can by have the application program of reliable signature and other The application program isolation load of the bad third party's signature determining safety is run, and can on the one hand ensure the safety of browser, Enable to the application program that browser can load extensive digital signature again.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of description, and in order to allow the above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the specific embodiment of the present invention.
Brief description
By reading the detailed description of hereafter preferred implementation, various other advantages and benefit are common for this area Technical staff will be clear from understanding.Accompanying drawing is only used for illustrating the purpose of preferred implementation, and is not considered as to the present invention Restriction.And in whole accompanying drawing, it is denoted by the same reference numerals identical part.In the accompanying drawings:
Fig. 1 shows the method that client application software is converted to webpage software according to an embodiment of the invention Flow chart;
Fig. 2 shows the mistake really whether calling plug-in unit during client application software is converted to webpage software Journey;
Fig. 3 shows and carries out initialized mistake to plug-in unit during client application software is converted to webpage software Journey;
Fig. 4 shows a kind of structured flowchart of client that the application proposes;
Fig. 5 shows the concrete structure diagram of loading unit in client;
Fig. 6 shows a kind of structured flowchart of server of the proposition of the application;
Fig. 7 is arranged on the concrete structure frame of the client application software dispensing unit in server end or high in the clouds in illustrating Figure.
Specific embodiment
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing Exemplary embodiment it being understood, however, that may be realized in various forms the disclosure and should not be by embodiments set forth here Limited.On the contrary, these embodiments are provided to be able to be best understood from the disclosure, and can be by the scope of the present disclosure Complete conveys to those skilled in the art.
A kind of one aspect of the present invention, there is provided method loading client application software based on browser, as Fig. 1 institute Show, including:
S1. in IE kernel registered plug-ins, and generate the unique mark of plug-in unit, this plug-in unit has self defined interface, this plug-in unit It is configured with Gkey parameter;Described Gkey parameter is used for being assigned the exclusive identification code Gkey value of client application software;
S2. client application software domain name and Gkey value are given;
S3. run described plug-in unit and the client write based on described self defined interface is called based on domain name and Gkey value Application of software data is to run described client application software in webpage.
Plug-in unit is a kind of computer program, it then follows the client application software interface of certain specification is write out, by and net The interaction of page browsing device to increase specific function for described web browser, and that is, web browser can call client application soft Part and on webpage execute.Described plug-in unit is to be write based on Microsoft's Plugin Mechanism, with compatible all of browser, described writing During plug-in unit, for this plug-in card configuration Gkey parameter, for being assigned the client application software executing on a web browser in the future Exclusive identification code.After installing this plug-in unit, web browser can directly invoke according to registering the unique mark generating during this plug-in unit This plug-in unit.In prior art, usually plug-in unit is squeezed in the installation kit of client application software and issue, the hardware such as computer sets The standby installation completing client application software and plug-in unit by running described installation kit, therefore starts client application later every time When software, automatically load all mounted plug-in units from local, this namely why now a lot of browsers start relatively One of slow the reason.Plug-in unit described in described step S3. is based on domain name and Gkey value calls described client application software number Run the client application software write based on described self defined interface in webpage according to this, as shown in Fig. 2 specifically including:
S31. judge whether the domain name of user input belongs to the domain name list being pre-configured with;
S32. if it is, parsing domain name, generate Gkey value;
S33. judge whether described Gkey value belongs to the Gkey value in white list;
S34. if it is, based on the described Gkey value described plug-in unit of loading there is described self-defined connect in browser execution The client application software of mouth.
The plug-in unit that the application is proposed, independent of browser, by using the analysis result to user input domain name, determines Whether call this plug-in unit, in the case that determination needs to call this plug-in unit, recycle this plug-in unit to produce when IE kernel is registered Unique mark carries out calling and loading of this plug-in unit, and therefore this plug-in unit can't drag the toggle speed of slow browser, also will not volume Outer consumption process resource.In back-stage management, can give each computer game one unique identification, be referred to as Gkey value.By It is to call and running client application software in web browser in the design of this plug-in unit, the application proposes to join for this plug-in unit Put Gkey parameter, when calling different computer games using this plug-in unit, be this Gkey parameter and give called client The Gkey value of application software and corresponding configuration information, as long as thus on programming technique plug-in unit and computer game interface one Cause, this plug-in unit can load any application software, including client application software and webpage software, as preferred embodiment party Formula, this plug-in unit can load any computer game, including client game and web game.
The backstage of browser or high in the clouds safeguard that the domain name of the correlation having the computer game that can run with browser arranges Table and white list, domain name list is stored as the domain name of each computer game distribution;The storage of described white list promising each The Gkey value of computer game distribution.Preferably, the backstage of browser or high in the clouds have also been safeguarded for each computer game Configuration file, this configuration file can be dll file or exe file, with indicate computer game initial data, The acquisition approach of signed data and encryption and decryption information.As a kind of specific embodiment, configuration file and domain name list, white name Single pass-through Gkey value associates.By the maintenance on above-mentioned backstage or high in the clouds, reach the interaction of plug-in unit and browser server.
When user is in terminal inputs domain name, browser receives this domain name request, and parses domain name request, parsing domain name Process can complete in terminal it is also possible to the server side in browser completes, if completed in terminal, needs to arrange domain name Table and white list are stored in locally, when browser is upgraded, automatically update domain name list and white list, this situation Under, the upgrading number of times of client browser may be some more, if the server side in browser completes, only need to server Domain name list and white list are safeguarded in side or high in the clouds, and the browser of client will not need because of the renewal of domain name list and white list Upgrade.Such as user input domain name:http:Wan.360.sgkey=ly/skey=1000, first determines whether described input Whether domain name belongs to domain name list, if belonged to, parsing domain name further, being identified according to gkey and determining Gkey value ly, Gkey Value is the unique mark of client application software, especially at present in computer game, including client game and web game side Face, each game can be endowed unique mark Gkey value, usually game name acronym.Looked into according to described Gkey value Ask white list, it is determined whether belong to white list, thereby determine that this client application software is the product that browser can push.Will This Gkey value sends to described plug-in unit, with its Gkey parameter described in assignment.
As shown in figure 3, the detailed process of assignment is:
S341. described plug-in unit is searched in systems according to the unique mark that described plug-in unit generates when IE kernel is registered;
S342. described Gkey value is given the described Gkey parameter in the described plug-in unit finding;
S343, after Gkey value gives the described Gkey parameter in the described plug-in unit finding, calls this plug-in unit.
The API client application software DLL being provided by browser accesses this plug-in unit.Plug-in unit is to should be compressed in Plug-in unit property file together, including a Manifest file, one or more HTML html files, optional One or more javascript files, optionally any desired alternative document (such as picture).Wherein, Manifest literary composition Part is generally json form, wherein contains the essential information of plug-in unit, for example most important listed files, and application (extension) is required Authority wanted etc..When developing plug-in unit, these files are all put under same catalogue, when issuing plug-in unit, under this catalogue File be all bundled in the compressed file of a .crx, browser kernel when rendering browser main frame, can insert Extract the loading position for plug-in unit setting in part property file, show the interface of client application software in this loading position. So that client application software can be by plug-in unit once loading and can run, technically, client application software needs Will be using the DLL consistent with described plug-in unit.By interface, plug-in unit directly invokes client application software data.Client Application of software data be storable in third-party server (server at client application software developer), browser server or Person's client application software private server, high in the clouds, here, do not do any limit to the storage location of client application software data Fixed.
Before browser accesses a client application software, need to carry out backstage configuration, the configuration of described backstage includes:Give Client application software domain name and Gkey value, and domain name list, white list are updated;Configuration client application software data Acquisition approach, client application software data at least includes DLL (the Dynamic Link of client application software Library) file or EXE file, also include some physical contents certainly, such as picture, word and signature file.Passing through Domain name mapping after determining that the Gkey value parsing belongs to white list, loads plug-in unit, by the initialization to plug-in unit, gives it Gkey parameter Gkey value, and according to the configuration information of application data, it is configured.After initialization, plug-in unit is based on by interface Routing information directly invokes described DLL (Dynamic Link Library) file or EXE file to run described client Application software.
As a kind of specific embodiment, user needs to play web game, first logs into browser, after browser is opened, User needs download plug-in, and installs described plug-in unit.After described plug-in unit is installed, user input domain name request http: Wan.360.sgkey=ly1/skey=1000, browser receives this domain name request first, and this domain name request is sent to clothes Business device, this domain name is mated by server with the domain name list prestoring, and determines whether this domain name belongs to domain name list (domain Be stored with browser operator by the allocated domain name of the client by web page display in need game in list of file names), If it is, server may proceed to this domain name is parsed, otherwise server does not carry out any process to domain name, is returned only to end The invalid information of end domain name.Parse domain name according to domain name establishment rules, determine that asked game is ly1 (Gkey Value), according to the corresponding backstage configuration information of Gkey value ly1 inquiry, and this configuration information is sent to terminal browser, eventually End browser is based on described configuration information and initializes plug-in unit, then loads described plug-in unit, plug-in unit can be according to described configuration information Directly invoke client application software data to run ly1 game.When once wanting to play ly2 game on user, user does not need Download plug-in again, but directly input domain name http:Wan.360.sgkey=ly2/skey=1000;So browser is direct Receive this domain name request, and this domain name request is sent to server, server is by this domain name and the domain name list prestoring Mated, determined this domain name whether to belong to domain name list (the browser operator that is stored with domain name list is logical in need Cross the allocated domain name of the client application software of web page display), if it is, server may proceed to this domain name is solved Analysis, otherwise server does not carry out any process to domain name, is returned only to the invalid information of terminal domain name.Rule are worked out according to domain name Then parse domain name, determine that asked game is ly2 (Gkey value), according to the corresponding backstage of Gkey value ly2 inquiry Configuration information, and this configuration information is sent to terminal browser, terminal browser is based on described configuration information and initializes plug-in unit, Then load described plug-in unit, plug-in unit can directly invoke client application software data to run ly2 according to described configuration information Game.User only needs to install a plug-in unit, and all of web game of browser all can be carried out.Because this plug-in unit is based in IE Core, its almost all compatible use of compatible domestic all of browser, such as IE browser IE6-IE1 and Webkit browser. And, as long as the exploitation of games is consistent with the DLL of developing plug, browser only needs to install a plug-in unit, you can Run all of web game.Compare relatively current, often run a web game, nearly all will download a plug-in unit and install Web game can be run, the application, after installing a plug-in unit, simply enters domain name and can run various different web pages game, letter The time changed user operation and greatly shortened web game start-up loading.
Actually conventionally, as the restriction to System Privileges for the browser itself, such as under winsa or 97 Because the setting of authority, it is generally basede on medium authority and accesses browser, some need the client obtaining system high authority to answer Even if install plug-in unit with software in browser also cannot run at all.And the plug-in unit of the application is safe, its signature can obtain To the accreditation of browser, more therefore need the client application software obtaining system high authority also can exist by this plug-in unit Browser is run.On the other hand, due in the application plug-in unit simply call client application software, and not to client The signature file of application software is modified, and can obtain its signature when client application software passes through plug-in component operation, thus Distinguish the signature of client application software and the signature of plug-in unit, be convenient to accomplish the confirmation of network identity, be easy to bright further Really network security responsibility.
Because plug-in unit does not need to change the digital signature of client application software data, the application can by this plug-in unit The client application software of reliable signature is embedded in the precalculated position of browser, ratio such as embedded within title bar or floating window, And uncertain for reliability digital signature is only loaded by plug-in unit by way of domain name request.
After loading plug-in unit, due to setting up corresponding relation with client application software, you can should to described client Carry out upgrading detection with software;If necessary to upgrade, then upgrading data is called according to backstage configuration information, should to obtain client With the latest data of software, run the client application software of latest edition.The application does not need user to carry out any relevant liter The operation of level is so that it may ensure that the client application software that user runs is latest edition.
The present invention also provides a kind of terminal loading client application software based on browser, as shown in figure 4, including:
Plug-in registration unit 10, it is used in IE kernel registered plug-ins, and generates the unique mark of plug-in unit, this plug-in card configuration There are predetermined interface and Gkey parameter;Described Gkey parameter is used for the unique mark of assignment client application software;
Input block 20, for the domain name of receiving user's input;
Send receiving unit 30, for sending domain name to server or high in the clouds, and receive the information of return, described return The information returned includes Gkey value;
Loading unit 40, for giving described Gkey parameter Gkey value according to described Gkey value and loading described plug-in unit;
Call unit 50, for the client calling and running described Gkey value uniquely identified to have described predetermined interface Application software.
Described plug-in unit is to be write based on the client application software interface that Microsoft's Plugin Mechanism follows certain specification, with compatibility All of browser, when writing described plug-in unit, for this plug-in card configuration Gkey parameter, for being assigned in the future on a web browser The exclusive identification code of the client application software of execution.When this plug-in unit is installed, web browser calling system registration table, and corresponding This plug-in unit generates unique mark.After installing plug-in unit, browser adds download the plugin according to this unique mark.
As shown in figure 5, described loading unit 40 specifically may include:
Searching unit 401, for searching described plug-in unit in systems according to described unique mark;
Dispensing unit 402, described Gkey value is given the described Gkey parameter in the described plug-in unit finding.
The domain of the correlation having the client application software that can run with browser is safeguarded in the backstage of browser or high in the clouds List of file names and white list, domain name list is stored as the domain name of each client application software distribution;Described white list storage The Gkey value of promising each client application software distribution.Preferably, the backstage of browser or high in the clouds have also been safeguarded for every The configuration file of individual client application software, this configuration file can be dll file or exe file, to indicate client End application software initial data, the acquisition approach of signed data and encryption and decryption information.As a kind of specific embodiment, configure File is associated by Gkey value with domain name list, white list.By the maintenance on above-mentioned backstage or high in the clouds, reach plug-in unit and browse The interaction of device server.The information of described return includes the acquisition approach of client application software data, described call unit root Call client application software data according to described acquisition approach.
Before browser accesses a client application software, need to carry out backstage configuration, the configuration of described backstage includes:Give Client application software domain name and Gkey value, and domain name list, white list are updated;Configuration client application software data Acquisition approach, client application software data at least includes DLL (the Dynamic Link of client application software Library) file or EXE file, also include some physical contents certainly, such as picture, word and signature file.Passing through Domain name mapping after determining that the Gkey value parsing belongs to white list, loads plug-in unit, by the initialization to plug-in unit, gives it Gkey parameter Gkey value, and according to the configuration information of application data, it is configured.After initialization, plug-in unit is based on by interface Routing information directly invokes described utilization DLL (Dynamic Link Library) file or EXE file to run described visitor Family end application software.When client application software has carried out upgrading, backstage can be updated to backstage configuration data in time;Institute State loading unit and specifically may also include upgrading detector unit, for described client application software being entered after plug-in unit loads Row upgrading detection;Described call unit directly invokes upgrading data by plug-in unit in the case of needing upgrading.
The present invention also provides a kind of server loading client application software based on browser, as shown in fig. 6, including
Domain name judges resolution unit 100, and whether the domain name for judging user input belongs to domain name list, if it is, Parsing domain name list, generates Gkey value;
Load determining unit 200, for judging whether described Gkey value belongs to the Gkey value in white list, if it is, Instruction runs described plug-in unit with client application software described in browser execution.This server may also include memory element, uses In storage domain name list, white list and client application software configuration information, described configuration information visitor at least to be provided The acquisition approach of family end application of software data executable file.Before browser accesses a client application software, carry out backstage Configuration.
Preferably, described server also includes preset unit of playing, as shown in fig. 7, game preset unit 30 includes:
Domain name dispensing unit 301, for giving client application software domain name, and more new domain name list;
Gkey value dispensing unit 302, for giving client application software Gkey value, and is updated to white list;
Path dispensing unit 303, for configuring the acquisition approach of client application software data.
Client application software data at least includes DLL (the Dynamic Link Library) literary composition of client application software Part or EXE file, also include some physical contents certainly, such as picture, word and signature file.By domain name mapping simultaneously After determining that the Gkey value parsing belongs to white list, load plug-in unit, by the initialization to plug-in unit, give its Gkey parameter Gkey Value, and according to the configuration information of application data, it is configured.After initialization, it is direct that plug-in unit is based on routing information by interface Call described utilization DLL (Dynamic Link Library) file or EXE file to run described client application software.
Alternatively, this server also includes:Embedded unit, has pre-determined signature for embedding in the precalculated position of browser Client application software, this mainly for user recommend have reliable digit signature game, because plug-in unit does not need Change the digital signature of client application software data, the application is capable of by this plug-in unit will be soft for the reliable client application signed Part is embedded in the precalculated position of browser, and ratio is such as embedded within title bar or floating window, and uncertain for reliability numeral is signed Name is only loaded by plug-in unit by way of domain name request.
The concretely computer game of described client application software.
Client software can not only be converted to the software that directly can run in browser by the present invention, specific to calculating Client game can be converted to the web game that directly can run in browser, but also carry by the software of machine game type Go out a kind of new browser, provide client game in a different manner, first kind of way is direct in browsing device net page There is provided the chained address downloading installation kit, the second way is to provide computer game by way of embedded client software, The third mode is the new proposition of the application by the operation client game of user input domain name request.
The technical scheme providing in the embodiment of the present application, at least has the following technical effect that or advantage:
The application can almost all of browser (as long as the browser based on IE kernel development, such as IE6- IE11, Webkit etc.) load the client application software write with predetermined interface, compatibility is very strong.
The application can by way of distinguishing and loading client application software using user input domain name, and utilize interior The embedding, mode of page download client application software, can be bad with other by the client application software with reliable signature Determine that the client application software isolation load of third party's signature of safety is run, can on the one hand ensure the peace of browser Entirely, enable to the client application software that browser can load extensive digital signature again.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of description, and in order to allow the above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the specific embodiment of the present invention.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with based on teaching in this.As described above, construct required by this kind of system Structure be obvious.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to use various Programming language realizes the content of invention described herein, and the description above language-specific done is to disclose this Bright preferred forms.
In description mentioned herein, illustrate a large amount of details.It is to be appreciated, however, that the enforcement of the present invention Example can be put into practice in the case of not having these details.In some instances, known method, structure are not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly it will be appreciated that in order to simplify the disclosure and help understand one or more of each inventive aspect, Above in the description to the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor The application claims of shield more features than the feature being expressly recited in each claim.More precisely, it is such as following Claims reflected as, inventive aspect is all features less than single embodiment disclosed above.Therefore, The claims following specific embodiment are thus expressly incorporated in this specific embodiment, wherein each claim itself All as the separate embodiments of the present invention.
Those skilled in the art are appreciated that and the module in the equipment in embodiment can be carried out adaptively Change and they are arranged in one or more equipment different from this embodiment.Can be the module in embodiment or list Unit or assembly be combined into a module or unit or assembly, and can be divided in addition multiple submodule or subelement or Sub-component.In addition to such feature and/or at least some of process or unit exclude each other, can adopt any Combination is to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed Where method or all processes of equipment or unit are combined.Unless expressly stated otherwise, this specification (includes adjoint power Profit requires, summary and accompanying drawing) disclosed in each feature can carry out generation by the alternative features providing identical, equivalent or similar purpose Replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments in this include institute in other embodiments Including some features rather than further feature, but the combination of the feature of different embodiment means to be in the scope of the present invention Within and form different embodiments.For example, in the following claims, embodiment required for protection any it One can in any combination mode using.
The all parts embodiment of the present invention can be realized with hardware, or to run on one or more processor Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that can use in practice Microprocessor or digital signal processor (DSP) come to realize gateway according to embodiments of the present invention, proxy server, in system Some or all parts some or all functions.The present invention is also implemented as executing side as described herein Some or all equipment of method or program of device (for example, computer program and computer program).Such The program realizing the present invention can store on a computer-readable medium, or can have the shape of one or more signal Formula.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or with any other shape Formula provides.
It should be noted that above-described embodiment the present invention will be described rather than limits the invention, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference markss between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element listed in the claims or step.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can come real by means of the hardware including some different elements and by means of properly programmed computer Existing.If in the unit claim listing equipment for drying, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame Claim.
The invention discloses, A1, a kind of method that client application software is converted to webpage software, the method includes:
In IE kernel registered plug-ins, and generate the unique mark of plug-in unit, this plug-in unit has self defined interface, this plug-in card configuration There is Gkey parameter;Described Gkey parameter is used for being assigned the exclusive identification code Gkey value of client application software;
Give client application software domain name and Gkey value;
Running described plug-in unit calls the client write based on described self defined interface should based on domain name and Gkey value With software data to run described client application software in webpage.
A2, the method according to A1, are further characterized in that, the method also includes
Judge whether the domain name of user input belongs to the domain name list being pre-configured with, if it is, parsing domain name, generate Gkey value;
Judge whether described Gkey value belongs to the Gkey value in white list, if it is,
Should based on the client that described Gkey value loads described plug-in unit to have described self defined interface in browser execution Use software.
A3, the method according to A1, described plug-in unit is based on domain name and Gkey value calls described client application soft Number of packages evidence, specifically includes:
Described plug-in unit is searched in systems according to unique mark, described plug-in unit has described unique mark;
Described Gkey value is given the described Gkey parameter in the described plug-in unit finding;
Described plug-in unit calls described client application software data based on described self defined interface.
A4, the method according to any one of A1-A3, the method also includes:
Before browser accesses a client application software, carry out backstage configuration.
A5, the method according to any one of A1-A4, the configuration of described backstage includes:
Give client application software domain name and Gkey value, and domain name list, white list are updated, domain name arranges Table is stored with the domain name of all web games, and described white list is stored with the Gkey value of client application software;
The acquisition approach of configuration client application software data.
A6, the method according to A5, described client-side program data storage is in browser server, high in the clouds or the 3rd Square server.
A7, the method according to A4 or A5, described plug-in unit calls described client application based on described self defined interface Software data, specifically includes:
The configuration information related to client application software that the reception server returns, described configuration information includes described Gkey value and routing information;
Load described plug-in unit;
Transfer and be based on described predetermined interface according to described routing information and load described client application software data.
A8, the method according to any one of A1-A7, described plug-in unit calls described client based on described self defined interface Application of software data, specifically includes:
Described computer program is carried out with upgrading detection;
If necessary to upgrade, then upgrading data is called according to the configuration information returning.
A9, the method according to any one of A1-A6, the method also includes:It is directly embedded in browser and there are predetermined label The client application software data of name.
B10, a kind of terminal loading client application software based on browser, including:
Plug-in registration unit, it is used in IE kernel registered plug-ins, and generates the unique mark of plug-in unit, and this plug-in card configuration has Self defined interface and Gkey parameter;Described Gkey parameter is used for the unique mark of assignment client application software;
Domain name input block, for the domain name of receiving user's input;
Send receiving unit, for sending domain name to server or high in the clouds, and receive the information of return, described return Information include Gkey value;
Loading unit, for giving described Gkey parameter Gkey value according to described Gkey value and loading described plug-in unit;
Call unit, for the client calling and running described Gkey value uniquely identified to have described self defined interface Application software.
B11, the terminal according to B10, described loading unit specifically includes:
Searching unit, for searching described plug-in unit in systems according to described unique mark;
Gkey value given unit, for giving the described Gkey parameter in the described plug-in unit finding by described Gkey value.
B12, the terminal according to B10 or B11, the information of described return includes the acquisition of client application software data Path, described call unit calls client application software data according to described acquisition approach.
B13, the terminal according to any one of B10-B12, described loading unit specifically includes upgrading detector unit, is used for Described client application software is carried out with upgrading detection;Described call unit calls upgrading data in the case of needing upgrading.
C14, a kind of server loading client application software based on browser, including
Give client application software domain name and Gkey value, and the white list storing domain name list and preserving Gkey value;
Domain name judges resolution unit, and whether the domain name for judging user input belongs to domain name list, if it is, parsing Domain name list, generates Gkey value;
Load determining unit, for judging whether described Gkey value belongs to the Gkey value in white list, if it is, instruction Run described plug-in unit with client application software described in browser execution.
C15, the server according to C14, this server also includes:
Dispensing unit, for, before browser accesses a client application software, carrying out backstage configuration.
C16, the server according to C14 or C15, described dispensing unit includes:
Domain name dispensing unit, for giving client application software domain name, and more new domain name list;
Gkey value dispensing unit, for giving client application software Gkey value, and is updated to white list;
Path dispensing unit, for configuring the acquisition approach of client application software data.
C17, the server according to any one of C14-16, also include:Embedded unit, has for embedding in browser The client application software program of pre-determined signature.

Claims (10)

1. a kind of by client application software be converted to webpage software method it is characterised in that include:
Domain name request is sent to server or high in the clouds, and receives response message, described response message includes and domain name Corresponding configuration information, domain name is corresponding with a client application software;
One plug-in unit is searched in system based on described response message, this plug-in unit is provided with parameter, described parameter is variable;
Assignment is carried out to described parameter according to described configuration information, and loads the plug-in unit after assignment;
Call the client application software being stored in server or high in the clouds using described plug-in unit to run described client in webpage End application software.
2. method according to claim 1, is further characterized in that, described parameter includes Gkey parameter, according to described configuration Information carries out assignment to described parameter, including:The unique mark Gkey value of client application software is given described in finding Described Gkey parameter in plug-in unit.
3. method according to claim 1 and 2, is further characterized in that, described plug-in unit and described client application software base In identical interface exploitation.
4. the method according to any one of claim 1-3, is further characterized in that, without finding this plug-in unit, then from Server obtains plug-in unit installation kit;
Registered using acquired plug-in unit installation kit.
5. the method according to any one of claim 1-4, is further characterized in that, is looked in system based on described response message Look for described plug-in unit, specifically include:
Judge whether to need to load plug-in unit based on response message, search described plug-in unit if necessary in system.
6. the method according to any one of claim 1-5, is further characterized in that, described client application software is computer Game.
7. a kind of method that client application software is converted to webpage software, the method includes:
Pre-set white list, described white list includes domain name list;
When accessing a client application software, give its domain name and Gkey value, according to the domain name being given to described white name Singly it is updated, the configuration information of storage client application software data, described configuration information includes Gkey value, store path letter Breath;
Reception domain name request, the configuration information of the client application software asked according to domain name acquisition request, will be described Configuration information is sent to terminal;
Receive the call request of self terminal, by client application software data is activation to terminal, to transport on terminal browser The described application program of row.
8. method according to claim 7, described step:Receive domain name request, asked according to domain name acquisition request The configuration information of the client application software asked, specifically includes:
Parsing domain name request, and determine whether asked domain name belongs to white list;
If belonged to, obtain the configuration information of asked client application software according to domain name, otherwise to client Return the information of request failure.
9. a kind of based on client application software realize webpage software termination it is characterised in that include:
Input block, for the domain name of receiving user's input;
First transmission receiving unit, for sending domain name to server or high in the clouds, and receives response message, described response letter Breath includes the configuration information corresponding with domain name, and domain name is corresponding with a client application software;
Plugin lookup unit, searches described plug-in unit based on described response message in system, and this plug-in card configuration has parameter, described ginseng Number is variable;
Plug-in unit loading unit, for carrying out assignment according to described configuration information to described parameter, and loads the plug-in unit after assignment;
Data call unit, calls the client application software being stored in server or high in the clouds with webpage using described plug-in unit Run described client application software.
10. a kind of server unit realizing webpage software based on client application software, this device includes:
Preset unit, is used for pre-setting white list, and described white list includes domain name list;
Dispensing unit, for when accessing a client application software, giving its domain name and Gkey value, according to the domain being given Name, Gkey value are updated to described white list, the configuration information of storage client application software data, described configuration information bag Include Gkey value, store path information.
Second transmission receiving unit, for receiving domain name request;
Configuration information acquiring unit, the configuration letter of the client application software for being asked according to domain name acquisition request Breath;
Described configuration information is sent to terminal by described second transmission receiving unit, receives the call request of self terminal, by visitor Family end application of software data is sent to terminal, to run described client application software on terminal browser, generates webpage soft Part.
CN201610856562.5A 2016-09-27 2016-09-27 Method and device for converting client application software into webpage software Active CN106445530B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610856562.5A CN106445530B (en) 2016-09-27 2016-09-27 Method and device for converting client application software into webpage software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610856562.5A CN106445530B (en) 2016-09-27 2016-09-27 Method and device for converting client application software into webpage software

Publications (2)

Publication Number Publication Date
CN106445530A true CN106445530A (en) 2017-02-22
CN106445530B CN106445530B (en) 2020-04-07

Family

ID=58169442

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610856562.5A Active CN106445530B (en) 2016-09-27 2016-09-27 Method and device for converting client application software into webpage software

Country Status (1)

Country Link
CN (1) CN106445530B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109614562A (en) * 2018-11-27 2019-04-12 平安科技(深圳)有限公司 Mail display methods, device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647398A (en) * 2011-02-16 2012-08-22 腾讯科技(深圳)有限公司 Method and device for realizing game on basis of mobile terminal
CN102682014A (en) * 2011-03-14 2012-09-19 腾讯科技(深圳)有限公司 Open-type plug-in module management platform implemented on browser and open-type plug-in module management method
CN103425491A (en) * 2013-07-30 2013-12-04 广州市动景计算机科技有限公司 Game engine
CN105242910A (en) * 2014-06-24 2016-01-13 深圳市茁壮网络股份有限公司 Middleware plug-in frame based plug-in state control method and client

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647398A (en) * 2011-02-16 2012-08-22 腾讯科技(深圳)有限公司 Method and device for realizing game on basis of mobile terminal
CN102682014A (en) * 2011-03-14 2012-09-19 腾讯科技(深圳)有限公司 Open-type plug-in module management platform implemented on browser and open-type plug-in module management method
CN103425491A (en) * 2013-07-30 2013-12-04 广州市动景计算机科技有限公司 Game engine
CN105242910A (en) * 2014-06-24 2016-01-13 深圳市茁壮网络股份有限公司 Middleware plug-in frame based plug-in state control method and client

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109614562A (en) * 2018-11-27 2019-04-12 平安科技(深圳)有限公司 Mail display methods, device, computer equipment and storage medium
CN109614562B (en) * 2018-11-27 2024-05-14 平安科技(深圳)有限公司 Mail display method, mail display device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN106445530B (en) 2020-04-07

Similar Documents

Publication Publication Date Title
CN106406961B (en) Method and device for loading and providing application program based on browser
US20200019414A1 (en) Runtime extension system for bundled web application
CN107203555B (en) Page loading processing method and device
US9098636B2 (en) White-box testing systems and/or methods in web applications
US8819817B2 (en) Methods and apparatus for blocking usage tracking
US8261258B1 (en) Common installer client
CN104536981B (en) Realize method, browser client and the device of secure browser
US9455876B1 (en) Method and standard for integrating applications into a cloud
CN106569856B (en) A kind of loading method and device of application view resource file
US9858094B2 (en) Monitoring and actuation of view controller parameters to reach deep states without manual developer intervention
CN110187910B (en) Thermal updating method, device, equipment and computer readable storage medium
CN105765527A (en) Method and apparatus for custom software development kit (SDK) generation
CN103036871B (en) Support device and method of application plug-in of browser
US6865732B1 (en) Providing an embedded application specific web server
CN106897607A (en) A kind of method for monitoring application program and device
CN111917837A (en) Web micro application program publishing system and implementation method thereof
CN112579461B (en) Assertion processing method, system and storage medium
CN106411880B (en) A kind of safe encryption and decryption method of game data and encryption, decryption device
CN110750243A (en) Project code development method and system
CN109918112B (en) Game hot update method, device and storage medium
CN111935107B (en) Identity authentication method, device, system, electronic equipment and storage medium
US9354849B2 (en) Modification of compiled applications and application management using retrievable policies
CN106445530A (en) Method and device for converting client application software into webpage software
CN103530155A (en) Method and device for installing application program
CN104539585B (en) Method, browser client and the device of the anti-injection of browser

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220707

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.