| 123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- namespace app\common\dao\shared;
- use app\common\dao\BaseDao;
- use app\common\model\shared\SharedProsperityRecommendConfig;
- class SharedProsperityRecommendConfigDao extends BaseDao
- {
- protected function getModel(): string
- {
- return SharedProsperityRecommendConfig::class;
- }
- /**
- * @return array
- * @author 史晨
- * @date 2026/2/5 14:43
- * 获取推荐配置
- */
- public function getConfigList(): array
- {
- $entityList = [];
- try {
- /** @var SharedProsperityRecommendConfig $model */
- $model = $this->getModel();
- return $model::getDB()
- ->select()
- ->toArray();
- } catch (\Exception $e) {
- }
- return $entityList;
- }
- }
|