mirror of
https://github.com/v2board/v2board.git
synced 2025-08-02 21:38:49 +08:00
update: add hysteria
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user