+ finish task #669.

This commit is contained in:
zhujinyong
2012-02-20 01:43:07 +00:00
parent dac94f28d8
commit 457f8c53bd
11 changed files with 191 additions and 14 deletions
+4 -2
View File
@@ -65,7 +65,8 @@ class admin extends control
{
if($_POST)
{
$this->admin->registerByAPI();
$response = $this->admin->registerByAPI();
if($response == 'success') die(js::locate(inlink('index'), 'parent'));
}
$this->view->sn = $this->admin->getSN();
$this->display();
@@ -81,7 +82,8 @@ class admin extends control
{
if($_POST)
{
$this->admin->loginByAPI();
$response = $this->admin->loginByAPI();
if($response == 'success') die(js::locate(inlink('index'), 'parent'));
}
$this->view->sn = $this->admin->getSN();
$this->display();