You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.9 KiB
PHP

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/', function () {
return view('welcome');
});
//微信登录授权获取code
Route::get('/wxLogin/{env}', function ($env) {
$redirectUrl=urlencode(config('app.globals.WxRedirectUrl'));
$url="https://open.weixin.qq.com/connect/oauth2/authorize?appid=".config('app.globals.WxAppid')."&redirect_uri=".$redirectUrl."&response_type=code&scope=snsapi_base&state=".$env."#wechat_redirect";
return redirect($url);
});
//微信登录授权获取openid
Route::get('/wxGetCode','App\Http\Controllers\API\mH5\LoginController@wxGetCode' );
Route::get('/test','App\Http\Controllers\TestController@DBtest' );
//his跳到此路由再跳转到对应的系统页面
Route::get('/yiji', function (Request $request) {
$queryString = $request->server('QUERY_STRING'); // 获取原始查询字符串
return redirect("http://192.168.80.76/jq_page/appointment.html?".$queryString);
//parse_str(urldecode($queryString), $data); // 先 urldecode再 parse_str 解析
// dd($queryString);
// $regnum=$request->query('regnum');
// $entrustid=$request->query('entrustid');
// $episodeid=$request->query('episodeid');
// $dotype=$request->query('dotype');
// $appointment_type=$request->query('appointment_type');
// $data=[
// 'regnum'=>$regnum,
// 'entrustid'=>$entrustid,
// 'episodeid'=>$episodeid,
// 'dotype'=>$dotype,
// 'appointment_type'=>$appointment_type,
// ];
// dd($data);
});