Commit 5b4ea2647e83d5f38cf75bcef7a008afea779826
1 parent
f700a77c
Exists in
master
【工具】GM工具
Showing
7 changed files
with
121 additions
and
39 deletions
Show diff stats
src/App.vue
| ... | ... | @@ -8,9 +8,17 @@ |
| 8 | 8 | <a class="nav-link" href="#">玩家修改</a> |
| 9 | 9 | </li> |
| 10 | 10 | <li class="nav-item"> |
| 11 | - <a class="nav-link" href="#/about">玩家查询</a> | |
| 11 | + <a class="nav-link" href="#/playerquery">玩家查询</a> | |
| 12 | + </li> | |
| 13 | + <li class="nav-item"> | |
| 14 | + <a class="nav-link" href="#/mail">邮件</a> | |
| 15 | + </li> | |
| 16 | + <li class="nav-item"> | |
| 17 | + <a class="nav-link" href="#/server">服务器</a> | |
| 18 | + </li> | |
| 19 | + <li class="nav-item"> | |
| 20 | + <a class="nav-link" href="#/other">其他</a> | |
| 12 | 21 | </li> |
| 13 | - | |
| 14 | 22 | </ul> |
| 15 | 23 | </nav> |
| 16 | 24 | |
| ... | ... | @@ -19,12 +27,18 @@ |
| 19 | 27 | |
| 20 | 28 | <script setup> |
| 21 | 29 | import { ref, computed } from 'vue' |
| 22 | -import Home from './components/PlayerEdit.vue' | |
| 23 | -import About from './components/About.vue' | |
| 24 | 30 | import NotFound from './components/NotFound.vue' |
| 31 | +import Home from './components/PlayerEdit.vue' | |
| 32 | +import PlayerQuery from './components/PlayerQuery.vue' | |
| 33 | +import Mail from './components/Mail.vue' | |
| 34 | +import Server from './components/Server.vue' | |
| 35 | +import Other from './components/Other.vue' | |
| 25 | 36 | const routes = { |
| 26 | 37 | '/': Home, |
| 27 | - '/about': About | |
| 38 | + '/playerquery': PlayerQuery, | |
| 39 | + '/mail': Mail, | |
| 40 | + '/server': Server, | |
| 41 | + '/other': Other, | |
| 28 | 42 | } |
| 29 | 43 | const currentPath = ref(window.location.hash) |
| 30 | 44 | window.addEventListener('hashchange', () => { | ... | ... |
src/components/About.vue
src/components/PlayerEdit.vue
| ... | ... | @@ -173,9 +173,45 @@ |
| 173 | 173 | </div> |
| 174 | 174 | </div> |
| 175 | 175 | |
| 176 | + <div class="container-fluid mt-1"> | |
| 177 | + <div class="card"> | |
| 178 | + <div class="row"> | |
| 179 | + <div class="col-3"> | |
| 180 | + <div class="card"> | |
| 181 | + <button type="button" class="btn btn-success btn-block" v-for="(text, index) of this.listTemp1" :value=text | |
| 182 | + @click="onTemp1($event)">{{ text }}</button> | |
| 183 | + </div> | |
| 184 | + </div> | |
| 185 | + <div class="col-3"> | |
| 186 | + <div class="card"> | |
| 187 | + <el-form ref="form" :model="formTemp2" label-width="80px" size="default"> | |
| 188 | + <el-form-item label="对象ID"> | |
| 189 | + <el-input v-model="formTemp2.id"></el-input> | |
| 190 | + </el-form-item> | |
| 191 | + </el-form> | |
| 192 | + <button type="button" class="btn btn-success btn-block" v-for="(text, index) of this.listTemp2" :value=text | |
| 193 | + @click="onTemp1($event)">{{ text }}</button> | |
| 194 | + </div> | |
| 195 | + </div> | |
| 196 | + <div class="col-3"> | |
| 197 | + <div class="card"> | |
| 198 | + <button type="button" class="btn btn-success btn-block" v-for="(text, index) of this.listTemp3" :value=text | |
| 199 | + @click="onTemp1($event)">{{ text }}</button> | |
| 200 | + </div> | |
| 201 | + </div> | |
| 202 | + <div class="col-3"> | |
| 203 | + <div class="card"> | |
| 204 | + <button type="button" class="btn btn-success btn-block" v-for="(text, index) of this.listTemp4" :value=text | |
| 205 | + @click="onTemp1($event)">{{ text }}</button> | |
| 206 | + </div> | |
| 207 | + </div> | |
| 208 | + </div> | |
| 209 | + </div> | |
| 210 | + </div> | |
| 211 | + | |
| 176 | 212 | <div id="output"> |
| 177 | 213 | <!-- <el-button round type="primary" class="btn-block" v-on:click="ontest">测试</el-button> --> |
| 178 | - 选择的服务器是: {{ serverselected }} puid: {{ puid }} | |
| 214 | + <!-- 选择的服务器是: {{ serverselected }} puid: {{ puid }} --> | |
| 179 | 215 | </div> |
| 180 | 216 | </template> |
| 181 | 217 | |
| ... | ... | @@ -210,13 +246,53 @@ export default { |
| 210 | 246 | { text: '体力', v: '4' }, |
| 211 | 247 | { text: '经验值', v: '1' }, |
| 212 | 248 | ], |
| 249 | + formAddMoney: { | |
| 250 | + tp: '', | |
| 251 | + count: 0, | |
| 252 | + }, | |
| 253 | + | |
| 213 | 254 | listAddTool: ["1", "2", "3", "4"], |
| 255 | + formAddTool: { | |
| 256 | + id: '1', | |
| 257 | + count: 0, | |
| 258 | + }, | |
| 259 | + | |
| 214 | 260 | listSetProp: ["等级设置", "玩家游戏天数设置", "猜谜活动等级设置"], |
| 261 | + formSetProp: { | |
| 262 | + tp: '等级设置', | |
| 263 | + count: 20, | |
| 264 | + }, | |
| 265 | + | |
| 215 | 266 | listAddOther: ["猜谜活动代币", "星星商店代币", "破茧成蝶代币", "装修代币", "挖宝箱积分"], |
| 267 | + formAddOther: { | |
| 268 | + tp: '猜谜活动代币', | |
| 269 | + count: 0, | |
| 270 | + }, | |
| 271 | + | |
| 272 | + formAddAwards: { | |
| 273 | + id: '2,0,1|2,0,1', | |
| 274 | + }, | |
| 275 | + | |
| 216 | 276 | listPayTypes: ["模拟支付", "支付补单"], |
| 277 | + formSimPay: { | |
| 278 | + id: 201, | |
| 279 | + }, | |
| 280 | + | |
| 217 | 281 | listEditBoard: ["删除棋盘物件", "删除仓库物件", "删除暂存区物件"], |
| 282 | + formEditBoard: { | |
| 283 | + id: 0, | |
| 284 | + }, | |
| 285 | + | |
| 218 | 286 | listPlayerData: ["存档玩家", "高级号", "复制其他玩家数据"], |
| 287 | + formPlayerData: { | |
| 288 | + id: 0, | |
| 289 | + }, | |
| 290 | + | |
| 219 | 291 | listTempQuery: ["获取猜谜正确序列"], |
| 292 | + formTempQuery: { | |
| 293 | + id: '', | |
| 294 | + }, | |
| 295 | + | |
| 220 | 296 | |
| 221 | 297 | listActUid: [ |
| 222 | 298 | { text: '新手礼包', v: '20001' }, |
| ... | ... | @@ -241,41 +317,17 @@ export default { |
| 241 | 317 | { text: '装修', v: '10031' }, |
| 242 | 318 | { text: '挖宝箱', v: '10041' }, |
| 243 | 319 | ], |
| 244 | - | |
| 245 | - formAddMoney: { | |
| 246 | - tp: '', | |
| 247 | - count: 0, | |
| 248 | - }, | |
| 249 | - formAddTool: { | |
| 250 | - id: '1', | |
| 251 | - count: 0, | |
| 252 | - }, | |
| 253 | - formSetProp: { | |
| 254 | - tp: '等级设置', | |
| 255 | - count: 20, | |
| 256 | - }, | |
| 257 | - formAddOther: { | |
| 258 | - tp: '猜谜活动代币', | |
| 259 | - count: 0, | |
| 260 | - }, | |
| 261 | - formAddAwards: { | |
| 262 | - id: '2,0,1|2,0,1', | |
| 263 | - }, | |
| 264 | - formSimPay: { | |
| 265 | - id: 201, | |
| 266 | - }, | |
| 267 | - formEditBoard: { | |
| 268 | - id: 0, | |
| 269 | - }, | |
| 270 | - formPlayerData: { | |
| 271 | - id: 0, | |
| 272 | - }, | |
| 273 | 320 | formClearActFlag: { |
| 274 | 321 | id: 20001, |
| 275 | 322 | }, |
| 276 | - formTempQuery: { | |
| 323 | + | |
| 324 | + formTemp2: { | |
| 277 | 325 | id: '', |
| 278 | 326 | }, |
| 327 | + listTemp1: ["强制刷新当前每日任务", "清除CDK使用记录", "清除老号成长基金记录", "踢下线并清除内存"], | |
| 328 | + listTemp2: ["清除回收生产器ID", "增加几天签到天数", "设置挖沙子轮次PVE"], | |
| 329 | + listTemp3: ["清除任务订单活动当日标记", "清除签到当日标记", "当天刷新到达等级的每日周任务", "完成所有固定订单", "清空暂存区"], | |
| 330 | + listTemp4: ["删除同步数据标记客户端存档", "删除同步数据标记成长基金", "删除同步数据标记卡牌"], | |
| 279 | 331 | |
| 280 | 332 | } |
| 281 | 333 | }, |
| ... | ... | @@ -378,6 +430,13 @@ export default { |
| 378 | 430 | Args: [v] |
| 379 | 431 | }) |
| 380 | 432 | }, |
| 433 | + onTemp1(event) { | |
| 434 | + let v = event.srcElement.value | |
| 435 | + this.onGmPost({ | |
| 436 | + Action: '玩家数据修改', | |
| 437 | + Args: [v, this.formTemp2.id.toString()] | |
| 438 | + }) | |
| 439 | + }, | |
| 381 | 440 | } |
| 382 | 441 | } |
| 383 | 442 | </script> | ... | ... |