Skip to content

Commit

Permalink
fix(boxjs): 修复无法备份问题
Browse files Browse the repository at this point in the history
  • Loading branch information
chavyleung committed Aug 25, 2023
1 parent 71a65c4 commit 9a20553
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 4 deletions.
4 changes: 2 additions & 2 deletions box/chavy.boxjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const $ = new Env('BoxJs')
// 为 eval 准备的上下文环境
const $eval_env = {}

$.version = '0.12.11'
$.version = '0.12.12'
$.versionType = 'beta'

// 发出的请求需要需要 Surge、QuanX 的 rewrite
Expand Down Expand Up @@ -243,7 +243,7 @@ async function handleQuery() {
async function handleApi() {
const [, api] = $.path.split('/api')

if (api === '/save' || api.startsWith('/save')) {
if (api === '/save' || api.startsWith('/save?')) {
await apiSave()
} else if (api === '/addAppSub') {
await apiAddAppSub()
Expand Down
12 changes: 12 additions & 0 deletions box/release/box.release.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
{
"releases": [
{
"version": "0.12.12",
"tags": ["beta"],
"author": "@chavyleung",
"msg": "修复无法备份问题",
"notes": [
{
"name": "修复",
"descs": ["无法备份问题"]
}
]
},
{
"version": "0.12.11",
"tags": ["beta"],
Expand Down
12 changes: 12 additions & 0 deletions box/release/box.release.tf.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
{
"releases": [
{
"version": "0.12.12",
"tags": ["beta"],
"author": "@chavyleung",
"msg": "修复无法备份问题",
"notes": [
{
"name": "修复",
"descs": ["无法备份问题"]
}
]
},
{
"version": "0.12.11",
"tags": ["beta"],
Expand Down
4 changes: 2 additions & 2 deletions chavy.box.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const $ = new Env('BoxJs')
// 为 eval 准备的上下文环境
const $eval_env = {}

$.version = '0.12.11'
$.version = '0.12.12'
$.versionType = 'beta'

// 发出的请求需要需要 Surge、QuanX 的 rewrite
Expand Down Expand Up @@ -243,7 +243,7 @@ async function handleQuery() {
async function handleApi() {
const [, api] = $.path.split('/api')

if (api === '/save' || api.startsWith('/save')) {
if (api === '/save' || api.startsWith('/save?')) {
await apiSave()
} else if (api === '/addAppSub') {
await apiAddAppSub()
Expand Down

0 comments on commit 9a20553

Please sign in to comment.