mirror of
				https://e.coding.net/circlecloud/McAccount.git
				synced 2025-11-03 17:56:24 +00:00 
			
		
		
		
	update register...
This commit is contained in:
		@@ -104,46 +104,47 @@ $("#register").click(function(){
 | 
				
			|||||||
            $('#email').val("");
 | 
					            $('#email').val("");
 | 
				
			||||||
            return false;
 | 
					            return false;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
  $.ajax({ url:"<?=Url('user_public','user_check')?>", type:"GET", data:{user:username.val()}, dataType:"json",
 | 
					        $.ajax({ url:"<?=Url('user_public','user_check')?>", type:"GET", data:{user:username.val()}, dataType:"json",
 | 
				
			||||||
    success:function(rdata){
 | 
					            success:function(rdata){
 | 
				
			||||||
        alert("checkuser");
 | 
					                alert("checkusersuccess");
 | 
				
			||||||
       switch(rdata.status){
 | 
					               switch(rdata.status){
 | 
				
			||||||
         case "success":
 | 
					                 case "success":
 | 
				
			||||||
            $.ajax({url:"<?=Url('user_public','mail_check')?>", type:"GET", data:{mail:email.val()}, dataType:"json",
 | 
					                    $.ajax({url:"<?=Url('user_public','mail_check')?>", type:"GET", data:{mail:email.val()}, dataType:"json",
 | 
				
			||||||
			  success:function(s){
 | 
					        			  success:function(s){
 | 
				
			||||||
				  alert("checkmail");
 | 
					        				  alert("checkmail");
 | 
				
			||||||
				  switch(s.status){
 | 
					        				  switch(s.status){
 | 
				
			||||||
					case "success":
 | 
					        					case "success":
 | 
				
			||||||
						$.ajax({
 | 
					        						$.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){
 | 
					                                   success:function(C){
 | 
				
			||||||
                        	   alert("reg"); 
 | 
					                                	   alert("reg"); 
 | 
				
			||||||
				              switch(C.status){
 | 
					        				              switch(C.status){
 | 
				
			||||||
					                 case "success": 
 | 
					        					                 case "success": 
 | 
				
			||||||
						                 alert(C.info); 
 | 
					        						                 alert(C.info); 
 | 
				
			||||||
						                 location.href = "<?=Url('index','index')?>"; 
 | 
					        						                 location.href = "<?=Url('index','index')?>"; 
 | 
				
			||||||
						                 break;
 | 
					        						                 break;
 | 
				
			||||||
					                 case "error": 
 | 
					        					                 case "error": 
 | 
				
			||||||
						                 alert(A.info); 
 | 
					        						                 alert(A.info); 
 | 
				
			||||||
					                 break;
 | 
					        					                 break;
 | 
				
			||||||
			                        }	
 | 
					        			                        }	
 | 
				
			||||||
                                }
 | 
					                                        }
 | 
				
			||||||
                            })
 | 
					                                    })
 | 
				
			||||||
						break;
 | 
					        						break;
 | 
				
			||||||
					case "error": 
 | 
					        					case "error": 
 | 
				
			||||||
						alert(s.info); 
 | 
					        						alert(s.info); 
 | 
				
			||||||
					return false; 
 | 
					        					return false; 
 | 
				
			||||||
				    }
 | 
					        				    }
 | 
				
			||||||
			    }
 | 
					        			    }
 | 
				
			||||||
			})
 | 
					        			})
 | 
				
			||||||
         break;
 | 
					                 break;
 | 
				
			||||||
         case "error": 
 | 
					                 case "error": 
 | 
				
			||||||
             alert(rdata.info); 
 | 
					                     alert(rdata.info); 
 | 
				
			||||||
         return false; 
 | 
					                 return false; 
 | 
				
			||||||
       }
 | 
					               }
 | 
				
			||||||
    }  
 | 
					            },
 | 
				
			||||||
   alert(7);
 | 
					        	error:function(){
 | 
				
			||||||
   }) 
 | 
					            	alert("checkusererror");
 | 
				
			||||||
 | 
					           }) 
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
</script>
 | 
					</script>
 | 
				
			||||||
</body>
 | 
					</body>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user