From af514032a0d3e374f9a4f27d7096b8a5aed34787 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=98=8A=E5=A4=A9?= <442384644@qq.com> Date: Thu, 16 Feb 2023 11:17:37 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=A8=8B=E5=BA=8F=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E3=80=91=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8=E6=96=87=E4=BB=B6?= =?UTF-8?q?=EF=BC=8C=E6=9B=B4=E6=96=B0=E5=AE=89=E8=A3=85sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../message/SystemNotificationServices.php | 2 - crmeb/app/subscribes/MaterialSubscribe.php | 28 ---- crmeb/app/subscribes/MessageSubscribe.php | 25 ---- crmeb/app/subscribes/OrderSubscribe.php | 28 ---- crmeb/app/subscribes/ProductSubscribe.php | 27 ---- crmeb/app/subscribes/SystemSubscribe.php | 27 ---- crmeb/app/subscribes/TaskSubscribe.php | 132 ------------------ crmeb/app/subscribes/UserSubscribe.php | 38 ----- crmeb/app/subscribes/filetree.txt | 11 -- crmeb/public/install/crmeb.sql | 2 +- 10 files changed, 1 insertion(+), 319 deletions(-) delete mode 100644 crmeb/app/subscribes/MaterialSubscribe.php delete mode 100644 crmeb/app/subscribes/MessageSubscribe.php delete mode 100644 crmeb/app/subscribes/OrderSubscribe.php delete mode 100644 crmeb/app/subscribes/ProductSubscribe.php delete mode 100644 crmeb/app/subscribes/SystemSubscribe.php delete mode 100644 crmeb/app/subscribes/TaskSubscribe.php delete mode 100644 crmeb/app/subscribes/UserSubscribe.php delete mode 100644 crmeb/app/subscribes/filetree.txt diff --git a/crmeb/app/services/message/SystemNotificationServices.php b/crmeb/app/services/message/SystemNotificationServices.php index dcc96ab9..00f573d3 100644 --- a/crmeb/app/services/message/SystemNotificationServices.php +++ b/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); diff --git a/crmeb/app/subscribes/MaterialSubscribe.php b/crmeb/app/subscribes/MaterialSubscribe.php deleted file mode 100644 index 320671d3..00000000 --- a/crmeb/app/subscribes/MaterialSubscribe.php +++ /dev/null @@ -1,28 +0,0 @@ - -// +---------------------------------------------------------------------- -namespace app\subscribes; - - -/** - * 素材消息事件 - * Class MaterialSubscribe - * @package crmeb\subscribes - */ -class MaterialSubscribe -{ - - public function handle() - { - - } - - -} diff --git a/crmeb/app/subscribes/MessageSubscribe.php b/crmeb/app/subscribes/MessageSubscribe.php deleted file mode 100644 index a7426ee5..00000000 --- a/crmeb/app/subscribes/MessageSubscribe.php +++ /dev/null @@ -1,25 +0,0 @@ - -// +---------------------------------------------------------------------- -namespace app\subscribes; - -/** - * 用户消息事件 - * Class MessageSubscribe - * @package crmeb\subscribes - */ -class MessageSubscribe -{ - public function handle() - { - - } - -} diff --git a/crmeb/app/subscribes/OrderSubscribe.php b/crmeb/app/subscribes/OrderSubscribe.php deleted file mode 100644 index 5fabfe29..00000000 --- a/crmeb/app/subscribes/OrderSubscribe.php +++ /dev/null @@ -1,28 +0,0 @@ - -// +---------------------------------------------------------------------- - -namespace app\subscribes; - -/** - * 订单事件 - * Class OrderSubscribe - * @package crmeb\subscribes - */ -class OrderSubscribe -{ - - public function handle() - { - - } - - -} diff --git a/crmeb/app/subscribes/ProductSubscribe.php b/crmeb/app/subscribes/ProductSubscribe.php deleted file mode 100644 index 7cc3c310..00000000 --- a/crmeb/app/subscribes/ProductSubscribe.php +++ /dev/null @@ -1,27 +0,0 @@ - -// +---------------------------------------------------------------------- -namespace app\subscribes; - -/** - * 商品事件 - * Class ProductSubscribe - * @package crmeb\subscribes - */ -class ProductSubscribe -{ - - - public function handle() - { - - } - -} diff --git a/crmeb/app/subscribes/SystemSubscribe.php b/crmeb/app/subscribes/SystemSubscribe.php deleted file mode 100644 index 1725d149..00000000 --- a/crmeb/app/subscribes/SystemSubscribe.php +++ /dev/null @@ -1,27 +0,0 @@ - -// +---------------------------------------------------------------------- -namespace app\subscribes; - - -/** - * 后台系统事件 - * Class SystemSubscribe - * @package crmeb\subscribes - */ -class SystemSubscribe -{ - - public function handle() - { - - } - -} diff --git a/crmeb/app/subscribes/TaskSubscribe.php b/crmeb/app/subscribes/TaskSubscribe.php deleted file mode 100644 index 3eef5509..00000000 --- a/crmeb/app/subscribes/TaskSubscribe.php +++ /dev/null @@ -1,132 +0,0 @@ - -// +---------------------------------------------------------------------- -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(); - } -} diff --git a/crmeb/app/subscribes/UserSubscribe.php b/crmeb/app/subscribes/UserSubscribe.php deleted file mode 100644 index b959f40a..00000000 --- a/crmeb/app/subscribes/UserSubscribe.php +++ /dev/null @@ -1,38 +0,0 @@ - -// +---------------------------------------------------------------------- -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 添加的金额 - } - -} diff --git a/crmeb/app/subscribes/filetree.txt b/crmeb/app/subscribes/filetree.txt deleted file mode 100644 index 76b6e64c..00000000 --- a/crmeb/app/subscribes/filetree.txt +++ /dev/null @@ -1,11 +0,0 @@ -. -├── MaterialSubscribe.php -├── MessageSubscribe.php -├── OrderSubscribe.php -├── ProductSubscribe.php -├── SystemSubscribe.php -├── TaskSubscribe.php -├── UserSubscribe.php -└── filetree.txt - -0 directories, 8 files diff --git a/crmeb/public/install/crmeb.sql b/crmeb/public/install/crmeb.sql index 3ea153bb..2674fd68 100644 --- a/crmeb/public/install/crmeb.sql +++ b/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),