Просмотр исходного кода

【程序目录】删除无用文件,更新安装sql

吴昊天 2 лет назад
Родитель
Сommit
58ccbeded9

+ 0 - 2
crmeb/app/services/message/SystemNotificationServices.php

@@ -70,8 +70,6 @@ class SystemNotificationServices extends BaseServices
      */
     public function getNotInfo(array $where)
     {
-        /** @var ServeServices $ServeServices */
-        $ServeServices = app()->make(ServeServices::class);
         /** @var TemplateMessageServices $TemplateMessageServices */
         $TemplateMessageServices = app()->make(TemplateMessageServices::class);
 

+ 0 - 28
crmeb/app/subscribes/MaterialSubscribe.php

@@ -1,28 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
-// +----------------------------------------------------------------------
-// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
-// +----------------------------------------------------------------------
-// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
-// +----------------------------------------------------------------------
-// | Author: CRMEB Team <admin@crmeb.com>
-// +----------------------------------------------------------------------
-namespace app\subscribes;
-
-
-/**
- * 素材消息事件
- * Class MaterialSubscribe
- * @package crmeb\subscribes
- */
-class MaterialSubscribe
-{
-
-    public function handle()
-    {
-
-    }
-
-
-}

+ 0 - 25
crmeb/app/subscribes/MessageSubscribe.php

@@ -1,25 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
-// +----------------------------------------------------------------------
-// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
-// +----------------------------------------------------------------------
-// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
-// +----------------------------------------------------------------------
-// | Author: CRMEB Team <admin@crmeb.com>
-// +----------------------------------------------------------------------
-namespace app\subscribes;
-
-/**
- * 用户消息事件
- * Class MessageSubscribe
- * @package crmeb\subscribes
- */
-class MessageSubscribe
-{
-    public function handle()
-    {
-
-    }
-
-}

+ 0 - 28
crmeb/app/subscribes/OrderSubscribe.php

@@ -1,28 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
-// +----------------------------------------------------------------------
-// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
-// +----------------------------------------------------------------------
-// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
-// +----------------------------------------------------------------------
-// | Author: CRMEB Team <admin@crmeb.com>
-// +----------------------------------------------------------------------
-
-namespace app\subscribes;
-
-/**
- * 订单事件
- * Class OrderSubscribe
- * @package crmeb\subscribes
- */
-class OrderSubscribe
-{
-
-    public function handle()
-    {
-
-    }
-
-
-}

+ 0 - 27
crmeb/app/subscribes/ProductSubscribe.php

@@ -1,27 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
-// +----------------------------------------------------------------------
-// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
-// +----------------------------------------------------------------------
-// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
-// +----------------------------------------------------------------------
-// | Author: CRMEB Team <admin@crmeb.com>
-// +----------------------------------------------------------------------
-namespace app\subscribes;
-
-/**
- * 商品事件
- * Class ProductSubscribe
- * @package crmeb\subscribes
- */
-class ProductSubscribe
-{
-
-
-    public function handle()
-    {
-
-    }
-
-}

+ 0 - 27
crmeb/app/subscribes/SystemSubscribe.php

@@ -1,27 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
-// +----------------------------------------------------------------------
-// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
-// +----------------------------------------------------------------------
-// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
-// +----------------------------------------------------------------------
-// | Author: CRMEB Team <admin@crmeb.com>
-// +----------------------------------------------------------------------
-namespace app\subscribes;
-
-
-/**
- * 后台系统事件
- * Class SystemSubscribe
- * @package crmeb\subscribes
- */
-class SystemSubscribe
-{
-
-    public function handle()
-    {
-
-    }
-
-}

+ 0 - 132
crmeb/app/subscribes/TaskSubscribe.php

@@ -1,132 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
-// +----------------------------------------------------------------------
-// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
-// +----------------------------------------------------------------------
-// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
-// +----------------------------------------------------------------------
-// | Author: CRMEB Team <admin@crmeb.com>
-// +----------------------------------------------------------------------
-namespace app\subscribes;
-
-use app\services\activity\combination\StorePinkServices;
-use app\services\agent\AgentManageServices;
-use app\services\activity\live\LiveGoodsServices;
-use app\services\activity\live\LiveRoomServices;
-use app\services\order\StoreOrderServices;
-use app\services\order\StoreOrderTakeServices;
-use app\services\product\product\StoreProductServices;
-use app\services\system\attachment\SystemAttachmentServices;
-use think\facade\Log;
-
-/**
- * 定时任务类
- * Class TaskSubscribe
- * @package crmeb\subscribes
- */
-class TaskSubscribe
-{
-    public function handle()
-    {
-
-    }
-
-    /**
-     * 2秒钟执行的方法
-     */
-    public function onTask_2()
-    {
-    }
-
-    /**
-     * 6秒钟执行的方法
-     */
-    public function onTask_6()
-    {
-        file_put_contents(runtime_path() . '.timer', time());
-    }
-
-    /**
-     * 10秒钟执行的方法
-     */
-    public function onTask_10()
-    {
-    }
-
-    /**
-     * 30秒钟执行的方法
-     */
-    public function onTask_30()
-    {
-        //自动取消订单
-        /** @var StoreOrderServices $orderServices */
-        $orderServices = app()->make(StoreOrderServices::class);
-        $orderServices->orderUnpaidCancel();
-    }
-
-    /**
-     * 60秒钟执行的方法
-     */
-    public function onTask_60()
-    {
-        //拼团失败处理
-        /** @var StorePinkServices $storePinkServices */
-        $storePinkServices = app()->make(StorePinkServices::class);
-        $storePinkServices->statusPink();
-        //自动解绑上级绑定
-        try {
-            /** @var AgentManageServices $agentManage */
-            $agentManage = app()->make(AgentManageServices::class);
-            $agentManage->removeSpread();
-        } catch (\Throwable $e) {
-            Log::error('自动解除上级绑定失败,失败原因:' . $e->getMessage());
-        }
-    }
-
-    /**
-     * 180秒钟执行的方法
-     */
-    public function onTask_180()
-    {
-        //更新直播商品状态
-        try {
-            /** @var LiveGoodsServices $liveGoods */
-            $liveGoods = app()->make(LiveGoodsServices::class);
-            $liveGoods->syncGoodStatus();
-        } catch (\Throwable $e) {
-            Log::error('更新直播商品状态失败,失败原因:' . $e->getMessage());
-        }
-        //更新直播间状态
-        try {
-            /** @var LiveRoomServices $liveRoom */
-            $liveRoom = app()->make(LiveRoomServices::class);
-            $liveRoom->syncRoomStatus();
-        } catch (\Throwable $e) {
-            Log::error('更新直播间状态失败,失败原因:' . $e->getMessage());
-        }
-    }
-
-    /**
-     * 300秒钟执行的方法
-     */
-    public function onTask_300()
-    {
-        //自动收货
-        /** @var StoreOrderTakeServices $services */
-        $services = app()->make(StoreOrderTakeServices::class);
-        $services->autoTakeOrder();
-        //清除昨日海报
-        /** @var SystemAttachmentServices $attach */
-        $attach = app()->make(SystemAttachmentServices::class);
-        $attach->emptyYesterdayAttachment();
-        //查询预售到期商品自动下架
-        /** @var StoreProductServices $product */
-        $product = app()->make(StoreProductServices::class);
-        $product->downAdvance();
-        //自动好评
-        /** @var StoreOrderServices $orderServices */
-        $orderServices = app()->make(StoreOrderServices::class);
-        $orderServices->autoComment();
-    }
-}

+ 0 - 38
crmeb/app/subscribes/UserSubscribe.php

@@ -1,38 +0,0 @@
-<?php
-// +----------------------------------------------------------------------
-// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
-// +----------------------------------------------------------------------
-// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
-// +----------------------------------------------------------------------
-// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
-// +----------------------------------------------------------------------
-// | Author: CRMEB Team <admin@crmeb.com>
-// +----------------------------------------------------------------------
-namespace app\subscribes;
-
-
-/**
- * 用户事件
- * Class UserSubscribe
- * @package crmeb\subscribes
- */
-class UserSubscribe
-{
-
-    public function handle()
-    {
-
-    }
-
-    /**
-     * 管理员后台给用户添加金额
-     * @param $event
-     */
-    public function onAdminAddMoney($event)
-    {
-        list($user, $money) = $event;
-        //$user 用户信息
-        //$money 添加的金额
-    }
-
-}

+ 0 - 11
crmeb/app/subscribes/filetree.txt

@@ -1,11 +0,0 @@
-.
-├── MaterialSubscribe.php
-├── MessageSubscribe.php
-├── OrderSubscribe.php
-├── ProductSubscribe.php
-├── SystemSubscribe.php
-├── TaskSubscribe.php
-├── UserSubscribe.php
-└── filetree.txt
-
-0 directories, 8 files

+ 1 - 1
crmeb/public/install/crmeb.sql

@@ -33461,7 +33461,7 @@ INSERT INTO `eb_system_config` (`id`, `menu_name`, `type`, `input_type`, `config
 (376, 'watermark_x', 'text', 'input', 31, '', 0, '', 100, 0, '\"\"', '水印横坐标偏移量(单位:px)', '水印横坐标偏移量(单位:px)', 23, 1),
 (377, 'watermark_y', 'text', 'input', 31, '', 0, '', 100, 0, '\"\"', '水印纵坐标偏移量(单位:px)', '水印纵坐标偏移量(单位:px)', 22, 1),
 (379, 'ico_path', 'upload', 'input', 26, '', 3, '', 0, 0, '\"\"', 'ICO图标', '程序ICO图标,更换后需要清除浏览器缓存', 1, 1),
-(383, 'tengxun_appid', 'text', 'input', 82, '', 0, '', 0, 0, '\"100012434764\"', '腾讯云APPID', '腾讯云APPID', 0, 1),
+(383, 'tengxun_appid', 'text', 'input', 82, '', 0, '', 0, 0, '\"\"', '腾讯云APPID', '腾讯云APPID', 0, 1),
 (384, 'extract_type', 'checkbox', 'input', 74, '0=>银行卡\n1=>微信\n2=>支付宝', 1, '', 0, 0, '[\"0\",\"1\",\"2\"]', '提现方式', '提现方式', 0, 1),
 (385, 'integral_frozen', 'text', 'input', 11, '', 1, '', 100, 0, '\"0\"', '积分冻结(天)', '积分冻结(天)', 0, 1),
 (386, 'print_type', 'radio', 'input', 86, '1=>易联云\n2=>飞鹅云', 1, '', 0, 0, '\"1\"', '平台选择', '打印平台选择', 0, 1),