| 12345678910111213141516171819202122 |
- <?php
- namespace services\common;
- use common\models\mall\Mall;
- use common\components\Service;
- class MallService extends Service
- {
- /**
- * 是否开启合规模式
- *
- * @return bool
- */
- public function isOpenComplianceMode($mall_id)
- {
- $mall = Mall::getOne([['id' => $mall_id]], true);
- return $mall['is_compliance'] ?? 0;
- }
- }
|