修复登录失败会崩溃的问题

This commit is contained in:
binaryify
2018-02-28 15:10:39 +08:00
parent 6ecf6183f0
commit 13b93fda04
5 changed files with 52 additions and 79 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ router.get("/", (req, res) => {
"POST",
data,
cookie,
(music_req, cookie) => {
(music_req, cookie = []) => {
const cookieStr =
"appver=1.5.9;os=osx; channel=netease;osver=%E7%89%88%E6%9C%AC%2010.13.2%EF%BC%88%E7%89%88%E5%8F%B7%2017C88%EF%BC%89";
cookieStr.split(";").forEach(item => {