Commit 6b2c5a4b authored by 顾敏's avatar 顾敏

服务器名修复

parent 0e4f7649
......@@ -363,13 +363,10 @@ class CardController extends Controller
->first();
if(!$info) return redirect(route('index'));
$filterElems = ['越狱', 'IOS', 'mg77', '抖音', '硬核', '非硬核', 'zy', '915转移', '转移', '小米', '百度'];
$nameElems = explode("-", $info->server_name);
$serverName = implode("-", array_diff($nameElems, $filterElems));
$serverNames = config("gameservers");
$user = User::where('uid',$userId)->select('uid','account')->first();
$data['userName'] = $user->account ?? '';
$data['serverName'] = $serverName;
$data['serverName'] = $serverNames[$info->server_id] ?? $info->server_id;
$armsScore = [];
$armsStrong = [];
......
......@@ -10,6 +10,11 @@
| contains the 'web' middleware group. Now create something great!
|
*/
Route::get("config/game_servers", function() {
return json_encode(config("gameservers"), JSON_UNESCAPED_UNICODE);
});
Route::get('health/status', 'CheckController@getCheckDB');
Route::any('/wx/home','HomeController@getIndex')->name('wxIndex');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment