first commit

This commit is contained in:
675061370@qq.com
2024-04-04 21:28:09 +08:00
commit fe9661855e
4192 changed files with 618218 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
<?php
namespace app\model;
use app\model\QfShop;
class Conf extends QfShop
{
/**
* 更新配置
*
* @param string 配置key
* @param string 配置值
* @param int 整形配置
* @param string 配置描述
* @return void
*/
public function updateConf($key, $value, $int = 0, $desc = null)
{
$data = [];
if ($desc) {
$data['conf_desc'] = $desc;
}
$data['conf_value'] = $value;
$this->where([
"conf_key" => $key,
"conf_readonly" => 0,
])->update($data);
}
}