mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-22 19:10:53 +08:00
fix:修正多模板报错问题
This commit is contained in:
parent
ffd380ec52
commit
46a0f290e7
@ -233,8 +233,13 @@ export async function Note(e, {
|
||||
}
|
||||
let img_path = `./plugins/xiaoyao-cvs-plugin/resources/dailyNote/${path_img[mb]}`;
|
||||
if (tempData[e.user_id] && tempData[e.user_id].type > -1) {
|
||||
mb = tempData[e.user_id].type;
|
||||
objFile = tempData[e.user_id].temp;
|
||||
// mb = tempData[e.user_id].type;
|
||||
objFile = tempData[e.user_id].temp[lodash.random(0, tempData[e.user_id].temp.length - 1)];
|
||||
if (objFile.includes(".")) { //对于模板类型处理
|
||||
mb = 0;
|
||||
} else {
|
||||
mb = 1
|
||||
}
|
||||
}
|
||||
if (mb == 1) {
|
||||
for (var i = 0; i < 5 - data.expeditions.length; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user