/**
  * 新增数据
  * @return \Illuminate\View\View
  * @throws DeepInHtmlException
  */
 public function save()
 {
     $categoryName = \Input::get("categoryname");
     $enCategoryName = \Input::get("encategoryname");
     $local = \Input::get("local");
     if (empty($local)) {
         throw new DeepInHtmlException("请选择区域~!");
     }
     if (empty($categoryName)) {
         throw new DeepInHtmlException("名称不能为空~!");
     }
     $category = new ShopRankCategory();
     $category->categoryName($categoryName);
     $category->enCategoryName($enCategoryName);
     $category->local($local);
     if ($category->save() == false) {
         throw new DeepInHtmlException("新增失败~!");
     }
     return $this->success("操作成功~!");
 }