更新 src/captcha.cpp
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
#include "captcha.h"
|
#include "captcha.h"
|
||||||
#include "dll_interface.h"
|
#include "dll_interface.h"
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <mimic.h>
|
|
||||||
#include "util/img.h"
|
#include "util/img.h"
|
||||||
#include "util/file.h"
|
#include "util/file.h"
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@@ -30,7 +29,7 @@ std::string module::captcha::make(int width,int height,int length,const std::str
|
|||||||
{
|
{
|
||||||
ylib::buffer data;
|
ylib::buffer data;
|
||||||
std::string code;
|
std::string code;
|
||||||
data = ylib::util::img::make_code(width,height,length,code);
|
data = ylib::img::make_code(width,height,length,code);
|
||||||
ylib::file::write(filepath,data);
|
ylib::file::write(filepath,data);
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user