Browse Source

Weenier utc项目部署 0625

wesmiler 3 years ago
parent
commit
c636a7a64f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Models/ActionLogModel.php

+ 1 - 1
app/Models/ActionLogModel.php

@@ -45,7 +45,7 @@ class ActionLogModel extends BaseModel
      */
      */
     private function initTable()
     private function initTable()
     {
     {
-        $tbl = DB_PREFIX . $this->table;
+        $tbl = env('DB_PREFIX') . $this->table;
         if (!$this->tableExists($tbl)) {
         if (!$this->tableExists($tbl)) {
             $sql = "CREATE TABLE `{$tbl}` (
             $sql = "CREATE TABLE `{$tbl}` (
                   `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '唯一性标识',
                   `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '唯一性标识',