更新到正式版1.0

This commit is contained in:
zyx0814
2022-05-02 22:31:35 +08:00
Unverified
parent 22d2a07209
commit a0f3e375e4
540 changed files with 95625 additions and 111495 deletions

View File

@@ -1,37 +1,37 @@
<?php
/*
* @copyright QiaoQiaoShiDai Internet Technology(Shanghai)Co.,Ltd
* @license https://www.oaooa.com/licenses/
*
* @link https://www.oaooa.com
* @author zyx(zyx@oaooa.com)
*/
if(!defined('IN_OAOOA')) {
exit('Access Denied');
}
class table_cache extends dzz_table
{
public function __construct()
{
$this->_table = 'cache';
$this->_pk = 'cachekey';
parent::__construct();
}
public function insert($setarr)
{
if (parent::fetch($setarr['cachekey'])) {
$cachekey = $setarr['cachekey'];
unset($setarr['cachekey']);
return parent::update($cachekey, $setarr);
} else {
return parent::insert($setarr);
}
}
}
<?php
/*
* @copyright QiaoQiaoShiDai Internet Technology(Shanghai)Co.,Ltd
* @license https://www.oaooa.com/licenses/
*
* @link https://www.oaooa.com
* @author zyx(zyx@oaooa.com)
*/
if(!defined('IN_OAOOA')) {
exit('Access Denied');
}
class table_cache extends dzz_table
{
public function __construct()
{
$this->_table = 'cache';
$this->_pk = 'cachekey';
parent::__construct();
}
public function insert($setarr)
{
if (parent::fetch($setarr['cachekey'])) {
$cachekey = $setarr['cachekey'];
unset($setarr['cachekey']);
return parent::update($cachekey, $setarr);
} else {
return parent::insert($setarr);
}
}
}