mirror of
https://e.coding.net/circlecloud/MinecraftAccount.git
synced 2025-11-24 21:26:09 +00:00
16
Application/Home/Controller/MailController.class.php
Normal file
16
Application/Home/Controller/MailController.class.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace Home\Controller;
|
||||
|
||||
use Think\Controller;
|
||||
|
||||
class MailController extends Controller {
|
||||
public function Check($mail) {
|
||||
$data = M ( 'mail' )->where ( array ('address' => $mail ) )->find ();
|
||||
if ($data == null) {
|
||||
$this->success ( "邮箱未被注册!", '', true );
|
||||
} else {
|
||||
$this->error ( "邮箱已被注册!", '', true );
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user