代码提交

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