<?php
// +----------------------------------------------------------------------
// | HisiPHP框架[基于ThinkPHP5.1开发]
// +----------------------------------------------------------------------
// | Copyright (c) 2016-2021 http://www.hisiphp.com
// +----------------------------------------------------------------------
// | HisiPHP承诺基础框架永久免费开源,您可用于学习和商用,但必须保留软件版权信息。
// +----------------------------------------------------------------------
// | Author: 橘子俊 <364666827@qq.com>,开发者QQ群:50304283
// +----------------------------------------------------------------------
namespace app\system\home;
use app\common\controller\Common;
use app\system\model\SystemUser as UserModel;
//【后台专用】跳转至站外URL
class Jump extends Common
{
public function index()
{
$url = urldecode($this->request->param('url'));
if (!(new UserModel)->isLogin()) {
return $this->error('无操作权限');
}
if (stripos($url, 'http') === false) {
return $this->error('URL地址不合法');
}
return $this->success('正在跳转至目标网站', $url);
}
}