コード例 #1
0
 function checkCloudWind()
 {
     if (YUN_APPLY_RETRY) {
         return YUN_APPLY_FALSE;
     }
     CloudWind::createCloudWindTables();
     $setting = $this->getPlatformSettings();
     if (isset($setting['uniqueid']) && $setting['uniqueid'] && isset($setting['cloudstatus']) && $setting['cloudstatus'] == $this->_status_open) {
         return $this->_apply_result_success;
     }
     if (isset($setting['cloudstatus']) && $setting['cloudstatus'] == $this->_status_fail) {
         return $this->_apply_result_verify;
     }
     if (isset($setting['cloudstatus']) && $setting['cloudstatus'] == $this->_status_reset) {
         $settingService = $this->getPlatformSettingService();
         $settingService->resetSetting();
         return YUN_APPLY_FALSE;
     }
     return isset($setting['cloudstatus']) && $setting['cloudstatus'] == $this->_status_apply ? YUN_APPLY_TRUE : YUN_APPLY_FALSE;
 }