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

35 lines
648 B
PHP
Raw Normal View History

2020-04-25 22:20:29 +08:00
<?php
namespace app\api\model\bargain;
use app\common\model\bargain\Setting as SettingModel;
/**
* 砍价活动设置模型
* Class Setting
* @package app\api\model\bargain
*/
class Setting extends SettingModel
{
/**
* 获取砍价基本配置
* @return array
*/
public static function getBasic()
{
return [
// 砍价规则
'bargain_rules' => static::getItem('basic')['bargain_rules'],
];
}
/**
* 获取是否开启分销
* @return array
*/
public static function getIsDealer()
{
return static::getItem('basic')['is_dealer'];
}
}