mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-22 18:35:35 +08:00
27 lines
668 B
PHP
27 lines
668 B
PHP
<?php
|
||
/**
|
||
* Copyright © ShopeX (http://www.shopex.cn). All rights reserved.
|
||
* See LICENSE file for license details.
|
||
*/
|
||
|
||
class inventorydepth_batchframe {
|
||
const EXPIRED_TIME = 1800;
|
||
/**
|
||
* @description
|
||
* @access public
|
||
* @param void
|
||
* @return void
|
||
*/
|
||
public function is_expired(&$downloadTime='')
|
||
{
|
||
base_kvstore::instance('inventorydepth/batchframe')->fetch('downloadTime'.$_SESSION['shop_id'],$downloadTime);
|
||
if ($downloadTime) {
|
||
$result = $downloadTime > (time()-self::EXPIRED_TIME) ? false : true;
|
||
|
||
return $result;
|
||
} else {
|
||
return true;
|
||
}
|
||
}
|
||
}
|