//引入
use think\exception\HttpResponseException;
//调用
public function index(){
$this->redirect(url('index/order/lists'));
}
//方法
public function redirect(...$args)
{
throw new HttpResponseException(redirect(...$args));
}
tp6重定向
最新推荐文章于 2024-03-19 19:07:37 发布