代码功能更新

This commit is contained in:
root
2025-05-18 07:29:01 +00:00
commit 12b03531c5
2083 changed files with 695218 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
<?php
namespace app\controller\admin\api;
use laytp\controller\Backend;
use think\facade\Config;
/**
* Api请求日志
*/
class Log extends Backend
{
/**
* api_log模型对象
* @var \app\model\api\Log
*/
protected $model;
protected $hasSoftDel = 0;//是否拥有软删除功能
protected $noNeedLogin = []; // 无需登录即可请求的方法
protected $noNeedAuth = ['index', 'info']; // 无需鉴权即可请求的方法
public function _initialize()
{
$this->model = new \app\model\api\Log();
}
//查看详情
public function info()
{
$id = $this->request->param('id');
$info = $this->model->find($id);
return $this->success('获取成功', $info);
}
}