2023-11-30 11:37:02 +08:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
<title>水群助手</title>
|
|
|
|
|
|
2023-11-30 23:12:38 +08:00
|
|
|
|
<!-- <link href="https://cdn.jsdelivr.net/npm/daisyui@4.4.14/dist/full.min.css" rel="stylesheet" type="text/css" />-->
|
|
|
|
|
<link href="assets/css/daisyui-4.4.14-full.min.css" rel="stylesheet" type="text/css" />
|
2023-11-30 17:31:50 +08:00
|
|
|
|
<link href="assets/css/index.css" rel="stylesheet" type="text/css" />
|
|
|
|
|
|
2023-11-30 11:37:02 +08:00
|
|
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
2023-11-30 17:31:50 +08:00
|
|
|
|
<script src="https://cdn.bootcdn.net/ajax/libs/axios/1.5.0/axios.min.js"></script>
|
2023-11-30 11:37:02 +08:00
|
|
|
|
|
|
|
|
|
<script src="assets/js/index.js"></script>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<div class="p-5 space-y-5">
|
|
|
|
|
<!-- 如果msg不等于success,显示alert -->
|
|
|
|
|
{{ if ne .msg "success" }}
|
|
|
|
|
<div role="alert" class="alert alert-error">
|
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="stroke-current shrink-0 h-6 w-6" fill="none" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z" /></svg>
|
|
|
|
|
<span>{{ .msg }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
2023-11-30 17:31:50 +08:00
|
|
|
|
<div role="tablist" class="tabs tabs-bordered">
|
2023-11-30 23:12:38 +08:00
|
|
|
|
<input type="radio" name="friend_tab" role="tab" class="tab" aria-label="好友列表" checked />
|
2023-11-30 17:31:50 +08:00
|
|
|
|
<div role="tabpanel" class="tab-content p-6">
|
2023-11-30 11:37:02 +08:00
|
|
|
|
<!-- 循环好友列表 -->
|
2023-11-30 17:31:50 +08:00
|
|
|
|
<table class="table table-zebra">
|
|
|
|
|
<!-- head -->
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>微信Id</th>
|
|
|
|
|
<th>微信号</th>
|
|
|
|
|
<th>昵称</th>
|
|
|
|
|
<th>最后活跃时间</th>
|
|
|
|
|
<th>是否在通讯录</th>
|
|
|
|
|
<th>是否启用AI</th>
|
2024-01-12 22:20:14 +08:00
|
|
|
|
<th>是否启用指令</th>
|
2023-11-30 17:31:50 +08:00
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
{{ range .friends }}
|
|
|
|
|
<tr>
|
|
|
|
|
<td>{{ .Wxid }}</td>
|
|
|
|
|
<td>{{ .CustomAccount }}</td>
|
|
|
|
|
<td>{{ .Nickname }}</td>
|
|
|
|
|
<td>
|
|
|
|
|
{{ if eq .LastActiveTime.IsNil true }}
|
|
|
|
|
无数据
|
|
|
|
|
{{ else }}
|
|
|
|
|
{{ .LastActiveTime }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
{{ if eq .IsOk true }}
|
|
|
|
|
<div class="badge badge-info gap-2">
|
|
|
|
|
是
|
|
|
|
|
</div>
|
|
|
|
|
{{ else }}
|
|
|
|
|
<div class="badge badge-error gap-2">
|
|
|
|
|
否
|
|
|
|
|
</div>
|
|
|
|
|
{{ end }}
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<label class="swap swap-flip {{ checkSwap .EnableAi }}">
|
|
|
|
|
<input type="checkbox" onclick="changeAiEnableStatus({{.Wxid}})"/>
|
|
|
|
|
|
2024-01-12 22:20:14 +08:00
|
|
|
|
<div class="swap-on">✔️已启用</div>
|
|
|
|
|
<div class="swap-off">❌已禁用</div>
|
|
|
|
|
</label>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<label class="swap swap-flip {{ checkSwap .EnableCommand }}">
|
|
|
|
|
<input type="checkbox" onclick="changeCommandEnableStatus({{.Wxid}})"/>
|
|
|
|
|
|
2023-11-30 17:31:50 +08:00
|
|
|
|
<div class="swap-on">✔️已启用</div>
|
|
|
|
|
<div class="swap-off">❌已禁用</div>
|
|
|
|
|
</label>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{{ end }}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
2023-11-30 11:37:02 +08:00
|
|
|
|
</div>
|
2023-11-30 17:31:50 +08:00
|
|
|
|
|
2023-11-30 23:12:38 +08:00
|
|
|
|
<input type="radio" name="friend_tab" role="tab" class="tab" aria-label="群列表" />
|
2023-11-30 17:31:50 +08:00
|
|
|
|
<div role="tabpanel" class="tab-content p-6">
|
2023-11-30 11:37:02 +08:00
|
|
|
|
<!-- 循环群列表 -->
|
2023-11-30 17:31:50 +08:00
|
|
|
|
<table class="table table-zebra">
|
|
|
|
|
<!-- head -->
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>群Id</th>
|
|
|
|
|
<th>昵称</th>
|
|
|
|
|
<th>最后活跃时间</th>
|
|
|
|
|
<th>是否在通讯录</th>
|
|
|
|
|
<th>是否启用AI</th>
|
|
|
|
|
<th>是否启用水群排行榜</th>
|
2023-12-04 14:24:30 +08:00
|
|
|
|
<th>是否启用迎新</th>
|
2024-01-12 22:20:14 +08:00
|
|
|
|
<th>是否启用l指令</th>
|
2023-11-30 17:31:50 +08:00
|
|
|
|
<th>操作</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
{{ range .groups }}
|
|
|
|
|
<tr>
|
|
|
|
|
<td>{{ .Wxid }}</td>
|
|
|
|
|
<td>{{ .Nickname }}</td>
|
|
|
|
|
<td>
|
|
|
|
|
{{ if eq .LastActiveTime.IsNil true }}
|
|
|
|
|
无数据
|
|
|
|
|
{{ else }}
|
|
|
|
|
{{ .LastActiveTime }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
{{ if eq .IsOk true }}
|
|
|
|
|
<div class="badge badge-info gap-2">
|
|
|
|
|
是
|
|
|
|
|
</div>
|
|
|
|
|
{{ else }}
|
|
|
|
|
<div class="badge badge-error gap-2">
|
|
|
|
|
否
|
|
|
|
|
</div>
|
|
|
|
|
{{ end }}
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<!-- EnableAi -->
|
|
|
|
|
<label class="swap swap-flip {{ checkSwap .EnableAi }}">
|
|
|
|
|
<input type="checkbox" onclick="changeAiEnableStatus({{.Wxid}})"/>
|
|
|
|
|
|
|
|
|
|
<div class="swap-on">✔️已启用</div>
|
|
|
|
|
<div class="swap-off">❌已禁用</div>
|
|
|
|
|
</label>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<!-- EnableChatRank -->
|
|
|
|
|
<label class="swap swap-flip {{ checkSwap .EnableChatRank }}">
|
|
|
|
|
<input type="checkbox" onclick="changeGroupRankEnableStatus({{.Wxid}})"/>
|
|
|
|
|
|
|
|
|
|
<div class="swap-on">✔️已启用</div>
|
|
|
|
|
<div class="swap-off">❌已禁用</div>
|
|
|
|
|
</label>
|
|
|
|
|
</td>
|
2023-12-04 14:24:30 +08:00
|
|
|
|
<td>
|
|
|
|
|
<label class="swap swap-flip {{ checkSwap .EnableWelcome }}">
|
|
|
|
|
<input type="checkbox" onclick="changeWelcomeEnableStatus({{.Wxid}})"/>
|
|
|
|
|
|
|
|
|
|
<div class="swap-on">✔️已启用</div>
|
2024-01-12 22:20:14 +08:00
|
|
|
|
<div class="swap-off">❌已禁用</div>
|
|
|
|
|
</label>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<label class="swap swap-flip {{ checkSwap .EnableCommand }}">
|
|
|
|
|
<input type="checkbox" onclick="changeCommandEnableStatus({{.Wxid}})"/>
|
|
|
|
|
|
|
|
|
|
<div class="swap-on">✔️已启用</div>
|
2023-12-04 14:24:30 +08:00
|
|
|
|
<div class="swap-off">❌已禁用</div>
|
|
|
|
|
</label>
|
|
|
|
|
</td>
|
2023-11-30 17:31:50 +08:00
|
|
|
|
<td>
|
2023-11-30 23:12:38 +08:00
|
|
|
|
<button class="btn btn-link" onclick="getGroupUsers({{.Wxid}}, {{.Nickname}})">查看群成员</button>
|
2023-11-30 17:31:50 +08:00
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{{ end }}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
2023-11-30 11:37:02 +08:00
|
|
|
|
</div>
|
2024-01-09 10:48:21 +08:00
|
|
|
|
|
|
|
|
|
{{ if ne .vnc "" }}
|
|
|
|
|
<input type="radio" name="friend_tab" role="tab" class="tab" aria-label="运行状态"/>
|
|
|
|
|
<div role="tabpanel" class="tab-content p-6">
|
|
|
|
|
<div style="height: 747px;width: 1280px;overflow: hidden !important;">
|
|
|
|
|
<iframe src="{{ .vnc }}" frameborder="0" style="width: 100%;height: 100%;pointer-events: none;"></iframe>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{{ end }}
|
2023-11-30 11:37:02 +08:00
|
|
|
|
</div>
|
2023-11-30 17:31:50 +08:00
|
|
|
|
|
|
|
|
|
|
2023-11-30 11:37:02 +08:00
|
|
|
|
</div>
|
2023-11-30 17:31:50 +08:00
|
|
|
|
|
|
|
|
|
<dialog id="groupUserModal" class="modal">
|
2023-11-30 23:12:38 +08:00
|
|
|
|
<div class="modal-box w-11/12 max-w-7xl">
|
|
|
|
|
<!-- <form method="dialog">-->
|
|
|
|
|
<!-- <button class="btn btn-sm btn-circle btn-ghost absolute right-2 top-2">✕</button>-->
|
|
|
|
|
<!-- </form>-->
|
|
|
|
|
<h3 class="font-bold text-lg" id="groupUserModalName">我是群名称</h3>
|
|
|
|
|
<!-- 加载动画 -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="divider divider-warning">成员列表</div>
|
|
|
|
|
<!-- 好友列表 -->
|
2023-11-30 17:31:50 +08:00
|
|
|
|
<table class="table table-zebra">
|
|
|
|
|
<!-- head -->
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>微信Id</th>
|
|
|
|
|
<th>昵称</th>
|
|
|
|
|
<th>是否群成员</th>
|
2023-12-01 10:22:01 +08:00
|
|
|
|
<th>加群时间</th>
|
2023-11-30 17:31:50 +08:00
|
|
|
|
<th>最后活跃时间</th>
|
|
|
|
|
<th>退群时间</th>
|
|
|
|
|
<th>是否跳过水群排行榜</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
2023-11-30 23:12:38 +08:00
|
|
|
|
<tbody id="groupUsers"></tbody>
|
2023-11-30 17:31:50 +08:00
|
|
|
|
</table>
|
2023-11-30 23:12:38 +08:00
|
|
|
|
|
|
|
|
|
|
2023-11-30 17:31:50 +08:00
|
|
|
|
</div>
|
|
|
|
|
</dialog>
|
2023-11-30 11:37:02 +08:00
|
|
|
|
</body>
|
|
|
|
|
</html>
|