启用分佣开关配置优化

This commit is contained in:
Dev
2026-10-14 14:56:50 +08:00
parent 1754df972d
commit aad64abf8a
3 changed files with 12 additions and 4 deletions
@@ -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';
}
/**