koishi-plugin-p-draw 1.5.3 → 1.5.4
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/index.js +5 -3
- package/package.json +1 -1
- package/readme.md +1 -1
package/index.js
CHANGED
|
@@ -462,9 +462,11 @@ exports.apply = async function apply(ctx, cfg) {
|
|
|
462
462
|
return { notices }
|
|
463
463
|
}
|
|
464
464
|
|
|
465
|
-
function buildChargeNotice({ isAdmin, totalPrice, unetName, seeds }) {
|
|
466
|
-
if (
|
|
467
|
-
|
|
465
|
+
function buildChargeNotice({ isAdmin, totalPrice, unetName, seeds }) {
|
|
466
|
+
if (!seeds.length) return ''
|
|
467
|
+
const modelSeed = `当前模型:${unetName},--seed=${seeds.join(',')}`
|
|
468
|
+
if (isAdmin) return modelSeed
|
|
469
|
+
return `已扣除 ${totalPrice} P 点,${modelSeed}`
|
|
468
470
|
}
|
|
469
471
|
|
|
470
472
|
function buildGenerationReply(session, { successCount, count, failures, notes = [], chargeNotice = '' }) {
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -20,7 +20,7 @@ p点-绘图插件,连接本地 ComfyUI 生图,参考 AstrBot 的 [anima 绘
|
|
|
20
20
|
- 生成队列(逐张顺序执行,防止争抢 GPU)。
|
|
21
21
|
- `p-draw 状态` 查看 ComfyUI 连接状态与模型可用性。
|
|
22
22
|
- `p-draw help`(或 `帮助`)查看全部指令帮助,包含生成 / 多人 / 批量张数 / 尺寸 / 画师组 / 状态等。
|
|
23
|
-
- 发图时会以合并转发发送,每张图片后附对应的 Positive / Negative 提示词;生成完成消息会显示实际模型和 seed(如 `已扣除 750 P 点,当前模型:animagine-xl-3.1.safetensors,--seed=123456
|
|
23
|
+
- 发图时会以合并转发发送,每张图片后附对应的 Positive / Negative 提示词;生成完成消息会显示实际模型和 seed(如 `已扣除 750 P 点,当前模型:animagine-xl-3.1.safetensors,--seed=123456`)。管理员/免扣费用户不显示扣费金额,但仍显示模型和 seed。
|
|
24
24
|
|
|
25
25
|
## 安装
|
|
26
26
|
|