Skip to main content

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 NameTypeCan be emptyExplanation
dataStringNJSON 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
hashStringNHash 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
syncVerStringNSynchronized version number x.x.x
userSignStringNUser unique identifier
encTypeStringNEncryption type, 1 indicates the use of AES encryption

Return result

Primary parameterSecondary ParametersThird level parametersFourth level parametersTypeExplanation
msgStringResult description
resultStringProcessing result, 0 indicates success, others indicate failure