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