|
|
@@ -28,6 +28,13 @@ class Register extends Controller
|
|
|
$confirm_password = input('post.confirm_password');
|
|
|
$user_phone = input('post.user_phone');
|
|
|
$captcha = input('post.captcha');
|
|
|
+ $ch_box = input('post.ch_box');
|
|
|
+
|
|
|
+ //验证是否勾选协议
|
|
|
+ if ($ch_box == false) {
|
|
|
+ //验证失败
|
|
|
+ $this->error('未勾选协议');
|
|
|
+ }
|
|
|
|
|
|
//验证密码
|
|
|
if ($user_password != $confirm_password) {
|