更新
This commit is contained in:
parent
773332f406
commit
5ec20fa327
@ -5,6 +5,15 @@
|
|||||||
|
|
||||||
# CHANGE
|
# CHANGE
|
||||||
|
|
||||||
|
## 1.1.6
|
||||||
|
|
||||||
|
2024年01月08日
|
||||||
|
|
||||||
|
### 修改
|
||||||
|
|
||||||
|
- refill功能改为菜单式,新增支持3种refil
|
||||||
|
- 快速犯罪功能现已支持全部种类
|
||||||
|
|
||||||
## 1.1.5
|
## 1.1.5
|
||||||
|
|
||||||
2023年12月22日
|
2023年12月22日
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "wuhu-torn-helper",
|
"name": "wuhu-torn-helper",
|
||||||
"version": "1.1.5",
|
"version": "1.1.6",
|
||||||
"description": "芜湖助手",
|
"description": "芜湖助手",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"release": "cross-env NODE_ENV=production rollup -c && node build.mjs",
|
"release": "cross-env NODE_ENV=production rollup -c && node build.mjs",
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -64,20 +64,18 @@
|
|||||||
<el-menu-item @click="quickGymTrain.doTrain(BATTLE_STAT.DEX)">闪避 DEX
|
<el-menu-item @click="quickGymTrain.doTrain(BATTLE_STAT.DEX)">闪避 DEX
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
</el-sub-menu>
|
</el-sub-menu>
|
||||||
<!-- <el-sub-menu index="3">-->
|
<el-sub-menu index="3">
|
||||||
<!-- <template #title>-->
|
<template #title>
|
||||||
<!-- <el-icon>🪓</el-icon>-->
|
<el-icon>♻️</el-icon>
|
||||||
<!-- <span>老功能</span>-->
|
<span>REFILL</span>
|
||||||
<!-- </template>-->
|
</template>
|
||||||
<!-- <el-menu-item index="3-1" @click="_adHelper">📜️ 传单助手</el-menu-item>-->
|
<el-menu-item @click="handleRefil('energyrefill2')">能量E
|
||||||
<!-- <el-menu-item index="3-2" @click="_safeKeeper">🛡️ 守望者</el-menu-item>-->
|
</el-menu-item>
|
||||||
<!-- <el-menu-item index="3-3" @click="MUZHUANG">🌲 寻找木桩</el-menu-item>-->
|
<el-menu-item @click="handleRefil('nerverefill2')">犯罪N
|
||||||
<!--<!– <el-menu-item index="3-4" @click="_setting">⚙️ 助手设置</el-menu-item>–>-->
|
</el-menu-item>
|
||||||
<!-- </el-sub-menu>-->
|
<el-menu-item @click="handleRefil('casinotokens2')">赌场代币
|
||||||
<!-- <el-menu-item v-for="(item, i) in menuItemList" :index="(4 + i).toString()" @click="menuClick(item)">-->
|
</el-menu-item>
|
||||||
<!-- <el-icon>{{ item.title.slice(0, 2) }}</el-icon>-->
|
</el-sub-menu>
|
||||||
<!-- <span>{{ item.title.slice(2, item.title.length) }}</span>-->
|
|
||||||
<!-- </el-menu-item>-->
|
|
||||||
</el-menu>
|
</el-menu>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card :body-style="{ 'padding': '4px' }" class="innerCard">
|
<el-card :body-style="{ 'padding': '4px' }" class="innerCard">
|
||||||
@ -87,7 +85,6 @@
|
|||||||
<el-row style="display: flex;">
|
<el-row style="display: flex;">
|
||||||
<el-col v-for="item in menuItemList" class="featureCol">
|
<el-col v-for="item in menuItemList" class="featureCol">
|
||||||
<el-card :body-class="'featureMenuBody'" class="featureMenu" shadow="never" @click="menuClick(item)">
|
<el-card :body-class="'featureMenuBody'" class="featureMenu" shadow="never" @click="menuClick(item)">
|
||||||
<!-- <el-card class="featureMenu" @click="menuClick(item)" :body-style="{'padding': '0' }">-->
|
|
||||||
<div>
|
<div>
|
||||||
<el-icon class="icon">{{ item.title.slice(0, 2) }}</el-icon>
|
<el-icon class="icon">{{ item.title.slice(0, 2) }}</el-icon>
|
||||||
</div>
|
</div>
|
||||||
@ -131,8 +128,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
</el-config-provider>
|
</el-config-provider>
|
||||||
<!-- <div id="wh123">{{ sessionObject }}</div>-->
|
|
||||||
<!-- <div id="wh1234">{{ session }}</div>-->
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
@ -147,22 +142,22 @@ import SettingsHandler from "../ts/class/handler/SettingsHandler"
|
|||||||
import { BATTLE_STAT } from "../ts/class/utils/NetHighLvlWrapper"
|
import { BATTLE_STAT } from "../ts/class/utils/NetHighLvlWrapper"
|
||||||
import adHelper from "../ts/func/module/adHelper"
|
import adHelper from "../ts/func/module/adHelper"
|
||||||
import safeKeeper from "../ts/func/module/safeKeeper"
|
import safeKeeper from "../ts/func/module/safeKeeper"
|
||||||
|
import getSidebarData from "../ts/func/utils/getSidebarData"
|
||||||
import useItem from "../ts/func/utils/useItem"
|
import useItem from "../ts/func/utils/useItem"
|
||||||
import globVars from "../ts/globVars"
|
import globVars from "../ts/globVars"
|
||||||
import AutoLoginForm from "./AutoLoginForm.vue"
|
import AutoLoginForm from "./AutoLoginForm.vue"
|
||||||
|
import ChangeLogView from "./ChangeLogView.vue"
|
||||||
import CityUItems from "./CityUItems.vue"
|
import CityUItems from "./CityUItems.vue"
|
||||||
import CompanyWithdraw from "./CompanyWithdraw.vue"
|
import CompanyWithdraw from "./CompanyWithdraw.vue"
|
||||||
import EventsViewer from "./EventsViewer.vue"
|
import EventsViewer from "./EventsViewer.vue"
|
||||||
import ForeignStock from "./ForeignStock.vue"
|
import ForeignStock from "./ForeignStock.vue"
|
||||||
import InventoryView from "./InventoryView.vue"
|
import InventoryView from "./InventoryView.vue"
|
||||||
import MarketHelper from "./MarketHelper.vue"
|
import MarketHelper from "./MarketHelper.vue"
|
||||||
|
import MonitorMgrView from "./MonitorMgrView.vue"
|
||||||
import PTMarketView from "./PTMarketView.vue"
|
import PTMarketView from "./PTMarketView.vue"
|
||||||
import QuickCrime from "./QuickCrime.vue"
|
import QuickCrime from "./QuickCrime.vue"
|
||||||
import UpdateDate from "./UpdateScript.vue"
|
import UpdateDate from "./UpdateScript.vue"
|
||||||
import VirusProgramming from "./VirusProgramming.vue"
|
import VirusProgramming from "./VirusProgramming.vue"
|
||||||
import getSidebarData from "../ts/func/utils/getSidebarData"
|
|
||||||
import MonitorMgrView from "./MonitorMgrView.vue"
|
|
||||||
import ChangeLogView from "./ChangeLogView.vue"
|
|
||||||
|
|
||||||
const logger = inject(LoggerKey)
|
const logger = inject(LoggerKey)
|
||||||
const quickGymTrain = inject(QuickGymTrainKey)
|
const quickGymTrain = inject(QuickGymTrainKey)
|
||||||
@ -189,32 +184,32 @@ const menuItemList: MenuItem[] = [
|
|||||||
ElMessage({ message: 'N: ' + nerve + ', CD: ' + cd + 'h', showClose: true })
|
ElMessage({ message: 'N: ' + nerve + ', CD: ' + cd + 'h', showClose: true })
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
title: '♻️ REFILL',
|
// title: '♻️ REFILL',
|
||||||
handler: () => fetch(window.addRFC("https://www.torn.com/points.php?step=pointsbuy&action=energyrefill2"), {
|
// handler: () => fetch(window.addRFC("https://www.torn.com/points.php?step=pointsbuy&action=energyrefill2"), {
|
||||||
"headers": {
|
// "headers": {
|
||||||
"accept": "text/plain, */*; q=0.01",
|
// "accept": "text/plain, */*; q=0.01",
|
||||||
"sec-ch-ua-mobile": "?0",
|
// "sec-ch-ua-mobile": "?0",
|
||||||
"sec-fetch-dest": "empty",
|
// "sec-fetch-dest": "empty",
|
||||||
"sec-fetch-mode": "cors",
|
// "sec-fetch-mode": "cors",
|
||||||
"sec-fetch-site": "same-origin",
|
// "sec-fetch-site": "same-origin",
|
||||||
"x-requested-with": "XMLHttpRequest"
|
// "x-requested-with": "XMLHttpRequest"
|
||||||
},
|
// },
|
||||||
"referrer": "https://www.torn.com/points.php",
|
// "referrer": "https://www.torn.com/points.php",
|
||||||
"referrerPolicy": "strict-origin-when-cross-origin",
|
// "referrerPolicy": "strict-origin-when-cross-origin",
|
||||||
"body": null,
|
// "body": null,
|
||||||
"method": "GET",
|
// "method": "GET",
|
||||||
"mode": "cors",
|
// "mode": "cors",
|
||||||
"credentials": "include"
|
// "credentials": "include"
|
||||||
})
|
// })
|
||||||
.then(res => res.json())
|
// .then(res => res.json())
|
||||||
.then(res => ElMessage({
|
// .then(res => ElMessage({
|
||||||
message: `<p>${ res.msg }</p><p>剩余refill: ${ res["refills"] }</p>`,
|
// message: `<p>${ res.msg }</p><p>剩余refill: ${ res["refills"] }</p>`,
|
||||||
type: res.state === 'done' ? 'success' : 'error',
|
// type: res.state === 'done' ? 'success' : 'error',
|
||||||
dangerouslyUseHTMLString: true
|
// dangerouslyUseHTMLString: true
|
||||||
}))
|
// }))
|
||||||
.catch(e => ElMessage.error(e.toString)),
|
// .catch(e => ElMessage.error(e.toString)),
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: '🚓 快速犯罪',
|
title: '🚓 快速犯罪',
|
||||||
template: QuickCrime,
|
template: QuickCrime,
|
||||||
@ -303,6 +298,33 @@ const _globVars = ref(globVars)
|
|||||||
const editableTabsValue = ref('')
|
const editableTabsValue = ref('')
|
||||||
const editableTabs = shallowRef([])
|
const editableTabs = shallowRef([])
|
||||||
|
|
||||||
|
// refil
|
||||||
|
const handleRefil = (method: 'nerverefill2' | 'energyrefill2' | 'casinotokens2') => {
|
||||||
|
fetch(window.addRFC('https://www.torn.com/points.php?step=pointsbuy&action=' + method), {
|
||||||
|
"headers": {
|
||||||
|
"accept": "text/plain, */*; q=0.01",
|
||||||
|
"sec-ch-ua-mobile": "?0",
|
||||||
|
"sec-fetch-dest": "empty",
|
||||||
|
"sec-fetch-mode": "cors",
|
||||||
|
"sec-fetch-site": "same-origin",
|
||||||
|
"x-requested-with": "XMLHttpRequest"
|
||||||
|
},
|
||||||
|
"referrer": "https://www.torn.com/points.php",
|
||||||
|
"referrerPolicy": "strict-origin-when-cross-origin",
|
||||||
|
"body": null,
|
||||||
|
"method": "GET",
|
||||||
|
"mode": "cors",
|
||||||
|
"credentials": "include"
|
||||||
|
})
|
||||||
|
.then(res => res.json())
|
||||||
|
.then(res => ElMessage({
|
||||||
|
message: `<p>${res.msg}</p><p>剩余次数: ${res["refills"]}</p>`,
|
||||||
|
type: res.state === 'done' ? 'success' : 'error',
|
||||||
|
dangerouslyUseHTMLString: true
|
||||||
|
}))
|
||||||
|
.catch(e => ElMessage.error(e.toString))
|
||||||
|
}
|
||||||
|
|
||||||
// fast travel
|
// fast travel
|
||||||
const travelData = [
|
const travelData = [
|
||||||
{ cName: "🇲🇽 墨西哥", index: 0 },
|
{ cName: "🇲🇽 墨西哥", index: 0 },
|
||||||
@ -468,14 +490,6 @@ onMounted(() => {
|
|||||||
documentHeight.value = document.documentElement.scrollHeight;
|
documentHeight.value = document.documentElement.scrollHeight;
|
||||||
});
|
});
|
||||||
|
|
||||||
// watch(_globVars, (_globVars, pre) => {
|
|
||||||
// logger.info({ _globVars, pre })
|
|
||||||
// _buttons.value = []
|
|
||||||
// let keys = Object(globVars.buttons).keys()
|
|
||||||
// for (let i = 0; i < keys.length; i++) {
|
|
||||||
// _buttons.value.push(globVars.buttons[keys[i]])
|
|
||||||
// }
|
|
||||||
// }, { deep: true })
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
@ -1,9 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-space direction="vertical">
|
<el-space direction="vertical">
|
||||||
<el-row>
|
<el-row>
|
||||||
|
<el-button-group>
|
||||||
<el-button @click="doCrime(11, 'warehouse')">烧仓库</el-button>
|
<el-button @click="doCrime(11, 'warehouse')">烧仓库</el-button>
|
||||||
<el-button @click="doCrime(15, 'napcop')">做15-3</el-button>
|
<el-button @click="doCrime(15, 'napcop')">做15-3</el-button>
|
||||||
<el-button @click="doCrime(18, 'hackbank')">做18-1</el-button>
|
<el-button @click="doCrime(18, 'hackbank')">做18-1</el-button>
|
||||||
|
</el-button-group>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-cascader :options="CrimeData" :show-all-levels="false" clearable v-model="crimeSelected" placeholder="选择其他" />
|
<el-cascader :options="CrimeData" :show-all-levels="false" clearable v-model="crimeSelected" placeholder="选择其他" />
|
||||||
@ -16,11 +18,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { inject, ref } from 'vue';
|
import { Coffee } from "@element-plus/icons-vue";
|
||||||
import { ElMessage } from "element-plus";
|
import { ElMessage } from "element-plus";
|
||||||
|
import { inject, ref } from 'vue';
|
||||||
import { LoggerKey } from "../ts/class/Logger";
|
import { LoggerKey } from "../ts/class/Logger";
|
||||||
import { CrimeData } from "./data/CrimeData"
|
import { CrimeData } from "./data/CrimeData";
|
||||||
import { Coffee } from "@element-plus/icons-vue"
|
|
||||||
|
|
||||||
const logger = inject(LoggerKey);
|
const logger = inject(LoggerKey);
|
||||||
const results = ref("");
|
const results = ref("");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user