Skip to content

Commit

Permalink
direct access for M500
Browse files Browse the repository at this point in the history
  • Loading branch information
nondanee committed Apr 28, 2019
1 parent 18648f0 commit dfd8f53
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion provider/qq.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ const ticket = () => {
return request('GET', url)
.then(response => response.json())
.then(jsonBody => {
let vkey = jsonBody.req_0.data.midurlinfo[0].vkey
let vkey =
jsonBody.req_0.data.midurlinfo[0].vkey ||
(jsonBody.req_0.data.testfile2g.match(/vkey=(\w+)/) || [])[1]
if(vkey)
return vkey
else
Expand Down

0 comments on commit dfd8f53

Please sign in to comment.