Embodiment
As shown in Figure 1, the utility model discloses a kind of mobile open interactive system, comprise server 1, described server 1 be used for carrying out data interaction with intelligent terminal 2 and the request of intelligent terminal 2 handled and will handle after result transmission give intelligent terminal 2.
Described server 1 comprises front end web server 11, and described front end web server 11 is used for static data and obtains.
Described server 1 also comprises APP server cluster 12, and described APP server cluster 12 is used for dynamic data is handled.
Described server 1 also comprises load-balancing device 13, and described load-balancing device 13 links to each other with described APP server cluster 12.
Described server 1 also comprises core API server 14, and 14 pairs of API requests of described core API server are handled.
Described core API server 14 carries out clustered deploy(ment), increases preposition functional module 15 before core API server cluster, and the core API server 14 that preposition functional module 15 is carried out in the cluster carries out the load balancing management.
Described intelligent terminal 2 comprises smart mobile phone or panel computer.
Server of the present utility model and intelligent terminal carry out data interaction and processing, and data interaction and processing have improved operating efficiency fast.
Client is installed in the smart mobile phone, and server and client are carried out connection communication; In client, API is embedded in the HTML5 page, calls API and obtains back-end data thereby the user obtains the HTML5 page by client, and resolve by browser and to play up on smart mobile phone.
Browser adopts webkit browser kernel.
In server, different data are classified, and set up database respectively, after arbitrary database reaches the setting capacity, can split this database again for different data.
By setting up database respectively for different data, thereby make arbitrary independent database data amount reduce, thereby after arbitrary database reaches the setting capacity, can be again this database be split and realize extending transverselyly, for example member user's database and resource database can divide the storehouse to handle so that guarantee can be extending transversely.
Core API server 14 load balance process are to guarantee large concurrent API server performance.
API comprises the API of system, and client can start a timer after triggering system API request, if the API of system does not have response to return in 3 seconds, timer will trigger overtime incident, and gives the user with overtime event response; If the API of system has information to return in 3 seconds, then cancel the timer setting, client continues to finish follow-up flow operations.
By timer is set, thereby guarantee response speed, be beneficial to fast reaction.
Server carries out separate processes to static data and dynamic data, and static data need not be visited background data base, directly obtains from front end web server 11; Dynamic data is handled by APP server cluster 12, and APP server cluster 12 adopts load-balancing technique.
Because of static data need not be visited background data base, directly obtain from front end web server 11, respond and support bigger concurrency efficiently so can provide.Because of dynamic data is handled by APP server cluster 12, APP server cluster 12 adopts load-balancing technique, so response speed and bigger concurrency faster also can be provided.
Client is installed in the smart mobile phone, and server and client are carried out connection communication; The API module is installed in this client, and this API module is embedded in the HTML5 page, calls the API module and obtains back-end data thereby the user obtains the HTML5 page by client, and resolve by browser and to play up on smart mobile phone.
In described client, also comprise IM communication module and payment module.
Should move the open applications platform that open interactive system is based on integrated multiple hotspot service of mobile Internet such as third party's payment, IM, Map Services, mobile phone browser etc., the various serviced components and the opening API that provide by this open platform, the third party cooperative developer can be easy making based on the application of the portable terminal operating platform of various main flows, and obtain powerful technology operation support, obtain wide development and promote chance.User with resource can integrate resource by native system, voluntarily exploitation or utilize these developments of resources to go out mobile application product by the third party.
API:Application Programming Interface, application programming interface.
OAUTH authentication: the standard of open source mandate.
Workflow engine: workflow is as the part of application system, and provides for it the determinative different decision information according to role, the division of labor and condition of each application system are transmitted core solutions such as routes, content rating.
IM: instant messaging.
Should move open interactive system and can build outstanding, a whole mobile Internet e-commerce platform, make the integrated industrial chain bar, for businessman provides outstanding application and promotes platform, for the user provides outstanding consumption experience.
The displaying of mobile phone end webpage that client is integrated, and can the plug-in unit mode provide payment and IM chat feature.The code of this client will be as the online packing masterplate of open platform, finishes integration with the open platform page by revising configuration parameter, and businessman uses for the user by online packing formation client installation kit.
Should move open interactive system and also comprise online design system, online design system need at first be determined overall page logic, the page that initialization system comprised with the login of developer's user identity after entering design system, and determine each page the redirect relation, enter the paging design afterwards.Page system is based on the basis in jquery mobile storehouse and realizes the UI encapsulation, by online pulling UI control code is inserted in the online design of simulators.Each control comprises attribute, incident.Wherein the control of data dependence comprises data source (detailed explanation is hereinafter arranged) option.The user binds UI and API method by disposition data source and obtains data.Link attribute by control is realized page jump and parameter transmission.Wherein relate to nonsystematic API method and can cross the logical operation of finishing and to allow user oneself input JAVASCRIPT code by the code edit page that system provides, and the system that is integrated into is to finish whole logical design.
Data source generates, and data source definitions: the data source of online design system refers to the set of being made up of a series of API requesting methods.Data source comprises module and method.Module is the division that request is carried out according to function to API, then corresponding each the API request of method.Wherein data source can be the API that the open platform system provides itself, also can make the outside API that inserts.Originally as example, after the content provider had uploaded a collection of resource, this batch resource just can be used as a data source with system.This data source has comprised line module, merchandise module, and transaction modules, parts such as evaluation module, each part have then comprised the API method of all kinds of requests.The user has selected this data source just can use method in the data source.Data for the outside is inserted have adopted the front-end system in Gaoyang at present.Be responsible for adopting the unified XML form to return all outside accesses by Gaoyang.Insert and need all requesting methods be entered into open platform according to the external data access document that Gaoyang provides for the outside, each request of data method is as the method in the data source.Can in the design page, carry out self-defined configuration in the attribute in binding data source for the optional parameters in the data source requesting method, the ordering rule of commodity for example, querying condition setting.
After having determined data source, for control that can binding data, in attribute, can select disposition data source, behind the binding data source, control obtains API JSON data by AJAX, by jquery parseJSON function data are shown according to the control configuration, on simulator, accomplish the effect of What You See Is What You Get.
The data source one of online design system has two kinds of sources:
1, by merchandise system, upload the commodity resource with content provider's user identity, upload that become after resource is resolved can be for the data source of developer's use.
2, obtain by the mode that imports external data in the data source management.
Set up APP and use, after developer user logins by online design platform, fill in carrying out property of application related data APP application and development at online generation column.
APP data source binding, after setting up APP and using, each APP of system requirements binds a data source at least, can operate data in the data source by API in APP.
APP Logic Structure Design, APP Logic Structure Design are finished the logic redirect relationship description between the APP page, and the process Logic Structure Design determines that relation is stored in the JS of the system data, for the detailed design module invokes.
The APP detailed design enters the APP detailed design after finishing the design of APP applied logic, finish in the detailed design module.
The online packing of APP generates corresponding SDK or client by service end compiling platform by user's configuration file.Wherein service end uses the ANT script that the compiling parameter is configured, and realizes that each final application generates clients corresponding on request by different configuration files.After client signature packing generates download address is presented on the website and downloads test for the developer.
The corresponding catalogue of each online APP of developer, configuration file is build.xml.The user revises the build.xml parameter by online design module, and buld.xml finishes initialization, resource copy, signature configuration, and becomes into apk by collector, installs for user's download.
APP test and issue, generate application by online packaging system after the online design of developer user is finished and download, submit test in the application release module afterwards, system issues auditing result after background test, APP after audit is passed through can be real on the foreground, for user's download.
Interface design, external interface module, external interface module realize that function is data source module interface (method) relevant information to be imported or typing development platform and to external system request data and resolve and return to application.At present the open platform system has adopted the third-party front-end system in ground, by preposition uniform data form, and provides method after the encapsulation, for system call.
The api interface design, system Api calls by unified interface interfacename, does API legitimacy, validity, allocating time restriction judgement with this interface, and by the relevant API of method parameter call, final parameter is the oauth parameters for authentication.
Internal interface, the page parameter transmission, each page is made up of different assemblies, and different assemblies are by the asynchronous interactive Data transmission, and each reciprocal process is made up of request msg and return data.The user needs the configuration jump page, data source method, attributes such as content when selecting assembly.These attributes are page jump, data interaction provides request address, data source provides required parameter and return parameters (it is consistent to upload the data field title, and the outside data field title that inserts may there are differences, and can solve by the mapping relations of disposition data source) information for each method.Is each component binding real time data using the issue back by calling unified js processing method, and realizes the redirect between the page.
After each should bind data source, can use at this and produce under catalogue the required parameter of should data source all methods and the js file of return parameters, pass the ginseng use for the page.When certain method of page invocation, from this document, obtain required parameter and return parameters.The parameter of accepting of each page is obtained the map of all parameters that the last page imports into and is converted into json by request, obtains the required parameter name by parameter.js then, according to this parameter name value of getting parms from json.
The page jump logical design changes design and generates the page jump logic, the page of selecting the reorganization part to jump to when component property is set.After the design of each page is finished, can generate the suction parameter of each page, when the incident in the assembly jumps to when changing the page, filter out unnecessary parameter.
Page input parameter passes ginseng, shows that for input control in the design page and data the biography ginseng of control parameter needs by unified intermediary interface control.At first add the parameter transmission and represent option in control property, system can obtain the ID and the corresponding numerical value of all controls that need the parameter transmission when the page jump of control.When the page jump parameter list that intermediary interface will be preserved in the previous page during to new page is handled for new page.Continuing to do the parameter transmission to next page if desired then continues to carry out parameter transmission processing by this interface.
Above content be in conjunction with concrete preferred implementation to further describing that the utility model is done, can not assert that concrete enforcement of the present utility model is confined to these explanations.For the utility model person of an ordinary skill in the technical field, under the prerequisite that does not break away from the utility model design, can also make some simple deduction or replace, all should be considered as belonging to protection range of the present utility model.