mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-11-27 13:32:20 +00:00
优化接口
This commit is contained in:
parent
a2b331ea53
commit
50ce0161b8
@ -657,4 +657,31 @@ class PublicController
|
||||
{
|
||||
return app('json')->success(app()->make(LangCodeServices::class)->getLangVersion());
|
||||
}
|
||||
|
||||
/**
|
||||
* 商城基础配置汇总接口
|
||||
* @return \think\Response
|
||||
* @author 吴汐
|
||||
* @email 442384644@qq.com
|
||||
* @date 2023/04/03
|
||||
*/
|
||||
public function getMallBasicConfig()
|
||||
{
|
||||
$data['site_name'] = sys_config('site_name');//网站名称
|
||||
$data['site_url'] = sys_config('site_url');//网站地址
|
||||
$data['wap_login_logo'] = sys_config('wap_login_logo');//移动端登录logo
|
||||
$data['wap_login_logo'] = sys_config('wap_login_logo');//移动端登录logo
|
||||
$data['record_No'] = sys_config('record_No');//备案号
|
||||
$data['network_security'] = sys_config('network_security');//网安备案
|
||||
$data['store_self_mention'] = sys_config('store_self_mention');//是否开启到店自提
|
||||
$data['invoice_func_status'] = sys_config('invoice_func_status');//发票功能启用
|
||||
$data['special_invoice_status'] = sys_config('special_invoice_status');//专用发票启用
|
||||
$data['member_func_status'] = sys_config('member_func_status');//用户等级启用
|
||||
$data['balance_func_status'] = sys_config('balance_func_status');//余额功能启用
|
||||
$data['recharge_switch'] = sys_config('recharge_switch');//小程序充值开关
|
||||
$data['member_card_status'] = sys_config('member_card_status');//是否开启付费会员
|
||||
$data['member_price_status'] = sys_config('member_price_status');//商品会员折扣价展示启用
|
||||
|
||||
return app('json')->success($data);
|
||||
}
|
||||
}
|
||||
|
||||
@ -45,7 +45,9 @@ class StoreCategoryDao extends BaseDao
|
||||
/**
|
||||
*
|
||||
* @param array $where
|
||||
* @param array $field
|
||||
* @return array
|
||||
* @throws \ReflectionException
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
@ -59,6 +61,7 @@ class StoreCategoryDao extends BaseDao
|
||||
* 添加修改选择上级分类列表
|
||||
* @param array $where
|
||||
* @return array
|
||||
* @throws \ReflectionException
|
||||
*/
|
||||
public function getMenus(array $where)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user