diff --git a/README.md b/README.md index 102719e..444ccaa 100644 --- a/README.md +++ b/README.md @@ -121,7 +121,7 @@ Chrome浏览器: ## 清理关注动态 $ ./lottery clear ## 下载最新版本 - $ ./lottery clear + $ ./lottery update ``` 7. 运行截图 diff --git a/lib/net/bili.js b/lib/net/bili.js index 5774e17..54ac350 100644 --- a/lib/net/bili.js +++ b/lib/net/bili.js @@ -858,7 +858,7 @@ const bili_client = { let contents = { csrf: GlobalVar.get("csrf"), - extension: '{"emoji_type":1,"from":{"emoji_type":1},"flag_cfg":{}}' + extension: '{"emoji_type":1,"from":{"emoji_type":1},"flag_cfg":{}}', }, url = ''; if (content instanceof Array) { @@ -873,6 +873,7 @@ const bili_client = { url = API.DYNAMIC_SVR_CREATE contents = { ...contents, + type: 4, content, } } diff --git a/script/qinglong/init.sh b/script/qinglong/init.sh index 120dc40..e754838 100644 --- a/script/qinglong/init.sh +++ b/script/qinglong/init.sh @@ -33,7 +33,7 @@ EOF create start create check -create clean +create clear cd $NAME npm i diff --git a/test/api.test.js b/test/api.test.js index e9ba750..7e8655b 100644 --- a/test/api.test.js +++ b/test/api.test.js @@ -30,6 +30,9 @@ const util = require('./util'); }, async () => { assert.notEqual(await bili_client.sendChat("703886913053917267", "t", 17), 1) + }, + async () => { + // assert(!await bili_client.createDynamic("123")) } ]) diff --git a/test/index.js b/test/index.js index 4cdf6dd..70a4460 100644 --- a/test/index.js +++ b/test/index.js @@ -3,7 +3,7 @@ const global_var = require("../lib/data/global_var"); const { log } = require('../lib/utils'); const fs = require('fs'); -log._level = 0 +log._level = 1 env.init() global_var.init(process.env["COOKIE"], 1)