webman_duanju/app/admin/controller/Indetcode.php

16 lines
396 B
PHP

<?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']));
}
}