debug
This commit is contained in:
@@ -41,4 +41,7 @@ Route::group("/novel", function () {
|
||||
Route::group("/site", function () {
|
||||
Route::get("/domain/list", [Domain::class, "getDomainList"])->name("Domain@getDomainList");
|
||||
Route::post("/domain/upload", [Domain::class, "uploadDomain"])->name("Domain@uploadDomain");
|
||||
|
||||
|
||||
Route::get("/tkdarg/list", [Domain::class, "getTKDArgList"])->name("Domain@getDomainList");
|
||||
})->middleware(AdminAuth::class);
|
||||
|
||||
@@ -6,6 +6,7 @@ namespace app\admin\controller;
|
||||
|
||||
use app\admin\BaseController;
|
||||
use app\model\AdminUserModel;
|
||||
use app\model\ConverterMovel;
|
||||
use app\model\DomainModel;
|
||||
use app\Request;
|
||||
use PhpOffice\PhpSpreadsheet\IOFactory;
|
||||
@@ -14,6 +15,19 @@ use think\Response;
|
||||
class Domain extends BaseController
|
||||
{
|
||||
|
||||
/**
|
||||
* upload site domain info file
|
||||
*
|
||||
* @param Request $Request
|
||||
* @param AdminUserModel|null $AdminUserModel
|
||||
* @return Response
|
||||
*/
|
||||
public function getTKDArgList(Request $Request, ?AdminUserModel $AdminUserModel)
|
||||
{
|
||||
return $this->success(ConverterMovel::$arrDescription);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* upload site domain info file
|
||||
*
|
||||
|
||||
@@ -82,8 +82,6 @@ class Novel extends BaseController
|
||||
$intTotal = $Col->countDocuments($arrFilter);
|
||||
|
||||
$arrResult = [
|
||||
'code' => 200,
|
||||
'msg' => '查询成功',
|
||||
'data' => $arrData,
|
||||
'total' => $intTotal,
|
||||
'page' => $intPage,
|
||||
|
||||
Reference in New Issue
Block a user