Skip to content

Commit

Permalink
fix: update api
Browse files Browse the repository at this point in the history
  • Loading branch information
gideonsenku committed Jul 22, 2024
1 parent b248a23 commit f431d7d
Show file tree
Hide file tree
Showing 3 changed files with 16 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.19.7'
$.version = '0.19.8'
$.versionType = 'beta'

// 发出的请求需要需要 Surge、QuanX 的 rewrite
Expand Down Expand Up @@ -713,7 +713,7 @@ async function apiUpdate() {
const data = $.toObj($request.body)
const path = data.path
const val = data.val
const key = key.split('.')[0]
const key = path.split('.')[0]

switch (key) {
case 'usercfgs':
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.19.8",
"tags": ["beta"],
"author": "@GideonSenku",
"msg": "fix(boxjs): 修复 /api/update 进行局部数据更新",
"notes": [
{
"name": "修复接口",
"descs": ["本次更新主要面向开发者"]
}
]
},
{
"version": "0.19.7",
"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.19.7'
$.version = '0.19.8'
$.versionType = 'beta'

// 发出的请求需要需要 Surge、QuanX 的 rewrite
Expand Down Expand Up @@ -713,7 +713,7 @@ async function apiUpdate() {
const data = $.toObj($request.body)
const path = data.path
const val = data.val
const key = key.split('.')[0]
const key = path.split('.')[0]

switch (key) {
case 'usercfgs':
Expand Down

0 comments on commit f431d7d

Please sign in to comment.