| 123456789101112131415161718192021 |
- <?php
- namespace bizHd\saas\services;
- use bizHd\base\services\BaseService;
- use Yii;
- class SetAuthService extends BaseService
- {
- public static $baseFile = '\bizHd\saas\classes\SetAuthClass';
- //套餐在业务端的权限列表
- public static function getAuthIdList($setId, $endId)
- {
- $info = self::getByCondition(['setId' => $setId, 'endId' => $endId]);
- $auth = isset($info['auth']) ? $info['auth'] : '';
- $ids = !empty($auth) ? explode(',', $auth) : [];
- return $ids;
- }
- }
|