12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- namespace app\api\logic;
-
-
- use app\common\basics\Logic;
- use app\common\model\NoticeSetting;
-
-
- class SubscribeLogic extends Logic
- {
- public static function lists($scene)
- {
- $where = [
- ['mnp_notice', '<>', ''],
- ['type', '=', 1]
- ];
- $lists = NoticeSetting::where($where)->field('mnp_notice')->limit(3)->select()->toArray();
-
- $template_id = [];
- foreach ($lists as $item) {
- if (isset($item['mnp_notice']['status']) && $item['mnp_notice']['status'] != 1) {
- continue;
- }
- $template_id[] = $item['mnp_notice']['template_id'] ?? '';
- }
- return $template_id;
- }
- }
|