Commit e2f34bc4 authored by zhoujun's avatar zhoujun

回归测试

parent 94f7c205
...@@ -9,6 +9,7 @@ use Exception; ...@@ -9,6 +9,7 @@ use Exception;
use Carbon\Carbon; use Carbon\Carbon;
use Illuminate\Validation\Rule; use Illuminate\Validation\Rule;
use App\Models\User; use App\Models\User;
use App\Services\UtilService;
class HomeController extends Controller class HomeController extends Controller
{ {
......
...@@ -24,6 +24,8 @@ class HomeController extends Controller ...@@ -24,6 +24,8 @@ class HomeController extends Controller
*/ */
public function getIndex() public function getIndex()
{ {
$isWx = UtilService::getIsWx($_SERVER['HTTP_USER_AGENT']);
if(!$isWx) return redirect(route('wxIndex'));
$data = []; $data = [];
return view('index', $data); return view('index', $data);
} }
......
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