代码提交

This commit is contained in:
luozhun 2024-11-20 16:23:50 +08:00
parent c12c5b26fa
commit b0b0279db5
1 changed files with 11 additions and 11 deletions

View File

@ -128,19 +128,19 @@ const a = () => {
const accessKey = "w2wzi0wefmmo6s735z2el8tfzitya5gj" const accessKey = "w2wzi0wefmmo6s735z2el8tfzitya5gj"
const secretKey = "db1b5214-02ee-497f-957c-88323b4351bf" const secretKey = "db1b5214-02ee-497f-957c-88323b4351bf"
const now = Date.now() const now = Date.now()
const params = { // const params = {
name: 'zhangsan', // name: 'zhangsan',
age: 14, // age: 14,
addr: '湖南省长沙市' // addr: ''
} // }
const sign = generatedSign(params, now, accessKey, secretKey) // const sign = generatedSign(params, now, accessKey, secretKey)
const headers = { // const headers = {
'Access-Key': accessKey, // 'Access-Key': accessKey,
'Time-Stamp': now, // 'Time-Stamp': now,
'Sign': sign // 'Sign': sign
} // }
// axios.get('http://127.0.0.1:8765/open/dataView', { // axios.get('http://127.0.0.1:8765/open/dataView', {
// params, // params,
// headers // headers