Commit 813d220c authored by zhoujun's avatar zhoujun

调试微信分享

parent 46eeda46
Pipeline #1556 passed with stage
in 0 seconds
...@@ -25,7 +25,9 @@ class HomeController extends Controller ...@@ -25,7 +25,9 @@ class HomeController extends Controller
*/ */
public function getHome(Request $request) public function getHome(Request $request)
{ {
$data = []; $isWx = UtilService::getIsWx($_SERVER['HTTP_USER_AGENT']);
if(!$isWx) return redirect(route("wxIndex"));
$data['isWx'] = $isWx;
return view('card.index', $data); return view('card.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