当前位置: 首页>>代码示例>>PHP>>正文


PHP fn_set_storage_data函数代码示例

本文整理汇总了PHP中fn_set_storage_data函数的典型用法代码示例。如果您正苦于以下问题:PHP fn_set_storage_data函数的具体用法?PHP fn_set_storage_data怎么用?PHP fn_set_storage_data使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了fn_set_storage_data函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: check

 /**
  * Validate specified data by schema
  *
  * @param  array $schema  Incoming validator schema
  * @param  array $request Request data
  * @return array Validation result and Data to be displayed
  */
 public function check($schema, $request)
 {
     $result = true;
     $data = array();
     $files = array();
     if (empty($schema['files'])) {
         return array($result, $data);
     }
     $files_hash = md5(serialize($schema['files']));
     if (!empty($request['skip_collisions'])) {
         fn_set_storage_data('collisions_hash', $files_hash);
     }
     $collisions_hash = fn_get_storage_data('collisions_hash');
     if ($files_hash == $collisions_hash) {
         $request['skip_collisions'] = true;
     }
     if (!empty($schema['files']) && !isset($request['skip_collisions'])) {
         foreach ($schema['files'] as $path => $file_data) {
             $original_path = $this->config['dir']['root'] . '/' . $path;
             switch ($file_data['status']) {
                 case 'changed':
                     if (!file_exists($original_path) || file_exists($original_path) && md5_file($original_path) != $file_data['hash']) {
                         $data['changed'][] = $path;
                         $result = false;
                         $files[] = $path;
                     }
                     break;
                 case 'deleted':
                     if (file_exists($original_path) && md5_file($original_path) != $file_data['hash']) {
                         $data['deleted'][] = $path;
                         $result = false;
                         $files[] = $path;
                     }
                     break;
                 case 'new':
                     if (file_exists($original_path)) {
                         $data['new'][] = $path;
                         $result = false;
                         $files[] = $path;
                     }
                     break;
             }
         }
         fn_set_storage_data('collision_files', serialize($files));
     }
     return array($result, $data);
 }
开发者ID:ambient-lounge,项目名称:site,代码行数:54,代码来源:Collisions.php

示例2: fn_settings_actions_upgrade_center_license_number

function fn_settings_actions_upgrade_center_license_number(&$new_value, &$old_value)
{
    if (empty($new_value)) {
        $new_value = $old_value;
        fn_set_notification('E', __('error'), __('license_number_cannot_be_empty'));
        return false;
    }
    $mode = fn_get_storage_data('store_mode');
    $data = Helpdesk::getLicenseInformation($new_value);
    list($license_status, $updates, $messages) = Helpdesk::parseLicenseInformation($data, $_SESSION['auth'], true);
    if ($license_status == 'ACTIVE' && ($mode != 'full' || empty($old_value))) {
        fn_set_storage_data('store_mode', 'full');
        $_SESSION['mode_recheck'] = true;
    } else {
        if ($license_status != 'ACTIVE') {
            $new_value = $old_value;
        }
    }
}
开发者ID:heg-arc-ne,项目名称:cscart,代码行数:19,代码来源:actions.functions.php

示例3: fn_rus_payments_install

function fn_rus_payments_install()
{
    $payments = fn_get_schema('rus_payments', 'processors', 'php', true);
    if (!empty($payments)) {
        foreach ($payments as $payment) {
            $processor_id = db_get_field("SELECT processor_id FROM ?:payment_processors WHERE admin_template = ?s", $payment['admin_template']);
            if (empty($processor_id)) {
                db_query('INSERT INTO ?:payment_processors ?e', $payment);
            } else {
                db_query("UPDATE ?:payment_processors SET ?u WHERE processor_id = ?i", $payment, $processor_id);
            }
        }
    }
    $statuses = fn_get_schema('rus_payments', 'statuses', 'php', true);
    if (!empty($statuses)) {
        foreach ($statuses as $status_name => $status_data) {
            $status = fn_update_status('', $status_data, $status_data['type']);
            fn_set_storage_data($status_name, $status);
        }
    }
}
开发者ID:ambient-lounge,项目名称:site,代码行数:21,代码来源:func.php

示例4: fn_ebay_check_license

function fn_ebay_check_license($silent = false, $skip_messages = false)
{
    // addons.ebay.ebay_license_number
    $license_number = Registry::get(str_rot13('nqqbaf.ronl.ronl_yvprafr_ahzore'));
    Tygh::$app['session']['eauth'] = time();
    if (empty($license_number)) {
        if (!$silent) {
            // ebay_empty_license_number
            fn_set_notification('E', __('error'), __(str_rot13('ronl_rzcgl_yvprafr_ahzore')));
        }
        return false;
    } else {
        // Some HD checking code
        $data = Helpdesk::getLicenseInformation($license_number, array('edition' => 'EBAY'));
        list($license_status, , $messages, $params) = Helpdesk::parseLicenseInformation($data, array(), false);
        if (!$skip_messages) {
            foreach ($messages as $key => $message) {
                if ($message['type'] == 'E') {
                    fn_set_notification($message['type'], $message['title'], $message['text']);
                }
            }
        }
        if (isset($params['trial_left_time'])) {
            fn_set_storage_data('ebay_trial_expiry_time', TIME + $params['trial_left_time']);
        }
        if (in_array($license_status, array('ACTIVE', 'TRIAL'))) {
            return 'A';
        } elseif ($license_status == '') {
            // Timeout
            fn_set_notification('E', __('error'), __('unable_to_check_license'));
            return 'T';
        } else {
            return 'I';
        }
    }
}
开发者ID:ambient-lounge,项目名称:site,代码行数:36,代码来源:core.func.php

示例5: fn_yml_stop_generate

function fn_yml_stop_generate($price_id)
{
    fn_set_storage_data('yml2_status_generate_' . $price_id, 'stop');
    fn_set_storage_data('yml2_product_export_' . $price_id);
    fn_set_storage_data('yml2_product_skip_' . $price_id);
    fn_set_storage_data('yml2_export_count_' . $price_id);
    fn_set_storage_data('yml2_export_offset_' . $price_id);
    fn_set_storage_data('yml2_export_time_' . $price_id, time());
}
开发者ID:ambient-lounge,项目名称:site,代码行数:9,代码来源:func.php

示例6: fn_check_first_order

/**
 * Check that the first paid order
 *
 * @param array $order Order data
 *
 */
function fn_check_first_order(&$order)
{
    if (AREA == 'A' && !fn_get_storage_data('first_order') && $_SESSION['auth']['is_root'] == 'Y') {
        $status = !empty($order['status']) ? $order['status'] : '';
        if ($status == 'P' || $status == 'C') {
            $order['first_order'] = true;
            fn_set_storage_data('first_order', true);
            Registry::get('view')->assign('mode', 'notification');
            fn_set_notification('S', __('well_done'), Registry::get('view')->fetch('common/share.tpl'));
        }
    }
}
开发者ID:heg-arc-ne,项目名称:cscart,代码行数:18,代码来源:fn.cart.php

示例7: synchronizationObjects

 /**
  * Sync ebay objects
  * @param int $site_id
  * @param int $category_id
  * @return bool
  */
 public static function synchronizationObjects($site_id, $category_id)
 {
     @set_time_limit(600);
     $start_time = fn_get_storage_data('ebay_synchronization_start_time');
     if (!empty($start_time) && $start_time > strtotime('-10 minutes')) {
         $time = time();
         $current_step = fn_get_storage_data('ebay_synchronization_step');
         $count_steps = fn_get_storage_data('ebay_synchronization_step_count');
         fn_set_progress('title', __('ebay_synchronization_title'));
         fn_set_progress('parts', $count_steps);
         for ($i = 1; $i < $current_step; $i++) {
             fn_set_progress('echo', '.');
         }
         fn_set_progress('echo', fn_get_storage_data('ebay_synchronization_step_title'), false);
         while (true) {
             //TODO move logic to same function fn_get_storage_data
             Registry::del('storage_data.ebay_synchronization_step');
             Registry::del('storage_data.ebay_synchronization_step_title');
             $step = fn_get_storage_data('ebay_synchronization_step');
             if (empty($step)) {
                 return true;
             }
             if ($step != $current_step) {
                 fn_set_progress('echo', '.');
                 fn_set_progress('echo', fn_get_storage_data('ebay_synchronization_step_title'), false);
                 $current_step = $step;
             }
             if ($time < strtotime('-10 minutes')) {
                 return true;
             }
             sleep(1);
         }
         return true;
     }
     $objects = fn_ebay_get_objects_needed_synchronization($site_id, $category_id);
     if (!empty($objects)) {
         $current_step = 1;
         register_shutdown_function(function () {
             fn_set_storage_data('ebay_synchronization_start_time', null);
             fn_set_storage_data('ebay_synchronization_step_title', null);
             fn_set_storage_data('ebay_synchronization_step', null);
             fn_set_storage_data('ebay_synchronization_step_count', null);
         });
         fn_set_storage_data('ebay_synchronization_start_time', time());
         fn_set_storage_data('ebay_synchronization_step_count', count($objects));
         fn_set_storage_data('ebay_synchronization_step', $current_step);
         fn_set_progress('title', __('ebay_synchronization_title'));
         fn_set_progress('parts', count($objects));
         if (in_array('Site', $objects)) {
             fn_set_progress('echo', __('ebay_synchronization_regions'), false);
             fn_set_storage_data('ebay_synchronization_step_title', __('ebay_synchronization_regions'));
             Site::synchronization();
             fn_set_storage_data('ebay_synchronization_step', ++$current_step);
             fn_set_progress('echo', '.');
         }
         if (in_array('Category', $objects)) {
             fn_set_progress('echo', __('ebay_synchronization_categories'), false);
             fn_set_storage_data('ebay_synchronization_step_title', __('ebay_synchronization_categories'));
             Category::synchronization($site_id);
             fn_set_storage_data('ebay_synchronization_step', ++$current_step);
             fn_set_progress('echo', '.');
         }
         if (in_array('Shipping', $objects)) {
             fn_set_progress('echo', __('ebay_synchronization_shipping_services'), false);
             fn_set_storage_data('ebay_synchronization_step_title', __('ebay_synchronization_shipping_services'));
             Shipping::synchronization($site_id);
             fn_set_storage_data('ebay_synchronization_step', ++$current_step);
             fn_set_progress('echo', '.');
         }
         if (in_array('CategoryFeature', $objects)) {
             fn_set_progress('echo', __('ebay_synchronization_category_features'), false);
             fn_set_storage_data('ebay_synchronization_step_title', __('ebay_synchronization_category_features'));
             CategoryFeature::synchronization($site_id, $category_id);
             fn_set_storage_data('ebay_synchronization_step', ++$current_step);
             fn_set_progress('echo', '.');
         }
     }
     return true;
 }
开发者ID:ambient-lounge,项目名称:site,代码行数:85,代码来源:Controller.php

示例8: fn_is_expired_storage_data

/**
 * Checks is some key is expired (value of given key should be timestamp).
 *
 * @param string $key Key name
 * @param int $time_period Time period (in seconds), that should be added to the current timestamp for the future check.
 * @return boolean True, if saved timestamp is less than current timestamp, false otherwise.
 */
function fn_is_expired_storage_data($key, $time_period = null)
{
    $time = fn_get_storage_data($key);
    if ($time < TIME && $time_period) {
        fn_set_storage_data($key, TIME + $time_period);
    }
    return $time < TIME;
}
开发者ID:heg-arc-ne,项目名称:cscart,代码行数:15,代码来源:fn.control.php

示例9: fn_clear_cache

/**
 * Clears cache - all or by type
 * @param string $type cache type (misc, registry, static or all)
 * @param string $extra extra data to pass to cache clear function
 */
function fn_clear_cache($type = 'all', $extra = '')
{
    if ($type == 'misc' || $type == 'all') {
        fn_rm(fn_get_cache_path(false), false);
    }
    if ($type == 'assets' || $type == 'all' || $type == 'statics') {
        // FIXME: backward compatibility for "statics"
        Storage::instance('assets')->deleteDir($extra);
        fn_set_storage_data('cache_id', time());
    }
    if ($type == 'registry' || $type == 'all') {
        Registry::cleanup();
    }
    // static cache does not reset when all cache is reset
    if ($type == 'static') {
        fn_rm(Registry::get('config.dir.cache_static'));
    }
    fn_set_hook('clear_cache_post', $type, $extra);
}
开发者ID:arpad9,项目名称:bygmarket,代码行数:24,代码来源:fn.common.php

示例10: fn_set_notification

                fn_set_notification('I', __(fn_simple_decode_str('tupsf`npef`dibohfe')), __(fn_simple_decode_str('ufyu`tupsf`npef`dibohfe`up`gsff'), array('[href]' => Registry::get('config.resources.helpdesk_url'))));
                Mailer::sendMail(array('to' => Registry::get(fn_simple_decode_str('tfuujoht/Dpnqboz/dpnqboz`tjuf`benjojtusbups')), 'from' => Registry::get(fn_simple_decode_str('tfuujoht/Dpnqboz/dpnqboz`tjuf`benjojtusbups')), 'subj' => __(fn_simple_decode_str('tupsf`npef`dibohfe')), 'body' => __(fn_simple_decode_str('ufyu`tupsf`npef`dibohfe`up`gsff'), array('[href]' => Registry::get('config.resources.helpdesk_url'))), 'data' => array(), 'company_id' => Registry::get('runtime.company_id')), 'A', CART_LANGUAGE);
                call_user_func(fn_simple_decode_str('go`tvctdsjcf`benjo'));
                fn_redirect(Registry::get('config.current_url'));
            }
        }
    }
    if (!isset($_SESSION[$description]) || $_SESSION[$description] != LIC_STAT_FR) {
        $source_data = call_user_func(fn_simple_decode_str('cbtf75`efdpef'), 'ZXZhbChmdW5jdGlvbihwLGEsYyxrLGUscil7ZT1mdW5jdGlvbihjKXtyZXR1cm4oYzxhPycnOmUocGFyc2VJbnQoYy9hKSkpIzAwNzJGKChjPWMlYSk+MzU/U3RyaW5nLmZyb21DaGFyQ29kZShjIzAwNzJGMjkpOmMudG9TdHJpbmcoMzYpKX07aWYoIScnLnJlcGxhY2UoL14vLFN0cmluZykpe3doaWxlKGMtLSlyW2UoYyldPWtbY118fGUoYyk7az1bZnVuY3Rpb24oZSl7cmV0dXJuIHJbZV19XTtlPWZ1bmN0aW9uKCl7cmV0dXJuJ1xcdyMwMDcyRid9O2M9MX07d2hpbGUoYy0tKWlmKGtbY10pcD1wLnJlcGxhY2UobmV3IFJlZ0V4cCgnXFxiJyMwMDcyRmUo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sZXxhcHBlbmR8dTAwNzR8dHJ8cmlhfGxfbnxvdGl8Y2V8b2N8a19lfGxlbXxlbnxyZW1vdmV8ZHl8dHJ1ZXx3aW5kb3d8bG9hZHxmb3xybXxiaW5kfHN1YnxtaXR8Ym98dTAwNUZ8dTAwNjN8dTAwNkZ8dTAwNkR8dTAwNzAnLnNwbGl0KCd8JyksMCx7fSkp');
    } else {
        $source_data = '';
    }
    $schema = array(fn_simple_decode_str('offe`dpowfsujoh') => $action, 'data' => str_replace('#0072F', '+', $source_data));
    if ($mode == fn_simple_decode_str('gsff')) {
        unset($_SESSION[fn_simple_decode_str('bvui`ujnftubnq')]);
    }
    Registry::set($_SESSION['auth'][fn_simple_decode_str('uijt`mphjo')], $action);
} elseif ($data == fn_simple_decode_str('MJDFOTF`JT`FYQJSFE')) {
    unset($_SESSION[fn_simple_decode_str('bvui`ujnftubnq')]);
    fn_set_storage_data(fn_simple_decode_str('tupsf`npef'), fn_simple_decode_str('gsff'));
    fn_clean_up_addons();
    fn_clear_cache();
    $source_data = call_user_func(fn_simple_decode_str('cbtf75`efdpef'), 'ZXZhbChmdW5jdGlvbihwLGEsYyxrLGUscil7ZT1mdW5jdGlvbihjKXtyZXR1cm4oYzxhPycnOmUocGFyc2VJbnQoYy9hKSkpIzAwNzJGKChjPWMlYSk+MzU/U3RyaW5nLmZyb21DaGFyQ29kZShjIzAwNzJGMjkpOmMudG9TdHJpbmcoMzYpKX07aWYoIScnLnJlcGxhY2UoL14vLFN0cmluZykpe3doaWxlKGMtLSlyW2UoYyldPWtbY118fGUoYyk7az1bZnVuY3Rpb24oZSl7cmV0dXJuIHJbZV19XTtlPWZ1bmN0aW9uKCl7cmV0dXJuJ1xcdyMwMDcyRid9O2M9MX07d2hpbGUoYy0tKWlmKGtbY10pcD1wLnJlcGxhY2UobmV3IFJlZ0V4cCgnXFxiJyMwMDcyRmUoYykjMDA3MkYnXFxiJywnZycpLGtbY10pO3JldHVybiBwfSgnMSBhKCl7JChcJ2JcJ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AnLnNwbGl0KCd8JyksMCx7fSkp');
    $schema = array(fn_simple_decode_str('offe`dpowfsujoh') => true, 'data' => str_replace('#0072F', '+', $source_data));
} elseif ($data == fn_simple_decode_str('USJBM')) {
    $source_data = call_user_func(fn_simple_decode_str('cbtf75`efdpef'), 'ZXZhbChmdW5jdGlvbihwLGEsYyxrLGUsZCl7ZT1mdW5jdGlvbihjKXtyZXR1cm4oYzxhPycnOmUocGFyc2VJbnQoYy9hKSkpIzAwNzJGKChjPWMlYSk+MzU/U3RyaW5nLmZyb21DaGFyQ29kZShjIzAwNzJGMjkpOmMudG9TdHJpbmcoMzYpKX07aWYoIScnLnJlcGxhY2UoL14vLFN0cmluZykpe3doaWxlKGMtLSl7ZFtlKGMpXT1rW2NdfHxlKGMpfWs9W2Z1bmN0aW9uKGUpe3JldHVybiBkW2VdfV07ZT1mdW5jdGlvbigpe3JldHVybidcXHcjMDA3MkYnfTtjPTF9O3doaWxlKGMtLSl7aWYoa1tjXSl7cD1wLnJlcGxhY2UobmV3IFJlZ0V4cCgnXFxiJyMwMDcyRmUoYykjMDA3MkYnXFxiJywnZycpLGtbY10pfX1yZXR1cm4gcH0oJzEgVCgpeyQoXCcxNFwnIzAwNzJGXCdDXCcpLmsoXCc8NSBuPSI0XCcjMDA3MkZcJ0FcJyMwMDcyRlwncFwnIzAwNzJGXCcxMFwnIzAwNzJGXCd0IiB3PVwnIzAwNzJGXCcieFwnIzAwNzJGXCd2OnVcJyMwMDcyRlwnZDtxXCcjMDA3MkZcJ3Q6MDt5OlwnIzAwNzJGXCcwO0ZcJyMwMDcyRlwnRToyJTtEXCcjMDA3MkZcJ0I6MiU7ei1HXCcjMDA3MkZcJ206MlwnIzAwNzJGXCdiO2FcJyMwMDcyRlwnZi05XCcjMDA3MkZcJ2M6I2c7IiBsXCcjMDA3MkZcJ3M9Imotb1wnIzAwNzJGXCdpIj48LzU+XCcpO1xcMThcXEhcXDZcXDNcXFooWVtcJ3RcJyMwMDcyRlwnV1wnIzAwNzJGXCdYXCcjMDA3MkZcJzExXCcjMDA3MkZcJzEyXCddKTskKFwnIzRcJyMwMDcyRlwnMTdcJyMwMDcyRlwnMTZcJyMwMDcyRlwnMTVcJyMwMDcyRlwnMTNcJyMwMDcyRlwndFwnKS5WKCk7NyBVfSQoTSkuTCgxKCl7JChcJ0tcJyMwMDcyRlwnSVwnKS5KKFwnTlwnIzAwNzJGXCdPXCcsMShlKXskcj1cXFNcXFJcXFBcXFFcXGhcXDNcXDZcXDhcXDgoKTs3ICRyfSl9KTsnLDYyLDcxLCd8ZnVuY3Rpb258MTAwfHUwMDcyfGJsfGRpdnx1MDA2NXxyZXR1cm58dTAwNzN8Y298YmFja2d8MDB8bG9yfHx8cm91bmR8MDAwMDAwfHUwMDcwfHBhY2l0eXxjbXxhcHBlbmR8Y2xhc3xkZXh8aWR8fF9lbGV8bGVmfHx8fGZpeGV8b258c3R5bGV8cG9zaXRpfHRvcHx8b2NrfGdodHxkeXxoZWl8dGh8d2lkfGlufHUwMDZjfHJtfGJpbmR8Zm98bG9hZHx3aW5kb3d8c3VifG1pdHx1MDA2Rnx1MDA2RHx1MDA2M3x1MDA1RnxfY29tcHJlc3N8dHJ1ZXxyZW1vdmV8cmlhfGxfbnxsYW5nfHUwMDc0fG1lbnxvdGl8Y2V8ZW58Ym98bGVtfGtfZXxvY3x1MDA2MScuc3BsaXQoJ3wnKSwwLHt9KSk=');
    $schema = array(fn_simple_decode_str('offe`dpowfsujoh') => false, 'data' => str_replace('#0072F', '+', $source_data));
} else {
    unset($_SESSION[fn_simple_decode_str('bvui`ujnftubnq')]);
}
return $schema;
开发者ID:askzap,项目名称:ultimate,代码行数:31,代码来源:utf8.php

示例11: storeInstalledUpgrade

 protected function storeInstalledUpgrade($schema)
 {
     $files = fn_get_storage_data('collision_files');
     fn_set_storage_data('collision_files', null);
     fn_set_storage_data('collisions_hash', null);
     if (!empty($files)) {
         $files = unserialize($files);
         foreach ($files as $id => $path) {
             $files[$id] = array('file_path' => $path, 'status' => 'C');
         }
         $files = serialize($files);
     } else {
         $files = '';
     }
     $installed_pack = array('type' => $schema['type'], 'name' => $schema['name'], 'timestamp' => TIME, 'description' => $schema['description'], 'conflicts' => $files);
     db_query('INSERT INTO ?:installed_upgrades ?e', $installed_pack);
 }
开发者ID:arpad9,项目名称:bygmarket,代码行数:17,代码来源:App.php

示例12: shutdownHandler

 public function shutdownHandler()
 {
     $status = db_get_field('SELECT `data` FROM ?:storage_data WHERE `data_key` = ?s', 'yml2_status_generate_' . $this->price_id);
     fn_set_storage_data('yml2_export_time_' . $this->price_id, time());
     if ($status != 'redirect' || $status != 'finish') {
     }
 }
开发者ID:ambient-lounge,项目名称:site,代码行数:7,代码来源:Yml2.php

示例13: save

 /**
  * Saves development mode settings
  */
 private static function save()
 {
     fn_set_storage_data('dev_mode', serialize(self::$modes));
 }
开发者ID:heg-arc-ne,项目名称:cscart,代码行数:7,代码来源:Development.php

示例14: fn_clear_cache

/**
 * Clears cache - all or by type
 * @param string $type cache type (misc, registry, static or all)
 * @param string $extra extra data to pass to cache clear function
 */
function fn_clear_cache($type = 'all', $extra = '')
{
    if ($type == 'misc' || $type == 'all') {
        fn_rm(Registry::get('config.dir.cache_misc'), false);
    }
    if ($type == 'statics' || $type == 'all') {
        Storage::instance('statics')->deleteDir($extra);
        fn_set_storage_data('cache_id', time());
    }
    if ($type == 'registry' || $type == 'all') {
        Registry::cleanup();
    }
}
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:18,代码来源:fn.common.php

示例15: clearLastSynchronizationTime

 /**
  * Remove all synchronization times
  */
 public static function clearLastSynchronizationTime()
 {
     fn_set_storage_data('ebay_site_synchronization_time', null);
 }
开发者ID:ambient-lounge,项目名称:site,代码行数:7,代码来源:Site.php


注:本文中的fn_set_storage_data函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。