wesmiler 1 year ago
parent
commit
192f848268
2 changed files with 2 additions and 2 deletions
  1. 1 1
      app/Services/Api/MessageService.php
  2. 1 1
      config/database.php

+ 1 - 1
app/Services/Api/MessageService.php

@@ -159,7 +159,7 @@ class MessageService extends BaseService
             $types = [1,2,3,4,5];
         }
 
-        $field = ['type','to_uid','description','is_read','create_time'];
+        $field = ['title','type','to_uid','description','is_read','create_time'];
         $datas = $this->model->where(['to_uid'=> $userId,'status'=>1,'mark'=>1])
             ->whereIn('type', $types)
             ->groupBy('type')

+ 1 - 1
config/database.php

@@ -65,7 +65,7 @@ return [
             'collation' => 'utf8mb4_unicode_ci',
             'prefix' => env('DB_PREFIX', ''),
             'prefix_indexes' => true,
-            'strict' => true,
+            'strict' => env('DB_STRICT', false),
             'engine' => null,
             'options' => extension_loaded('pdo_mysql') ? array_filter([
                 PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),