mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-22 19:10:53 +08:00
修正部分文案
This commit is contained in:
parent
4c2f8ca59c
commit
b3743669de
@ -125,7 +125,7 @@ export async function mysSign(e) {
|
|||||||
let miHoYoApi = new MihoYoApi(e);
|
let miHoYoApi = new MihoYoApi(e);
|
||||||
let stokens=await miHoYoApi.getStoken(e.user_id)
|
let stokens=await miHoYoApi.getStoken(e.user_id)
|
||||||
if (Object.keys(stokens).length==0) {
|
if (Object.keys(stokens).length==0) {
|
||||||
e.reply("未读取到stoken请检查cookies是否包含login_ticket、以及云崽是否为最新版本V3、V2兼容")
|
e.reply("未读取到stoken\n请发送【stoken帮助】查看配置教程配置~")
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
START = moment().unix();
|
START = moment().unix();
|
||||||
@ -136,7 +136,7 @@ export async function mysSign(e) {
|
|||||||
await replyMsg(e, resultMessage);
|
await replyMsg(e, resultMessage);
|
||||||
return true
|
return true
|
||||||
}else if(!resObj?.data){
|
}else if(!resObj?.data){
|
||||||
resultMessage+=`登录Stoken失效请重新获取cookies保存~`;
|
resultMessage+=`登录Stoken失效\n请发送【stoken帮助】查看配置教程重新配置~`;
|
||||||
await replyMsg(e, resultMessage);
|
await replyMsg(e, resultMessage);
|
||||||
fs.unlink(`${YamlDataUrl}/${e.user_id}.yaml`,function(error){
|
fs.unlink(`${YamlDataUrl}/${e.user_id}.yaml`,function(error){
|
||||||
if(error){
|
if(error){
|
||||||
@ -241,7 +241,7 @@ export async function bbsSeach(e){
|
|||||||
}
|
}
|
||||||
let resObj=await mysSeach(e)
|
let resObj=await mysSeach(e)
|
||||||
if(!resObj?.data){
|
if(!resObj?.data){
|
||||||
await replyMsg(e, `登录Stoken失效请重新获取cookies保存~`);
|
await replyMsg(e, `登录Stoken失效请重新获取cookies或stoken保存~`);
|
||||||
fs.unlink(`${YamlDataUrl}/${e.user_id}.yaml`,function(error){
|
fs.unlink(`${YamlDataUrl}/${e.user_id}.yaml`,function(error){
|
||||||
if(error){
|
if(error){
|
||||||
return ""
|
return ""
|
||||||
|
@ -89,7 +89,7 @@ export async function gclog(e) {
|
|||||||
}
|
}
|
||||||
let miHoYoApi = new MihoYoApi(e);
|
let miHoYoApi = new MihoYoApi(e);
|
||||||
if (!e.cookies || e.cookies.includes("undefined")) {
|
if (!e.cookies || e.cookies.includes("undefined")) {
|
||||||
e.reply("请先绑定stoken")
|
e.reply(`请先绑定stoken\n发送【stoken帮助】查看配置教程`)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
let kkbody = await miHoYoApi.getbody("原神");
|
let kkbody = await miHoYoApi.getbody("原神");
|
||||||
@ -182,7 +182,7 @@ export async function bindStoken(e) {
|
|||||||
miHoYoApi.cookies = msg;
|
miHoYoApi.cookies = msg;
|
||||||
let resObj = await miHoYoApi.getTasksList();
|
let resObj = await miHoYoApi.getTasksList();
|
||||||
if (!resObj?.data) {
|
if (!resObj?.data) {
|
||||||
await e.reply(`登录Stoken失效\n请重新获取~`);
|
await e.reply(`登录Stoken失效\n请发送【stoken帮助】查看配置教程重新配置~`);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
await user.getCookie(e)
|
await user.getCookie(e)
|
||||||
@ -201,6 +201,7 @@ export async function bindStoken(e) {
|
|||||||
msg += '\n【#米币查询】查询米游币余额'
|
msg += '\n【#米币查询】查询米游币余额'
|
||||||
msg += '\n【#mys原神签到】获取米游币'
|
msg += '\n【#mys原神签到】获取米游币'
|
||||||
msg += '\n【#更新抽卡记录】更新抽卡记录'
|
msg += '\n【#更新抽卡记录】更新抽卡记录'
|
||||||
|
msg += '\n【#刷新ck】刷新失效cookie'
|
||||||
msg += '\n【#我的stoken】查看绑定信息'
|
msg += '\n【#我的stoken】查看绑定信息'
|
||||||
msg += '\n【#删除stoken】删除绑定信息'
|
msg += '\n【#删除stoken】删除绑定信息'
|
||||||
await e.reply(msg);
|
await e.reply(msg);
|
||||||
@ -217,7 +218,7 @@ export async function delSign(e) {
|
|||||||
export async function updCookie(e) {
|
export async function updCookie(e) {
|
||||||
let stoken=await gsCfg.getUserStoken(e.user_id);
|
let stoken=await gsCfg.getUserStoken(e.user_id);
|
||||||
if (Object.keys(stoken).length==0) {
|
if (Object.keys(stoken).length==0) {
|
||||||
e.reply("请先绑定stoken")
|
e.reply("请先绑定stoken\n发送【stoken帮助】查看配置教程")
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
let miHoYoApi = new MihoYoApi(e);
|
let miHoYoApi = new MihoYoApi(e);
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#此文件为默认配置请勿修改此文件
|
#此文件为默认配置请勿修改此文件
|
||||||
|
|
||||||
# cookies教程
|
# cookies教程
|
||||||
|
# stoken 教程2由 @逍遥 提供 https://docs.qq.com/doc/DVFdKVHBRR3RaUWxL
|
||||||
cookiesDoc: docs.qq.com/doc/DV2tDY2ltSFdtbU9z
|
cookiesDoc: docs.qq.com/doc/DV2tDY2ltSFdtbU9z
|
||||||
# 米币签到成功是否推送
|
# 米币签到成功是否推送
|
||||||
isPushSign: false
|
isPushSign: false
|
||||||
@ -28,7 +29,7 @@ isYunSign: true
|
|||||||
YunSignTime: 0 2 4 * * ?
|
YunSignTime: 0 2 4 * * ?
|
||||||
# 云原神签到成功是否推送
|
# 云原神签到成功是否推送
|
||||||
isYunSignMsg: false
|
isYunSignMsg: false
|
||||||
# 云原神帮助
|
# 云原神帮助 由 @FanSky_Qs 提供
|
||||||
yunDoc: docs.qq.com/doc/DTnJIREZwTmxEVHBl
|
yunDoc: docs.qq.com/doc/DTnJIREZwTmxEVHBl
|
||||||
#更新抽卡记录缓存时间默认5分钟
|
#更新抽卡记录缓存时间默认5分钟
|
||||||
gclogEx: 5
|
gclogEx: 5
|
||||||
|
5
defSet/请勿修改此文件夹下面的内容.txt
Normal file
5
defSet/请勿修改此文件夹下面的内容.txt
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
当前目录为默认配置目录
|
||||||
|
为避免冲突 请勿修改
|
||||||
|
|
||||||
|
defSet/config/config.yaml 作为补充默认文件后续多的配置会在此文件新增
|
||||||
|
/config/config.yaml 作为你的配置文件 如需要补充属性可从默认配置文件复制到这个文件中
|
@ -61,7 +61,8 @@
|
|||||||
<div class="div">
|
<div class="div">
|
||||||
<span class="title light">值得铭记的强敌</span>
|
<span class="title light">值得铭记的强敌</span>
|
||||||
<div class="kb"></div>
|
<div class="kb"></div>
|
||||||
<span class="bottom">本周剩余消耗减半次数</span>
|
<span class="bottom">{{if remain_resin_discount_num<=0}}周本已完成
|
||||||
|
{{else}}周本树脂减半次数已用{{/if}}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="div sumCount">
|
<div class="div sumCount">
|
||||||
<span class="{{if remain_resin_discount_num>0}}red{{/if}}">{{3-remain_resin_discount_num}}</span>/{{resin_discount_num_limit}}
|
<span class="{{if remain_resin_discount_num>0}}red{{/if}}">{{3-remain_resin_discount_num}}</span>/{{resin_discount_num_limit}}
|
||||||
|
Loading…
Reference in New Issue
Block a user