8000 modify syGet json · supercoderhawk/emr-processor@095e283 · GitHub
[go: up one dir, main page]

Skip to content

Commit 095e283

Browse files
modify syGet json
1 parent e646ce7 commit 095e283

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/renderer/utils/network.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export function post (url, data = null, headers = null, json = true) {
6767
* @param qs 请求的查询对象,默认为包含时间戳
6868
* @returns {Promse}
6969
*/
70-
export function syGet (path, qs = {}) {
70+
export function syGet (path, qs = {}, json = true) {
7171
let time = Math.floor(Date.now() / 1000)
7272
qs.ts = time
7373
let qsArray = []
@@ -79,5 +79,5 @@ export function syGet (path, qs = {}) {
7979
}
8080
let fullPath = path + '?' + qsArray.join('&')
8181
let url = CONVERTER.BASE_URL + fullPath
82-
return get(url, null, {'x-sign': sign(fullPath), 'x-key': CONVERTER.KEY})
82+
return get(url, null, {'x-sign': sign(fullPath), 'x-key': CONVERTER.KEY}, json)
8383
}

0 commit comments

Comments
 (0)
0