|
如下代码中,在27行的地方 会报500的错误,怎么解???
ErrorException
Undefined index: ajax
Response Status 500 - Internal Server Error
<code>
public function login()
25 {
26 $param = $this->_getPost();
27 $ajax = (int)$param['ajax'];
28 $backurl = $param['backurl'];
29
30 $res = PassportModel::factory()->doLogin( $param );
31
32 if (1 == $ajax) {
33 // ajax request
34 $this->_sendJson($res); |
|