fix: 发布随机动态显示转发请求不合法(#197)

Fixed #197
This commit is contained in:
shanmite 2022-09-24 16:15:25 +08:00
parent 3a5a8d0ded
commit affe24f441
5 changed files with 8 additions and 4 deletions

View File

@ -121,7 +121,7 @@ Chrome浏览器:
## 清理关注动态
$ ./lottery clear
## 下载最新版本
$ ./lottery clear
$ ./lottery update
```
7. 运行截图

View File

@ -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,
}
}

View File

@ -33,7 +33,7 @@ EOF
create start
create check
create clean
create clear
cd $NAME
npm i

View File

@ -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"))
}
])

View File

@ -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)