@@ -11,6 +11,6 @@ class FreeBookConfig extends Model
'sex',
'name',
'end_time',
- 'is_enable',
+ 'is_enabled',
];
}
@@ -474,7 +474,7 @@ class BookConfigService
*/
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();
/**