public function translation()
 {
     $tid = intval(Input::get("tid"));
     $trans = null;
     if ($tid > 0) {
         $trans = ShopAppsTranslation::find($tid);
     }
     $isCreate = false;
     if (!$trans instanceof ShopAppsTranslation) {
         //创建一行新数据
         $isCreate = true;
         $trans = new ShopAppsTranslation();
     }
     $name = Input::get("name");
     if (empty($name)) {
         throw new DeepInException("name不能为空~!");
     }
     $val = Input::get("val");
     if (strcmp($name, "lang") == 0) {
         $trans->lang($val);
     }
     if (strcmp($name, "businessdesc") === 0) {
         $trans->businessDesc($val);
     }
     if ($trans->save() == false) {
         throw new DeepInException("操作失败~!");
     }
     return $this->successJSON();
 }