/**
  * UserCompetenceAct::act_Competence()
  * 添加修改用户颗粒权限
  * @return array 
  */
 public function act_Competence()
 {
     $userid = isset($_GET["userid"]) ? intval($_GET["userid"]) : 0;
     $visacc = isset($_GET["visacc"]) ? post_check(trim($_GET["visacc"])) : '';
     if (!$userid) {
         self::$errCode = "1001";
         self::$errMsg = "用户ID参数非法";
         return false;
     }
     if (empty($visacc)) {
         self::$errCode = "1002";
         self::$errMsg = "可见帐号内容非法";
         return false;
     }
     $data = array("global_user_id" => $userid, "visible_account" => $visacc);
     $result = UserCompetenceModel::Competence($data);
     self::$errCode = UserCompetenceModel::$errCode;
     self::$errMsg = UserCompetenceModel::$errMsg;
     return $result;
 }