WO2018161253A1 - 数据共享***及方法 - Google Patents

数据共享***及方法 Download PDF

Info

Publication number
WO2018161253A1
WO2018161253A1 PCT/CN2017/075885 CN2017075885W WO2018161253A1 WO 2018161253 A1 WO2018161253 A1 WO 2018161253A1 CN 2017075885 W CN2017075885 W CN 2017075885W WO 2018161253 A1 WO2018161253 A1 WO 2018161253A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
application
activity
information table
name
Prior art date
Application number
PCT/CN2017/075885
Other languages
English (en)
French (fr)
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 PCT/CN2017/075885 priority Critical patent/WO2018161253A1/zh
Publication of WO2018161253A1 publication Critical patent/WO2018161253A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a data sharing system and method.
  • WeChat and QQ can transfer file data to each other through the network.
  • Some network hard disks can also pass public.
  • the main purpose of the present invention is to solve the problem of waste storage space existing in existing data sharing and data sharing among applications, and effectively improve storage space.
  • the present invention provides a data sharing system, where the data sharing system includes a webpage end and a data storage device, and the webpage end includes:
  • a communication module configured to provide a web address, allowing an application to access the web address, communicating with the application through the web address, and receiving a data packet sent by the application
  • the format of the web address is a webpage domain name/application name/data table name/activity name/operation to be performed, and the data packet includes an access password of the application.
  • a verification module configured to verify an access password and a user name of the application, and verify the integrity and legality of the format of the URL, and the data packet
  • the control module is configured to successfully verify the access password and user name of the application, the integrity of the URL format and the validity of the legality verification, and the validity of the validity verification of the data packet.
  • control module is further configured to return the result of the corresponding operation to the application by using a JSON string, where the operation that needs to be performed includes checking
  • the data storage device comprises:
  • a data table generating module configured to generate an application information table, an activity type information table, a current activity information table, and a historical activity information table, where the application information table
  • the application id, the application name, and the application access password, the activity type information table includes an activity type id, an activity name, and an activity data format, where the current activity is performed.
  • the motion information table includes a current activity id, a user name, an application name, a time, and data information
  • the historical activity information table includes an id of the activity that has been performed, and a user.
  • control module of the webpage end is further configured to perform data operations on the current activity information table, where the current activity information table is the same
  • the user name is unique
  • the application name of the current activity information table is a type stored in the activity type information table
  • the data information in the activity information table is stored in accordance with the data format of the activity in the activity type information table.
  • control module of the webpage end is further configured to perform data operation on the historical activity information table, where the application name of the historical activity information table is
  • the data information in the historical activity information table is stored according to an active data format in the activity type information table.
  • the application id, the activity type id, the current activity id, the id of the activity that has been performed is an automatic increment generated by the data storage device, the activity
  • the data format is a string in the form of JSON, the time is a unix timestamp format, and the data information, user name, application name, and activity name are in VARCHAR format.
  • the present invention further provides another data sharing method, where the data sharing method includes:
  • the webpage provides a web address that allows the application to access the web address
  • the webpage end communicates with the application by using the webpage, and receives a data packet sent by the application, where the format of the webpage is a webpage domain name/application name/
  • Data table name/activity name/operation to be performed the data packet including an access password of the application, a user name, and data information requiring an operation;
  • the webpage verifies the access password and the user name of the application, and verifies the integrity and legality of the format of the web address, and the legality of the data packet.
  • the data storage device queries the data information that needs to be operated, and performs corresponding operations on the queried data information.
  • the data sharing method further includes:
  • the webpage end returns the result of the corresponding operation to the application through a JSON string, wherein the operations to be performed include query/add/delete.
  • the data sharing method further includes:
  • the data storage device generates an application information table, an activity type information table, a current activity information table, and a historical activity information table, wherein the application information table includes an application.
  • the activity type information table includes an activity type id, an activity name, an activity data format, and the current activity information table
  • the current activity id, user name, application name, time, and data information are included, and the historical activity information table includes an id, a user name, and an application of the activity that has been performed.
  • the data sharing method further includes:
  • the webpage performs a data operation on the current activity information table, where the user name is unique among the same application name in the current activity information table.
  • the application name of the current activity information table is a type stored in the activity type information table, and the data information in the current activity information table is based on
  • the data format of the activity in the activity type information table is stored.
  • the data sharing method further includes:
  • the webpage side performs a data operation on the historical activity information table, where the application name of the historical activity information table is a type stored in the activity type information table,
  • the data information in the historical activity information table is stored according to the active data format in the activity type information table.
  • the application id, the activity type id, the current activity id, the id of the activity that has been performed is an automatic increment generated by the data storage device, the activity
  • the data format is a string in the form of JSON, the time is a unix timestamp format, and the data information, user name, application name, and activity name are in VARCHAR format.
  • the data sharing system and method provided by the invention can integrate data information into a data storage device across applications, and cross-application user information such as user dynamics and comments.
  • FIG. 1 is a system architecture diagram of a first embodiment of a data sharing system according to the present invention
  • FIG. 2 is a schematic diagram of a webpage function module according to a second embodiment of the data sharing system of the present invention.
  • FIG. 3 is a schematic diagram of functional modules of a data storage device according to a third embodiment of the data sharing system of the present invention.
  • FIG. 4 is a schematic diagram of an application information table of a fourth embodiment of a data sharing system according to the present invention.
  • FIG. 5 is a schematic diagram of an activity type information table of a fifth embodiment of a data sharing system according to the present invention.
  • FIG. 6 is a schematic diagram of a current activity information table according to a sixth embodiment of the data sharing system of the present invention.
  • FIG. 7 is a schematic diagram of a historical activity information table of a seventh embodiment of a data sharing system according to the present invention.
  • FIG. 8 is a flowchart of a first embodiment of a data sharing method according to the present invention.
  • the present invention is used to define the present invention, and the features of the embodiments and the embodiments of the present invention may be combined with each other without conflict.
  • the invention provides a data sharing system.
  • FIG. 1 is a system architecture diagram of a first embodiment of a data sharing system according to the present invention.
  • the data sharing system 10 shown in FIG. 1 includes a webpage end 10, a data storage device 20,
  • the data storage device 20 communicates with the webpage 10, and the webpage 10 and the first application 1, the second application 2,
  • the third application 3 can communicate with each other, and there can be multiple applications, and only three are schematically shown here.
  • FIG. 2 is a schematic diagram of a webpage function module according to a second embodiment of the data sharing system of the present invention.
  • the webpage end 10 in FIG. 2 includes a communication module 101 and a verification module 103.
  • Control module 105 The function modules are described in detail below.
  • the communication module 101 provides a web address, and allows the application to access the web address.
  • the first application 1, the second application 2, and the third application 3 of FIG. 1 access the webpage and the webpage.
  • the communication module 101 After the communication module 101 communicates with the application through the website address, the data packet sent by the application is received, wherein the format of the website address is a webpage domain name/application name/data table name/live
  • Action name / action to be taken such as the format of the URL:
  • app_name is the name of the application
  • the name and password of the application have been saved to the data storage device 20 by the administrator.
  • table_name is the name of the data table
  • active is the name of the activity
  • select, add, delete are the operations that need to be performed (query, add, delete)
  • the packet includes the application's access password, user name, and data information that needs to be manipulated.
  • the verification module 103 verifies the access password and the user name of the application, verifies the integrity and legality of the format of the website, and verifies the legality of the data packet.
  • the verification module 103 verifies the access password and the user name of the first application 1, and verifies the integrity and legality of the format of the web address, and the first application 1
  • control module 105 When the access password of the application, the verification of the user name is successful, the integrity of the URL format and the verification of the legality are successful, and the legality verification of the data packet is successful, the control module 105
  • the data storage device 20 queries the data information that needs to be operated, and performs corresponding operations on the queried data information. For example, when the access code of the first application 1
  • control module 105 is from the data storage device 20.
  • control module 105 Querying the data information that the first application 1 needs to operate, and performing corresponding operations on the queried data information. When the operation is successful, the control module 105 will operate accordingly.
  • the result is returned to the application via a JSON string, where the operations that need to be performed include query/add/delete.
  • control module 105 When the integrity and legality verification of the URL format fails, or the validity verification of the data packet fails, the control module 105 returns an error prompt to the application.
  • FIG. 3 is a schematic diagram of functional modules of a data storage device according to a third embodiment of the data sharing system of the present invention.
  • Data storage device 20 is used to store data, data storage
  • the device 20 includes a database, and the database may be a MySQL database. Since data is shared across applications, an abstract data table is used for data storage.
  • Figure 3 shows
  • the data storage device 20 includes a data table generation module 101.
  • the data table generating module 101 generates an application information table, an activity type information table, a current activity information table,
  • the historical activity information table wherein the application information table includes an application id, an application name, and an application access password, and the activity type information table includes an activity type id, an activity name, and
  • the current activity information table includes the current activity id, user name, application name, time, and data information
  • the historical activity information table includes
  • the id, user name, application name, time, and data information of the activity being performed are the id, user name, application name, time, and data information of the activity being performed.
  • FIG. 4-7 is a schematic diagram of an application information table, an activity type information table, a current activity information table, and a historical activity information table.
  • Figure 4-7 shows
  • the activity type id of the table 50, the current activity id of the current activity information table 60, and the id of the activity of the history activity information table 70 are data storage devices.
  • Automatic increment, automatic increment is 1-n accumulated value
  • active data format is JSON form string
  • time is unix timestamp format
  • data information user name
  • the app name and event name are in VARCHAR format.
  • the application information table 40 is contacted by the application developer, added by the administrator, and the activity type information table 50 is added by the administrator.
  • control module 105 of the webpage 10 receives the control signal sent by the application and performs the current activity on the data storage device 20 according to the control signal.
  • the information table performs data operations.
  • the user name is unique, and the application name of the current activity information table is live.
  • the type stored in the activity type information table, and the data information currently in the activity information table is stored according to the active data format in the activity type information table.
  • control module 105 of the webpage 10 further receives the control signal sent by the application, and performs data operation on the historical activity information table according to the control signal.
  • the application name of the historical activity information table is the type stored in the activity type information table, and the data information in the historical activity information table is based on the activity in the activity type information table.
  • the data format is stored.
  • Example.com/app_name/table_name/active/[select,add,delete] accesses the web page and sends a packet through the POST request.
  • the packet passes.
  • the JSON string is encapsulated in a format specified by the data format in the application information table 40. For example, if you need to query the comments of the webpage, then the password of the application needs to be used in the data packet.
  • the web page 10 receives the data packet, and the verification module 103 checks the username and password of the application. If the username and password do not match, an error message is returned. Error prompt
  • the web page 10 checks the integrity and legality of the URL format, and if not, returns an error message.
  • the error message is wrapped in a JSON string.
  • the webpage 10 verifies the legality of the data information and the legality of the data packet.
  • the rule is specified in the application information table, and if it is not legal, an error prompt is returned. Wrong mention
  • the package is wrapped in a JSON string.
  • the web page 10 extracts corresponding data from the data storage device 20 at the time of verification.
  • the above inspection sequence can be changed in actual operation, including but not limited to the above inspection items.
  • the operation method is one of query, selection, and deletion, and the operator
  • the method is specified by the URL of the URL, the application name, the data table, and the activity name are determined by the URL of the URL, and the data packet is obtained by the JSON string passed by the POST request.
  • the web page 10 After the web page 10 queries the data storage device 20 for the data information that needs to be operated, the web page 10 returns the data information to the application. For example, to check the comments of the website, the users who will comment
  • the application storing the comment and the application of the query comment are not necessarily the same paragraph.
  • the data sharing system provided by the invention can integrate data information into a data storage device across applications, and integrate user information such as user dynamics and comments across applications.
  • the utilization of the storage space is improved, the waste of the data storage space is reduced, and the application communicates with the webpage through the web address, and the application passes
  • the webpage operates on the data in the data storage device, and can realize data sharing across applications, so that sharing data in different applications is more convenient and faster.
  • the invention further provides a data sharing method.
  • FIG. 8 is a flowchart of a first embodiment of a data sharing method according to the present invention.
  • the data sharing method of FIG. 3 is applied to the data sharing system shown in FIG. 1. Below the map
  • step S801 the communication module of the webpage 10 provides a web address, allowing the application to access the web address, and the first application 1, the second application 2, and the third application 3 access the web through the URL.
  • the page end and send a data packet to the webpage end, wherein the data packet includes an application access password, a user name, and data information that needs to be operated.
  • step S803 the verification module 103 of the webpage end 10 verifies whether the access passwords and user names of the first application 1, the second application 2, and the third application 3 are legal.
  • step S805 the verification module 103 of the web page 10 verifies whether the URL URL format is legal.
  • step S807 the verification module 103 of the web page 10 verifies whether the data information in the data packet is legal.
  • step S809 the verification module 103 of the web page 10 verifies whether the data packet is legal.
  • step S811 When the access password, the user name, the URL format of the application, the data information of the data packet, and the data packet are all validated, the control mode of the webpage 10 is performed in step S811.
  • the block 105 queries the data storage device 20 for the data information that needs to be operated, and performs corresponding operations on the queried data information, and the operations to be performed include checking
  • step S8113 the control module 105 of the web page 10 returns the result of the corresponding operation to the application via the JSON string.
  • step S815 the web page end 10 returns an error prompt to the application.
  • the data information in the data storage device 20 is stored in the form of a data table, and the data table generating module 201 of the data storage device 20 generates an application letter.
  • the activity type information table includes an activity type id, an activity name, and an activity data format
  • the current activity information table includes a current activity id, a user name, and an application name.
  • the title, time, data information, and historical activity information table include the id, user name, application name, time, and data information of the activity that has been performed.
  • the id, the currently active id, the id of the activity that has been performed is the automatic increment generated by the data storage device 20, and the active data format is a string of the JSON format, and the time is
  • the unix timestamp format, data information, user name, application name, and activity name are in VARCHAR format.
  • the specific steps of querying the data information from the data storage device 20 and performing corresponding operations on the queried data information include: control of the webpage 10
  • the module 105 performs a data operation on the current activity information table 60.
  • the user name is unique, and the current activity is performed.
  • the application name of the motion information table 60 is the type stored in the activity type information table 50, and the data information in the current activity information table 60 is based on the activity type information table 50.
  • the active data format is stored.
  • the control module 105 of the web page 10 also performs data operations on the historical activity information table 70, and the application name of the historical activity information table 70 is live.
  • the type stored in the type information table 50, the data information in the history activity information table 70 is stored in accordance with the active data format in the activity type information table 50.
  • the data sharing method provided by the invention can integrate data information into a data storage device across applications, and integrate user information such as user dynamics and comments across applications.
  • the utilization of the storage space is improved, the waste of the data storage space is reduced, and the application communicates with the webpage through the web address, and the application passes
  • the webpage operates on the data in the data storage device, and can realize data sharing across applications, so that sharing data in different applications is more convenient and faster.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明提供一种包括网页端、数据存储装置的数据共享***,网页端包括:通信模块,用于提供网址,允许应用访问网址,通过网址与应用进行通信,并接收应用发送的数据包,数据包包括应用的访问密码、用户名、需要进行操作的数据信息;验证模块,用于对应用的访问密码、用户名进行验证,对网址的格式、数据包的合法性进行验证;当应用的访问密码、用户名称验证成功、网址格式、数据包的合法性验证成功时,控制模块,用于从数据存储装置中查询出需要进行操作的数据信息,并对该数据信息进行相应操作。本发明还提供一种数据共享方法。本发明的数据共享***及方法能有效提高存储空间利用率、提供便捷的跨应用数据分享。

Description

数据共享***及方法
技术领域
本发明涉及通讯技术领域,尤其涉及一种数据共享***及方法。
背景技术
随着移动设备的迅速发展,不同的设备比如PC和手机和不同应用(软件)之间共享数据的需求越来越大。
目前有一些应用能在不同应用之间分享数据,比如微信和QQ之间能够互相通过网络传文件数据,一些网络硬盘也可以通过公
共链接分享数据。这些应用大多是通过网络复制数据给接收端,造成的结果是在发送端和接收端都有了相同的数据,占用了
两次存储空间,一些不需要修改的数据也会造成两次存储,浪费大量的存储空间。
另一方面,人们喜欢将自己的动态分享出来,但是分享这些数据难以在多个软件、应用之间分享,例如,当人们由于不同的
喜好使用同类型的不同软件时,在数据分享上也遇到了阻碍。
发明内容
本发明的主要目的在于解决现有数据分享中存在的浪费存储空间、不能跨应用程序进行数据分享的问题,有效提高存储空间
利用率、提供便捷的跨应用数据分享。
为实现上述目的,本发明提供一种数据共享***,所述数据共享***包括网页端、数据存储装置,所述网页端包括:
通信模块,用于提供网址,允许应用访问所述网址,通过所述网址与所述应用进行通信,并接收所述应用发送的数据包,其
中,所述网址的格式为网页端域名/应用名称/数据表名称/活动名称/需要进行的操作,所述数据包包括所述应用的访问密码
、用户名称、需要进行操作的数据信息;
验证模块,用于对所述应用的访问密码、用户名称进行验证,对所述网址的格式的完整性和合法性进行验证,对所述数据包
的合法性进行验证;
控制模块,用于当应用的访问密码和用户名称验证成功、网址格式的完整性和合法性验证成功、数据包的合法性验证成功时
,从所述数据存储装置中查询出需要进行操作的数据信息,并对查询出来的数据信息进行相应操作。
优选地,所述控制模块,还用于将所述相应操作的结果通过JSON字符串返回给所述应用,其中,所述需要进行的操作包括查
询/添加/删除。
优选地,所述数据存储装置包括:
数据表生成模块,用于生成应用信息表、活动类型信息表、当前进行活动信息表、历史活动信息表,其中,所述应用信息表
包括应用id、应用名称、应用访问密码,所述活动类型信息表包括活动类型id、活动名称、活动数据格式,所述当前进行活
动信息表包括当前进行活动id、用户名、应用名称、时间、数据信息,所述历史活动信息表包括已经进行的活动的id、用户
名、应用名称、时间、数据信息。
优选地,所述网页端的所述控制模块,还用于对所述当前进行活动信息表进行数据操作,所述当前进行活动信息表中的同一
个应用名称中,用户名是唯一的,所述当前进行活动信息表的所述应用名称为所述活动类型信息表中存储的类型,所述当前
进行活动信息表中的所述数据信息根据所述活动类型信息表中的所述活动的数据格式进行存储。
优选地,所述网页端的所述控制模块,还用于对所述历史活动信息表进行数据操作,所述历史活动信息表的所述应用名称为
所述活动类型信息表中存储的类型,所述历史活动信息表中的数据信息根据所述活动类型信息表中的活动数据格式进行存储
优选地,所述应用id、活动类型id、当前进行活动id、已经进行的活动的id为所述数据存储装置产生的自动增量,所述活动
数据格式为JSON形式的字符串,所述时间为unix时间戳格式,所述数据信息、用户名、应用名称、活动名称是VARCHAR格式。
此外,为实现上述目的,本发明还提供另一数据共享方法,所述数据共享方法包括:
网页端提供网址,允许应用访问所述网址;
网页端通过所述网址与所述应用进行通信,并接收所述应用发送的数据包,其中,所述网址的格式为网页端域名/应用名称/
数据表名称/活动名称/需要进行的操作,所述数据包包括所述应用的访问密码、用户名称、需要进行操作的数据信息;
网页端对所述应用的访问密码、用户名称进行验证,对所述网址的格式的完整性和合法性进行验证,对所述数据包的合法性
进行验证;
当应用的访问密码和用户名称验证成功、网址格式的完整性和合法性验证成功、数据包的合法性验证成功时,网页端从所述
数据存储装置中查询出需要进行操作的数据信息,并对查询出来的数据信息进行相应操作。
优选地,所述数据共享方法还包括:
网页端将所述相应操作的结果通过JSON字符串返回给所述应用,其中,所述需要进行的操作包括查询/添加/删除。
优选地,所述数据共享方法还包括:
数据存储装置生成应用信息表、活动类型信息表、当前进行活动信息表、历史活动信息表,其中,所述应用信息表包括应用
id、应用名称、应用访问密码,所述活动类型信息表包括活动类型id、活动名称、活动数据格式,所述当前进行活动信息表
包括当前进行活动id、用户名、应用名称、时间、数据信息,所述历史活动信息表包括已经进行的活动的id、用户名、应用
名称、时间、数据信息。
优选地,所述数据共享方法还包括:
网页端对所述当前进行活动信息表进行数据操作,所述当前进行活动信息表中的同一个应用名称中,用户名是唯一的,所述
当前进行活动信息表的所述应用名称为所述活动类型信息表中存储的类型,所述当前进行活动信息表中的所述数据信息根据
所述活动类型信息表中的所述活动的数据格式进行存储。
优选地,所述数据共享方法还包括:
网页端对所述历史活动信息表进行数据操作,所述历史活动信息表的所述应用名称为所述活动类型信息表中存储的类型,所
述历史活动信息表中的数据信息根据所述活动类型信息表中的活动数据格式进行存储。
优选地,所述应用id、活动类型id、当前进行活动id、已经进行的活动的id为所述数据存储装置产生的自动增量,所述活动
数据格式为JSON形式的字符串,所述时间为unix时间戳格式,所述数据信息、用户名、应用名称、活动名称是VARCHAR格式。
本发明提供的数据共享***及方法能将数据信息跨应用整合到一个数据存储装置中,将用户的动态和评论等用户信息跨应用
的整合到一个数据存储装置中,提高了存储空间的利用率,减少数据存储空间的浪费,应用通过网址与网页端进行通信,应
用通过网页端对数据存储装置中的数据进行操作,能实现跨应用的数据分享,使得在不同应用中分享数据更加方便快捷。
附图说明
图1为本发明数据共享***第一实施例的***架构图;
图2为本发明数据共享***第二实施例的网页端功能模块示意图;
图3为本发明数据共享***第三实施例的数据存储装置功能模块示意图;
图4为本发明数据共享***第四实施例的应用信息表示意图;
图5为本发明数据共享***第五实施例的活动类型信息表示意图;
图6为本发明数据共享***第六实施例的当前进行活动信息表示意图;
图7为本发明数据共享***第七实施例的历史活动信息表示意图;
图8为本发明数据共享方法第一实施例的流程图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
以下结合说明书附图对本发明的优选实施例进行说明,应当理解,此处所描述的优选实施例仅用于说明和解释本发明,并不
用于限定本发明,并且在不冲突的情况下,本发明中的实施例及实施例中的特征可以相互组合。
本发明提供一种数据共享***。
参照图1,图1为本发明数据共享***第一实施例的***架构图。图1所示的数据共享***10包括网页端10、数据存储装置20、
第一应用1、第二应用2、第三应用3。数据存储装置20与网页端10之间进行通信联系,网页端10与第一应用1、第二应用2、第
三应用3进行通信联系,应用可以有多个,这里仅示意性画出3个。
参照图2,图2为本发明数据共享***第二实施例的网页端功能模块示意图。图2中的网页端10包括通信模块101、验证模块103
、控制模块105。下面对各个功能模块进行详细介绍。
通信模块101提供网址,允许应用访问网址,例如,图1的第一应用1、第二应用2、第三应用3通过网址与网页端进行访问,通
信模块101通过网址与应用进行通信后,接收应用发送的数据包,其中,网址的格式为网页端域名/应用名称/数据表名称/活
动名称/需要进行的操作,例如网址的格式为:
example.com/app_name/table_name/active/[select,add,delete]
其中,example.com是网页端的域名、app_name是应用的名称、应用的名称和密码已经通过管理员保存到了数据存储装置20中
、table_name是数据表的名称、active是活动的名称、select,add,delete分别是需要进行的操作(查询,添加,删除),
可以从三种操作中选择一个使用,有且仅有一个。数据包包括应用的访问密码、用户名称、需要进行操作的数据信息。
验证模块103对应用的访问密码、用户名称进行验证,对网址的格式的完整性和合法性进行验证,对数据包的合法性进行验证
。例如,验证模块103对第一应用1的访问密码、用户名称进行验证,对网址的格式的完整性和合法性进行验证,对第一应用1
发送的数据包的合法性进行验证。
当应用的访问密码、用户名称验证成功、网址格式的完整性和合法性验证成功、数据包的合法性验证成功时,控制模块105从
数据存储装置20中查询出需要进行操作的数据信息,并对查询出来的数据信息进行相应操作。例如,当第一应用1的访问密码
、用户名称验证成功、网址格式的完整性和合法性验证成功、数据包的合法性验证成功时,控制模块105从数据存储装置20中
查询出第一应用1需要进行操作的数据信息,并对查询出来的数据信息进行相应操作。当操作成功后,控制模块105将相应操
作的结果通过JSON字符串返回给应用,其中,需要进行的操作包括查询/添加/删除。当应用的访问密码、用户名称验证失败
、或者网址格式的完整性和合法性验证失败、或者数据包的合法性验证失败是时,控制模块105向应用返回错误提示。
参阅图3,图3为本发明数据共享***第三实施例的数据存储装置功能模块示意图。数据存储装置20用来存储数据,数据存储
装置20包括数据库,数据库可以是MySQL数据库,由于是跨应用共享的数据,所以使用抽象的数据表进行数据存储。图3所示
的数据存储装置20包括数据表生成模块101。数据表生成模块101生成应用信息表、活动类型信息表、当前进行活动信息表、
历史活动信息表,其中,应用信息表包括应用id、应用名称、应用访问密码,活动类型信息表包括活动类型id、活动名称、
活动数据格式,当前进行活动信息表包括当前进行活动id、用户名、应用名称、时间、数据信息,历史活动信息表包括已经
进行的活动的id、用户名、应用名称、时间、数据信息。
同时请参阅图4-7,图4-7分别为应用信息表、活动类型信息表、当前进行活动信息表、历史活动信息表的示意图。图4-7分别
为应用信息表40、活动类型信息表50、当前进行活动信息表60、历史活动信息表70, 应用信息表40的应用id、活动类型信息
表50的活动类型id、当前进行活动信息表60的当前进行活动id、历史活动信息表70的已经进行的活动的id是数据存储装置产
生的自动增量,自动增量为1-n的累加值,活动数据格式为JSON形式的字符串,时间为unix时间戳格式,数据信息、用户名、
应用名称、活动名称是VARCHAR格式。应用信息表40由应用开发者联系管理员,由管理员添加,活动类型信息表50由管理员添
加。
需要补充说明的是,网页端10的控制模块105接收应用发送的控制信号,并根据控制信号对数据存储装置20中的当前进行活动
信息表进行数据操作,当前进行活动信息表中的同一个应用名称中,用户名是唯一的,当前进行活动信息表的应用名称为活
动类型信息表中存储的类型,当前进行活动信息表中的数据信息根据活动类型信息表中的活动的数据格式进行存储。
进一步补充说明的是,网页端10的控制模块105还接收应用发送的控制信号,并根据控制信号对历史活动信息表进行数据操作
,历史活动信息表的应用名称为活动类型信息表中存储的类型,历史活动信息表中的数据信息根据活动类型信息表中的活动
数据格式进行存储。
下面结合图1-3,以查询网页评论为例进行详细说明。假设图1中的第一应用1需要要查询网页评论,第一应用1通过网址
example.com/app_name/table_name/active/[select,add,delete]访问网页端,并通过POST请求发送数据包,数据包通过
JSON字符串封装,格式由应用信息表40中的数据格式指定。比如需要查询网页的评论,那么数据包里需要有应用的密码,用
户名,评论所在网页的地址。
网页端10接收数据包,验证模块103检查应用的用户名和密码,如果用户名和密码不匹配,则返回一个错误提示。错误提示用
JSON字符串封装。
网页端10检查URL格式的完整和合法性,如果不合法,则返回一个错误提示。错误提示用JSON字符串封装。
网页端10验证数据信息的合法性和数据包的合法性,规则在应用信息表中规定,如果不合法,则返回一个错误提示。错误提
示用JSON字符串封装。网页端10在验证的时候会从数据存储装置20中提取相应数据。
以上检查顺序在实际操作中可以更改,包括但不限于以上检查项。
如果验证通过,那么对数据存储装置20中的数据信息进行相应的操作。操作方法是查询、选择、删除中的一种操作,操作方
法通过网址URL指定,应用名称、数据表、活动名称通过网址URL确定,数据包通过POST请求传递的JSON字符串得到。
网页端10从数据存储装置20查询到需要操作的数据信息后,将数据信息返回给应用。比如查询网站的评论,则将评论的用户
,评论的信息,评论的时间通过JSON字符串返回给应用。在本实施例中,存储评论的应用和查询评论的应用不一定是同一款
应用,不同应用可以共同查询和操作,可以实现跨应用存储数据、操作数据。
本发明提供的数据共享***能将数据信息跨应用整合到一个数据存储装置中,将用户的动态和评论等用户信息跨应用的整合
到一个数据存储装置中,提高了存储空间的利用率,减少数据存储空间的浪费,应用通过网址与网页端进行通信,应用通过
网页端对数据存储装置中的数据进行操作,能实现跨应用的数据分享,使得在不同应用中分享数据更加方便快捷。
本发明进一步提供一种数据共享方法。
参照图8,图8为本发明数据共享方法第一实施例的流程图。图3的数据共享方法应用于图1所示的数据共享***。下面结合图
1-7对图8所示的数据共享方法进行详细说明。
在步骤S801中,网页端10的通信模块提供网址,允许应用访问网址,第一应用1、第二应用2、第三应用3通过网址URL访问网
页端,并向网页端发送数据包,其中数据包包括应用的访问密码、用户名称、需要进行操作的数据信息。
在步骤S803中,网页端10的验证模块103验证第一应用1、第二应用2、第三应用3的访问密码、用户名称是否合法。
在步骤S805中,网页端10的验证模块103验证网址URL格式是否合法。
在步骤S807中,网页端10的验证模块103验证数据包中的数据信息是否合法。
在步骤S809中,网页端10的验证模块103验证数据包是否合法。
当应用的访问密码、用户名称、网址URL格式、数据包的数据信息、数据包均验证合法时,在步骤S811中,网页端10的控制模
块105从数据存储装置20中查询出需要进行操作的数据信息,并对查询出来的数据信息进行相应操作,需要进行的操作包括查
询/添加/删除。
在步骤S8113中,网页端10的控制模块105将相应操作的结果通过JSON字符串返回给应用。
当应用的访问密码、用户名称验证失败时、或者网址格式的完整性和合法性验证失败时、或者数据包的数据信息的合法性验
证失败时、或者数据包的合法性验证失败时,在步骤S815中,网页端10给应用返回错误提示。
需要补充说的是,数据存储装置20中的数据信息以数据表的形式进行存储,数据存储装置20的数据表生成模块201生成应用信
息表、活动类型信息表、当前进行活动信息表、历史活动信息表,其中,应用信息表包括应用id、应用名称、应用访问密码
,活动类型信息表包括活动类型id、活动名称、活动数据格式,当前进行活动信息表包括当前进行活动id、用户名、应用名
称、时间、数据信息,历史活动信息表包括已经进行的活动的id、用户名、应用名称、时间、数据信息。应用id、活动类型
id、当前进行活动id、已经进行的活动的id为数据存储装置20产生的自动增量,活动数据格式为JSON形式的字符串,时间为
unix时间戳格式,数据信息、用户名、应用名称、活动名称是VARCHAR格式。
进一步补充的是,从数据存储装置20查询数据信息、对查询出来的数据信息进行相应操作的具体步骤包括:网页端10的控制
模块105对当前进行活动信息表60进行数据操作,当前进行活动信息表中的同一个应用名称中,用户名是唯一的,当前进行活
动信息表60的应用名称为活动类型信息表50中存储的类型,当前进行活动信息表60中的数据信息根据活动类型信息表50中的
活动的数据格式进行存储。网页端10的控制模块105还对历史活动信息表70进行数据操作,历史活动信息表70的应用名称为活
动类型信息表50中存储的类型,历史活动信息表70中的数据信息根据活动类型信息表50中的活动数据格式进行存储。
本发明提供的数据共享方法能将数据信息跨应用整合到一个数据存储装置中,将用户的动态和评论等用户信息跨应用的整合
到一个数据存储装置中,提高了存储空间的利用率,减少数据存储空间的浪费,应用通过网址与网页端进行通信,应用通过
网页端对数据存储装置中的数据进行操作,能实现跨应用的数据分享,使得在不同应用中分享数据更加方便快捷。
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效
流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。

Claims (12)

  1. 一种数据共享***,所述数据共享***包括网页端、数据存储装置,其特征在于,所述网页端包括:
    通信模块,用于提供网址,允许应用访问所述网址,通过所述网址与所述应用进行通信,并接收所述应用发送的数据包,其
    中,所述网址的格式为网页端域名/应用名称/数据表名称/活动名称/需要进行的操作,所述数据包包括所述应用的访问密码
    、用户名称、需要进行操作的数据信息;
    验证模块,用于对所述应用的访问密码、用户名称进行验证,对所述网址格式的完整性和合法性进行验证,对所述数据包的
    合法性进行验证;
    控制模块,用于当应用的访问密码和用户名称验证成功、网址格式的完整性和合法性验证成功、数据包的合法性验证成功时
    ,从所述数据存储装置中查询出需要进行操作的数据信息,并对查询出来的数据信息进行相应操作。
  2. 如权利要求1所述的数据共享***,其特征在于,所述控制模块,还用于将所述相应操作的结果通过JSON字符串返回给所
    述应用,其中,所述需要进行的操作包括查询/添加/删除。
  3. 如权利要求1所述的数据共享***,其特征在于,所述数据存储装置包括:
    数据表生成模块,用于生成应用信息表、活动类型信息表、当前进行活动信息表、历史活动信息表,其中,所述应用信息表
    包括应用id、应用名称、应用访问密码,所述活动类型信息表包括活动类型id、活动名称、活动数据格式,所述当前进行活
    动信息表包括当前进行活动id、用户名、应用名称、时间、数据信息,所述历史活动信息表包括已经进行的活动的id、用户
    名、应用名称、时间、数据信息。
  4. 如权利要求3所述的数据共享***,其特征在于,所述网页端的所述控制模块,还用于对所述当前进行活动信息表进
    行数据操作,所述当前进行活动信息表中的同一个应用名称中,用户名是唯一的,所述当前进行活动信息表的所述应用名称
    为所述活动类型信息表中存储的类型,所述当前进行活动信息表中的所述数据信息根据所述活动类型信息表中的所述活动数
    据格式进行存储。
  5. 如权利要求4所述的数据共享***,其特征在于,所述网页端的所述控制模块,还用于对所述历史活动信息表进行数
    据操作,所述历史活动信息表的所述应用名称为所述活动类型信息表中存储的类型,所述历史活动信息表中的数据信息根据
    所述活动类型信息表中的活动数据格式进行存储。
  6. 如权利要求3所述的数据共享***,其特征在于,所述应用id、活动类型id、当前进行活动id、已经进行的活动的id
    为所述数据存储装置产生的自动增量,所述活动数据格式为JSON形式的字符串,所述时间为unix时间戳格式,所述数据信息
    、用户名、应用名称、活动名称是VARCHAR格式。
  7. 一种数据共享方法,其特征在于,包括:
    网页端提供网址,允许应用访问所述网址;
    网页端通过所述网址与所述应用进行通信,并接收所述应用发送的数据包,其中,所述网址的格式为网页端域名/应用名称/
    数据表名称/活动名称/需要进行的操作,所述数据包包括所述应用的访问密码、用户名称、需要进行操作的数据信息;
    网页端对所述应用的访问密码、用户名称进行验证,对所述网址的格式的完整性和合法性进行验证,对所述数据包的合法性
    进行验证;
    当应用的访问密码和用户名称验证成功、网址格式的完整性和合法性验证成功、数据包的合法性验证成功时,网页端从所述
    数据存储装置中查询出需要进行操作的数据信息,并对查询出来的数据信息进行相应操作。
  8. 如权利要求7所述的数据共享方法,其特征在于,还包括:
    网页端将所述相应操作的结果通过JSON字符串返回给所述应用,其中,所述需要进行的操作包括查询/添加/删除。
  9. 如权利要求7所述的数据共享方法,其特征在于,还包括:
    数据存储装置生成应用信息表、活动类型信息表、当前进行活动信息表、历史活动信息表,其中,所述应用信息表包括应用
    id、应用名称、应用访问密码,所述活动类型信息表包括活动类型id、活动名称、活动数据格式,所述当前进行活动信息表
    包括当前进行活动id、用户名、应用名称、时间、数据信息,所述历史活动信息表包括已经进行的活动的id、用户名、应用
    名称、时间、数据信息。
  10. 如权利要求9所述的数据共享方法,其特征在于,还包括:
    网页端对所述当前进行活动信息表进行数据操作,所述当前进行活动信息表中的同一个应用名称中,用户名是唯一的,所述
    当前进行活动信息表的所述应用名称为所述活动类型信息表中存储的类型,所述当前进行活动信息表中的所述数据信息根据
    所述活动类型信息表中的所述活动的数据格式进行存储。
  11. 如权利要求10所述的数据共享方法,其特征在于,还包括:
    网页端对所述历史活动信息表进行数据操作,所述历史活动信息表的所述应用名称为所述活动类型信息表中存储的类型,所
    述历史活动信息表中的数据信息根据所述活动类型信息表中的活动数据格式进行存储。
  12. 如权利要求9所述的数据共享方法,其特征在于,所述应用id、活动类型id、当前进行活动id、已经进行的活动的id
    为所述数据存储装置产生的自动增量,所述活动数据格式为JSON形式的字符串,所述时间为unix时间戳格式,所述数据信息
    、用户名、应用名称、活动名称是VARCHAR格式。
PCT/CN2017/075885 2017-03-07 2017-03-07 数据共享***及方法 WO2018161253A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/075885 WO2018161253A1 (zh) 2017-03-07 2017-03-07 数据共享***及方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/075885 WO2018161253A1 (zh) 2017-03-07 2017-03-07 数据共享***及方法

Publications (1)

Publication Number Publication Date
WO2018161253A1 true WO2018161253A1 (zh) 2018-09-13

Family

ID=63447344

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/075885 WO2018161253A1 (zh) 2017-03-07 2017-03-07 数据共享***及方法

Country Status (1)

Country Link
WO (1) WO2018161253A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080320060A1 (en) * 2002-09-19 2008-12-25 The Generations Network, Inc. Systems And Methods For Partitioning Data On Multiple Servers
CN102880897A (zh) * 2011-07-14 2013-01-16 ***通信集团公司 一种智能卡的应用数据共享方法和智能卡
CN103685341A (zh) * 2012-08-31 2014-03-26 百度在线网络技术(北京)有限公司 云存储数据中心及云存储数据的提供方法
US20140245286A1 (en) * 2013-02-28 2014-08-28 Hon Hai Precision Industry Co., Ltd. Application managing system and method using same
CN104050249A (zh) * 2011-12-31 2014-09-17 北京奇虎科技有限公司 分布式查询引擎***和方法及元数据服务器
CN106130730A (zh) * 2016-06-21 2016-11-16 ***股份有限公司 一种智能卡的数据共享方法和智能卡

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080320060A1 (en) * 2002-09-19 2008-12-25 The Generations Network, Inc. Systems And Methods For Partitioning Data On Multiple Servers
CN102880897A (zh) * 2011-07-14 2013-01-16 ***通信集团公司 一种智能卡的应用数据共享方法和智能卡
CN104050249A (zh) * 2011-12-31 2014-09-17 北京奇虎科技有限公司 分布式查询引擎***和方法及元数据服务器
CN103685341A (zh) * 2012-08-31 2014-03-26 百度在线网络技术(北京)有限公司 云存储数据中心及云存储数据的提供方法
US20140245286A1 (en) * 2013-02-28 2014-08-28 Hon Hai Precision Industry Co., Ltd. Application managing system and method using same
CN106130730A (zh) * 2016-06-21 2016-11-16 ***股份有限公司 一种智能卡的数据共享方法和智能卡

Similar Documents

Publication Publication Date Title
WO2019019378A1 (zh) 业务处理方法、装置、适配器及计算机可读存储介质
WO2018082482A1 (zh) 一种网络共享方法、接入网络方法及***
WO2019019374A1 (zh) 智能语音设备控制家电的方法、装置及***
WO2018058919A1 (zh) 标识信息生成方法、装置、设备和计算机可读存储介质
WO2018233367A1 (zh) 立案方法、装置、终端和计算机可读存储介质
WO2019001110A1 (zh) 权限认证方法、***、设备及计算机可读存储介质
WO2019024336A1 (zh) 数据查询方法、装置及计算机可读存储介质
WO2016178548A1 (ko) 프로파일 제공 방법 및 장치
WO2018120457A1 (zh) 数据处理方法、装置、设备及计算机可读存储介质
WO2019037395A1 (zh) 密钥管理方法、装置及可读存储介质
WO2014036977A1 (en) Data security management system
WO2019019493A1 (zh) 数据共享方法、装置及计算机可读存储介质
WO2018028135A1 (zh) 一种下行数据的信息反馈方法及相关设备
WO2015127859A1 (en) Sensitive text detecting method and apparatus
WO2016089009A1 (en) Method and cloud server for managing device
WO2015108283A1 (ko) 클라우드 스트리밍 서비스를 위한 어플리케이션 에러 검출 방법, 이를 위한 장치 및 시스템
WO2015139232A1 (zh) 一种应用的推荐方法、***及服务器
CN105723648A (zh) 一种密钥配置方法、***和装置
WO2019019376A1 (zh) 业务流程管理方法、装置、设备及计算机可读存储介质
WO2017054481A1 (zh) 一种信息验证和处理方法、装置、以及信息处理***
WO2019100531A1 (zh) 数字签名生成、验证方法及其设备和存储介质
WO2017201899A1 (zh) 连接蓝牙设备的方法及装置
WO2015180594A1 (en) Data distribution method and system and data receiving apparatus
WO2019051866A1 (zh) 权益信息管理方法、装置、设备及计算机可读存储介质
WO2019071762A1 (zh) 楼层位置定位方法、***、服务器和计算机可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17899771

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17899771

Country of ref document: EP

Kind code of ref document: A1