CN102546819B - Cross-platform system and method in mobile terminal application - Google Patents

Cross-platform system and method in mobile terminal application Download PDF

Info

Publication number
CN102546819B
CN102546819B CN 201210032109 CN201210032109A CN102546819B CN 102546819 B CN102546819 B CN 102546819B CN 201210032109 CN201210032109 CN 201210032109 CN 201210032109 A CN201210032109 A CN 201210032109A CN 102546819 B CN102546819 B CN 102546819B
Authority
CN
China
Prior art keywords
client
data
step
server
service
Prior art date
Application number
CN 201210032109
Other languages
Chinese (zh)
Other versions
CN102546819A (en
Inventor
薄满辉
唐红武
佟业新
高栋
李长杰
Original Assignee
中国民航信息网络股份有限公司
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 中国民航信息网络股份有限公司 filed Critical 中国民航信息网络股份有限公司
Priority to CN 201210032109 priority Critical patent/CN102546819B/en
Publication of CN102546819A publication Critical patent/CN102546819A/en
Application granted granted Critical
Publication of CN102546819B publication Critical patent/CN102546819B/en

Links

Abstract

一种移动终端应用的跨平台系统,由客户端、服务端和消息通知系统构成;其中客户端包括客户端与html5交互模块、客户端数据请求模块、客户端数据缓存模块;服务端包括服务端解密模块和服务端服务提供模块;消息通知系统包括消息通知模块。 A mobile terminal system of cross-platform applications, by the client, server and configured message notification system; wherein the client comprises a client interaction module html5, the client module requests data, client data cache module; the server including server decryption module and server service providing module; message notification message comprises a notification module system.

Description

一种移动终端应用的跨平台系统及其方法 A mobile terminal cross-platform application system and method

技术领域 FIELD

[0001] 本发明涉及一种移动终端应用的跨平台系统及其方法,该移动终端应用的跨平台系统充分考虑了NATIVE模式和传统WEB应用的优劣势,融合两种模式的优点,尽可能降低手机客户端应用的版本变化,应用提供商可以实时地更新和推广使用,提高用户需求的反应能力,降低应用的推广成本和难度。 [0001] The present invention relates to a system and method for cross-platform applications of a mobile terminal, the mobile terminal cross-platform application NATIVE fully consider advantages and disadvantages of the conventional mode and WEB application, the advantages of integration of the two modes, to reduce as much as possible version change mobile client application, the application provider can be updated in real time and to promote the use and improve the ability to respond to user needs, reduce marketing costs and the difficulty of the application.

背景技术 Background technique

[0002]目前移动应用软件多采用NATIVE模式。 [0002] Currently mobile application software to use more NATIVE mode. 这种模式的优点在于用户体验好、响应速度快。 The advantage of this mode is that the user experience is good, fast response. 同样缺点也比较明显,主要是更新不方便,不同的客户端在不同的手机平台上不兼容。 The same disadvantages are also obvious, mainly to update inconvenient, is not compatible with different clients on different mobile platforms. 手机平台较多,跨平台的开发成本高,版本更新和变更复杂。 More mobile platform, cross-platform development costs are high, complex version updates and changes. 不利于大规模的企业应用的开发和推广。 Not conducive to the development and promotion of large-scale enterprise applications.

[0003] 相较NATIVE模式,html5方式恰好可以弥补其不足,当然也存在其缺点,如数据的加密,压缩,交互体验和视觉等。 [0003] Compared NATIVE mode, html5 way just can make up for its shortcomings, of course, there are also disadvantages, such as data encryption, compression, and other visual and interactive experience.

[0004] 本发明很好地融合这两种模式的优点,提出跨平台的移动应用开发,解决了移动应用显示界面与手机本身的耦合问题,实现了手机应用的跨平台,数据的有效通信和服务端资源访问手机本地功能,形成初步的移动开发技术框架和规范。 [0004] The advantages of the present invention, a good mix of these two models, the development of cross-platform mobile application proposes to solve the problem of moving the application display interface coupled to the phone itself, to achieve an effective cross-platform mobile communication applications, data, and server resource access local phone features, a preliminary mobile development framework and technical specifications.

发明内容 SUMMARY

[0005] 本发明的移动终端应用的跨平台系统由客户端、服务端和消息通知系统构成。 [0005] Cross-platform mobile terminal of the present invention is applied by the client, server and configured message notification system. 其中客户端包括客户端与html5交互模块、客户端数据请求模块、客户端数据缓存模块;服务端包括服务端解密模块和服务端服务提供模块;消息通知系统包括消息通知模块。 Wherein the client comprises a client interaction module html5, the client module requests data, client data cache module; the server including server decryption module and server service providing module; message notification message comprises a notification module system.

[0006] 客户端与html5交互模块由webkit引擎和html5组成,利用html在页面设计和跨平台上的优点以及native在调用系统功能和系统性能方面的优点,降低在跨平台上的开发难度,提高开发移动应用的效率。 [0006] client and html5 interactive module by the webkit engine and html5 composition, the use html advantages and native in the page design and cross-platform calling advantage of the system functionality and system performance, reduce development effort on a cross-platform, improve mobile applications development efficiency.

[0007] 客户端数据请求模块是用户通过客户端UI发送请求后,在数据交互过程中,对请求数据采用DES对称加密算法进行加密处理,提高信息安全性。 [0007] The client module data request is sent after the user request through the client UI, in the data interaction process, request data using the DES symmetric encryption algorithm to encrypt, improving the security performance.

[0008] 客户端数据缓存模块将用户访问的数据缓存于客户端本地数据库,用户在首次访问之后,后续都默认从客户端本地数据库中获取数据,只有当用户显式的刷新时才会从服务端重新获取数据。 [0008] The client data cache module will cache data users access to the client's local database, user after the initial visit, follow-up by default to retrieve data from the client local database, only when the user explicitly refresh will from service end retrieve data. 在缓存过程中,首先判断之前是否有相同数据,若有,则不缓存,若没有,则缓存。 In the buffer process, prior to first determine whether there is the same data, if any, is not cached, if not, then the cache. 在获取数据过程中,对数据有失效时间判断,若已过失效时间,则无法获取数据,若未过失效时间,则返回数据给页面。 In the data acquisition process, the judge has time to failure data, failure Ruoyi over time, you can not get the data, if not fail over time, the data is returned to the page.

[0009] 服务端解密模块是服务器端接收到客户端发送的请求后,在对数据进行处理前对其进行解密,为了提高安全性,服务端将定期向客户端发送秘密码,保持密码的实时更新。 [0009] decryption server module is the server receives a request sent by the client, before processing the data to decrypt it, in order to improve safety, the server will periodically send secret password to the client, in real time passwords update.

[0010] 消息通知模块是基于XMPP (可扩展消息处理现场协议)协议标准,实现服务端和客户端相互通知及不稳定网络的异步消息的推送。 [0010] The push-based message notification module is the XMPP (Extensible Messaging and Presence Protocol) standard protocol, and the client service to achieve mutual and asynchronous message notification of network instability.

[0011] 根据本发明的移动终端应用的跨平台方法,包括如下步骤:[0012] 步骤1,运行客户端软件,客户端实时监控是否接收到服务器端发送的消息提醒; [0011] The method of cross-platform mobile terminal of the present invention is applied, comprising the steps of: [0012] Step 1, running the client software, the client has received real-time monitoring the alert message sent by the server;

[0013] 步骤2,如果客户端检测到服务器端发送的消息提醒,在客户端页面显示,如果否,则返回步骤I; [0013] Step 2, if the client detects that the server sends the alert message, the page displayed on the client, and if not, returns to step I;

[0014] 步骤3,根据客户端选择的功能指令,客户端与html5交互模块调用移动应用系统相应功能,获取请求数据; [0014] Step 3, in accordance with the instruction function selected by the client, the client interaction module and calls the corresponding function html5 mobile applications, data acquisition request;

[0015] 步骤4,如果获取请求数据成功,客户端数据请求模块对客户端发送的请求数据进行加密,如果否,则返回步骤I ; [0015] Step 4, if the data acquisition request succeeds, the client module data request request data sent by the client are encrypted, and if not, returns to step I;

[0016] 步骤5,把加密后的请求数据发送到服务器端; [0016] Step 5, the encrypted data transmission request to the server;

[0017] 步骤6,如果服务器端接收到客户端发送的消息,则对数据解密,根据实际业务处理后发送回客户端; [0017] Step 6, if the server receives the message sent by the client, then decrypts the data back to the client in accordance with the actual service processing;

[0018] 步骤7,判断客户端是否获取数据成功,如果否,则返回步骤I ; [0018] Step 7, it is determined whether the client data acquired successfully, and if not, returns to step I;

[0019] 步骤8,客户端数据缓存模块将数据缓存入客户端数据库。 [0019] Step 8, the client data cache into a data buffer module client database.

[0020] 在步骤2客户端使用XMPP (可扩展消息处理现场协议)协议标准通过数据通道的模式实现頂(即时消息)及在线现场准实时探测,如果监测到服务器端发送的消息提醒,则在客户端页面显示消息提醒,如果没有,则继续监测。 [0020] Using XMPP 2 client step (Extensible Messaging and Presence Protocol) protocol standard to achieve a top (instant messaging) and live online quasi real-time detection by the pattern data channel if the monitoring to the server sends the message alert, then client page displays a reminder message, if not, continue to monitor.

[0021] 在步骤3客户端调用客户端与html5交互模块,在选择功能指令时,针对复杂的业务,UI的产生由服务器端完成,采用web开发常用的dwr操作数据方式通过类WEB页面进行展示,针对简单的、更新不频繁的应用,Π直接在客户端生成。 [0021] Calling client html5 interaction module 3 client step of selecting a function instruction for complex business, generate a UI is done by the server, using web development common dwr operation data mode on display through the class WEB page for simple, infrequent update applications, Π is generated directly in the client.

[0022] 在步骤5中,对客户端生成的请求数据采用DES对称加密算法加密,如果数据加密的密码过期失效,客户端则从服务器端获取密码,将客户端的密码更新。 [0022] In step 5, the client generates the request data using the DES symmetric encryption algorithm, the encrypted data if the password expires, the client acquires the password from the server, the client updates the password.

[0023] 在步骤7如果是从服务端获取数据,服务器端首先接收到客户端发过来的服务请求,其次判断服务端是否具有该服务,如果没有,则返回错误信息给客户端,如果有,再判断该服务是否已开放给客户端,如果没有,则返回错误信息给客户端。 [0023] In step 7 if it is acquired from the server data, the server first receives the client sent, service request, followed by determining the server whether the service, if not, an error message is returned to the client, if any, then determine whether the service is open to the client, if not, an error message is returned to the client. 如果是从客户端获取数据,客户端数据缓存模块首先判断待获取缓存数据是否已过失效时间,如果已过,则不返回数据。 If the data is acquired from the client, the client data cache module first determines whether or not cache data to be acquired expiration time has passed, if passed, no data is returned. 所述步骤7包括如下子步骤: Step 7 comprises the following sub-steps:

[0024] 步骤7.1,如果是从服务端获取数据,服务端服务提供模块接收客户端发送过来的服务请求; [0024] Step 7.1, if the data is acquired, the service server from the server module receives a service request sent by the client;

[0025] 步骤7.2,判断是否有该服务,如果服务端没有该服务,则返回错误信息,并回到步骤7.1 ;如果有服务,则进入下一步骤; [0025] Step 7.2, there is determined whether the service of the service if the server is not, returns an error message, and returns to step 7.1; if service, the process proceeds to the next step;

[0026] 步骤7.3,判断是否服务已开放给客户端,如果服务未开放,则返回错误信息,并回到步骤7.1 ;如果服务已开放,则进入下一步骤; [0026] Step 7.3, to determine whether the service is open to the client, if the service is not open, an error message is returned, and return to step 7.1; if the service is open, proceed to the next step;

[0027] 步骤7.4,将请求服务数据返回给客户端。 [0027] Step 7.4, the data service request back to the client.

[0028] 步骤7.5,客户端数据缓存模块从客户端数据库获取数据; [0028] Step 7.5, the client data cache module acquires data from the client database;

[0029] 步骤7.6,判断缓存数据是否已失效(过期),如果已失效,则返回空数据; [0029] Step 7.6 determines whether the cache data is invalid (expired), if it fails, the null data is returned;

[0030] 步骤7.7,如果未失效,则返回数据。 [0030] Step 7.7, if not expired, the data is returned.

[0031] 在步骤8中,客户端数据缓存模块首先判断客户端数据库是否已有相同数据,如果已有,则不缓存,如果没有,则将数据缓存入客户端数据库。 [0031] In step 8, the client determines whether the first data block buffer in the client database has the same data, if existing, is not cached, and if not, the data is cached in the client database. 并在客户端页面显示数据。 And the client page displays data. 所述步骤8包括如下子步骤: Said step 8 comprises the substeps of:

[0032] 步骤8.1,客户端数据缓存模块将从服务端获取到的数据存入客户端数据库;[0033] 步骤8.2,判断缓存数据是否已存在,如果存在,则不缓存; [0032] Step 8.1, the client module from the data caching server to obtain data stored in the client database; [0033] Step 8.2 determines whether or not the data cache already exists, if present, is not caching;

[0034] 步骤8.3,如果不存在,则缓存。 [0034] Step 8.3, and if not, then the cache.

附图说明 BRIEF DESCRIPTION

[0035] 图1为本发明移动终端应用的跨平台系统方框图; [0035] Figure 1 is a cross-platform system block diagram of a mobile terminal application disclosure;

[0036] 图2为本发明移动终端应用的跨平台方法的总体流程图; [0036] FIG. 2 is an overall flowchart of a method of cross-platform applications of the invention, a mobile terminal;

[0037] 图3为本发明移动终端应用的跨平台方法的消息提醒流程图; Message [0037] FIG. 3 is a cross-platform mobile terminal application method of the invention a flowchart reminder;

[0038] 图4为本发明移动终端应用的跨平台方法的客户端数据缓存流程图; A flowchart of a client data cache [0038] FIG. 4 the cross-platform application method of a mobile terminal of the present invention;

具体实施方式 Detailed ways

[0039] 如图1所示,本发明的移动终端应用的跨平台系统由本发明的移动终端应用的跨 [0039] Figure 1, cross-platform mobile terminal of the present invention is applied by a mobile terminal of the present invention is applied across

平台系统由客户端、服务端和消息通知系统构成。 Platform system by the client, server and message notification system configuration. 其中包括客户端与html5交互模块、客户 Html5 including client interaction module, the customer

端数据请求模块、客户端数据缓存模块、服务端解密模块和消息通知模块。 End of the module data request, the client data cache module, the server module and the decryption module notification message. 由两台IBM小型 IBM by two small

机组成应用服务器集群,两台小型机构成HTTP接入服务器,一台小型机构成数据库系统。 Application server cluster machine components, constituting two minicomputer access HTTP server, a minicomputer system configuration database.

HTTP接入服务器负责接收所有请求,然后根据负载均衡将请求分配到应用服务器集群其中.-- HTTP access server is responsible for receiving all requests, then in accordance with the load balancing requests assigned to the application server cluster wherein .--

D ο D ο

[0040] 客户端与html5交互模块由webkit引擎和html5组成,利用html在页面设计和跨平台上的优点以及native在调用系统功能和系统性能方面的优点,降低在跨平台上的开发难度,提高开发移动应用的效率。 [0040] client and html5 interactive module by the webkit engine and html5 composition, the use html advantages and native in the page design and cross-platform calling advantage of the system functionality and system performance, reduce development effort on a cross-platform, improve mobile applications development efficiency.

[0041] 客户端数据请求模块是用户通过客户端UI发送请求后,在数据交互过程中,对请求数据采用DES对称加密算法进行加密处理,提高信息安全性。 [0041] The client module data request is sent after the user request through the client UI, in the data interaction process, request data using the DES symmetric encryption algorithm to encrypt, improving the security performance.

[0042] 客户端数据缓存模块将用户访问的数据缓存于客户端本地数据库,用户在首次访问之后,后续都默认从客户端本地数据库中获取数据,只有当用户显式的刷新时才会从服务端重新获取数据。 [0042] The client data cache module will cache data users access to the client's local database, user after the initial visit, follow-up by default to retrieve data from the client local database, only when the user explicitly refresh will from service end retrieve data. 在缓存过程中,首先判断之前是否有相同数据,若有,则不缓存,若没有,则缓存。 In the buffer process, prior to first determine whether there is the same data, if any, is not cached, if not, then the cache. 在获取数据过程中,对数据有失效时间判断,若已过失效时间,则无法获取数据,若未过失效时间,则返回数据给页面。 In the data acquisition process, the judge has time to failure data, failure Ruoyi over time, you can not get the data, if not fail over time, the data is returned to the page.

[0043]服务端解密模块是服务器端接收到客户端发送的请求后,在对数据进行处理前对其进行解密,为了提高安全性,服务端将定期向客户端发送秘密码,保持密码的实时更新。 [0043] decryption server module is the server receives a request sent by the client, before processing the data to decrypt it, in order to improve safety, the server will periodically send secret password to the client, in real time passwords update.

[0044] 消息通知模块是基于XMPP (可扩展消息处理现场协议)协议标准,实现服务端和客户端相互通知及不稳定网络的异步消息的推送。 [0044] The push-based message notification module is the XMPP (Extensible Messaging and Presence Protocol) standard protocol, and the client service to achieve mutual and asynchronous message notification of network instability.

[0045] 如图2所示,本发明的移动终端应用的跨平台系统,其移动终端应用的跨平台方法包括如下步骤: [0045] As shown, the cross-platform mobile terminal of the present invention is applied, the method of cross-platform applications which the mobile terminal 2 comprises the steps of:

[0046] 步骤1,运行客户端软件,客户端实时监控是否接收到服务器端发送的消息提醒; [0046] Step 1, running the client software, the client has received real-time monitoring the alert message sent by the server;

[0047] 步骤2,如果客户端检测到服务器端发送的消息提醒,在客户端页面显示,如果否,则返回步骤I ; [0047] Step 2, if the client detects that the server sends the alert message, the page displayed on the client, and if not, returns to step I;

[0048] 步骤3:根据客户端选择的功能指令,客户端与html5交互模块调用移动应用系统相应功能,获取请求数据; [0048] Step 3: The function of the instruction selected by the client, the client interaction module and calls the corresponding function html5 mobile applications, data acquisition request;

[0049] 步骤4:如果获取请求数据成功,客户端数据请求模块对客户端发送的请求数据进行加密,如果否,则返回步骤I ;[0050] 步骤5:把加密后的请求数据发送到服务器端; [0049] Step 4: If the acquisition request data is successful, the client data requesting module for requesting the data sent by the client are encrypted, and if not, returns to step I; [0050] Step 5: The transmission request encrypted data to the server end;

[0051] 步骤6,如果服务器端接收到客户端发送的消息,则对数据解密,根据实际业务处理后发送回客户端; [0051] Step 6, if the server receives the message sent by the client, then decrypts the data back to the client in accordance with the actual service processing;

[0052] 步骤7,判断是否获取数据成功,如果否,则返回步骤I ; [0052] Step 7, whether or not the data is successfully acquired, if not, returns to step I;

[0053] 步骤8,客户端数据缓存模块将数据缓存入客户端数据库。 [0053] Step 8, the client data cache into a data buffer module client database.

[0054] 图3为本发明移动终端应用的跨平台方法的消息提醒流程图;图4为本发明移动终端应用的跨平台方法的客户端数据缓存流程图。 Message [0054] FIG. 3 is a cross-platform application method of the invention the mobile terminal to remind the flowchart; Figure 4 is a cross-platform mobile terminal application method of the invention the client data cache flowchart.

[0055] 如图3所示,本发明的移动终端应用的跨平台方法,其消息提醒模块在客户端和服务器端之间进行如下操作: [0055] 3, the method of cross-platform mobile terminal of the present invention is applied, the message alert module perform the following operations between the client and the server:

[0056] 步骤1,运行客户端软件,客户端实时监控是否接收到服务器端发送的消息提醒; [0056] Step 1, running the client software, the client has received real-time monitoring the alert message sent by the server;

[0057] 步骤2客户端使用XMPP (可扩展消息处理现场协议)协议标准通过数据通道的模式实现IM(即时消息)及在线现场准实时探测,如果监测到服务器端发送的消息提醒,则在客户端页面显示消息提醒,如果没有,则继续监测。 [0057] Step 2 clients using the XMPP (Extensible Messaging and Presence Protocol) protocol standard by pattern data channel realization IM (instant messaging) and live online quasi real-time detection, if the monitored message server sends the alert, the customer end of the page displays a message to remind, if not, continue to monitor.

[0058] 如图4所示,本发明的移动终端应用的跨平台方法,其客户端数据缓存模块进行如下操作: [0058] As shown, the method of cross-platform mobile terminal of the present invention is applied, the client data cache module 4 as follows:

[0059] 步骤7.1,如果是从服务端获取数据,服务端服务提供模块接收客户端发送过来的服务请求; [0059] Step 7.1, if the data is acquired, the service server from the server module receives a service request sent by the client;

[0060] 步骤7.2,判断是否有该服务,如果服务端没有该服务,则返回错误信息,并回到步骤7.1 ;如果有服务,则进入下一步骤; [0060] Step 7.2, there is determined whether the service of the service if the server is not, returns an error message, and returns to step 7.1; if service, the process proceeds to the next step;

[0061] 步骤7.3,判断是否服务已开放给客户端,如果服务未开放,则返回错误信息,并回到步骤7.1 ;如果服务已开放,则进入下一步骤; [0061] Step 7.3, to determine whether the service is open to the client, if the service is not open, an error message is returned, and return to step 7.1; if the service is open, proceed to the next step;

[0062] 步骤7.4,将请求服务数据返回给客户端。 [0062] Step 7.4, the data service request back to the client.

[0063] 步骤7.5,客户端数据缓存模块从客户端数据库获取数据; [0063] Step 7.5, the client data cache module acquires data from the client database;

[0064] 步骤7.6,判断缓存数据是否已失效(过期),如果已失效,则返回空数据; [0064] Step 7.6 determines whether the cache data is invalid (expired), if it fails, the null data is returned;

[0065] 步骤7.7,如果未失效,则返回数据。 [0065] Step 7.7, if not expired, the data is returned.

[0066] 步骤8.1,客户端数据缓存模块将从服务端获取到的数据存入客户端数据库; [0066] Step 8.1, client-side data cache module from the server to get the data into the client database;

[0067] 步骤8.2,判断缓存数据是否已存在,如果存在,则不缓存; [0067] Step 8.2 determines whether or not the data cache already exists, if present, is not caching;

[0068] 步骤8.3,如果不存在,则缓存。 [0068] Step 8.3, and if not, then the cache. 如图4所示。 As shown in Figure 4.

Claims (3)

1.一种移动终端应用的跨平台系统,其特征在于,所述系统由客户端、服务端和消息通知系统构成;其中, 所述客户端包括客户端与html5交互模块、客户端数据请求模块、客户端数据缓存模块; 所述服务端包括服务端解密模块和服务端服务提供模块; 所述消息通知系统包括消息通知模块; 其中, 所述客户端与html5交互模块由webkit引擎和html5组成,利用html在页面设计和跨平台上的优点以及native在调用系统功能和系统性能方面的优点,降低在跨平台上的开发难度,提高开发移动应用的效率; 所述客户端数据请求模块是用户通过客户端UI发送请求后,在数据交互过程中,对请求数据采用DES对称加密算法进行加密处理,提高信息安全性; 所述客户端数据缓存模块将用户访问的数据缓存于客户端本地数据库,用户在首次访问之后,后续都默认从客户端本地数 Cross-platform application A mobile terminal, characterized in that the system consists of a client, server, and message notification system; wherein the client comprises a client interaction module html5, client data request module the client data cache module; the server including server decryption module and server module to provide services; the message notification message comprises a notification module system; wherein said client interaction module and a html5 html5 webkit engine and composition, html page to take advantage of the design and advantages of the cross-platform and native calling system functions and system performance, reduce development effort on a cross-platform mobile application development efficiency; data request of the client module by the user after the UI client sends a request, the data interaction process, request data using symmetric encryption algorithm DES encryption process to improve the security of information; the client data cache block accessed by the user data cached in the client local database, the user after the first visit, the follow-up by default from the client's local number 据库中获取数据,只有当用户显式的刷新时才会从服务端重新获取数据; 在缓存过程中, 首先判断之前是否有相同数据,若有,则不缓存,若没有,则缓存;在获取数据过程中,对数据有失效时间判断,若已过失效时间,则无法获取数据,若未过失效时间,则返回数据给页面; 所述服务端解密模块,是服务端接收到客户端发送的请求后,在对数据进行处理前对其进行解密,为了提高安全性,服务端将定期向客户端发送秘密码,保持秘密码的实时更新; 所述服务端服务提供模块接收客户端发送过来的服务请求;并判断是否有该服务,如果服务端没有该服务,则返回错误信息;如果有服务,则判断是否服务已开放给客户端,如果服务未开放,则返回错误信息;如果服务已开放,则将所述服务请求对应的数据返回给客户端; 所述消息通知模块是基于XMPP According to the library to get data, will only be re-acquired when the user explicitly refresh data from the server; in the course of the cache, if the same data before the first judge, if so, is not cached, if not, the cache; in data acquisition process, the time data is determined with a failure, the failure Ruoyi over time, data can not be acquired, if not failure over time, the data is returned to the page; decryption module of the server, the client receives the service sent after the request, before processing the data to decrypt it, in order to enhance security, the server will periodically send a password to the client secret, secret password updated in real time; the service providing server sent by the client module receives service request; and determine whether the service if the server is not the service, the error message is returned; if there is service, it is determined whether the service is open to the client, if the service is not open, an error message is returned; if service is open, then the data corresponding to the service request back to the client; the message notification module is based on XMPP 协议标准,实现服务端和客户端相互通知及不稳定网络的异步消息的推送。 Protocol standard, to achieve service and client to inform each other and push the asynchronous message network instability.
2.一种移动终端应用的跨平台方法,其特征在于,包括如下步骤: 步骤1,运行客户端软件,客户端实时监控是否接收到服务端发送的消息提醒; 步骤2,如果客户端检测到服务端发送的消息提醒,在客户端页面显示,如果否,则返回步骤I ; 步骤3,根据客户端选择的功能指令,客户端与html5交互模块调用移动应用系统相应功能,获取请求数据; 步骤4,如果获取请求数据成功,客户端数据请求模块对客户端发送的请求数据进行加密,如果否,则返回步骤I ; 步骤5,把加密后的请求数据发送到服务端; 步骤6,如果服务端接收到客户端发送的消息,则对数据解密,根据实际业务处理后发送回客户端; 步骤7,判断客户端是否获取数据成功,如果否,则返回步骤I ;步骤8,客户端数据缓存模块将数据缓存入客户端数据库; 其中, 在所述步骤2,客户端使用XMPP 2. A method of cross-platform applications of the mobile terminal, characterized by comprising the following steps: Step 1, running the client software, the client has received real-time monitoring the alert message sent by the server; Step 2, if the client detects messaging service sends reminders, the client page display, and if not, step I is returned; step 3, a functional instruction selected by the client, the client and html5 interaction module calls the corresponding function of the mobile application, request for acquiring data; step 4, if the acquisition request data is successful, the client data request request data modules sent by the client are encrypted, and if not, returns to step I; step 5, the request for the encrypted data sent to the server; step 6, if the service receives the message sent by the client, then decrypts the data back to the client according to the actual business process; step 7, it is determined whether the client data acquired successfully, and if not, returns to step I; step 8, the client data cache the data buffer module into the client database; wherein, in the step 2, the client using XMPP 议标准通过数据通道的模式实现頂即时消息及在线现场准实时探测,如果监测到服务端发送的消息提醒,则在客户端页面显示消息提醒,如果没有,则继续监测; 在所述步骤3客户端调用客户端与html5交互模块,在选择功能指令时,针对复杂的业务,UI的产生由服务端完成,采用web开发常用的dwr操作数据方式通过类WEB页面进行展示,针对简单的、更新不频繁的应用,UI直接在客户端生成; 在所述步骤5中,对客户端生成的请求数据采用DES对称加密算法加密,如果数据加密的密码过期失效,客户端则从服务端获取密码,将客户端的密码更新; 在所述步骤7中, 如果是从服务端获取数据,服务端首先接收到客户端发过来的服务请求,其次判断服务端是否具有该服务,如果没有,则返回错误信息给客户端,如果有,再判断该服务是否已开放给客户端,如果 By meeting the standard pattern data channel to achieve instant messaging and online top field quasi real-time detection, if the monitored message reminders sent by the server, then the client displays a message to remind the page, and if not, continues to monitor; in step 3 the client end call the client and html5 interactive module, the choice of functional instructions for complex business, generate UI is done by the server, using web development common dwr operational data fashion show by category WEB page, for simple updates are not frequent applications, the client generates the UI directly; in the step 5, the client generates the request data using the DES symmetric encryption algorithm, the encrypted data if the password expires, the client acquires from the server password, client's password update; in the step 7, if it is to obtain data from the server, the server first receives the client sent, service request, followed by determining the server whether the service, if not, an error message is returned to the the client, if there is, then determine whether the service is open to the client, if 有,则返回错误信息给客户端; 如果是从客户端获取数据,客户端数据缓存模块首先判断待获取缓存数据是否已过失效时间,如果已过,则不返回数据; 其中,所述步骤7包括如下子步骤: 步骤7.1,如果是从服务端获取数据,服务端服务提供模块接收客户端发送过来的服务请求; 步骤7.2,判断是否有该服务,如果服务端没有该服务,则返回错误信息,并回到步骤.7.1 ;如果有服务,则进入下一步骤; 步骤7.3,判断是否服务已开放给客户端,如果服务未开放,则返回错误信息,并回到步骤7.1 ;如果服务已开放,则进入下一步骤; 步骤7.4,将所述服务请求对应的数据返回给客户端; 步骤7.5,客户端数据缓存模块从客户端数据库获取数据; 步骤7.6,判断缓存数据是否已失效(过期),如果已失效,则返回空数据; 步骤7.7,如果未失效,则返回数据。 There, an error message is returned to the client; if the data acquired from the client, the client data cache module first determines whether or not cache data to be acquired expiration time has passed, if passed, no data is returned; wherein said step 7 comprises the substeps of: step 7.1, if it is to obtain data from the server, the server service providing a service request module receives sent by the client; a step 7.2, it is determined whether there is the service, if the server is not the service, the error message is returned , and returns to step .7.1; if there is service, then go to the next step; step 7.3, to determine whether the service is open to the client, if the service is not open, an error message is returned, and return to step 7.1; if the service is open , proceed to the next step; step 7.4, the data corresponding to the service request back to the client; step 7.5, a data cache module acquires the client data from the client database; step 7.6, it is determined whether the cache data is invalid (expired) If expired, the null data is returned; step 7.7, if not expired, the data is returned.
3.根据权利要求2所述的方法,其中,在所述步骤8中, 客户端数据缓存模块首先判断客户端数据库是否已有相同数据,如果已有,则不缓存,如果没有,则将数据缓存入客户端数据库;并在客户端页面显示数据。 The method according to claim 2, wherein, in the step 8, the client determines whether the first data block buffer in the client database has the same data, if existing, is not cached, and if not, the data is cache into the client database; and displaying data on the client page.
CN 201210032109 2012-02-14 2012-02-14 Cross-platform system and method in mobile terminal application CN102546819B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201210032109 CN102546819B (en) 2012-02-14 2012-02-14 Cross-platform system and method in mobile terminal application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201210032109 CN102546819B (en) 2012-02-14 2012-02-14 Cross-platform system and method in mobile terminal application

Publications (2)

Publication Number Publication Date
CN102546819A CN102546819A (en) 2012-07-04
CN102546819B true CN102546819B (en) 2014-09-10

Family

ID=46352765

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201210032109 CN102546819B (en) 2012-02-14 2012-02-14 Cross-platform system and method in mobile terminal application

Country Status (1)

Country Link
CN (1) CN102546819B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103605525A (en) * 2013-11-29 2014-02-26 深圳市中兴移动通信有限公司 Achievement method and device of desktop application program
CN105873030A (en) * 2015-01-22 2016-08-17 卓望数码技术(深圳)有限公司 Method for performing countersigning on an application of terminal
CN106453590A (en) * 2016-10-31 2017-02-22 车智互联(北京)科技有限公司 IOS end_rear-end configurable commonly-used information system
CN107895120A (en) * 2017-11-06 2018-04-10 聚好看科技股份有限公司 Data processing method, device, electronic equipment and storage medium in cross-platform

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101997927A (en) 2010-11-18 2011-03-30 厦门市美亚柏科信息股份有限公司 Method and system for caching data of WEB platform
CN102129746A (en) 2010-12-30 2011-07-20 中国民航信息网络股份有限公司 Mobile phone check-in subscription system and method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8438382B2 (en) * 2008-08-06 2013-05-07 Symantec Corporation Credential management system and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101997927A (en) 2010-11-18 2011-03-30 厦门市美亚柏科信息股份有限公司 Method and system for caching data of WEB platform
CN102129746A (en) 2010-12-30 2011-07-20 中国民航信息网络股份有限公司 Mobile phone check-in subscription system and method

Also Published As

Publication number Publication date
CN102546819A (en) 2012-07-04

Similar Documents

Publication Publication Date Title
CN102055730B (en) Cloud processing system, cloud processing method and cloud computing agent device
US8099768B2 (en) Method and system for multi-protocol single logout
US8073810B2 (en) Shared view of customers across business support systems (BSS) and a service delivery platform (SDP)
US7627658B2 (en) Presentation service which enables client device to run a network based application
US9306939B2 (en) Authorization token cache system and method
CN102202102B (en) Network service polymerization system and polymerization method thereof based on cloud computing configuration
CN101072103B (en) Method and system for multi-account log-in instant communication software
US9288194B2 (en) Authorization method, apparatus, and system
US10313354B2 (en) Systems and methods for efficient and secure temporary anonymous access to media content
CN102263776A (en) An intelligent home remote control systems and intelligent home server
CN102664871B (en) A method for processing intelligent terminal address book
CN101316424A (en) Information transmission method, system and device
US20100100950A1 (en) Context-based adaptive authentication for data and services access in a network
CN102281311B (en) Method, system and device for implementing network service based on open application programming interface
CN103051630A (en) Method, device and system for implementing authorization of third-party application based on open platform
CN102647398A (en) Method and device for realizing game on basis of mobile terminal
CN102970343B (en) Method and device for displaying push information
CN103581166A (en) Location aware authentication
CN103237034A (en) Login method and device
CN103618706A (en) Control system and method for mutual access of intelligent devices
CN103117960A (en) System and method of broadband user speeding up access bandwidth in self-service mode
CN103473302A (en) Lock screen information display method, device and system
CN102868732A (en) Account password-based login implementation method, system and device
CN104580074A (en) Logging method of client end application and corresponding server of logging method
CN102131001B (en) Remote control system and method of mobile communication terminal

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C14 Granted
ASS Succession or assignment of patent right

Owner name: CHINA TRAVELSKY MOBILE TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: CHINA TRAVELSKY HOLDING COMPANY

Effective date: 20150324

C41 Transfer of the right of patent application or the patent right
COR Bibliographic change or correction in the description

Free format text: CORRECT: ADDRESS; FROM: 100010 DONGCHENG, BEIJING TO: 100029 CHAOYANG, BEIJING