代码功能更新
This commit is contained in:
Executable
+39
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
namespace app\controller\admin\balance;
|
||||
|
||||
use laytp\controller\Backend;
|
||||
use think\facade\Config;
|
||||
|
||||
/**
|
||||
* Api请求日志
|
||||
*/
|
||||
class Log extends Backend
|
||||
{
|
||||
|
||||
/**
|
||||
* api_log模型对象app\model\admin\balance
|
||||
* @var \app\model\admin\balance\Log
|
||||
*/
|
||||
protected $model;
|
||||
protected $hasSoftDel = 0;//是否拥有软删除功能
|
||||
|
||||
protected $noNeedLogin = []; // 无需登录即可请求的方法
|
||||
protected $noNeedAuth = ['index', 'info']; // 无需鉴权即可请求的方法
|
||||
|
||||
public function _initialize()
|
||||
{
|
||||
$this->model = new \app\model\admin\balance\Log();
|
||||
|
||||
}
|
||||
|
||||
//查看详情
|
||||
public function info()
|
||||
{
|
||||
$id = $this->request->param('id');
|
||||
$info = $this->model->find($id);
|
||||
return $this->success('获取成功', $info);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user