SetAuthService.php 522 B

123456789101112131415161718192021
  1. <?php
  2. namespace bizHd\saas\services;
  3. use bizHd\base\services\BaseService;
  4. use Yii;
  5. class SetAuthService extends BaseService
  6. {
  7. public static $baseFile = '\bizHd\saas\classes\SetAuthClass';
  8. //套餐在业务端的权限列表
  9. public static function getAuthIdList($setId, $endId)
  10. {
  11. $info = self::getByCondition(['setId' => $setId, 'endId' => $endId]);
  12. $auth = isset($info['auth']) ? $info['auth'] : '';
  13. $ids = !empty($auth) ? explode(',', $auth) : [];
  14. return $ids;
  15. }
  16. }