Browse Source

登陆过滤

caipin 8 năm trước cách đây
mục cha
commit
dcddd8ec34
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      protected/controller/MainController.php

+ 3 - 2
protected/controller/MainController.php

@@ -141,8 +141,9 @@ class MainController extends DooController {
 		//http://yn.com/api/synlogin?username=cp123456&password=123456
 		
 	
-		$passwork = isset ( $_POST['passwork'] ) ? $_POST['passwork'] : "";
-		$uid = isset ( $_POST['user'] ) ? $_POST['user'] : "";
+		$passwork = $this->get_args('passwork') ? $this->get_args('passwork') : 0;
+		$uid = $this->get_args('user') ? $this->get_args('user') : 0;
+		
 
 		Doo::loadModel ( 'staff' );
 		$staff = new staff ();