Exemplo n.º 1
0
 private function app_update()
 {
     require_once Wind::getRealPath("ACLOUD_VER:common.ACloudVerCommonFactory");
     list($appId) = ACloudSysCoreS::gp(array('appid'));
     $commonFactory = ACloudVerCommonFactory::getInstance();
     $commonApplication = $commonFactory->getVersionCommonApplication();
     list($bool, $response) = $commonApplication->updateApp($appId);
     if ($bool === -1) {
         return ACloudSysCoreCommon::simpleResponse(ACloudSysCoreDefine::ACLOUD_HTTP_FAIL, $response);
     }
     return ACloudSysCoreCommon::simpleResponse(ACloudSysCoreDefine::ACLOUD_HTTP_OK, $response);
 }