Skip to content

Commit 385845d

Browse files
committed
修正cookie获取
1 parent c9bc455 commit 385845d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎hycan/hycan.cookie.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const signurlKey = 'signurl_hycan'
33
const signheaderKey = 'signheader_hycan'
44
const hycan = init()
55

6-
if ($request && $request.method != 'OPTIONS') {
6+
if ($request && $request.method == 'POST') {
77
const signurlVal = $request.url
88
const signheaderVal = JSON.stringify($request.headers)
99

‎nio/nio.cookie.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const signurlKey = 'signurl_nextevcar'
33
const signheaderKey = 'signheader_nextevcar'
44
const nextevcar = init()
55

6-
if ($request && $request.method != 'OPTIONS') {
6+
if ($request && $request.method == 'POST') {
77
const signurlVal = $request.url
88
const signheaderVal = JSON.stringify($request.headers)
99

0 commit comments

Comments
 (0)