Commit 18b7df84 authored by zhoujun's avatar zhoujun

回归测试

parent e2f34bc4
......@@ -27,6 +27,8 @@ class HomeController extends Controller
*/
public function getHome(Request $request)
{
$isWx = UtilService::getIsWx($_SERVER['HTTP_USER_AGENT']);
if(!$isWx) return redirect(route('wxIndex'));
$data = [];
if($request->session()->get('uid')){
$userId = $request->session()->get('uid');
......
......@@ -7,6 +7,7 @@ use Illuminate\Support\Facades\Validator;
use Throwable;
use Exception;
use Carbon\Carbon;
use App\Services\UtilService;
class HomeController extends Controller
{
......@@ -24,8 +25,6 @@ class HomeController extends Controller
*/
public function getIndex()
{
$isWx = UtilService::getIsWx($_SERVER['HTTP_USER_AGENT']);
if(!$isWx) return redirect(route('wxIndex'));
$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