Authored by wuxiao

邀请函,接口全部改成智齿jsonp

... ... @@ -2,7 +2,8 @@
class Controller_Invitation extends Controller_Abstract
{
public function indexAction()
{;
{
;
}
/**
... ... @@ -24,12 +25,17 @@ class Controller_Invitation extends Controller_Abstract
}
if($ret)
{
return $this->returnJson(true,200,null,'申请成功');
$return = $this->returnJson(true,200,null,'申请成功');
}
else
{
return $this->returnJson(false,404,null,'申请失败');
$return = $this->returnJson(false,404,null,'申请失败');
}
if ($callback = $this->_request->query('callback')){
exit("{$callback}({$return})");
}
return $return;
}
/**
... ... @@ -51,7 +57,12 @@ class Controller_Invitation extends Controller_Abstract
$row['sub'] = Config_Admin_Var::$invitation_sub[$row['sub']];
$data[$k] = $row;
}
return $this->returnJson(true,200,$data,'邀请函申请列表');
$return = $this->returnJson(true,200,$data,'邀请函申请列表');
if ($callback = $this->_request->query('callback')){
exit("{$callback}({$return})");
}
return $return;
}
/**
... ... @@ -73,6 +84,10 @@ class Controller_Invitation extends Controller_Abstract
$row['sub'] = Config_Admin_Var::$invitation_sub[$row['sub']];
$data[$k] = $row;
}
return $this->returnJson(true,200,$data,'邀请函通过列表');
$return = $this->returnJson(true,200,$data,'邀请函通过列表');
if ($callback = $this->_request->query('callback')){
exit("{$callback}({$return})");
}
return $return;
}
}
\ No newline at end of file
... ...