This repository has been archived on 2024-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
yoshop/source/application/api/model/sharing/Setting.php

38 lines
806 B
PHP
Raw Normal View History

2020-04-25 22:20:29 +08:00
<?php
namespace app\api\model\sharing;
2020-04-25 22:53:20 +08:00
use app\api\model\Setting as SettingModel;
use app\common\model\sharing\Setting as SharingSettingModel;
2020-04-25 22:20:29 +08:00
/**
* 拼团设置模型
* Class Setting
* @package app\api\model\sharing
*/
2020-04-25 22:53:20 +08:00
class Setting extends SharingSettingModel
2020-04-25 22:20:29 +08:00
{
/**
* 隐藏字段
* @var array
*/
protected $hidden = [
'update_time',
];
2020-04-25 22:53:20 +08:00
public static function getSetting()
{
// 订阅消息
$submsgList = [];
foreach (SettingModel::getItem('submsg')['sharing'] as $key => $item) {
$submsgList[$key] = $item['template_id'];
}
return [
// 基础设置
'basic' => static::getItem('basic'),
// 订阅消息
'order_submsg' => $submsgList,
];
}
2020-04-25 22:20:29 +08:00
}