国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

為什么訪問的內(nèi)容不對(duì)

cncoder

代碼圖片

問題描述

訪問: /shop/product 內(nèi)容始終是之前輸出的 已經(jīng)重啟了start.php

訪問: /shop/product/fe 為啥是404

709 2 0
2個(gè)回答

cncoder

BaseController.php內(nèi)容為

<?php
namespace app;

use app\service\Test;
use support\Request;
use support\Response;

class BaseController
{
    protected $request;

    public function __construct(Test $test)
    {
        $this->request = $test;
    }

    /**
     * 返回JSON數(shù)據(jù)
     * @param array $data
     * @return \support\Response
     */
    public function json(array $data = []) :Response
    {
        return json($data);
    }

    /**
     * 響應(yīng) string
     * @param string $string
     * @return Response
     */
    public function content(string $string = '') :Response
    {
        return response($string);
    }

    /**
     * @param $template
     * @param array $data
     * @param null $app
     * @return Response
     */
    public function view(string $template, array $data = [], $app = null):Response
    {

        return view($template, $data, $app);
    }
}
  • 暫無評(píng)論
cncoder

重啟服務(wù)器才能生效

  • 暫無評(píng)論
年代過于久遠(yuǎn),無法發(fā)表回答
??