koishi-plugin-bilibili-notify 1.3.6-rc.0 → 1.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/comRegister.js +1 -1
- package/lib/generateImg.js +1 -1
- package/lib/index.js +2 -2
- package/package.json +1 -1
- package/readme.md +1 -0
package/lib/comRegister.js
CHANGED
package/lib/generateImg.js
CHANGED
|
@@ -183,7 +183,7 @@ class GenerateImg extends koishi_1.Service {
|
|
|
183
183
|
</div>
|
|
184
184
|
${this.giConfig.hideDesc ? '' : `<p class="card-text">${data.description ? data.description : '这个主播很懒,什么都简介都没写'}</p>`}
|
|
185
185
|
<p class="card-link">
|
|
186
|
-
<span>人气:${data.online}</span>
|
|
186
|
+
<span>人气:${data.online > 10000 ? `${data.online / 10000}万` : data.online}</span>
|
|
187
187
|
<span>分区名称:${data.area_name}</span>
|
|
188
188
|
</p>
|
|
189
189
|
<p class="card-link">
|
package/lib/index.js
CHANGED
|
@@ -79,8 +79,8 @@ exports.Config = koishi_1.Schema.object({
|
|
|
79
79
|
.default('render')
|
|
80
80
|
.description('渲染类型,默认为render模式,渲染速度更快,但会出现乱码问题,若出现乱码问题,请切换到page模式。若使用自定义字体,建议选择render模式'),
|
|
81
81
|
userAgent: koishi_1.Schema.string()
|
|
82
|
-
.
|
|
83
|
-
.description('设置请求头User-Agen,请求出现-352
|
|
82
|
+
.required()
|
|
83
|
+
.description('设置请求头User-Agen,请求出现-352时可以尝试修改,UA获取方法可参考:https://blog.csdn.net/qq_44503987/article/details/104929111'),
|
|
84
84
|
dynamic: koishi_1.Schema.object({}).description('动态推送设置'),
|
|
85
85
|
dynamicUrl: koishi_1.Schema.boolean()
|
|
86
86
|
.default(false)
|
package/package.json
CHANGED