notadd captcha
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets
config
resources/translations
src
tests/Captcha
.gitignore
LICENCE.md
LICENSE
README.md
composer.json

README.md

Captcha for Notadd

本插件基于 notadd

Preview

Preview

前端调用图片验证码

$domain/captcha/config?

<img src='http://localhost/captcha/default?fys8Ubmm' />

<img src='http://localhost/captcha/flat?fys8Ubmm' />

<img src='http://localhost/captcha/mini?fys8Ubmm' />

<img src='http://localhost/captcha/inverse?fys8Ubmm' />

API

操作		http请求方法	目标地址				参数
获取设置		get		$domain/api/captcha/get		-

设置验证码参数	get		$domain/api/captcha/set		-

验证验证码	post		$domain/api/captcha		'captcha':captcha

验证码验证成功返回

[
	'code'=>200,
	'data'=>[],
	'message'=>'验证码正确',
]

验证码为空返回

[
	'code'=>4001,
	'data'=>[],
	'message'=>'验证码不能为空',
]

验证码验证失败返回

[
	'code'=>4001,
	'data'=>[],
	'message'=>'验证码错误',
]

API授权、更多详细信息请参考 如何基于 Notadd 构建 API

Based on L5 Captcha on Github

^_^

Links