DeliveryDriverSet.php 431 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Administrator
  5. * Date: 2019/9/25
  6. * Time: 9:38
  7. */
  8. namespace app\common\services\plugin;
  9. class DeliveryDriverSet
  10. {
  11. //是否开启
  12. public static function whetherEnabled()
  13. {
  14. if (app('plugins')->isEnabled('delivery-driver')) {
  15. $set = \Setting::get('plugin.delivery_driver');
  16. return intval($set['is_open']);
  17. }
  18. return 0;
  19. }
  20. }