Initial project files: BESCMS full source

This commit is contained in:
bes
2026-08-13 23:37:46 +08:00
parent fa6cddb540
commit 2e26f85723
2166 changed files with 396625 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
<?php
/**
* 更新数据结构
*/
$prefix = \Phpcmf\Service::M()->prefix;
$table = $prefix.'weixin_content';
$t = \Phpcmf\Service::M('table');
$m = \Phpcmf\Service::M();
if ($m->is_table_exists($table)) {
if (!$m->is_field_exists($table, 'nums')) {
$t->add_field($table, 'nums', 'tinyint(2)', 'DEFAULT \'0\'', '');
}
if (!$m->is_field_exists($table, 'status')) {
$t->add_field($table, 'status', 'tinyint(2)', 'DEFAULT \'0\'', '');
}
if (!$m->is_field_exists($table, 'publish_id')) {
$t->add_field($table, 'publish_id', 'varchar(255)', 'DEFAULT \'\'', '');
}
if (!$m->is_field_exists($table, 'article_id')) {
$t->add_field($table, 'article_id', 'varchar(255)', 'DEFAULT \'\'', '');
}
}