Commit ba4a2473 authored by sugar's avatar sugar

对接鹿马

parent ced9d9ed
......@@ -119,6 +119,7 @@ class Api
// 设置当前请求的URI
$this->auth->setRequestUri($path);
// 检测是否需要验证登录
dump($this->noNeedLogin);die;
if (!$this->auth->match($this->noNeedLogin)) {
if(!isset($header['token'])){
$this->error(__('请求头错误'));
......
......@@ -342,5 +342,9 @@ return [
'city'=>0.02,
'area'=>0.03,
'maker'=>0.05,
],
//鹿马参数
'luma'=>[
'token'=>'42dac7f00f73d9dfkarefg9c24a1eb1af',
]
];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment