|
@@ -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 ();
|