Files
OMS/app/taskmgr/lib/storage/abstract.php
2025-12-28 23:13:25 +08:00

25 lines
541 B
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Copyright © ShopeX http://www.shopex.cn. All rights reserved.
* See LICENSE file for license details.
*/
/**
* 文件生成存储抽象类
*
* @author kamisama.xia@gmail.com
* @version 0.1
*/
abstract class taskmgr_storage_abstract {
//saas定义的是用户域名
private function kvprefix() {
return (defined('KV_PREFIX')) ? KV_PREFIX : 'default';
}
//根据参数生成文件名
public function _ident($key){
return md5(microtime().$this->kvprefix()).$key.'.csv';
}
}