update: add hysteria

This commit is contained in:
v2board
2023-03-08 02:28:00 +08:00
parent 9a28d27082
commit 9f2c83a21e
11 changed files with 213 additions and 12 deletions

View File

@ -2,6 +2,7 @@
namespace App\Http\Controllers\Admin\Server;
use App\Models\ServerHysteria;
use App\Models\ServerVmess;
use App\Models\ServerShadowsocks;
use App\Models\ServerTrojan;
@ -44,6 +45,12 @@ class ManageController extends Controller
abort(500, '保存失败');
}
break;
case 'hysteria':
if (!ServerHysteria::find($v['value'])->update(['sort' => $v['sort']])) {
DB::rollBack();
abort(500, '保存失败');
}
break;
}
}
DB::commit();