Example #1
0
 public static function get_instance()
 {
     if (!self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Example #2
0
 public function handle_request_internal()
 {
     $appname = APF::get_instance()->get_config('java_api_from');
     $ostype = $this->_params['o'];
     if (!$ostype) {
         return Util_MobileAPI::error(Const_APIStatus::E_PARAM_MISS);
     }
     $where = "appname=? and ostype=?";
     $result = Bll_VersionBiz::get_instance()->get_by_where($where, array($appname, $ostype));
     if (!$result) {
         $ret = array('status' => 'ok', 'data' => array());
         //$ret = Util_MobileAPI::error(Const_APIStatus::E_CALL_API_ERROR);
     } else {
         $ret = array('status' => 'ok', 'data' => $result);
     }
     return $ret;
 }