debug
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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]示例应用';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -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();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
// 这是系统自动生成的middleware定义文件
|
// 这是系统自动生成的middleware定义文件
|
||||||
return [
|
return [
|
||||||
|
\think\middleware\AllowCrossDomain::class,
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ class Scheduler extends ZwScheduler
|
|||||||
*/
|
*/
|
||||||
public function init()
|
public function init()
|
||||||
{
|
{
|
||||||
$this->intSlice = 8;
|
$this->intSlice = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user