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/controller/sharing/Setting.php

27 lines
498 B
PHP
Raw Normal View History

2020-04-25 22:20:29 +08:00
<?php
namespace app\api\controller\sharing;
use app\api\controller\Controller;
use app\api\model\sharing\Setting as SettingModel;
/**
* 拼团设置控制器
* Class Setting
* @package app\api\controller\sharing
*/
class Setting extends Controller
{
/**
2020-04-25 22:53:20 +08:00
* 获取拼团设置
2020-04-25 22:20:29 +08:00
* @return array
*/
public function getAll()
{
2020-04-25 22:53:20 +08:00
// 获取拼团设置
$setting = SettingModel::getSetting();
return $this->renderSuccess(compact('setting'));
2020-04-25 22:20:29 +08:00
}
}