_rspErr(1, "activation code error"); return; } if (ActivationCode::verifyAccountBind()){ $this->_rspErr(1, "The activation code has been bind"); return; } ActivationCode::addBindCode($code); $this->_rspOk(); } public function getActivationCodeBindState(){ $state = ActivationCode::verifyAccountBind() ? 1 :0; $this->_rspData(array( 'state' => $state )); } }