Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

权重查询美化 #560

Merged
merged 62 commits into from
Jan 16, 2023
Merged
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
6dff747
兽语加密
lianhong2758 Nov 4, 2022
68e8789
统一格式
lianhong2758 Nov 4, 2022
050146f
统一格式
lianhong2758 Nov 4, 2022
f7b4bb6
天气/拼音查询
lianhong2758 Nov 4, 2022
7129997
Update and rename plugin/jiami/jiami.go to .plugin/佳美/jiami.go
lianhong2758 Nov 4, 2022
02d9211
规范化
lianhong2758 Nov 4, 2022
17bc3f0
合并
lianhong2758 Nov 4, 2022
00f88ae
1
lianhong2758 Nov 4, 2022
8a050b7
1
lianhong2758 Nov 4, 2022
c4aec0e
123
lianhong2758 Nov 4, 2022
0b64ea6
123
lianhong2758 Nov 5, 2022
076bb74
123
lianhong2758 Nov 5, 2022
2e87041
更新
lianhong2758 Nov 5, 2022
dac37ee
4
lianhong2758 Nov 5, 2022
01574fe
Merge branch 'FloatTech:master' into master
lianhong2758 Nov 5, 2022
47f61cf
5
lianhong2758 Nov 5, 2022
b0a6679
Merge branch 'master' of github.com:lianhong2758/ZeroBot-Plugin
lianhong2758 Nov 5, 2022
df0198d
继续完善...
lianhong2758 Nov 5, 2022
01ee02f
Merge branch 'FloatTech:master' into master
lianhong2758 Nov 5, 2022
393c684
Merge branch 'FloatTech:master' into master
lianhong2758 Nov 6, 2022
b1df89f
Merge branch 'FloatTech:master' into master
lianhong2758 Nov 7, 2022
ef67378
权重查询
lianhong2758 Nov 8, 2022
b4013b9
Merge branch 'master' of github.com:lianhong2758/ZeroBot-Plugin
lianhong2758 Nov 8, 2022
ef7f2ec
权重查询
lianhong2758 Nov 8, 2022
4e1c73f
Merge branch 'FloatTech:master' into master
lianhong2758 Nov 11, 2022
b0c4d8b
更正插件注册名
lianhong2758 Nov 12, 2022
4b135ff
Merge branch 'master' of github.com:lianhong2758/ZeroBot-Plugin
lianhong2758 Nov 12, 2022
5a1acfc
Merge branch 'FloatTech:master' into master
lianhong2758 Nov 12, 2022
a68a7c7
更正名称
lianhong2758 Nov 12, 2022
17948c0
Merge branch 'master' of github.com:lianhong2758/ZeroBot-Plugin
lianhong2758 Nov 12, 2022
82a8c68
Merge branch 'FloatTech:master' into master
lianhong2758 Nov 15, 2022
ef67b4e
QQ权重查询
lianhong2758 Nov 15, 2022
46ec815
权重查询
lianhong2758 Nov 15, 2022
7ba6a8b
修改正则
lianhong2758 Nov 16, 2022
2567489
Merge branch 'FloatTech:master' into master
lianhong2758 Nov 19, 2022
b3d0687
Merge branch 'FloatTech:master' into master
lianhong2758 Nov 24, 2022
65a396c
更新api地址,站点变了
lianhong2758 Nov 28, 2022
b9cca8d
Merge branch 'master' of github.com:lianhong2758/ZeroBot-Plugin
lianhong2758 Nov 28, 2022
34f55d2
Merge branch 'FloatTech:master' into master
lianhong2758 Nov 28, 2022
9125151
Merge branch 'FloatTech:master' into master
lianhong2758 Dec 10, 2022
c026b04
Merge branch 'FloatTech:master' into master
lianhong2758 Dec 12, 2022
458a429
Merge branch 'FloatTech:master' into master
lianhong2758 Dec 22, 2022
601f810
kokomi插件
lianhong2758 Dec 28, 2022
298a7e0
Merge branch 'master' of github.com:lianhong2758/ZeroBot-Plugin
lianhong2758 Dec 28, 2022
1f7b263
补充
lianhong2758 Dec 28, 2022
d53990f
添加注释
lianhong2758 Dec 28, 2022
1f782e8
更新
lianhong2758 Dec 28, 2022
a2e8a0e
更新
lianhong2758 Dec 28, 2022
505ef16
更新
lianhong2758 Dec 28, 2022
2bd2294
更新
lianhong2758 Dec 28, 2022
bc341b8
更新
lianhong2758 Dec 28, 2022
eee990f
更新
lianhong2758 Dec 28, 2022
b132615
gx
lianhong2758 Dec 28, 2022
c8f147a
Merge branch 'master' of github.com:lianhong2758/ZeroBot-Plugin
lianhong2758 Jan 11, 2023
1a5ef10
1
lianhong2758 Jan 11, 2023
d912da3
权重查询界面美化
lianhong2758 Jan 14, 2023
58d503f
权重查询美化
lianhong2758 Jan 14, 2023
bf2c32e
Merge branch 'master' of github.com:lianhong2758/ZeroBot-Plugin
lianhong2758 Jan 14, 2023
8f90c8e
纯净
lianhong2758 Jan 14, 2023
ef55e3f
净化
lianhong2758 Jan 14, 2023
60adc52
净化
lianhong2758 Jan 14, 2023
45e07ec
123
lianhong2758 Jan 16, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion plugin/quan/quan.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package quan
import (
"fmt"
"strconv"
"strings"

"github.com/FloatTech/floatbox/web"
ctrl "github.com/FloatTech/zbpctrl"
Expand Down Expand Up @@ -35,6 +36,23 @@ func init() { // 主函数
ctx.SendChain(message.Text("出现错误捏:", err))
return
}
ctx.SendChain(message.Text(str, helper.BytesToString(es))) // 输出结果
if len(helper.BytesToString(es)) <= 24 {
ctx.SendChain(message.Text("网站维护中")) // 输出结果
return
}
f := helper.BytesToString(es)[24:]
fumiama marked this conversation as resolved.
Show resolved Hide resolved
_, err = strconv.Atoi(f)
if err != nil {
ctx.SendChain(message.Text("网站维护中")) // 输出结果
return
}
var msg strings.Builder
msg.WriteString("查询账号:")
msg.WriteString(str)
msg.WriteString("\n")
msg.WriteString("查询状态:成功\n")
msg.WriteString("您的权重为:")
msg.WriteString(f)
ctx.SendChain(message.Text(msg.String())) // 输出结果
})
}