mirror of
https://e.coding.net/circlecloud/McAccount.git
synced 2024-11-16 00:48:57 +00:00
fix some bug...
Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
parent
cdf10d5fed
commit
dc534f0e8f
@ -30,11 +30,7 @@ class authme extends AmysqlModel {
|
||||
if ($this->_insert ( 'mail', $data ) == 0) {
|
||||
return false;
|
||||
} else {
|
||||
if ($this->_insert ( 'iconomy', $ic ) == 0) {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,8 @@
|
||||
<!DOCTYPE html>
|
||||
<?php
|
||||
if (!empty( $_SESSION ['username'] ))
|
||||
header ( 'Location:' . Url ( 'index', 'index' ) );
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html class="login-bg">
|
||||
<head>
|
||||
<title><?=$title?></title>
|
||||
|
@ -73,7 +73,7 @@ if (empty ( $_SESSION ['username'] ))
|
||||
<tr class="first">
|
||||
<td>邮箱地址</td>
|
||||
<td class="description"><input style="width: 250px;"
|
||||
class="span8 inline-input" id="mail" type="text" /></td>
|
||||
class="span8 inline-input" id="mail" type="text" disabled="disabled"/></td>
|
||||
<td><button style="width: 90px;" id="submit" type="button"
|
||||
class="btn-glow primary btn-next">发送验证码</button></td>
|
||||
</tr>
|
||||
|
@ -33,7 +33,8 @@
|
||||
</head>
|
||||
<body>
|
||||
<div class="header">
|
||||
<a href="<?=Url('index','index')?>"> <img src="View/public/img/logo.png" class="logo" />
|
||||
<a href="<?=Url('index','index')?>"> <img
|
||||
src="View/public/img/logo.png" class="logo" />
|
||||
</a>
|
||||
</div>
|
||||
<div class="row-fluid login-wrapper col-xs-12 col-md-12 col-lg-12">
|
||||
@ -107,25 +108,24 @@ $("#register").click(function(){
|
||||
$.ajax({ url:"<?=Url('user_public','user_check')?>", type:"GET", data:{user:username.val()}, dataType:"json",
|
||||
success:function(rdata){
|
||||
switch(rdata.status){
|
||||
case "success":
|
||||
$.ajax({url:"<?=Url('user_public','mail_check')?>", type:"GET", data:{mail:email.val()}, dataType:"json",
|
||||
success:function(s){
|
||||
switch(s.status){
|
||||
case "success":
|
||||
$.ajax({url:"<?=Url('user_public','mail_check')?>",
|
||||
type:"GET",
|
||||
data:{mail:email.val()},
|
||||
dataType:"json",
|
||||
success:function(s){
|
||||
switch(s.status){
|
||||
case "success":
|
||||
$.ajax({
|
||||
type:"POST", data:{user:username.val(), mail:email.val(),pass:pass.val()}, dataType:"json", url:"<?=Url('user_public','register')?>",
|
||||
type:"POST",
|
||||
data:{user:username.val(), mail:email.val(),pass:pass.val()},
|
||||
dataType:"json",
|
||||
url:"<?=Url('user_public','register')?>",
|
||||
success:function(C){
|
||||
switch(C.status){
|
||||
case "success":
|
||||
alert(C.info);
|
||||
location.href = "<?=Url('index','index')?>";
|
||||
break;
|
||||
case "error":
|
||||
alert(A.info);
|
||||
break;
|
||||
}
|
||||
}
|
||||
})
|
||||
alert(C.info);
|
||||
location.href = "<?=Url('index','index')?>";
|
||||
}
|
||||
})
|
||||
break;
|
||||
case "error":
|
||||
alert(s.info);
|
||||
@ -133,15 +133,17 @@ $("#register").click(function(){
|
||||
}
|
||||
}
|
||||
})
|
||||
break;
|
||||
case "error":
|
||||
alert(rdata.info);
|
||||
return false;
|
||||
break;
|
||||
case "error":
|
||||
alert(rdata.info);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error:function(){
|
||||
alert("注册失败 请检查网络是否通畅!");
|
||||
}})
|
||||
}
|
||||
}
|
||||
)
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
Loading…
Reference in New Issue
Block a user