添加子集选择时的登录判断

This commit is contained in:
Li Jianxuan 2014-05-15 09:46:36 +00:00
parent 9b83ce6a8c
commit 13f64c4601
2 changed files with 7 additions and 1 deletions

View File

@ -1107,6 +1107,12 @@ class DataController extends Zend_Controller_Action
$this->_helper->layout->disableLayout(); $this->_helper->layout->disableLayout();
$this->_helper->viewRenderer->setNoRender(); $this->_helper->viewRenderer->setNoRender();
if(empty(view::User('id')))
{
$this->jsonexit(array("error"=>'please login first'));
return true;
}
$uuid = $this->_getParam("uuid"); $uuid = $this->_getParam("uuid");
$basin = $this->getParam("basin"); $basin = $this->getParam("basin");
$mountain = $this->getParam("mountain"); $mountain = $this->getParam("mountain");

View File

@ -173,7 +173,7 @@
</form> </form>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" onclick="westdc.dataservice.geoData()" class="btn btn-success">Apply</button> <button type="button" onclick="westdc.dataservice.geoData()" class="btn btn-success">Order</button>
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button> <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
</div> </div>
</div> </div>