26 lines
483 B
PHP
26 lines
483 B
PHP
|
<?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
|
||
|
{
|
||
|
/**
|
||
|
* 获取所有设置
|
||
|
* @return array
|
||
|
*/
|
||
|
public function getAll()
|
||
|
{
|
||
|
$basic = SettingModel::getItem('basic');
|
||
|
return $this->renderSuccess(['setting' => compact('basic')]);
|
||
|
}
|
||
|
|
||
|
}
|