add
This commit is contained in:
16
app/admin/controller/Indetcode.php
Normal file
16
app/admin/controller/Indetcode.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\controller;
|
||||
|
||||
use app\common\controller\Backend;
|
||||
use app\admin\model\SysCaptcha;
|
||||
class Indetcode extends Backend
|
||||
{
|
||||
protected array $noNeedLogin = ['*'];
|
||||
public function getCode()
|
||||
{
|
||||
$data = $this->request->get();
|
||||
if(empty($data['uuid']))$this->error('参数不完整');
|
||||
$this->success('ok', SysCaptcha::getCode($data['uuid']));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user