fly 4 سال پیش
والد
کامیت
fd8df41184
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      app/Modules/Book/Models/FreeBookConfig.php
  2. 1 1
      app/Modules/Book/Services/BookConfigService.php

+ 1 - 1
app/Modules/Book/Models/FreeBookConfig.php

@@ -11,6 +11,6 @@ class FreeBookConfig extends Model
         'sex',
         'sex',
         'name',
         'name',
         'end_time',
         'end_time',
-        'is_enable',
+        'is_enabled',
     ];
     ];
 }
 }

+ 1 - 1
app/Modules/Book/Services/BookConfigService.php

@@ -474,7 +474,7 @@ class BookConfigService
      */
      */
     public static function findFreeBookConfig(int $sex)
     public static function findFreeBookConfig(int $sex)
     {
     {
-        return FreeBookConfig::where(['sex' => $sex, 'is_enable' => 1])->orderBy('end_time')->first();
+        return FreeBookConfig::where(['sex' => $sex, 'is_enabled' => 1])->orderBy('end_time')->first();
     }
     }
 
 
     /**
     /**