syncData
Upload and update server-side data interface
Function and Process Description
Login to the software through this interface and upload the server configuration identifier.
Data format
-
[Request URL] /sync/syncData.do
-
[Request Method] POST
Request parameters
Variable Name | Type | Can be empty | Explanation |
---|---|---|---|
data | String | N | JSON string: format as follows: [ { TableName ":" Database table name " "data":[ { Unid ":" Identification ", Other database table data fields, } ] } …… ] Password and private key are encrypted using SecretKey for AES |
hash | String | N | Hash value, use SecretKey to match AppKey with ","+{ 13 bit timestamp of the current client} Perform AES encryption, perform reverse decryption on the server side to determine if the appKey matches. If it does not match, no processing will be performed. If the timestamp differs too much from the current server's time, it will be discarded to prevent replay attacks after modification |
syncVer | String | N | Synchronized version number x.x.x |
userSign | String | N | User unique identifier |
encType | String | N | Encryption type, 1 indicates the use of AES encryption |
Return result
Primary parameter | Secondary Parameters | Third level parameters | Fourth level parameters | Type | Explanation |
---|---|---|---|---|---|
msg | String | Result description | |||
result | String | Processing result, 0 indicates success, others indicate failure |