moonsflyer 2 月之前
父節點
當前提交
a402a5c9a7

+ 0 - 86
app/admin/controller/setting/Hfdg.php

@@ -1,86 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeshop开源商城系统
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | gitee下载:https://gitee.com/likeshop_gitee
-// | github下载:https://github.com/likeshop-github
-// | 访问官网:https://www.likeshop.cn
-// | 访问社区:https://home.likeshop.cn
-// | 访问手册:http://doc.likeshop.cn
-// | 微信公众号:likeshop技术社区
-// | likeshop系列产品在gitee、github等公开渠道开源版本可免费商用,未经许可不能去除前后端官方版权标识
-// |  likeshop系列产品收费版本务必购买商业授权,购买去版权授权后,方可去除前后端官方版权标识
-// | 禁止对系统程序代码以任何目的,任何形式的再发布
-// | likeshop团队版权所有并拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeshop.cn.team
-// +----------------------------------------------------------------------
-namespace app\admin\controller\setting;
-
-use app\admin\validate\setting\HfdgValidate;
-use app\common\basics\AdminBase;
-use app\common\server\ConfigServer;
-use app\common\server\DouGong\pay\MerchantBusinessConfig;
-use app\common\server\JsonServer;
-use app\common\server\WeChatServer;
-use think\response\Json;
-use think\response\View;
-
-/**
- * @notes 汇付斗拱
- * author lbzy
- * @datetime 2023-10-20 15:18:33
- * @class Hfdg
- * @package app\admin\controller\setting
- */
-class Hfdg extends AdminBase
-{
-    /**
-     * @notes 开发设置
-     * @return Json|View
-     * @author lbzy
-     * @datetime 2023-10-20 15:19:41
-     */
-    function dev_set()
-    {
-        if (request()->isAjax()) {
-            (new HfdgValidate())->goCheck('DevSet');
-            ConfigServer::set('hfdg_dev_set', 'sys_id', input('sys_id'));
-            ConfigServer::set('hfdg_dev_set', 'product_id', input('product_id'));
-            ConfigServer::set('hfdg_dev_set', 'huifu_id', input('huifu_id'));
-            ConfigServer::set('hfdg_dev_set', 'rsa_merch_private_key', input('rsa_merch_private_key'));
-            ConfigServer::set('hfdg_dev_set', 'rsa_merch_public_key', input('rsa_merch_public_key'));
-            ConfigServer::set('hfdg_dev_set', 'rsa_huifu_public_key', input('rsa_huifu_public_key'));
-            return JsonServer::success('保存成功');
-        }
-        
-        return view('', [ 'config' => ConfigServer::get('hfdg_dev_set') ]);
-    }
-    
-    /**
-     * @notes 微信商户设置
-     * @return Json|View
-     * @author lbzy
-     * @datetime 2023-10-26 17:18:54
-     */
-    private function wechat_set()
-    {
-        if (request()->isAjax()) {
-            if (empty(input('oa_app_id')) || empty(input('mnp_app_id'))) {
-                return JsonServer::error('请先设置微信相关渠道');
-            }
-            $result = (new MerchantBusinessConfig(input()))->request()->getConfigResult();
-            if ($result['code'] == 1) {
-                return JsonServer::success('设置成功');
-            } else {
-                return JsonServer::error($result['msg']);
-            }
-        }
-        
-        return view('', [
-            'oa_app_id'     => WeChatServer::getOaConfig()['app_id'] ?? '',
-            'mnp_app_id'    => WeChatServer::getMnpConfig()['app_id'] ?? '',
-        ]);
-    }
-}

+ 0 - 29
app/admin/controller/setting/HotSearch.php

@@ -1,29 +0,0 @@
-<?php
-namespace app\admin\controller\setting;
-
-use app\common\basics\AdminBase;
-use app\admin\logic\setting\HotSearchLogic;
-use app\common\server\JsonServer;
-
-class HotSearch extends AdminBase
-{
-    public function index()
-    {
-        $info = HotSearchLogic::info();
-        return view('index', ['info' => $info]);
-    }
-
-    public function set()
-    {
-        if($this->request->isPost()) {
-            $post = $this->request->post();
-            $result = HotSearchLogic::set($post);
-            if($result){
-                return JsonServer::success('设置成功');
-            }
-            return JsonServer::error('设置失败');
-        }else{
-            return JsonServer::error('请求方式错误');
-        }
-    }
-}

+ 0 - 51
app/admin/controller/setting/Map.php

@@ -1,51 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeshop开源商城系统
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | gitee下载:https://gitee.com/likeshop_gitee
-// | github下载:https://github.com/likeshop-github
-// | 访问官网:https://www.likeshop.cn
-// | 访问社区:https://home.likeshop.cn
-// | 访问手册:http://doc.likeshop.cn
-// | 微信公众号:likeshop技术社区
-// | likeshop系列产品在gitee、github等公开渠道开源版本可免费商用,未经许可不能去除前后端官方版权标识
-// |  likeshop系列产品收费版本务必购买商业授权,购买去版权授权后,方可去除前后端官方版权标识
-// | 禁止对系统程序代码以任何目的,任何形式的再发布
-// | likeshop团队版权所有并拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeshop.cn.team
-// +----------------------------------------------------------------------
-
-namespace app\admin\controller\setting;
-
-use app\admin\logic\setting\MapLogic;
-use app\common\basics\AdminBase;
-use app\common\server\JsonServer;
-
-/**
- * 地图peizhi
- * Class Map
- * @package app\admin\controller\setting
- */
-class Map extends AdminBase
-{
-    /**
-     * @notes 地图配置
-     * @return \think\response\Json|\think\response\View
-     * @author 段誉
-     * @date 2022/1/17 10:30
-     */
-    public function config()
-    {
-        if ($this->request->isAjax()) {
-            $post = $this->request->post();
-            MapLogic::setConfig($post);
-            return JsonServer::success('操作成功');
-        }
-        return view('', [
-            'config' => MapLogic::getConfig()
-        ]);
-    }
-
-}

+ 0 - 45
app/admin/controller/setting/MarketingConfig.php

@@ -1,45 +0,0 @@
-<?php
-namespace app\admin\controller\setting;
-
-use app\admin\logic\setting\MarketingConfigLogic;
-use app\common\basics\AdminBase;
-use app\common\enum\OrderEnum;
-use app\common\server\ConfigServer;
-use app\common\server\JsonServer;
-
-/**
- * 营销设置
- * Class MarketingConfig
- * @package app\admin\controller\setting
- */
-class MarketingConfig extends AdminBase
-{
-    /**
-     * @notes 消费奖励
-     * @return \think\response\Json|\think\response\View
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\DbException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @author ljj
-     * @date 2022/2/18 4:10 下午
-     */
-    public function orderAward()
-    {
-        if($this->request->isAjax()) {
-            $post = $this->request->post();
-            $result = MarketingConfigLogic::setOrderAward($post);
-            if ($result !== true) {
-                return JsonServer::error($result);
-            }
-            return JsonServer::success('设置成功');
-        }
-
-        return view('', [
-            'award_event_lists' => OrderEnum::getOrderAward(true),
-            'open_award' => ConfigServer::get('order_award','open_award',0),
-            'award_event' => ConfigServer::get('order_award','award_event',0),
-            'award_ratio' => ConfigServer::get('order_award','award_ratio'),
-        ]);
-    }
-
-}

+ 0 - 109
app/admin/controller/setting/NoticeSetting.php

@@ -1,109 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeshop开源商城系统
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | gitee下载:https://gitee.com/likeshop_gitee
-// | github下载:https://github.com/likeshop-github
-// | 访问官网:https://www.likeshop.cn
-// | 访问社区:https://home.likeshop.cn
-// | 访问手册:http://doc.likeshop.cn
-// | 微信公众号:likeshop技术社区
-// | likeshop系列产品在gitee、github等公开渠道开源版本可免费商用,未经许可不能去除前后端官方版权标识
-// |  likeshop系列产品收费版本务必购买商业授权,购买去版权授权后,方可去除前后端官方版权标识
-// | 禁止对系统程序代码以任何目的,任何形式的再发布
-// | likeshop团队版权所有并拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeshop.cn.team
-// +----------------------------------------------------------------------
-
-
-namespace app\admin\controller\setting;
-
-
-use app\admin\logic\NoticeSettingLogic;
-use app\common\basics\AdminBase;
-use app\common\enum\NoticeEnum;
-use app\common\server\JsonServer;
-use think\Db;
-
-/**
- * 通知设置
- * Class NoticeSetting
- * @package app\admin\controller\setting
- */
-class NoticeSetting extends AdminBase
-{
-
-    /**
-     * Notes: 消息设置列表
-     * @author 段誉(2021/4/27 17:17)
-     * @return mixed
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     */
-    public function index()
-    {
-        if ($this->request->isAjax()) {
-            $get = $this->request->get();
-            $type = $get['type'] ?? NoticeEnum::NOTICE_USER;
-            return JsonServer::success('获取成功', NoticeSettingLogic::lists($type));
-        }
-        return view();
-    }
-
-
-
-    /**
-     * Notes: 设置系统通知模板
-     * @author 段誉(2021/4/27 17:18)
-     * @return mixed
-     * @throws \think\Exception
-     * @throws \think\exception\PDOException
-     */
-    public function set()
-    {
-        $id = $this->request->get('id');
-        $type = $this->request->get('type');
-        if ($this->request->isAjax()) {
-            $post = $this->request->post();
-            NoticeSettingLogic::set($post);
-            return JsonServer::success('操作成功');
-        }
-        return view('set_'.$type, [
-            'info' => NoticeSettingLogic::info($id, $type),
-            'type' => $type
-        ]);
-    }
-
-    /**
-     * 通知记录
-     */
-    public function record()
-    {
-        if($this->request->isAjax()) {
-            $get = $this->request->get();
-            $data = NoticeSettingLogic::record($get);
-            return JsonServer::success('', $data);
-        }
-        $param = $this->request->get();
-        return view('', ['param' => $param]);
-    }
-
-    /**
-     * 删除记录,直接删除(非软删除)
-     */
-    public function delRecord()
-    {
-        $id = $this->request->post('id', '', 'intval');
-        if(empty($id)) {
-            return JsonServer::error('参数缺失,删除失败');
-        }
-        $res = Db::name('notice')->delete($id);
-        if(!$res) {
-            return JsonServer::error('删除失败');
-        }
-        return JsonServer::success('删除成功');
-    }
-}

+ 0 - 209
app/admin/controller/setting/PayConfig.php

@@ -1,209 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeshop开源商城系统
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | gitee下载:https://gitee.com/likeshop_gitee
-// | github下载:https://github.com/likeshop-github
-// | 访问官网:https://www.likeshop.cn
-// | 访问社区:https://home.likeshop.cn
-// | 访问手册:http://doc.likeshop.cn
-// | 微信公众号:likeshop技术社区
-// | likeshop系列产品在gitee、github等公开渠道开源版本可免费商用,未经许可不能去除前后端官方版权标识
-// |  likeshop系列产品收费版本务必购买商业授权,购买去版权授权后,方可去除前后端官方版权标识
-// | 禁止对系统程序代码以任何目的,任何形式的再发布
-// | likeshop团队版权所有并拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeshop.cn.team
-// +----------------------------------------------------------------------
-
-namespace app\admin\controller\setting;
-
-use app\admin\logic\PayConfigLogic;
-use app\common\basics\AdminBase;
-use app\common\server\ConfigServer;
-use app\common\server\JsonServer;
-use think\db\exception\DataNotFoundException;
-use think\db\exception\DbException;
-use think\db\exception\ModelNotFoundException;
-
-/**
- * Class PayConfig
- * @package app\admin\controller\setting
- */
-class PayConfig extends AdminBase
-{
-
-    /**
-     * @notes 支付列表
-     * @return \think\response\Json|\think\response\View
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\DbException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @author suny
-     * @date 2021/7/13 7:03 下午
-     */
-    public function lists()
-    {
-
-        if ($this->request->isAjax()) {
-            return JsonServer::success('', PayConfigLogic::lists());
-        }
-        return view();
-    }
-
-
-    /**
-     * @notes 余额配置
-     * @return \think\response\Json|\think\response\View
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\DbException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @author suny
-     * @date 2021/7/13 7:03 下午
-     */
-    public function editBalance()
-    {
-
-        if ($this->request->isAjax()) {
-            $post = $this->request->post();
-            if (empty($post['image']) && $post['status'] == 1) {
-                return JsonServer::error('请选择支付图标');
-            }
-            PayConfigLogic::editBalance($post);
-            return JsonServer::success('修改成功');
-        }
-        return view('', ['info' => PayConfigLogic::info('balance')]);
-    }
-
-
-    /**
-     * @notes 微信配置
-     * @return \think\response\Json|\think\response\View
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\DbException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @author suny
-     * @date 2021/7/13 7:03 下午
-     */
-    public function editWechat()
-    {
-
-        if ($this->request->isAjax()) {
-            $post = $this->request->post();
-            if ($post['status'] == 1) {
-                if (empty($post['image'])) {
-                    return JsonServer::error('请选择支付图标');
-                }
-                if ($post['apiclient_cert'] == '' || $post['apiclient_key'] == '') {
-                    return JsonServer::error('apiclient_cert或apiclient_key不能为空');
-                }
-            }
-            PayConfigLogic::editWechat($post);
-            return JsonServer::success('修改成功');
-        }
-        $domain_name = ConfigServer::get('website', 'domain_name', '');
-        return view('', [
-            'domain' => $domain_name ? $domain_name : request()->domain(),
-            'info' => PayConfigLogic::info('wechat')
-        ]);
-    }
-
-
-    /**
-     * @notes 支付宝配置
-     * @return \think\response\Json|\think\response\View
-     * @throws \think\Exception
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\DbException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\PDOException
-     * @author suny
-     * @date 2021/7/13 7:03 下午
-     */
-    public function editAlipay()
-    {
-
-        if ($this->request->isAjax()) {
-            $post = $this->request->post();
-            if (empty($post['image']) && $post['status'] == 1) {
-                return JsonServer::error('请选择支付图标');
-            }
-            PayConfigLogic::editAlipay($post);
-            return JsonServer::success('修改成功');
-        }
-        return view('', ['info' => PayConfigLogic::info('alipay')]);
-    }
-    
-    /**
-     * @notes 汇付斗拱微信配置
-     * @return \think\response\Json|\think\response\View
-     * @throws DbException
-     * @throws ModelNotFoundException
-     * @throws DataNotFoundException
-     * @author lbzy
-     * @datetime 2023-10-08 14:47:06
-     */
-    function editHfdgWechat()
-    {
-        if ($this->request->isAjax()) {
-            $post = $this->request->post();
-            if (empty($post['image']) && $post['status'] == 1) {
-                return JsonServer::error('请选择支付图标');
-            }
-            PayConfigLogic::editHfdgWechat($post);
-            return JsonServer::success('修改成功');
-        }
-        
-        return view('', [ 'info' => PayConfigLogic::info('hfdg_wechat') ]);
-    }
-    
-    
-    /**
-     * @notes 汇付斗拱支付宝配置
-     * @return \think\response\Json|\think\response\View
-     * @throws DbException
-     * @throws ModelNotFoundException
-     * @throws DataNotFoundException
-     * @author lbzy
-     * @datetime 2023-10-18 14:55:30
-     */
-    function editHfdgAlipay()
-    {
-        if ($this->request->isAjax()) {
-            $post = $this->request->post();
-            if (empty($post['image']) && $post['status'] == 1) {
-                return JsonServer::error('请选择支付图标');
-            }
-            PayConfigLogic::editHfdgAlipay($post);
-            return JsonServer::success('修改成功');
-        }
-        
-        return view('', [ 'info' => PayConfigLogic::info('hfdg_alipay') ]);
-    }
-
-
-    /**
-     * @notes 线下支付
-     * @return \think\response\Json|\think\response\View
-     * @throws DataNotFoundException
-     * @throws DbException
-     * @throws ModelNotFoundException
-     * @author ljj
-     * @date 2024/7/19 下午3:16
-     */
-    public function editOffline()
-    {
-
-        if ($this->request->isAjax()) {
-            $post = $this->request->post();
-            if (empty($post['image']) && $post['status'] == 1) {
-                return JsonServer::error('请选择支付图标');
-            }
-            PayConfigLogic::editOffline($post);
-            return JsonServer::success('修改成功');
-        }
-        return view('', ['info' => PayConfigLogic::info('offline')]);
-    }
-
-}

+ 0 - 45
app/admin/controller/setting/ShopWithdrawal.php

@@ -1,45 +0,0 @@
-<?php
-
-
-namespace app\admin\controller\setting;
-
-
-use app\common\basics\AdminBase;
-use app\common\enum\ShopWithdrawEnum;
-use app\common\logic\SettingLogic;
-use app\common\server\ConfigServer;
-use app\common\server\JsonServer;
-use think\facade\View;
-
-class ShopWithdrawal extends AdminBase
-{
-    /**
-     * @Notes: 商家提现配置页
-     * @Author: 张无忌
-     */
-    public function index()
-    {
-        return view('', [
-            'detail'    => SettingLogic::getShopWithdraw(),
-            'type_list' => ShopWithdrawEnum::TYPE_TEXT_ARR2,
-        ]);
-    }
-
-    /**
-     * @Notes: 设置商家提现
-     * @Author: 张无忌
-     */
-    public function set()
-    {
-        $post = $this->request->post();
-        
-        $withdrawal_type = $post['withdrawal_type'] ?? [];
-        if (empty($withdrawal_type)) {
-            return JsonServer::error('提现方式至少选择一种');
-        }
-    
-        SettingLogic::setShopWithdraw($post);
-        
-        return JsonServer::success('设置成功');
-    }
-}

+ 0 - 104
app/admin/controller/setting/Sms.php

@@ -1,104 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeshop开源商城系统
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | gitee下载:https://gitee.com/likeshop_gitee
-// | github下载:https://github.com/likeshop-github
-// | 访问官网:https://www.likeshop.cn
-// | 访问社区:https://home.likeshop.cn
-// | 访问手册:http://doc.likeshop.cn
-// | 微信公众号:likeshop技术社区
-// | likeshop系列产品在gitee、github等公开渠道开源版本可免费商用,未经许可不能去除前后端官方版权标识
-// |  likeshop系列产品收费版本务必购买商业授权,购买去版权授权后,方可去除前后端官方版权标识
-// | 禁止对系统程序代码以任何目的,任何形式的再发布
-// | likeshop团队版权所有并拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeshop.cn.team
-// +----------------------------------------------------------------------
-namespace app\admin\controller\setting;
-
-
-use app\admin\logic\setting\SmsLogic;
-use app\common\basics\AdminBase;
-use app\common\enum\SmsEnum;
-use app\common\server\ConfigServer;
-use app\common\server\JsonServer;
-
-/**
- * 短信设置
- * Class Sms
- * @package app\admin\controller\setting
- */
-class Sms extends AdminBase
-{
-
-    /**
-     * Notes: 列表
-     * @author 段誉(2021/6/7 14:46)
-     * @return \think\response\Json|\think\response\View
-     */
-    public function lists()
-    {
-        if ($this->request->isAjax()) {
-            $lists = SmsLogic::configLists();
-            return JsonServer::success('获取成功', $lists);
-        }
-        return view('', ['status_list' => SmsEnum::getSendStatusDesc(true)]);
-    }
-
-    /**
-     * Notes: 短信配置
-     * @author 段誉(2021/6/7 14:46)
-     * @return \think\response\Json|\think\response\View
-     */
-    public function config()
-    {
-        if ($this->request->isAjax()) {
-            $post = $this->request->post();
-            $res = SmsLogic::setConfig($post);
-            if (false === $res) {
-                return JsonServer::error(SmsLogic::getError());
-            }
-            return JsonServer::success('设置成功');
-        }
-        $engine = $this->request->get('engine');
-        $info = SmsLogic::getConfigInfo($engine);
-        if (false === $info) {
-            return JsonServer::error('数据错误');
-        }
-        return view('', [
-            'engine'    => $engine,
-            'info'      => $info
-        ]);
-    }
-
-
-
-
-    /**
-     * Notes: 短信记录->列表
-     * @author 段誉(2021/6/7 14:46)
-     * @return \think\response\Json
-     */
-    public function logLists()
-    {
-        if ($this->request->isAjax()) {
-            $get = $this->request->get();
-            $lists = SmsLogic::logLists($get);
-            return JsonServer::success('', $lists);
-        }
-    }
-
-    /**
-     * Notes: 短信记录->详情
-     * @author 段誉(2021/6/7 14:46)
-     * @return \think\response\View
-     */
-    public function detail()
-    {
-        $id = $this->request->get('id');
-        $info = SmsLogic::detail($id);
-        return view('', ['info' => $info]);
-    }
-}

+ 0 - 40
app/admin/controller/setting/Transaction.php

@@ -1,40 +0,0 @@
-<?php
-namespace app\admin\controller\setting;
-
-use app\common\basics\AdminBase;
-use app\common\server\ConfigServer;
-use app\common\server\JsonServer;
-
-/**
- * 交易设置
- */
-class Transaction extends AdminBase
-{
-    public function index()
-    {
-        $config = [
-            'is_show_stock' =>  ConfigServer::get('transaction', 'is_show_stock', 0),
-            'money_to_growth' =>  ConfigServer::get('transaction', 'money_to_growth', 0),
-            'unpaid_order_cancel_time' =>  ConfigServer::get('transaction', 'unpaid_order_cancel_time', 60),
-            'paid_order_cancel_time' =>  ConfigServer::get('transaction', 'paid_order_cancel_time', 60),
-            'order_auto_receipt_days' =>  ConfigServer::get('transaction', 'order_auto_receipt_days', 7),
-            'order_after_sale_days' =>  ConfigServer::get('transaction', 'order_after_sale_days', 7)
-        ];
-        return view('', [
-            'config' => $config
-        ]);
-    }
-
-
-    public function set()
-    {
-        $post = $this->request->post();
-        ConfigServer::set('transaction', 'is_show_stock', $post['is_show_stock']); //是否显示库存
-        ConfigServer::set('transaction', 'money_to_growth', $post['money_to_growth']); //下单赠送成长值比例
-        ConfigServer::set('transaction', 'unpaid_order_cancel_time', $post['unpaid_order_cancel_time']); //未付款自动取消时长(分钟)
-        ConfigServer::set('transaction', 'paid_order_cancel_time', $post['paid_order_cancel_time']); //已支付允许取消时长(分钟)
-        ConfigServer::set('transaction', 'order_auto_receipt_days', $post['order_auto_receipt_days']); //已发货订单自动完成时长(天)
-        ConfigServer::set('transaction', 'order_after_sale_days', $post['order_after_sale_days']); //已完成订单售后退款时长(天)
-        return JsonServer::success('设置成功');
-    }
-}

+ 0 - 60
app/admin/controller/setting/User.php

@@ -1,60 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | likeshop开源商城系统
-// +----------------------------------------------------------------------
-// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
-// | gitee下载:https://gitee.com/likeshop_gitee
-// | github下载:https://github.com/likeshop-github
-// | 访问官网:https://www.likeshop.cn
-// | 访问社区:https://home.likeshop.cn
-// | 访问手册:http://doc.likeshop.cn
-// | 微信公众号:likeshop技术社区
-// | likeshop系列产品在gitee、github等公开渠道开源版本可免费商用,未经许可不能去除前后端官方版权标识
-// |  likeshop系列产品收费版本务必购买商业授权,购买去版权授权后,方可去除前后端官方版权标识
-// | 禁止对系统程序代码以任何目的,任何形式的再发布
-// | likeshop团队版权所有并拥有最终解释权
-// +----------------------------------------------------------------------
-// | author: likeshop.cn.team
-// +----------------------------------------------------------------------
-
-namespace app\admin\controller\setting;
-
-use app\admin\logic\setting\UserLogic;
-use app\common\basics\AdminBase;
-use app\common\server\JsonServer;
-
-/**
- * 用户设置
- * Class User
- * @package app\admin\controller\setting
- */
-class User extends AdminBase
-{
-    /**
-     * @notes 用户设置
-     * @return \think\response\View
-     * @author Tab
-     * @date 2021/9/1 10:07
-     */
-    public function index()
-    {
-        $config = UserLogic::getConfig();
-        return view('', ['config' => $config,'user_level'=>UserLogic::getUserLevel()]);
-    }
-
-    /**
-     * @notes 用户设置
-     * @return \think\response\Json
-     * @author Tab
-     * @date 2021/9/1 10:33
-     */
-    public function set()
-    {
-        $params = $this->request->post();
-        $result = UserLogic::set($params);
-        if($result) {
-            return JsonServer::success('保存成功');
-        }
-        return JsonServer::error(UserLogic::getError());
-    }
-}