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

22 lines
633 B

<?php
namespace App\Http\Controllers;
class IndexController extends Controller
{
public function getH5config(){
$referer = request()->headers->get('referer');
$url = 'http://test.qingweilai888.xyz';
$referer = str_replace('https://','',$referer);
$referer = str_replace('http://','',$referer);
$referer = trim($referer,"/");
if($referer == 'testwap.qinglakeji.com'){
$url = 'http://test.qingweilai888.xyz';
}
if($referer == 'wap.qwljk.com'){
$url = 'http://qwlapi.qwljk.com';
}
echo json_encode(['url'=>$url]);
}
}