Skip to content

Commit

Permalink
修复linux文件大小写识别问题
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperChenYun committed Sep 19, 2020
1 parent ff52838 commit a768f8d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions manage/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

include './vendor/autoload.php';

$contro = $_GET['control'] ?? 'Index';
$control = $_GET['control'] ?? 'Index';
$action = $_GET['action'] ?? 'index';

$control = ucfirst(strtolower($control));
//var_dump($contro);
//var_dump($action);
$calss = "app\\$contro";
$calss = "app\\$control";

if (!class_exists($calss)) {
throw new Exception('Class Not Exists:' . $calss);
Expand Down

0 comments on commit a768f8d

Please sign in to comment.