This commit is contained in:
Default
2025-04-16 10:59:48 +08:00
parent d101d89351
commit adc94c309d
5 changed files with 3 additions and 38 deletions

View File

@@ -59,6 +59,6 @@ PROXY_STATUS = true
PROXY_CODE = KUAI PROXY_CODE = KUAI
#PROXY_HOST = w739.kdltps.com #PROXY_HOST = w739.kdltps.com
PROXY_HOST = w740.kdltps.com PROXY_HOST = w740.kdltps.com:15818
PROXY_KEY = t14468368981914 PROXY_KEY = t14468368981914
PROXY_SECRET = 03xvfdc0 PROXY_SECRET = 03xvfdc0

View File

@@ -1,14 +0,0 @@
<?php
declare (strict_types = 1);
namespace app\api\controller;
use app\api\BaseController;
class Novel extends BaseController
{
public function search()
{
return '您好!这是一个[api]示例应用';
}
}

View File

@@ -34,9 +34,6 @@ class Statis extends BaseController
$NovelClicksModel = NovelClicksModel::getInstance(); $NovelClicksModel = NovelClicksModel::getInstance();
try { try {
// for ($intNId = 1; $intNId <= 20; $intNId++) {
// $NovelClicksModel->addStatis($intNId);
// }
$NovelClicksModel->addStatis($intNId); $NovelClicksModel->addStatis($intNId);
} catch (\Exception $e) { } catch (\Exception $e) {
// throw $e; // throw $e;
@@ -44,23 +41,4 @@ class Statis extends BaseController
return Response::create()->code(204); return Response::create()->code(204);
} }
/**
* test code
*
* @param Request $Request
* @return Response
*/
public function test(Request $Request): Response
{
// $arrCategory = CategoryModel::getCategory();
// print_r($arrCategory);
$NovelModel = NovelModel::getInstance();
$NovelModel->updateByKeywords(["", ""], 9);
exit;
return Response::create();
}
} }

View File

@@ -1,4 +1,5 @@
<?php <?php
// 这是系统自动生成的middleware定义文件 // 这是系统自动生成的middleware定义文件
return [ return [
\think\middleware\AllowCrossDomain::class,
]; ];

View File

@@ -19,7 +19,7 @@ class Scheduler extends ZwScheduler
*/ */
public function init() public function init()
{ {
$this->intSlice = 8; $this->intSlice = 4;
} }
/** /**