# captcha **Repository Path**: AllenGu93/captcha ## Basic Information - **Project Name**: captcha - **Description**: notadd captcha - **Primary Language**: PHP - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-07-14 - **Last Updated**: 2024-06-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Captcha for Notadd 本插件基于 [notadd](https://github.com/notadd/notadd) ## Preview ![Preview](http://i.imgur.com/HYtr744.png) ## 前端调用图片验证码 $domain/captcha/config? `` `` `` `` ## 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](https://docs.notadd.com/#/v1.0/zh-CN/howtos/api) Based on [L5 Captcha on Github](https://github.com/mewebstudio/captcha) ^_^ ## Links * [Intervention Image](https://github.com/Intervention/image) * [License](http://www.opensource.org/licenses/mit-license.php) * [Notadd website](http://notadd.com)