[go: up one dir, main page]

CN103207960B - A kind of data processing method of electronic map service platform and device - Google Patents

A kind of data processing method of electronic map service platform and device Download PDF

Info

Publication number
CN103207960B
CN103207960B CN201210014927.1A CN201210014927A CN103207960B CN 103207960 B CN103207960 B CN 103207960B CN 201210014927 A CN201210014927 A CN 201210014927A CN 103207960 B CN103207960 B CN 103207960B
Authority
CN
China
Prior art keywords
user
service
request
electronic map
authentication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210014927.1A
Other languages
Chinese (zh)
Other versions
CN103207960A (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.)
Navinfo Co Ltd
Original Assignee
Navinfo 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 Navinfo Co Ltd filed Critical Navinfo Co Ltd
Priority to CN201210014927.1A priority Critical patent/CN103207960B/en
Publication of CN103207960A publication Critical patent/CN103207960A/en
Application granted granted Critical
Publication of CN103207960B publication Critical patent/CN103207960B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Storage Device Security (AREA)

Abstract

The invention provides a kind of data processing method and device of electronic map service platform, wherein method comprises: the services request obtaining user; According to described services request, obtain user ID; According to described user ID, obtain user right information; According to described authority information, purview certification is carried out to user; After certification is passed through, from buffer memory, obtain the viability content of user; The viability of viability content to user according to described user upgrades.The solution of the present invention can realize carrying out certification to user right, ensures the service safe of user, meets the authentication requesting that user carries out the term of life of time period.

Description

一种电子地图服务平台的数据处理方法及装置A data processing method and device for an electronic map service platform

技术领域 technical field

本发明涉及电子地图的数据处理领域,特别是指一种电子地图服务平台的数据处理方法及装置。The invention relates to the field of data processing of electronic maps, in particular to a data processing method and device of an electronic map service platform.

背景技术 Background technique

目前各个主流电子地图网站都提供搜索、导航、Geocoding(是基于空间定位技术的一种编码方法,通过用户输入一个地址字符串,动态的匹配到用户输入的地址所在的点的经度与纬度信息)和ReverseGeocoding(通过用户输入的经度与纬度信息,动态匹配到一个详细的地址描述信息,与Geocoding刚好相反)服务。然而,现有技术中的地图网站要么只提供JS(javaScript)类库的形式发布引擎服务,限制了用户的使用范围,同时未做权限认证处理;现有技术中要么提供了多种形式的格式输出,但未有二进制形式的格式输出,对于现在主流的手机导航需求无法满足,而且对用户使用期限的验证只能控制使用次数无法控制使用期限。因此,现有已有电子地图服务无法提供对用户有效的权限认证和服务期限认证,且输出格式单一,无法满足多种格式的输出应用需求;且用户使用服务的安全性得不到保障。At present, all mainstream electronic map websites provide search, navigation, and Geocoding (a coding method based on spatial positioning technology. Through the user inputting an address string, the longitude and latitude information of the point where the address entered by the user is dynamically matched) And ReverseGeocoding (through the longitude and latitude information input by the user, dynamically match to a detailed address description information, which is just the opposite of Geocoding) service. However, the map websites in the prior art either only provide publishing engine services in the form of JS (javaScript) class libraries, which limits the scope of use of users, and does not perform authority authentication processing at the same time; Output, but there is no binary format output, which cannot meet the current mainstream mobile phone navigation needs, and the verification of the user's use period can only control the number of uses but not the use period. Therefore, the existing electronic map service cannot provide effective authority authentication and service period authentication for users, and the output format is single, which cannot meet the output application requirements of multiple formats; and the security of users using the service cannot be guaranteed.

发明内容 Contents of the invention

本发明要解决的技术问题是提供一种电子地图服务平台的数据处理方法及装置,可以实现对用户权限进行认证,保证用户的服务安全,满足用户进行时间段的使用期限(即服务期限)的认证要求。The technical problem to be solved by the present invention is to provide a data processing method and device for an electronic map service platform, which can realize user authority authentication, ensure user service security, and satisfy the user's service period (ie service period) Certification requirements.

为解决上述技术问题,本发明的实施例提供一种电子地图服务平台的数据处理方法,包括:In order to solve the above technical problems, an embodiment of the present invention provides a data processing method for an electronic map service platform, including:

获得用户的服务请求;Obtain the user's service request;

根据所述服务请求,获得用户ID;Obtain a user ID according to the service request;

根据所述用户ID,获得用户权限信息;Obtain user authority information according to the user ID;

根据所述权限信息对用户进行权限认证;Perform authority authentication on the user according to the authority information;

认证通过后,从缓存中获得用户的服务期限内容;After the authentication is passed, the user's service period content is obtained from the cache;

根据所述用户的服务期限内容对用户的服务期限进行更新。The service period of the user is updated according to the content of the service period of the user.

其中,所述用户的服务请求包括:用户请求字符串以及拼接在所述用户请求字符串后的加密字符串;其中,所述加密字符串是使用用户密钥对请求参数拼装的字符串进行不对称加密得到的。Wherein, the user's service request includes: a user request character string and an encrypted character string spliced after the user request character string; wherein, the encrypted character string is a character string assembled from request parameters using a user key. obtained by symmetric encryption.

其中,所述用户权限信息包括:所述用户密钥、用户使用服务限制信息和服务期限限制信息。Wherein, the user authority information includes: the user key, user service restriction information and service period restriction information.

其中,所述根据所述权限信息对用户进行权限认证的步骤包括:Wherein, the step of authenticating the user's authority according to the authority information includes:

利用所述用户密钥对所述用户的请求参数拼装的字符串进行不对称加密生成加密字符串,并将所述加密字符串拼接在所述用户请求字符串后,得到所述服务请求;Using the user key to asymmetrically encrypt the character string assembled from the user's request parameters to generate an encrypted character string, and splicing the encrypted character string to the user request character string to obtain the service request;

并比对所述服务请求和收到的所述用户的服务请求是否一致,若一致,则认为认证通过,否则,认证不通过。And compare whether the service request is consistent with the service request received from the user. If they are consistent, the authentication is considered to be passed; otherwise, the authentication is not passed.

其中,所述用户的服务期限内容包括:对电子地图中兴趣点的搜索服务的记次服务的次数信息和/或对电子地图中兴趣点的导航服务的计时服务的时间段信息。Wherein, the content of the user's service period includes: information on the number of service counts for the search service for the point of interest in the electronic map and/or time period information for the timing service for the navigation service for the point of interest in the electronic map.

其中,所述根据所述用户的服务期限内容对用户的服务期限进行更新后还包括:Wherein, after updating the service period of the user according to the content of the service period of the user, it also includes:

根据用户的请求服务类型,通过快速格式转化功能,获得用户需要的格式化数据,并向用户返回所述格式化数据。According to the type of service requested by the user, the formatted data required by the user is obtained through the quick format conversion function, and the formatted data is returned to the user.

其中,所述通过快速格式转化功能,获得用户需要的格式化数据的步骤包括:Wherein, the step of obtaining the formatted data required by the user through the quick format conversion function includes:

通过Java的JNI工具,调用系统库文件SO,获得用户需要的符合一确定规范的Java类对象;其中,,所述JNI工具允许Java代码和其它语言的代码进行交互;Call the system library file SO through the JNI tool of Java to obtain a Java class object that meets a certain specification that the user needs; wherein, the JNI tool allows Java codes to interact with codes in other languages;

利用数据格式转化工具包,将所述符合一确定规范的Java类对象,转化成用户需要的格式化数据。Using the data format conversion toolkit, the Java class object conforming to a certain specification is converted into the formatted data required by the user.

其中,所述用户需要的格式化数据包括:XML格式化数据、JSON格式化数据和/或二进制格式化数据。Wherein, the formatted data required by the user includes: XML formatted data, JSON formatted data and/or binary formatted data.

本发明的实施例还提供一种电子地图服务平台的数据处理装置,包括:Embodiments of the present invention also provide a data processing device for an electronic map service platform, including:

第一获得模块,用于获得用户的服务请求;The first obtaining module is used to obtain the user's service request;

第二获得模块,用于根据所述服务请求,获得用户ID;The second obtaining module is used to obtain the user ID according to the service request;

第三获得模块,用于根据所述用户ID,获得用户权限信息;A third obtaining module, configured to obtain user authority information according to the user ID;

认证模块,用于根据所述权限信息对用户进行权限认证;An authentication module, configured to perform authority authentication on the user according to the authority information;

第四获得模块,用于认证通过后,获得用户的服务期限内容;The fourth obtaining module is used to obtain the content of the service period of the user after passing the authentication;

更新模块,用于根据所述用户的服务期限内容对用户的服务期限进行更新。An update module, configured to update the user's service period according to the content of the user's service period.

其中,上述装置还可以包括:第五获得模块,用于根据用户的请求服务类型,通过快速格式转化功能,获得用户需要的格式化数据,并向用户返回所述格式化数据。Wherein, the above-mentioned device may further include: a fifth obtaining module, configured to obtain the formatted data required by the user through the quick format conversion function according to the service type requested by the user, and return the formatted data to the user.

本发明的上述技术方案的有益效果如下:The beneficial effects of above-mentioned technical scheme of the present invention are as follows:

上述方案中,通过根据用户的服务请求,获得用户ID,并获得该用户的用户权限信息,并根据该权限信息对用户进行权限认证,认证通过后,从缓存中获得该用户的服务期限内容,并对用户的服务期限进行更新,从而实现了对用户权限进行认证,保证用户的服务安全,并利用缓存中的服务期限内容对用户的服务期限进行更新,从而满足用户进行时间段的使用期限(即服务期限)的认证要求。In the above solution, the user ID is obtained according to the user's service request, and the user authority information of the user is obtained, and the authority authentication is performed on the user according to the authority information. After the authentication is passed, the service period content of the user is obtained from the cache. And update the service period of the user, so as to realize the authentication of the user's authority, ensure the service security of the user, and update the service period of the user by using the service period content in the cache, so as to meet the service period of the user's time period ( That is, the service period) certification requirements.

附图说明 Description of drawings

图1为本发明的电子地图服务平台的数据处理方法流程图;Fig. 1 is the flow chart of the data processing method of the electronic map service platform of the present invention;

图2为图1所示方法的一具体实现流程示意图;Fig. 2 is a schematic flow chart of a specific realization of the method shown in Fig. 1;

图3为图2所示流程中,引擎接口实现原理图;Figure 3 is a schematic diagram of the engine interface implementation in the process shown in Figure 2;

图4为图2所示流程中,数据格式转化实现原理图;FIG. 4 is a schematic diagram of data format conversion in the process shown in FIG. 2;

图5为图2所示流程中,用户服务期限验证的实现原理图;FIG. 5 is a schematic diagram of the realization of user service period verification in the process shown in FIG. 2;

图6为本发明的电子地图服务平台的数据处理装置结构框图。Fig. 6 is a structural block diagram of the data processing device of the electronic map service platform of the present invention.

具体实施方式 Detailed ways

为使本发明要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。In order to make the technical problems, technical solutions and advantages to be solved by the present invention clearer, the following will describe in detail with reference to the drawings and specific embodiments.

如图1所示,本发明的实施例提供一种电子地图服务平台的数据处理方法,包括:As shown in Figure 1, an embodiment of the present invention provides a data processing method of an electronic map service platform, including:

步骤11,获得用户的服务请求;Step 11, obtaining the user's service request;

步骤12,根据所述服务请求,获得用户ID;Step 12, obtain the user ID according to the service request;

步骤13,根据所述用户ID,获得用户权限信息;Step 13, obtaining user authority information according to the user ID;

步骤14,根据所述权限信息对用户进行权限认证;Step 14, performing authority authentication on the user according to the authority information;

步骤15,认证通过后,从缓存中获得用户的服务期限内容;Step 15, after passing the authentication, obtain the user's service period content from the cache;

步骤16,根据所述用户的服务期限内容对用户的服务期限进行更新。Step 16, updating the service period of the user according to the content of the service period of the user.

本发明的该实施例通过根据用户的服务请求,获得用户ID,并获得该用户的用户权限信息,并根据该权限信息对用户进行权限认证,认证通过后,从缓存中获得该用户的服务期限内容,并对用户的服务期限进行更新,从而实现了对用户权限进行认证,保证用户的服务安全,并利用缓存中的服务期限内容对用户的服务期限进行更新,从而满足用户进行时间段的使用期限(即服务期限)的认证要求。This embodiment of the present invention obtains the user ID according to the service request of the user, and obtains the user authority information of the user, and performs authority authentication on the user according to the authority information, and obtains the service period of the user from the cache after passing the authentication content, and update the user's service period, so as to realize the authentication of user rights, ensure the user's service security, and use the service period content in the cache to update the user's service period, so as to meet the user's use of the time period The certification requirements for the term (i.e. service period).

其中,在上述实施例中,所述用户的服务请求包括:用户请求字符串以及拼接在所述用户请求字符串后的加密字符串;其中,所述加密字符串是使用用户密钥对请求参数拼装的字符串进行不对称加密得到的。Wherein, in the above-mentioned embodiment, the service request of the user includes: a user request character string and an encrypted character string concatenated after the user request character string; wherein, the encrypted character string is a user key pair request parameter The assembled string is obtained by asymmetric encryption.

如用户的请求参数拼装的字符串(类似keyword=kfc&area=POINT(112.12312,39.123212)&page=123&output=xml&userid=test;Such as the string assembled by the user's request parameters (similar to keyword=kfc&area=POINT(112.12312, 39.123212)&page=123&output=xml&userid=test;

使用用户密钥对用户请求字符串进行不对称加密,获得加密结果sig=NXADED32DAFE_;Use the user key to asymmetrically encrypt the user request string, and obtain the encrypted result sig=NXADED32DAFE_;

拼接加密字符串到用户请求字符串后面(keyword=kfc&area=POINT(112.12312,39.123212)&page=123&output=xml&userid=test&sig=NXADED32DAFE_);Splicing the encrypted string to the back of the user request string (keyword=kfc&area=POINT(112.12312, 39.123212)&page=123&output=xml&userid=test&sig=NXADED32DAFE_);

发送用户请求到服务http://vapi.fundrive.com.cn/api/ls?keyword=kfc&area=Send user requests to the service http://vapi.fundrive.com.cn/api/ls? keyword=kfc&area=

POINT(112.12312,39.123212)&page=123&output=xml&userid=test&sig=NXADED32DAFE_;POINT(112.12312, 39.123212) &page=123&output=xml&userid=test&sig=NXADED32DAFE_;

后台获得用户请求,解析出用户ID,在缓存中获得用户权限信息;The background obtains the user request, parses out the user ID, and obtains the user permission information in the cache;

其中,所述用户权限信息包括:所述用户密钥、用户使用服务限制信息和服务期限限制信息。Wherein, the user authority information includes: the user key, user service restriction information and service period restriction information.

其中,上述步骤14具体可以包括:利用所述用户密钥对所述用户的请求参数拼装的字符串进行不对称加密生成加密字符串,并将所述加密字符串拼接在所述用户请求字符串后,得到所述服务请求;Wherein, the above step 14 may specifically include: using the user key to asymmetrically encrypt the character string assembled by the user's request parameters to generate an encrypted character string, and splicing the encrypted character string into the user request character string After that, the service request is obtained;

并比对所述服务请求和收到的所述用户的服务请求是否一致,若一致,则认为认证通过,否则,认证不通过。And compare whether the service request is consistent with the service request received from the user. If they are consistent, the authentication is considered to be passed; otherwise, the authentication is not passed.

具体地,如后台对用户进行同样的加密计算后和上述用户服务请求中的加密字符串sig进行比较,若一致,则认为认证通过,否则,认证不通过;Specifically, if the background performs the same encryption calculation on the user and compares it with the encrypted character string sig in the above user service request, if they are consistent, the authentication is considered to be passed; otherwise, the authentication is not passed;

权限认证通过后,从缓存中获得用户的服务期限内容对用户服务期限进行判断;After the authority authentication is passed, the user's service period content is obtained from the cache to judge the user's service period;

更新用户服务期限(记次服务需要更新)。Update the service period of the user (time service needs to be updated).

其中,所述用户的服务期限内容包括:对电子地图中兴趣点的搜索服务的记次服务的次数信息和/或对电子地图中兴趣点的导航服务的计时服务的时间段信息。Wherein, the content of the user's service period includes: information on the number of service counts for the search service for the point of interest in the electronic map and/or time period information for the timing service for the navigation service for the point of interest in the electronic map.

在本发明的另一实施例中,包括上述步骤11-16的基础上,本发明的方法在所述根据所述用户的服务期限内容对用户的服务期限进行更新后还包括:In another embodiment of the present invention, on the basis of including the above steps 11-16, the method of the present invention further includes:

步骤17,根据用户的请求服务类型,通过快速格式转化功能,获得用户需要的格式化数据,并向用户返回所述格式化数据。Step 17, according to the type of service requested by the user, the formatted data required by the user is obtained through the quick format conversion function, and the formatted data is returned to the user.

其中,所述通过快速格式转化功能,获得用户需要的格式化数据的步骤包括:Wherein, the step of obtaining the formatted data required by the user through the quick format conversion function includes:

通过Java的JNI工具,调用系统库文件SO,获得用户需要的符合一确定规范的Java类对象;其中,,所述JNI工具允许Java代码和其它语言的代码进行交互;Call the system library file SO through the JNI tool of Java to obtain a Java class object that meets a certain specification that the user needs; wherein, the JNI tool allows Java codes to interact with codes in other languages;

利用数据格式转化工具包,将所述符合一确定规范的Java类对象,转化成用户需要的格式化数据。Using the data format conversion toolkit, the Java class object conforming to a certain specification is converted into the formatted data required by the user.

具体的,根据用户请求类型通过快速格式转化功能返回用户需要的格式化数据,其中,所述用户需要的格式化数据包括:XML(ExtensibleMarkupLanguage,可扩展标记语言)格式化数据、JSON(JavaScriptObjectNotation,是一种轻量级的数据交换格式)格式化数据和/或二进制格式化数据。Specifically, according to the user request type, the formatted data required by the user is returned through the quick format conversion function, wherein the formatted data required by the user includes: XML (ExtensibleMarkupLanguage, Extensible Markup Language) formatted data, JSON (JavaScriptObjectNotation, is A lightweight data interchange format) formatted data and/or binary formatted data.

具体的,数据格式化是把符合一确定规范的Java类对象通过格式化工具包可以很方便的对各种格式进行转化。可实现格式转化的对象规范包括:Specifically, data formatting means that Java class objects conforming to a certain specification can be easily converted to various formats through the formatting toolkit. Object specifications that enable format conversion include:

1)Java类对象的数据类型为:字符串类型(String),数据组类型(Array),链表类型(List)对象;1) The data types of Java class objects are: string type (String), data group type (Array), linked list type (List) object;

2)集合中的Java类对象也必须是上面三种类型;2) The Java class objects in the collection must also be of the above three types;

3)所述Java类对象必须实现序列化;3) The Java class object must be serialized;

4)所述Java类对象符合JavaBean要求,要求有get和set方法;4) The Java class object meets the requirements of JavaBean and requires get and set methods;

5)......;5)...;

格式化工具包的功能是实现符合以上Java类对象规范的格式化转化功能;The function of the format toolkit is to realize the format conversion function conforming to the above Java class object specification;

SO库文件是实现搜索、导航、Geocoding、ReverseGeocoding的静态库文件,主要通过C++语言实现,可以实现引擎计算的高效性;通过JNI(JavaNativeInterface,它允许Java代码和其他语言写的代码进行交互)调用SO库文件获得用户系统需要的满足一定规范的Java类对象。使用JNI调用SO(系统库文件,类似与WINDOW系统中的dll文件)静态库,可以利用C++的高效性实现引擎的计算服务,同时利用Java的JNI技术实现Java与SO的交互,使前台应用可以夸平台。同时返回结果为定义好一定格式规范的Java类对象,方便数据格式转化。The SO library file is a static library file that implements search, navigation, Geocoding, and ReverseGeocoding. It is mainly implemented by C++ language, which can realize the efficiency of engine calculation; it is called by JNI (JavaNativeInterface, which allows Java code to interact with code written in other languages) The SO library file obtains Java class objects that meet certain specifications required by the user system. Use JNI to call SO (system library file, similar to the dll file in WINDOW system) static library, you can use the efficiency of C++ to realize the computing service of the engine, and use Java's JNI technology to realize the interaction between Java and SO, so that the foreground application can Praise the platform. At the same time, the returned result is a Java class object with a certain format specification, which is convenient for data format conversion.

下面再结合具体的流程说明本发明的上述图1所示方法的具体实现:The specific realization of the method shown in the above-mentioned Fig. 1 of the present invention is described below again in conjunction with specific flow process:

如图2所示,请求数据流程包括如下:As shown in Figure 2, the request data flow includes the following:

步骤21,用户请求;Step 21, user request;

步骤22,获得请求参数拼装的字符串,使用用户密钥对用户请求字符串进行不对称加密,获得加密字符串;拼接加密字符串到用户请求字符串后面,得到服务请求;Step 22, obtain the assembled string of request parameters, use the user key to asymmetrically encrypt the user request string to obtain an encrypted string; concatenate the encrypted string to the back of the user request string to obtain a service request;

步骤23,发送用户的服务请求;Step 23, sending the user's service request;

步骤24,后台验证用户的合法性;Step 24, verifying the legitimacy of the user in the background;

步骤25,若用户合法,则校验用户的服务期限;Step 25, if the user is legal, then verify the service period of the user;

步骤26,调用引擎接口;Step 26, calling the engine interface;

步骤27,数据格式化返回。Step 27, the data is formatted and returned.

其中,如图3所示,步骤26中的引擎接口通过使用Java工具JNI调用SO库文件,获得用户需要的满足一确定规范的Java类对象,可以利用C++的高效性实现引擎的计算服务,同时利用Java的JNI技术实现Java与SO的交互,使前台应用可以夸平台,同时返回结果为定义好一定格式规范的Java类对象。方便数据格式转化。Wherein, as shown in Figure 3, the engine interface in step 26 calls the SO library file by using the Java tool JNI to obtain the Java class object that meets a certain specification that the user needs, and can utilize the high efficiency of C++ to realize the computing service of the engine, and at the same time Use Java's JNI technology to realize the interaction between Java and SO, so that the front-end application can boast the platform, and at the same time, the returned result is a Java class object with a defined format specification. Facilitate data format conversion.

进一步地,如图4所示,步骤27中数据格式转化的过程包括:Further, as shown in Figure 4, the process of data format conversion in step 27 includes:

通过数据格式转化工具包将符合一确定规范的Java类对象转化成XML格式的数据、JSON格式的数据或者二进制格式的数据。Through the data format conversion toolkit, the Java class object conforming to a certain specification is converted into data in XML format, data in JSON format or data in binary format.

进一步地,如图5所示,用户服务期限验证过程中,从用户服务请求中获得用户ID,根据用户ID从调整缓存中取得用户的服务信息和权限信息,用户缓存在系统启动时,从数据库中全部加载,数据在缓存中的数据结构如图5所示。Further, as shown in Figure 5, during the user service period verification process, the user ID is obtained from the user service request, and the user's service information and authority information are obtained from the adjustment cache according to the user ID. All loaded in the cache, the data structure of the data in the cache is shown in Figure 5.

本发明的上述实施例通过引擎的高效调用,利用C++的高效性和JNI的夸平台调用;利用缓存处理用户权限保存,提高效率,和减少数据库压力以及数据库的低效;本发明中使用统一的中间格式,使引擎的快速发布和格式转化成为可能,利用规范可以实现格式的多样化输出;并利用不可逆加密对用户进行权限验证,使破解难度加大,保证用户的服务安全。Above-mentioned embodiment of the present invention is by the high-efficiency call of engine, utilizes the high efficiency of C++ and the exaggerated platform call of JNI; Utilize cache to process user's authority preservation, improve efficiency, and reduce database pressure and the inefficiency of database; Use unified in the present invention The intermediate format makes it possible to quickly publish the engine and convert the format, and use the specification to realize diversified output of the format; and use irreversible encryption to verify the user's authority, making it more difficult to crack and ensuring the service security of the user.

如图6所示,本发明的实施例还提供一种与上述方法实施例相应的装置实施例,一种电子地图服务平台的数据处理装置60,包括:As shown in FIG. 6, the embodiment of the present invention also provides a device embodiment corresponding to the above-mentioned method embodiment, a data processing device 60 of an electronic map service platform, including:

第一获得模块61,用于获得用户的服务请求;The first obtaining module 61 is used to obtain the user's service request;

第二获得模块62,用于根据所述服务请求,获得用户ID;The second obtaining module 62 is configured to obtain a user ID according to the service request;

第三获得模块63,用于根据所述用户ID,获得用户权限信息;A third obtaining module 63, configured to obtain user authority information according to the user ID;

认证模块64,用于根据所述权限信息对用户进行权限认证;An authentication module 64, configured to perform authority authentication on the user according to the authority information;

第四获得模块65,用于认证通过后,获得用户的服务期限内容;The fourth obtaining module 65 is used to obtain the content of the service period of the user after passing the authentication;

更新模块66,用于根据所述用户的服务期限内容对用户的服务期限进行更新。An updating module 66, configured to update the service period of the user according to the content of the service period of the user.

进一步地,上述装置还可以包括:Further, the above-mentioned device may also include:

第五获得模块67,用于根据用户的请求服务类型,通过快速格式转化功能,获得用户需要的格式化数据,并向用户返回所述格式化数据。The fifth obtaining module 67 is configured to obtain the formatted data required by the user through the quick format conversion function according to the service type requested by the user, and return the formatted data to the user.

需要说明的是,上述方法实施例中的所有实现方式均适应用于本发明的该装置实施例中,也能达到相同的技术效果,在此不再赘述。It should be noted that all the implementation manners in the foregoing method embodiments are applicable to the device embodiment of the present invention, and can also achieve the same technical effect, and will not be repeated here.

以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above description is a preferred embodiment of the present invention, it should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications can also be made. It should be regarded as the protection scope of the present invention.

Claims (8)

1.一种电子地图服务平台的数据处理方法,其特征在于,包括:1. A data processing method of an electronic map service platform, characterized in that, comprising: 获得用户的服务请求;Obtain the user's service request; 根据所述服务请求,获得用户ID;Obtain a user ID according to the service request; 根据所述用户ID,获得用户权限信息;Obtain user authority information according to the user ID; 根据所述权限信息对用户进行权限认证;Perform authority authentication on the user according to the authority information; 认证通过后,从缓存中获得用户的服务期限内容;After the authentication is passed, the user's service period content is obtained from the cache; 根据所述用户的服务期限内容对用户的服务期限进行更新;Update the user's service period according to the content of the user's service period; 所述根据所述权限信息对用户进行权限认证的步骤包括:The step of authenticating the user's authority according to the authority information includes: 利用所述用户密钥,对所述用户的请求参数拼装的字符串进行不对称加密生成加密字符串,并将所述加密字符串拼接在所述用户请求字符串后,得到所述服务请求;Using the user key, asymmetrically encrypt the character string assembled from the user's request parameters to generate an encrypted character string, and splice the encrypted character string into the user request character string to obtain the service request; 并比对所述服务请求和收到的所述用户的服务请求是否一致,若一致,则认为认证通过,否则,认证不通过;And compare whether the service request is consistent with the service request received from the user, if they are consistent, the authentication is considered to be passed, otherwise, the authentication is not passed; 所述用户的服务期限内容包括:对电子地图中兴趣点的搜索服务的记次服务的次数信息和/或对电子地图中兴趣点的导航服务的计时服务的时间段信息。The content of the user's service period includes: information on the number of counting services for the search service for points of interest in the electronic map and/or time period information for the timing service for the navigation service for points of interest in the electronic map. 2.根据权利要求1所述的电子地图服务平台的数据处理方法,其特征在于,所述用户的服务请求包括:用户请求字符串以及拼接在所述用户请求字符串后的加密字符串;其中,所述加密字符串是使用用户密钥对请求参数拼装的字符串进行不对称加密得到的。2. The data processing method of the electronic map service platform according to claim 1, wherein the user's service request comprises: a user request character string and an encrypted character string spliced after the user request character string; wherein , the encrypted string is obtained by using the user key to asymmetrically encrypt the assembled string of request parameters. 3.根据权利要求2所述的电子地图服务平台的数据处理方法,其特征在于,所述用户权限信息包括:所述用户密钥、用户使用服务限制信息和服务期限限制信息。3. The data processing method of the electronic map service platform according to claim 2, wherein the user authority information includes: the user key, user service restriction information and service period restriction information. 4.根据权利要求3所述的电子地图服务平台的数据处理方法,其特征在于,所述根据所述用户的服务期限内容对用户的服务期限进行更新后还包括:4. The data processing method of the electronic map service platform according to claim 3, characterized in that, after updating the user's service period according to the user's service period content, the method further includes: 根据用户的请求服务类型,通过快速格式转化功能,获得用户需要的格式化数据,并向用户返回所述格式化数据。According to the type of service requested by the user, the formatted data required by the user is obtained through the quick format conversion function, and the formatted data is returned to the user. 5.根据权利要求4所述的电子地图服务平台的数据处理方法,其特征在于,所述通过快速格式转化功能,获得用户需要的格式化数据的步骤包括:5. The data processing method of the electronic map service platform according to claim 4, wherein the step of obtaining the formatted data required by the user through the quick format conversion function comprises: 通过Java的JNI工具,调用系统库文件SO,获得用户需要的符合一确定规范的Java类对象;其中,所述JNI工具允许Java代码和其它语言的代码进行交互;Call the system library file SO through the JNI tool of Java to obtain a Java class object that meets a certain specification that the user needs; wherein, the JNI tool allows Java codes to interact with codes in other languages; 利用数据格式转化工具包,将所述符合一确定规范的Java类对象,转化成用户需要的格式化数据。Using the data format conversion toolkit, the Java class object conforming to a certain specification is converted into the formatted data required by the user. 6.根据权利要求5所述的电子地图服务平台的数据处理方法,其特征在于,所述用户需要的格式化数据包括:XML格式化数据、JSON格式化数据和/或二进制格式化数据。6. The data processing method of the electronic map service platform according to claim 5, wherein the formatted data required by the user comprises: XML formatted data, JSON formatted data and/or binary formatted data. 7.一种电子地图服务平台的数据处理装置,其特征在于,包括:7. A data processing device for an electronic map service platform, comprising: 第一获得模块,用于获得用户的服务请求;The first obtaining module is used to obtain the user's service request; 第二获得模块,用于根据所述服务请求,获得用户ID;The second obtaining module is used to obtain the user ID according to the service request; 第三获得模块,用于根据所述用户ID,获得用户权限信息;A third obtaining module, configured to obtain user authority information according to the user ID; 认证模块,用于根据所述权限信息对用户进行权限认证;An authentication module, configured to perform authority authentication on the user according to the authority information; 第四获得模块,用于认证通过后,获得用户的服务期限内容;The fourth obtaining module is used to obtain the content of the service period of the user after passing the authentication; 更新模块,用于根据所述用户的服务期限内容对用户的服务期限进行更新;An update module, configured to update the user's service period according to the content of the user's service period; 所述认证模块具体用于利用所述用户密钥,对所述用户的请求参数拼装的字符串进行不对称加密生成加密字符串,并将所述加密字符串拼接在所述用户请求字符串后,得到所述服务请求;并比对所述服务请求和收到的所述用户的服务请求是否一致,若一致,则认为认证通过,否则,认证不通过;The authentication module is specifically configured to use the user key to asymmetrically encrypt the character string assembled from the user's request parameters to generate an encrypted character string, and splicing the encrypted character string after the user request character string , to obtain the service request; and compare whether the service request is consistent with the service request received from the user, if they are consistent, the authentication is considered to be passed, otherwise, the authentication is not passed; 所述用户的服务期限内容包括:对电子地图中兴趣点的搜索服务的记次服务的次数信息和/或对电子地图中兴趣点的导航服务的计时服务的时间段信息。The content of the user's service period includes: information on the number of counting services for the search service for the points of interest in the electronic map and/or time period information for the timing service for the navigation service for the points of interest in the electronic map. 8.根据权利要求7所述的电子地图服务平台的数据处理装置,其特征在于,还包括:8. The data processing device of the electronic map service platform according to claim 7, further comprising: 第五获得模块,用于根据用户的请求服务类型,通过快速格式转化功能,获得用户需要的格式化数据,并向用户返回所述格式化数据。The fifth obtaining module is used to obtain the formatted data required by the user through the quick format conversion function according to the service type requested by the user, and return the formatted data to the user.
CN201210014927.1A 2012-01-17 2012-01-17 A kind of data processing method of electronic map service platform and device Active CN103207960B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210014927.1A CN103207960B (en) 2012-01-17 2012-01-17 A kind of data processing method of electronic map service platform and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210014927.1A CN103207960B (en) 2012-01-17 2012-01-17 A kind of data processing method of electronic map service platform and device

Publications (2)

Publication Number Publication Date
CN103207960A CN103207960A (en) 2013-07-17
CN103207960B true CN103207960B (en) 2015-12-02

Family

ID=48755177

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210014927.1A Active CN103207960B (en) 2012-01-17 2012-01-17 A kind of data processing method of electronic map service platform and device

Country Status (1)

Country Link
CN (1) CN103207960B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB201421442D0 (en) * 2014-12-02 2015-01-14 Tomtom Int Bv Method and apparatus for providing point of interest information
CN104915585B (en) * 2015-06-30 2018-06-26 西安交通大学 Touch-screen equipment user identity monitoring method based on sensor characteristics two-zone model
CN108108597A (en) * 2016-11-25 2018-06-01 沈阳美行科技有限公司 Authentication method and device based on NGTP architecture
CN107423067A (en) * 2017-07-28 2017-12-01 山东超越数控电子有限公司 A kind of Java applies the method mutually called with non-JNI specifications binary file
CN109741492B (en) * 2018-12-19 2021-01-05 广州羊城通有限公司 IC card unlocking-based duration method and device
CN110990863B (en) * 2019-11-27 2021-10-08 山东新潮信息技术有限公司 Method for realizing file access control through timestamp and encryption algorithm

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1386228A (en) * 2000-08-04 2002-12-18 松下电器产业株式会社 Expiry date management system and its device
CN1881228A (en) * 2005-06-14 2006-12-20 华为技术有限公司 Method for controlling system account right
CN101656955A (en) * 2008-08-20 2010-02-24 飞力凯网路股份有限公司 Information processing apparatus, information processing method, information processing program and information processing system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6968385B1 (en) * 2000-12-22 2005-11-22 Bellsouth Intellectual Property Systems and methods for limiting web site access

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1386228A (en) * 2000-08-04 2002-12-18 松下电器产业株式会社 Expiry date management system and its device
CN1881228A (en) * 2005-06-14 2006-12-20 华为技术有限公司 Method for controlling system account right
CN101656955A (en) * 2008-08-20 2010-02-24 飞力凯网路股份有限公司 Information processing apparatus, information processing method, information processing program and information processing system

Also Published As

Publication number Publication date
CN103207960A (en) 2013-07-17

Similar Documents

Publication Publication Date Title
US11683187B2 (en) User authentication with self-signed certificate and identity verification and migration
US20240012641A1 (en) Model construction method and apparatus, and medium and electronic device
US10057293B2 (en) Method to modify android application life cycle to control its execution in a containerized workspace environment
US9081951B2 (en) Mobile application, identity interface
AU2015256293B2 (en) Facilitating single sign-on to software applications
KR102263913B1 (en) Method to modify android application life cycle to control its execution in a containerized workspace environment
CN103207960B (en) A kind of data processing method of electronic map service platform and device
CN110521182B (en) Method and system for protocol level identity mapping
CN105354451B (en) Access authentication method and system
CN109359449A (en) A microservice-based authentication method, device, server and storage medium
CN111598544A (en) Method and apparatus for processing information
CN112181983B (en) Data processing method, device, equipment and medium
US20220300617A1 (en) Enhancement of trustworthiness of artificial intelligence systems through data quality assessment
US10944578B2 (en) Identity verification
CN118842647A (en) Data processing method, device, equipment and storage medium
CN110858243B (en) Page acquisition method and device for gateway
JP2025516338A (en) Identity authentication method, device, equipment, medium and product
Gao et al. An OAuth2. 0-based unified authentication system for secure services in the smart campus environment
CN115730324A (en) Business system access method and device, storage medium and electronic equipment
US10838915B2 (en) Data-centric approach to analysis
CN117390658B (en) Data security engine, data security access system and access method
US20250131005A1 (en) Data processing method and apparatus based on data lake and data warehouse integration, and electronic device
CN119728075A (en) Control method, device and storage medium of electronic bill of lading system
CN120345229A (en) System and method for monitoring user actions with respect to resources presented by a web browser
CN118842605A (en) Data resource access method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant