启用分佣开关配置优化
This commit is contained in:
@@ -56,7 +56,8 @@ class PromotionService
|
||||
*/
|
||||
public static function isEnabled(): bool
|
||||
{
|
||||
return intval(config('site.enable_promotion_commission') ?? 0) === 1;
|
||||
//后台配置为 switch 类型,开启存 '1',关闭存 '0'
|
||||
return (string)config('site.enable_promotion_commission') === '1';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user