From 3ef09698c81d19303bcf932d8176c88840aefe98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=98=8A=E5=A4=A9?= <442384644@qq.com> Date: Mon, 15 Jul 2024 14:27:49 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E3=80=90=E7=A8=8B=E5=BA=8F=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E3=80=91=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../adminapi/controller/UpgradeController.php | 4 ++-- .../adminapi/controller/v1/agent/Division.php | 12 ++++++----- .../controller/v1/marketing/StoreBargain.php | 9 +++++++- .../v1/marketing/StoreCombination.php | 6 ++++++ .../controller/v1/marketing/StoreSeckill.php | 6 ++++++ .../controller/v1/order/StoreOrderInvoice.php | 2 +- .../v1/order/StoreOrderController.php | 2 +- crmeb/app/model/order/StoreOrder.php | 5 +++++ .../model/product/product/StoreCategory.php | 2 +- .../model/product/product/StoreProduct.php | 2 +- .../activity/bargain/StoreBargainServices.php | 16 ++++++++++---- .../combination/StoreCombinationServices.php | 16 ++++++++++---- .../activity/seckill/StoreSeckillServices.php | 12 ++++++++--- .../order/StoreOrderDeliveryServices.php | 2 +- .../order/StoreOrderInvoiceServices.php | 2 +- .../app/services/order/StoreOrderServices.php | 11 +++++++++- .../services/order/StoreOrderTakeServices.php | 2 +- .../services/other/export/ExportServices.php | 2 +- .../system/config/SystemConfigServices.php | 21 +++++++++++++++++++ .../app/services/user/UserExtractServices.php | 1 + 20 files changed, 107 insertions(+), 28 deletions(-) diff --git a/crmeb/app/adminapi/controller/UpgradeController.php b/crmeb/app/adminapi/controller/UpgradeController.php index 1d4eea624..101e141e8 100644 --- a/crmeb/app/adminapi/controller/UpgradeController.php +++ b/crmeb/app/adminapi/controller/UpgradeController.php @@ -734,8 +734,8 @@ class UpgradeController */ public function upData() { - $data['new_version'] = 'CRMEB-BZ-BETA v5.4.0'; - $data['new_code'] = '540'; + $data['new_version'] = 'CRMEB-BZ v5.4.0'; + $data['new_code'] = '540.1'; $data['update_sql'] = [ [ 'code' => '540', diff --git a/crmeb/app/adminapi/controller/v1/agent/Division.php b/crmeb/app/adminapi/controller/v1/agent/Division.php index 59a1fdda1..6ef00f73a 100644 --- a/crmeb/app/adminapi/controller/v1/agent/Division.php +++ b/crmeb/app/adminapi/controller/v1/agent/Division.php @@ -141,11 +141,13 @@ class Division extends AuthController if ((int)$data['uid'] == 0) $data['uid'] = $data['image']['uid']; $userInfo = $userServices->getUserInfo($data['uid'], 'is_division,is_agent,is_staff'); if (!$userInfo) throw new AdminException(100100); - if ($userInfo['is_division']) throw new AdminException('此用户是事业部,请勿添加为代理商'); - if ($userInfo['is_agent']) throw new AdminException('此用户是代理商,无法重复添加'); - if ($userInfo['is_staff']) throw new AdminException('此用户是下级员工,无法添加为代理商'); - $divisionUserInfo = $userServices->count(['uid' => (int)$data['division_id'], 'is_division' => 1, 'division_id' => $data['division_id']]); - if (!$divisionUserInfo) throw new AdminException(100100); + if ($data['edit'] == 0) { + if ($userInfo['is_division']) throw new AdminException('此用户是事业部,请勿添加为代理商'); + if ($userInfo['is_agent']) throw new AdminException('此用户是代理商,无法重复添加'); + if ($userInfo['is_staff']) throw new AdminException('此用户是下级员工,无法添加为代理商'); + $divisionUserInfo = $userServices->count(['uid' => (int)$data['division_id'], 'is_division' => 1, 'division_id' => $data['division_id']]); + if (!$divisionUserInfo) throw new AdminException(100100); + } $this->services->divisionAgentSave($data); return app('json')->success(100000); } diff --git a/crmeb/app/adminapi/controller/v1/marketing/StoreBargain.php b/crmeb/app/adminapi/controller/v1/marketing/StoreBargain.php index 3a4a6f239..219e2c031 100644 --- a/crmeb/app/adminapi/controller/v1/marketing/StoreBargain.php +++ b/crmeb/app/adminapi/controller/v1/marketing/StoreBargain.php @@ -153,7 +153,14 @@ class StoreBargain extends AuthController { /** @var StoreBargainUserServices $bargainUserService */ $bargainUserService = app()->make(StoreBargainUserServices::class); - $bargainUserService->userBargainStatusFail($id, false); + if ($status == 0) { + $bargainUserService->userBargainStatusFail($id, false); + } else { + $info = $this->services->get($id); + if ($info['stop_time'] < time()) { + return app('json')->fail('活动已结束,无法继续上架'); + } + } $this->services->update($id, ['status' => $status]); return app('json')->success(100001); } diff --git a/crmeb/app/adminapi/controller/v1/marketing/StoreCombination.php b/crmeb/app/adminapi/controller/v1/marketing/StoreCombination.php index 242026e63..5abb0e2c1 100644 --- a/crmeb/app/adminapi/controller/v1/marketing/StoreCombination.php +++ b/crmeb/app/adminapi/controller/v1/marketing/StoreCombination.php @@ -161,6 +161,12 @@ class StoreCombination extends AuthController */ public function set_status($id, $status) { + if ($status == 1) { + $info = $this->services->get($id); + if ($info['stop_time'] < time()) { + return app('json')->fail('活动已结束,无法继续上架'); + } + } $this->services->update($id, ['is_show' => $status]); return app('json')->success($status == 0 ? 100014 : 100015); } diff --git a/crmeb/app/adminapi/controller/v1/marketing/StoreSeckill.php b/crmeb/app/adminapi/controller/v1/marketing/StoreSeckill.php index a8f463e8c..0b7ac261c 100644 --- a/crmeb/app/adminapi/controller/v1/marketing/StoreSeckill.php +++ b/crmeb/app/adminapi/controller/v1/marketing/StoreSeckill.php @@ -120,6 +120,12 @@ class StoreSeckill extends AuthController */ public function set_status($id, $status) { + if ($status == 1) { + $info = $this->services->get($id); + if ($info['stop_time'] < time()) { + return app('json')->fail('活动已结束,无法继续上架'); + } + } $this->services->update($id, ['status' => $status]); return app('json')->success(100014); } diff --git a/crmeb/app/adminapi/controller/v1/order/StoreOrderInvoice.php b/crmeb/app/adminapi/controller/v1/order/StoreOrderInvoice.php index 8885b8784..f893fb86d 100644 --- a/crmeb/app/adminapi/controller/v1/order/StoreOrderInvoice.php +++ b/crmeb/app/adminapi/controller/v1/order/StoreOrderInvoice.php @@ -193,7 +193,7 @@ class StoreOrderInvoice extends AuthController $data['invoice_type'] = 82; $data['is_enterprise'] = 0; } else { - $data['invoice_type'] = 81; + $data['invoice_type'] = $info['type'] == 1 ? 82 : 81; $data['tax_id'] = $info['duty_number']; $data['is_enterprise'] = 1; } diff --git a/crmeb/app/api/controller/v1/order/StoreOrderController.php b/crmeb/app/api/controller/v1/order/StoreOrderController.php index 042a6a5d3..bded23dc2 100644 --- a/crmeb/app/api/controller/v1/order/StoreOrderController.php +++ b/crmeb/app/api/controller/v1/order/StoreOrderController.php @@ -267,7 +267,7 @@ class StoreOrderController //创建订单jspay支付 /** @var StoreOrderSuccessServices $success */ $success = app()->make(StoreOrderSuccessServices::class); - $payPriceStatus = $success->zeroYuanPayment($orderInfo, $uid, $paytype); + $payPriceStatus = $success->zeroYuanPayment($orderInfo, $uid); if ($payPriceStatus)//0元支付成功 return app('json')->status('success', '支付成功', ['order_id' => $orderInfo['order_id'], 'key' => $orderInfo['unique']]); else diff --git a/crmeb/app/model/order/StoreOrder.php b/crmeb/app/model/order/StoreOrder.php index 2e1d6fef1..3d015e554 100644 --- a/crmeb/app/model/order/StoreOrder.php +++ b/crmeb/app/model/order/StoreOrder.php @@ -634,4 +634,9 @@ class StoreOrder extends BaseModel { $query->where('agent_brokerage', '>', $value); } + + public function searchVirtualTypeAttr($query, $value) + { + if ($value !== '') $query->where('virtual_type', $value); + } } diff --git a/crmeb/app/model/product/product/StoreCategory.php b/crmeb/app/model/product/product/StoreCategory.php index b8d4a767c..82ad93cc4 100644 --- a/crmeb/app/model/product/product/StoreCategory.php +++ b/crmeb/app/model/product/product/StoreCategory.php @@ -96,6 +96,6 @@ class StoreCategory extends BaseModel */ public function searchIdAttr($query, $value, $data) { - if ($value) $query->whereIn('id', $value); + if ($value) $query->whereIn('id', is_array($value) ? $value : (string)$value); } } diff --git a/crmeb/app/model/product/product/StoreProduct.php b/crmeb/app/model/product/product/StoreProduct.php index f8803e582..8180fbd94 100644 --- a/crmeb/app/model/product/product/StoreProduct.php +++ b/crmeb/app/model/product/product/StoreProduct.php @@ -311,7 +311,7 @@ class StoreProduct extends BaseModel $query->where(['is_show' => 0, 'is_del' => 0]); break; case 3: - $query->where(['is_del' => 0]); + $query->where(['is_del' => 0, 'vip_product' => 0]); break; case 4: $query->where(['is_del' => 0])->where(function ($query) { diff --git a/crmeb/app/services/activity/bargain/StoreBargainServices.php b/crmeb/app/services/activity/bargain/StoreBargainServices.php index 2e5e9642e..a087a8d2a 100644 --- a/crmeb/app/services/activity/bargain/StoreBargainServices.php +++ b/crmeb/app/services/activity/bargain/StoreBargainServices.php @@ -100,20 +100,28 @@ class StoreBargainServices extends BaseServices /** @var StoreBargainUserHelpServices $storeBargainUserHelpServices */ $storeBargainUserHelpServices = app()->make(StoreBargainUserHelpServices::class); $countHelpAll = $storeBargainUserHelpServices->getHelpAllCount([['bargain_id', 'in', $ids]]); + $stopIds = []; foreach ($list as &$item) { $item['count_people_all'] = $countAll[$item['id']] ?? 0;//参与人数 $item['count_people_help'] = $countHelpAll[$item['id']] ?? 0;//帮忙砍价人数 $item['count_people_success'] = $countSuccess[$item['id']] ?? 0;//砍价成功人数 $item['stop_status'] = $item['stop_time'] < time() ? 1 : 0; if ($item['status']) { - if ($item['start_time'] > time()) + if ($item['start_time'] > time()) { $item['start_name'] = '未开始'; - else if ($item['stop_time'] < time()) + } else if ($item['stop_time'] < time()) { $item['start_name'] = '已结束'; - else if ($item['stop_time'] > time() && $item['start_time'] < time()) { + $item['status'] = 0; + $stopIds[] = $item['id']; + } else if ($item['stop_time'] > time() && $item['start_time'] < time()) { $item['start_name'] = '进行中'; } - } else $item['start_name'] = '已结束'; + } else { + $item['start_name'] = '已结束'; + } + } + if ($stopIds) { + $this->dao->batchUpdate($stopIds, ['status' => 0]); } return compact('list', 'count'); } diff --git a/crmeb/app/services/activity/combination/StoreCombinationServices.php b/crmeb/app/services/activity/combination/StoreCombinationServices.php index 23f054866..4260e6529 100644 --- a/crmeb/app/services/activity/combination/StoreCombinationServices.php +++ b/crmeb/app/services/activity/combination/StoreCombinationServices.php @@ -136,20 +136,28 @@ class StoreCombinationServices extends BaseServices $countAll = $storePinkServices->getPinkCount([]); $countTeam = $storePinkServices->getPinkCount(['k_id' => 0, 'status' => 2]); $countPeople = $storePinkServices->getPinkCount(['k_id' => 0]); + $stopIds = []; foreach ($list as &$item) { $item['count_people'] = $countPeople[$item['id']] ?? 0;//拼团数量 $item['count_people_all'] = $countAll[$item['id']] ?? 0;//参与人数 $item['count_people_pink'] = $countTeam[$item['id']] ?? 0;//成团数量 $item['stop_status'] = $item['stop_time'] < time() ? 1 : 0; if ($item['is_show']) { - if ($item['start_time'] > time()) + if ($item['start_time'] > time()) { $item['start_name'] = '未开始'; - else if ($item['stop_time'] < time()) + } else if ($item['stop_time'] < time()) { $item['start_name'] = '已结束'; - else if ($item['stop_time'] > time() && $item['start_time'] < time()) { + $item['is_show'] = 0; + $stopIds[] = $item['id']; + } else if ($item['stop_time'] > time() && $item['start_time'] < time()) { $item['start_name'] = '进行中'; } - } else $item['start_name'] = '已结束'; + } else { + $item['start_name'] = '已结束'; + } + } + if ($stopIds) { + $this->dao->batchUpdate($stopIds, ['is_show' => 0]); } return compact('list', 'count'); } diff --git a/crmeb/app/services/activity/seckill/StoreSeckillServices.php b/crmeb/app/services/activity/seckill/StoreSeckillServices.php index c77674112..bbcb33757 100644 --- a/crmeb/app/services/activity/seckill/StoreSeckillServices.php +++ b/crmeb/app/services/activity/seckill/StoreSeckillServices.php @@ -206,14 +206,17 @@ class StoreSeckillServices extends BaseServices [$page, $limit] = $this->getPageValue(); $list = $this->dao->getList($where, $page, $limit); $count = $this->dao->count($where + ['is_del' => 0]); + $stopIds = []; foreach ($list as &$item) { $item['store_name'] = $item['title']; if ($item['status']) { - if ($item['start_time'] > time()) + if ($item['start_time'] > time()) { $item['start_name'] = '未开始'; - else if (bcadd($item['stop_time'], '86400') < time()) + } else if (bcadd($item['stop_time'], '86400') < time()) { $item['start_name'] = '已结束'; - else if (bcadd($item['stop_time'], '86400') > time() && $item['start_time'] < time()) { + $item['status'] = 0; + $stopIds[] = $item['id']; + } else if (bcadd($item['stop_time'], '86400') > time() && $item['start_time'] < time()) { $item['start_name'] = '进行中'; } } else $item['start_name'] = '已结束'; @@ -221,6 +224,9 @@ class StoreSeckillServices extends BaseServices $item['_stop_time'] = $end_time; $item['stop_status'] = $item['stop_time'] + 86400 < time() ? 1 : 0; } + if ($stopIds) { + $this->dao->batchUpdate($stopIds, ['status' => 0]); + } return compact('list', 'count'); } diff --git a/crmeb/app/services/order/StoreOrderDeliveryServices.php b/crmeb/app/services/order/StoreOrderDeliveryServices.php index 033f76f67..71283f9b5 100644 --- a/crmeb/app/services/order/StoreOrderDeliveryServices.php +++ b/crmeb/app/services/order/StoreOrderDeliveryServices.php @@ -626,7 +626,7 @@ class StoreOrderDeliveryServices extends BaseServices } $orderInfo->delivery_id = $data['delivery_id']; } - if ($data['express_record_type'] != 3) { + if (true) { $data['status'] = 1; $orderInfo->delivery_type = $data['delivery_type']; $orderInfo->delivery_name = $data['delivery_name']; diff --git a/crmeb/app/services/order/StoreOrderInvoiceServices.php b/crmeb/app/services/order/StoreOrderInvoiceServices.php index 440bd8c31..1528af48b 100644 --- a/crmeb/app/services/order/StoreOrderInvoiceServices.php +++ b/crmeb/app/services/order/StoreOrderInvoiceServices.php @@ -271,7 +271,7 @@ class StoreOrderInvoiceServices extends BaseServices $data['tax_id'] = ''; $data['is_enterprise'] = 0; } else { - $data['invoice_type'] = 81; + $data['invoice_type'] = $info['type'] == 1 ? 82 : 81; $data['tax_id'] = $info['duty_number']; $data['is_enterprise'] = 1; } diff --git a/crmeb/app/services/order/StoreOrderServices.php b/crmeb/app/services/order/StoreOrderServices.php index d2f8206cf..cbf9a2ec6 100644 --- a/crmeb/app/services/order/StoreOrderServices.php +++ b/crmeb/app/services/order/StoreOrderServices.php @@ -796,6 +796,15 @@ HTML; if ($order['two_brokerage'] > 0) { $data['two_brokerage'] = bcmul((string)$order['two_brokerage'], $percent, 2); } + if ($order['staff_brokerage'] > 0) { + $data['staff_brokerage'] = bcmul((string)$order['staff_brokerage'], $percent, 2); + } + if ($order['agent_brokerage'] > 0) { + $data['agent_brokerage'] = bcmul((string)$order['agent_brokerage'], $percent, 2); + } + if ($order['division_brokerage'] > 0) { + $data['division_brokerage'] = bcmul((string)$order['division_brokerage'], $percent, 2); + } } /** @var StoreOrderStatusServices $services */ $services = app()->make(StoreOrderStatusServices::class); @@ -2582,7 +2591,7 @@ HTML; } // 判断是否开启小程序订单管理 $orderData['order_shipping_open'] = false; - if (sys_config('order_shipping_open', 0) && $order['is_channel'] == 1 && $order['pay_type'] == 'weixin' && MiniOrderService::isManaged()) { + if (sys_config('order_shipping_open', 0) && $order['pay_price'] > 0 && $order['is_channel'] == 1 && $order['pay_type'] == 'weixin' && MiniOrderService::isManaged()) { // 判断是否存在子未收货子订单 if ($order['pid'] > 0) { if ($this->checkSubOrderNotTake((int)$order['pid'], (int)$order['id'])) { diff --git a/crmeb/app/services/order/StoreOrderTakeServices.php b/crmeb/app/services/order/StoreOrderTakeServices.php index 490ce3bce..be8337b35 100644 --- a/crmeb/app/services/order/StoreOrderTakeServices.php +++ b/crmeb/app/services/order/StoreOrderTakeServices.php @@ -572,7 +572,7 @@ class StoreOrderTakeServices extends BaseServices //自定义事件-佣金到账 event('CustomEventListener', ['order_brokerage', [ 'uid' => $spread_uid, - 'order_id' => $orderInfo['order_id'], + 'order_id' => $orderInfo['order_id'] ?? '', 'phone' => $spreadPhone, 'brokeragePrice' => $brokeragePrice, 'goodsName' => $goodsName, diff --git a/crmeb/app/services/other/export/ExportServices.php b/crmeb/app/services/other/export/ExportServices.php index 7145d4d00..d2c759620 100644 --- a/crmeb/app/services/other/export/ExportServices.php +++ b/crmeb/app/services/other/export/ExportServices.php @@ -218,7 +218,7 @@ class ExportServices extends BaseServices $export = $fileKey = []; /** @var StoreOrderServices $orderServices */ $orderServices = app()->make(StoreOrderServices::class); - $data = $orderServices->getOrderList(['status' => 1, 'shipping_type' => 1])['data']; + $data = $orderServices->getOrderList(['status' => 1, 'shipping_type' => 1, 'virtual_type' => 0])['data']; if (!empty($data)) { $i = 0; foreach ($data as $item) { diff --git a/crmeb/app/services/system/config/SystemConfigServices.php b/crmeb/app/services/system/config/SystemConfigServices.php index 183d8df7e..d69deacd2 100644 --- a/crmeb/app/services/system/config/SystemConfigServices.php +++ b/crmeb/app/services/system/config/SystemConfigServices.php @@ -782,6 +782,27 @@ class SystemConfigServices extends BaseServices } $i++; } + } else { + $sonData = $this->dao->getColumn(['level' => 1, 'link_id' => $data['id']], 'menu_name,link_value'); + if ($sonData) { + $sonValue = []; + foreach ($sonData as $sv) { + $sonValue[$sv['link_value']][] = $sv['menu_name']; + } + $i = 0; + foreach ($sonValue as $pk => $pv) { + $label = $data['menu_name']; + if ($i == 1) $label = $data['menu_name'] . '@'; + if ($i == 2) $label = $data['menu_name'] . '#'; + if (!isset($relateRule[$label])) { + $relateRule[$label]['show_value'] = (int)$pk; + } + foreach ($pv as $pvv) { + $relateRule[$label]['son_type'][$pvv] = ''; + } + $i++; + } + } } if (isset($relateRule[$key])) { $role = $relateRule[$key]; diff --git a/crmeb/app/services/user/UserExtractServices.php b/crmeb/app/services/user/UserExtractServices.php index 311f6e347..f141934f8 100644 --- a/crmeb/app/services/user/UserExtractServices.php +++ b/crmeb/app/services/user/UserExtractServices.php @@ -96,6 +96,7 @@ class UserExtractServices extends BaseServices $list = $this->dao->getExtractList($where, $field, $page, $limit); foreach ($list as &$item) { $item['nickname'] = $item['user']['nickname'] ?? ''; + $item['receive_price'] = bcsub((string)$item['extract_price'], (string)$item['extract_fee'], 2); } $count = $this->dao->count($where); return compact('list', 'count'); From ddb7e29034a99145c2a99d588c6b422b849f8e7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=98=8A=E5=A4=A9?= <442384644@qq.com> Date: Mon, 15 Jul 2024 14:30:23 +0800 Subject: [PATCH 2/5] =?UTF-8?q?Revert=20"=E3=80=90=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E3=80=91=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= =?UTF-8?q?"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 3ef09698c81d19303bcf932d8176c88840aefe98. --- .../adminapi/controller/UpgradeController.php | 4 ++-- .../adminapi/controller/v1/agent/Division.php | 12 +++++------ .../controller/v1/marketing/StoreBargain.php | 9 +------- .../v1/marketing/StoreCombination.php | 6 ------ .../controller/v1/marketing/StoreSeckill.php | 6 ------ .../controller/v1/order/StoreOrderInvoice.php | 2 +- .../v1/order/StoreOrderController.php | 2 +- crmeb/app/model/order/StoreOrder.php | 5 ----- .../model/product/product/StoreCategory.php | 2 +- .../model/product/product/StoreProduct.php | 2 +- .../activity/bargain/StoreBargainServices.php | 16 ++++---------- .../combination/StoreCombinationServices.php | 16 ++++---------- .../activity/seckill/StoreSeckillServices.php | 12 +++-------- .../order/StoreOrderDeliveryServices.php | 2 +- .../order/StoreOrderInvoiceServices.php | 2 +- .../app/services/order/StoreOrderServices.php | 11 +--------- .../services/order/StoreOrderTakeServices.php | 2 +- .../services/other/export/ExportServices.php | 2 +- .../system/config/SystemConfigServices.php | 21 ------------------- .../app/services/user/UserExtractServices.php | 1 - 20 files changed, 28 insertions(+), 107 deletions(-) diff --git a/crmeb/app/adminapi/controller/UpgradeController.php b/crmeb/app/adminapi/controller/UpgradeController.php index 101e141e8..1d4eea624 100644 --- a/crmeb/app/adminapi/controller/UpgradeController.php +++ b/crmeb/app/adminapi/controller/UpgradeController.php @@ -734,8 +734,8 @@ class UpgradeController */ public function upData() { - $data['new_version'] = 'CRMEB-BZ v5.4.0'; - $data['new_code'] = '540.1'; + $data['new_version'] = 'CRMEB-BZ-BETA v5.4.0'; + $data['new_code'] = '540'; $data['update_sql'] = [ [ 'code' => '540', diff --git a/crmeb/app/adminapi/controller/v1/agent/Division.php b/crmeb/app/adminapi/controller/v1/agent/Division.php index 6ef00f73a..59a1fdda1 100644 --- a/crmeb/app/adminapi/controller/v1/agent/Division.php +++ b/crmeb/app/adminapi/controller/v1/agent/Division.php @@ -141,13 +141,11 @@ class Division extends AuthController if ((int)$data['uid'] == 0) $data['uid'] = $data['image']['uid']; $userInfo = $userServices->getUserInfo($data['uid'], 'is_division,is_agent,is_staff'); if (!$userInfo) throw new AdminException(100100); - if ($data['edit'] == 0) { - if ($userInfo['is_division']) throw new AdminException('此用户是事业部,请勿添加为代理商'); - if ($userInfo['is_agent']) throw new AdminException('此用户是代理商,无法重复添加'); - if ($userInfo['is_staff']) throw new AdminException('此用户是下级员工,无法添加为代理商'); - $divisionUserInfo = $userServices->count(['uid' => (int)$data['division_id'], 'is_division' => 1, 'division_id' => $data['division_id']]); - if (!$divisionUserInfo) throw new AdminException(100100); - } + if ($userInfo['is_division']) throw new AdminException('此用户是事业部,请勿添加为代理商'); + if ($userInfo['is_agent']) throw new AdminException('此用户是代理商,无法重复添加'); + if ($userInfo['is_staff']) throw new AdminException('此用户是下级员工,无法添加为代理商'); + $divisionUserInfo = $userServices->count(['uid' => (int)$data['division_id'], 'is_division' => 1, 'division_id' => $data['division_id']]); + if (!$divisionUserInfo) throw new AdminException(100100); $this->services->divisionAgentSave($data); return app('json')->success(100000); } diff --git a/crmeb/app/adminapi/controller/v1/marketing/StoreBargain.php b/crmeb/app/adminapi/controller/v1/marketing/StoreBargain.php index 219e2c031..3a4a6f239 100644 --- a/crmeb/app/adminapi/controller/v1/marketing/StoreBargain.php +++ b/crmeb/app/adminapi/controller/v1/marketing/StoreBargain.php @@ -153,14 +153,7 @@ class StoreBargain extends AuthController { /** @var StoreBargainUserServices $bargainUserService */ $bargainUserService = app()->make(StoreBargainUserServices::class); - if ($status == 0) { - $bargainUserService->userBargainStatusFail($id, false); - } else { - $info = $this->services->get($id); - if ($info['stop_time'] < time()) { - return app('json')->fail('活动已结束,无法继续上架'); - } - } + $bargainUserService->userBargainStatusFail($id, false); $this->services->update($id, ['status' => $status]); return app('json')->success(100001); } diff --git a/crmeb/app/adminapi/controller/v1/marketing/StoreCombination.php b/crmeb/app/adminapi/controller/v1/marketing/StoreCombination.php index 5abb0e2c1..242026e63 100644 --- a/crmeb/app/adminapi/controller/v1/marketing/StoreCombination.php +++ b/crmeb/app/adminapi/controller/v1/marketing/StoreCombination.php @@ -161,12 +161,6 @@ class StoreCombination extends AuthController */ public function set_status($id, $status) { - if ($status == 1) { - $info = $this->services->get($id); - if ($info['stop_time'] < time()) { - return app('json')->fail('活动已结束,无法继续上架'); - } - } $this->services->update($id, ['is_show' => $status]); return app('json')->success($status == 0 ? 100014 : 100015); } diff --git a/crmeb/app/adminapi/controller/v1/marketing/StoreSeckill.php b/crmeb/app/adminapi/controller/v1/marketing/StoreSeckill.php index 0b7ac261c..a8f463e8c 100644 --- a/crmeb/app/adminapi/controller/v1/marketing/StoreSeckill.php +++ b/crmeb/app/adminapi/controller/v1/marketing/StoreSeckill.php @@ -120,12 +120,6 @@ class StoreSeckill extends AuthController */ public function set_status($id, $status) { - if ($status == 1) { - $info = $this->services->get($id); - if ($info['stop_time'] < time()) { - return app('json')->fail('活动已结束,无法继续上架'); - } - } $this->services->update($id, ['status' => $status]); return app('json')->success(100014); } diff --git a/crmeb/app/adminapi/controller/v1/order/StoreOrderInvoice.php b/crmeb/app/adminapi/controller/v1/order/StoreOrderInvoice.php index f893fb86d..8885b8784 100644 --- a/crmeb/app/adminapi/controller/v1/order/StoreOrderInvoice.php +++ b/crmeb/app/adminapi/controller/v1/order/StoreOrderInvoice.php @@ -193,7 +193,7 @@ class StoreOrderInvoice extends AuthController $data['invoice_type'] = 82; $data['is_enterprise'] = 0; } else { - $data['invoice_type'] = $info['type'] == 1 ? 82 : 81; + $data['invoice_type'] = 81; $data['tax_id'] = $info['duty_number']; $data['is_enterprise'] = 1; } diff --git a/crmeb/app/api/controller/v1/order/StoreOrderController.php b/crmeb/app/api/controller/v1/order/StoreOrderController.php index bded23dc2..042a6a5d3 100644 --- a/crmeb/app/api/controller/v1/order/StoreOrderController.php +++ b/crmeb/app/api/controller/v1/order/StoreOrderController.php @@ -267,7 +267,7 @@ class StoreOrderController //创建订单jspay支付 /** @var StoreOrderSuccessServices $success */ $success = app()->make(StoreOrderSuccessServices::class); - $payPriceStatus = $success->zeroYuanPayment($orderInfo, $uid); + $payPriceStatus = $success->zeroYuanPayment($orderInfo, $uid, $paytype); if ($payPriceStatus)//0元支付成功 return app('json')->status('success', '支付成功', ['order_id' => $orderInfo['order_id'], 'key' => $orderInfo['unique']]); else diff --git a/crmeb/app/model/order/StoreOrder.php b/crmeb/app/model/order/StoreOrder.php index 3d015e554..2e1d6fef1 100644 --- a/crmeb/app/model/order/StoreOrder.php +++ b/crmeb/app/model/order/StoreOrder.php @@ -634,9 +634,4 @@ class StoreOrder extends BaseModel { $query->where('agent_brokerage', '>', $value); } - - public function searchVirtualTypeAttr($query, $value) - { - if ($value !== '') $query->where('virtual_type', $value); - } } diff --git a/crmeb/app/model/product/product/StoreCategory.php b/crmeb/app/model/product/product/StoreCategory.php index 82ad93cc4..b8d4a767c 100644 --- a/crmeb/app/model/product/product/StoreCategory.php +++ b/crmeb/app/model/product/product/StoreCategory.php @@ -96,6 +96,6 @@ class StoreCategory extends BaseModel */ public function searchIdAttr($query, $value, $data) { - if ($value) $query->whereIn('id', is_array($value) ? $value : (string)$value); + if ($value) $query->whereIn('id', $value); } } diff --git a/crmeb/app/model/product/product/StoreProduct.php b/crmeb/app/model/product/product/StoreProduct.php index 8180fbd94..f8803e582 100644 --- a/crmeb/app/model/product/product/StoreProduct.php +++ b/crmeb/app/model/product/product/StoreProduct.php @@ -311,7 +311,7 @@ class StoreProduct extends BaseModel $query->where(['is_show' => 0, 'is_del' => 0]); break; case 3: - $query->where(['is_del' => 0, 'vip_product' => 0]); + $query->where(['is_del' => 0]); break; case 4: $query->where(['is_del' => 0])->where(function ($query) { diff --git a/crmeb/app/services/activity/bargain/StoreBargainServices.php b/crmeb/app/services/activity/bargain/StoreBargainServices.php index a087a8d2a..2e5e9642e 100644 --- a/crmeb/app/services/activity/bargain/StoreBargainServices.php +++ b/crmeb/app/services/activity/bargain/StoreBargainServices.php @@ -100,28 +100,20 @@ class StoreBargainServices extends BaseServices /** @var StoreBargainUserHelpServices $storeBargainUserHelpServices */ $storeBargainUserHelpServices = app()->make(StoreBargainUserHelpServices::class); $countHelpAll = $storeBargainUserHelpServices->getHelpAllCount([['bargain_id', 'in', $ids]]); - $stopIds = []; foreach ($list as &$item) { $item['count_people_all'] = $countAll[$item['id']] ?? 0;//参与人数 $item['count_people_help'] = $countHelpAll[$item['id']] ?? 0;//帮忙砍价人数 $item['count_people_success'] = $countSuccess[$item['id']] ?? 0;//砍价成功人数 $item['stop_status'] = $item['stop_time'] < time() ? 1 : 0; if ($item['status']) { - if ($item['start_time'] > time()) { + if ($item['start_time'] > time()) $item['start_name'] = '未开始'; - } else if ($item['stop_time'] < time()) { + else if ($item['stop_time'] < time()) $item['start_name'] = '已结束'; - $item['status'] = 0; - $stopIds[] = $item['id']; - } else if ($item['stop_time'] > time() && $item['start_time'] < time()) { + else if ($item['stop_time'] > time() && $item['start_time'] < time()) { $item['start_name'] = '进行中'; } - } else { - $item['start_name'] = '已结束'; - } - } - if ($stopIds) { - $this->dao->batchUpdate($stopIds, ['status' => 0]); + } else $item['start_name'] = '已结束'; } return compact('list', 'count'); } diff --git a/crmeb/app/services/activity/combination/StoreCombinationServices.php b/crmeb/app/services/activity/combination/StoreCombinationServices.php index 4260e6529..23f054866 100644 --- a/crmeb/app/services/activity/combination/StoreCombinationServices.php +++ b/crmeb/app/services/activity/combination/StoreCombinationServices.php @@ -136,28 +136,20 @@ class StoreCombinationServices extends BaseServices $countAll = $storePinkServices->getPinkCount([]); $countTeam = $storePinkServices->getPinkCount(['k_id' => 0, 'status' => 2]); $countPeople = $storePinkServices->getPinkCount(['k_id' => 0]); - $stopIds = []; foreach ($list as &$item) { $item['count_people'] = $countPeople[$item['id']] ?? 0;//拼团数量 $item['count_people_all'] = $countAll[$item['id']] ?? 0;//参与人数 $item['count_people_pink'] = $countTeam[$item['id']] ?? 0;//成团数量 $item['stop_status'] = $item['stop_time'] < time() ? 1 : 0; if ($item['is_show']) { - if ($item['start_time'] > time()) { + if ($item['start_time'] > time()) $item['start_name'] = '未开始'; - } else if ($item['stop_time'] < time()) { + else if ($item['stop_time'] < time()) $item['start_name'] = '已结束'; - $item['is_show'] = 0; - $stopIds[] = $item['id']; - } else if ($item['stop_time'] > time() && $item['start_time'] < time()) { + else if ($item['stop_time'] > time() && $item['start_time'] < time()) { $item['start_name'] = '进行中'; } - } else { - $item['start_name'] = '已结束'; - } - } - if ($stopIds) { - $this->dao->batchUpdate($stopIds, ['is_show' => 0]); + } else $item['start_name'] = '已结束'; } return compact('list', 'count'); } diff --git a/crmeb/app/services/activity/seckill/StoreSeckillServices.php b/crmeb/app/services/activity/seckill/StoreSeckillServices.php index bbcb33757..c77674112 100644 --- a/crmeb/app/services/activity/seckill/StoreSeckillServices.php +++ b/crmeb/app/services/activity/seckill/StoreSeckillServices.php @@ -206,17 +206,14 @@ class StoreSeckillServices extends BaseServices [$page, $limit] = $this->getPageValue(); $list = $this->dao->getList($where, $page, $limit); $count = $this->dao->count($where + ['is_del' => 0]); - $stopIds = []; foreach ($list as &$item) { $item['store_name'] = $item['title']; if ($item['status']) { - if ($item['start_time'] > time()) { + if ($item['start_time'] > time()) $item['start_name'] = '未开始'; - } else if (bcadd($item['stop_time'], '86400') < time()) { + else if (bcadd($item['stop_time'], '86400') < time()) $item['start_name'] = '已结束'; - $item['status'] = 0; - $stopIds[] = $item['id']; - } else if (bcadd($item['stop_time'], '86400') > time() && $item['start_time'] < time()) { + else if (bcadd($item['stop_time'], '86400') > time() && $item['start_time'] < time()) { $item['start_name'] = '进行中'; } } else $item['start_name'] = '已结束'; @@ -224,9 +221,6 @@ class StoreSeckillServices extends BaseServices $item['_stop_time'] = $end_time; $item['stop_status'] = $item['stop_time'] + 86400 < time() ? 1 : 0; } - if ($stopIds) { - $this->dao->batchUpdate($stopIds, ['status' => 0]); - } return compact('list', 'count'); } diff --git a/crmeb/app/services/order/StoreOrderDeliveryServices.php b/crmeb/app/services/order/StoreOrderDeliveryServices.php index 71283f9b5..033f76f67 100644 --- a/crmeb/app/services/order/StoreOrderDeliveryServices.php +++ b/crmeb/app/services/order/StoreOrderDeliveryServices.php @@ -626,7 +626,7 @@ class StoreOrderDeliveryServices extends BaseServices } $orderInfo->delivery_id = $data['delivery_id']; } - if (true) { + if ($data['express_record_type'] != 3) { $data['status'] = 1; $orderInfo->delivery_type = $data['delivery_type']; $orderInfo->delivery_name = $data['delivery_name']; diff --git a/crmeb/app/services/order/StoreOrderInvoiceServices.php b/crmeb/app/services/order/StoreOrderInvoiceServices.php index 1528af48b..440bd8c31 100644 --- a/crmeb/app/services/order/StoreOrderInvoiceServices.php +++ b/crmeb/app/services/order/StoreOrderInvoiceServices.php @@ -271,7 +271,7 @@ class StoreOrderInvoiceServices extends BaseServices $data['tax_id'] = ''; $data['is_enterprise'] = 0; } else { - $data['invoice_type'] = $info['type'] == 1 ? 82 : 81; + $data['invoice_type'] = 81; $data['tax_id'] = $info['duty_number']; $data['is_enterprise'] = 1; } diff --git a/crmeb/app/services/order/StoreOrderServices.php b/crmeb/app/services/order/StoreOrderServices.php index cbf9a2ec6..d2f8206cf 100644 --- a/crmeb/app/services/order/StoreOrderServices.php +++ b/crmeb/app/services/order/StoreOrderServices.php @@ -796,15 +796,6 @@ HTML; if ($order['two_brokerage'] > 0) { $data['two_brokerage'] = bcmul((string)$order['two_brokerage'], $percent, 2); } - if ($order['staff_brokerage'] > 0) { - $data['staff_brokerage'] = bcmul((string)$order['staff_brokerage'], $percent, 2); - } - if ($order['agent_brokerage'] > 0) { - $data['agent_brokerage'] = bcmul((string)$order['agent_brokerage'], $percent, 2); - } - if ($order['division_brokerage'] > 0) { - $data['division_brokerage'] = bcmul((string)$order['division_brokerage'], $percent, 2); - } } /** @var StoreOrderStatusServices $services */ $services = app()->make(StoreOrderStatusServices::class); @@ -2591,7 +2582,7 @@ HTML; } // 判断是否开启小程序订单管理 $orderData['order_shipping_open'] = false; - if (sys_config('order_shipping_open', 0) && $order['pay_price'] > 0 && $order['is_channel'] == 1 && $order['pay_type'] == 'weixin' && MiniOrderService::isManaged()) { + if (sys_config('order_shipping_open', 0) && $order['is_channel'] == 1 && $order['pay_type'] == 'weixin' && MiniOrderService::isManaged()) { // 判断是否存在子未收货子订单 if ($order['pid'] > 0) { if ($this->checkSubOrderNotTake((int)$order['pid'], (int)$order['id'])) { diff --git a/crmeb/app/services/order/StoreOrderTakeServices.php b/crmeb/app/services/order/StoreOrderTakeServices.php index be8337b35..490ce3bce 100644 --- a/crmeb/app/services/order/StoreOrderTakeServices.php +++ b/crmeb/app/services/order/StoreOrderTakeServices.php @@ -572,7 +572,7 @@ class StoreOrderTakeServices extends BaseServices //自定义事件-佣金到账 event('CustomEventListener', ['order_brokerage', [ 'uid' => $spread_uid, - 'order_id' => $orderInfo['order_id'] ?? '', + 'order_id' => $orderInfo['order_id'], 'phone' => $spreadPhone, 'brokeragePrice' => $brokeragePrice, 'goodsName' => $goodsName, diff --git a/crmeb/app/services/other/export/ExportServices.php b/crmeb/app/services/other/export/ExportServices.php index d2c759620..7145d4d00 100644 --- a/crmeb/app/services/other/export/ExportServices.php +++ b/crmeb/app/services/other/export/ExportServices.php @@ -218,7 +218,7 @@ class ExportServices extends BaseServices $export = $fileKey = []; /** @var StoreOrderServices $orderServices */ $orderServices = app()->make(StoreOrderServices::class); - $data = $orderServices->getOrderList(['status' => 1, 'shipping_type' => 1, 'virtual_type' => 0])['data']; + $data = $orderServices->getOrderList(['status' => 1, 'shipping_type' => 1])['data']; if (!empty($data)) { $i = 0; foreach ($data as $item) { diff --git a/crmeb/app/services/system/config/SystemConfigServices.php b/crmeb/app/services/system/config/SystemConfigServices.php index d69deacd2..183d8df7e 100644 --- a/crmeb/app/services/system/config/SystemConfigServices.php +++ b/crmeb/app/services/system/config/SystemConfigServices.php @@ -782,27 +782,6 @@ class SystemConfigServices extends BaseServices } $i++; } - } else { - $sonData = $this->dao->getColumn(['level' => 1, 'link_id' => $data['id']], 'menu_name,link_value'); - if ($sonData) { - $sonValue = []; - foreach ($sonData as $sv) { - $sonValue[$sv['link_value']][] = $sv['menu_name']; - } - $i = 0; - foreach ($sonValue as $pk => $pv) { - $label = $data['menu_name']; - if ($i == 1) $label = $data['menu_name'] . '@'; - if ($i == 2) $label = $data['menu_name'] . '#'; - if (!isset($relateRule[$label])) { - $relateRule[$label]['show_value'] = (int)$pk; - } - foreach ($pv as $pvv) { - $relateRule[$label]['son_type'][$pvv] = ''; - } - $i++; - } - } } if (isset($relateRule[$key])) { $role = $relateRule[$key]; diff --git a/crmeb/app/services/user/UserExtractServices.php b/crmeb/app/services/user/UserExtractServices.php index f141934f8..311f6e347 100644 --- a/crmeb/app/services/user/UserExtractServices.php +++ b/crmeb/app/services/user/UserExtractServices.php @@ -96,7 +96,6 @@ class UserExtractServices extends BaseServices $list = $this->dao->getExtractList($where, $field, $page, $limit); foreach ($list as &$item) { $item['nickname'] = $item['user']['nickname'] ?? ''; - $item['receive_price'] = bcsub((string)$item['extract_price'], (string)$item['extract_fee'], 2); } $count = $this->dao->count($where); return compact('list', 'count'); From 35e9a80d9f4e2a8b3a6ebf4141e336dd06adf2ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=98=8A=E5=A4=A9?= <442384644@qq.com> Date: Mon, 15 Jul 2024 14:32:40 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E3=80=90=E7=A8=8B=E5=BA=8F=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E3=80=91=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../adminapi/controller/UpgradeController.php | 4 ++-- .../adminapi/controller/v1/agent/Division.php | 12 ++++++----- .../controller/v1/marketing/StoreBargain.php | 9 +++++++- .../v1/marketing/StoreCombination.php | 6 ++++++ .../controller/v1/marketing/StoreSeckill.php | 6 ++++++ .../controller/v1/order/StoreOrderInvoice.php | 2 +- .../v1/order/StoreOrderController.php | 2 +- crmeb/app/model/order/StoreOrder.php | 5 +++++ .../model/product/product/StoreCategory.php | 2 +- .../model/product/product/StoreProduct.php | 2 +- .../activity/bargain/StoreBargainServices.php | 16 ++++++++++---- .../combination/StoreCombinationServices.php | 16 ++++++++++---- .../activity/seckill/StoreSeckillServices.php | 12 ++++++++--- .../order/StoreOrderDeliveryServices.php | 2 +- .../order/StoreOrderInvoiceServices.php | 2 +- .../app/services/order/StoreOrderServices.php | 11 +++++++++- .../services/order/StoreOrderTakeServices.php | 2 +- .../services/other/export/ExportServices.php | 2 +- .../system/config/SystemConfigServices.php | 21 +++++++++++++++++++ .../app/services/user/UserExtractServices.php | 1 + 20 files changed, 107 insertions(+), 28 deletions(-) diff --git a/crmeb/app/adminapi/controller/UpgradeController.php b/crmeb/app/adminapi/controller/UpgradeController.php index 1d4eea624..101e141e8 100644 --- a/crmeb/app/adminapi/controller/UpgradeController.php +++ b/crmeb/app/adminapi/controller/UpgradeController.php @@ -734,8 +734,8 @@ class UpgradeController */ public function upData() { - $data['new_version'] = 'CRMEB-BZ-BETA v5.4.0'; - $data['new_code'] = '540'; + $data['new_version'] = 'CRMEB-BZ v5.4.0'; + $data['new_code'] = '540.1'; $data['update_sql'] = [ [ 'code' => '540', diff --git a/crmeb/app/adminapi/controller/v1/agent/Division.php b/crmeb/app/adminapi/controller/v1/agent/Division.php index 59a1fdda1..6ef00f73a 100644 --- a/crmeb/app/adminapi/controller/v1/agent/Division.php +++ b/crmeb/app/adminapi/controller/v1/agent/Division.php @@ -141,11 +141,13 @@ class Division extends AuthController if ((int)$data['uid'] == 0) $data['uid'] = $data['image']['uid']; $userInfo = $userServices->getUserInfo($data['uid'], 'is_division,is_agent,is_staff'); if (!$userInfo) throw new AdminException(100100); - if ($userInfo['is_division']) throw new AdminException('此用户是事业部,请勿添加为代理商'); - if ($userInfo['is_agent']) throw new AdminException('此用户是代理商,无法重复添加'); - if ($userInfo['is_staff']) throw new AdminException('此用户是下级员工,无法添加为代理商'); - $divisionUserInfo = $userServices->count(['uid' => (int)$data['division_id'], 'is_division' => 1, 'division_id' => $data['division_id']]); - if (!$divisionUserInfo) throw new AdminException(100100); + if ($data['edit'] == 0) { + if ($userInfo['is_division']) throw new AdminException('此用户是事业部,请勿添加为代理商'); + if ($userInfo['is_agent']) throw new AdminException('此用户是代理商,无法重复添加'); + if ($userInfo['is_staff']) throw new AdminException('此用户是下级员工,无法添加为代理商'); + $divisionUserInfo = $userServices->count(['uid' => (int)$data['division_id'], 'is_division' => 1, 'division_id' => $data['division_id']]); + if (!$divisionUserInfo) throw new AdminException(100100); + } $this->services->divisionAgentSave($data); return app('json')->success(100000); } diff --git a/crmeb/app/adminapi/controller/v1/marketing/StoreBargain.php b/crmeb/app/adminapi/controller/v1/marketing/StoreBargain.php index 3a4a6f239..219e2c031 100644 --- a/crmeb/app/adminapi/controller/v1/marketing/StoreBargain.php +++ b/crmeb/app/adminapi/controller/v1/marketing/StoreBargain.php @@ -153,7 +153,14 @@ class StoreBargain extends AuthController { /** @var StoreBargainUserServices $bargainUserService */ $bargainUserService = app()->make(StoreBargainUserServices::class); - $bargainUserService->userBargainStatusFail($id, false); + if ($status == 0) { + $bargainUserService->userBargainStatusFail($id, false); + } else { + $info = $this->services->get($id); + if ($info['stop_time'] < time()) { + return app('json')->fail('活动已结束,无法继续上架'); + } + } $this->services->update($id, ['status' => $status]); return app('json')->success(100001); } diff --git a/crmeb/app/adminapi/controller/v1/marketing/StoreCombination.php b/crmeb/app/adminapi/controller/v1/marketing/StoreCombination.php index 242026e63..5abb0e2c1 100644 --- a/crmeb/app/adminapi/controller/v1/marketing/StoreCombination.php +++ b/crmeb/app/adminapi/controller/v1/marketing/StoreCombination.php @@ -161,6 +161,12 @@ class StoreCombination extends AuthController */ public function set_status($id, $status) { + if ($status == 1) { + $info = $this->services->get($id); + if ($info['stop_time'] < time()) { + return app('json')->fail('活动已结束,无法继续上架'); + } + } $this->services->update($id, ['is_show' => $status]); return app('json')->success($status == 0 ? 100014 : 100015); } diff --git a/crmeb/app/adminapi/controller/v1/marketing/StoreSeckill.php b/crmeb/app/adminapi/controller/v1/marketing/StoreSeckill.php index a8f463e8c..0b7ac261c 100644 --- a/crmeb/app/adminapi/controller/v1/marketing/StoreSeckill.php +++ b/crmeb/app/adminapi/controller/v1/marketing/StoreSeckill.php @@ -120,6 +120,12 @@ class StoreSeckill extends AuthController */ public function set_status($id, $status) { + if ($status == 1) { + $info = $this->services->get($id); + if ($info['stop_time'] < time()) { + return app('json')->fail('活动已结束,无法继续上架'); + } + } $this->services->update($id, ['status' => $status]); return app('json')->success(100014); } diff --git a/crmeb/app/adminapi/controller/v1/order/StoreOrderInvoice.php b/crmeb/app/adminapi/controller/v1/order/StoreOrderInvoice.php index 8885b8784..f893fb86d 100644 --- a/crmeb/app/adminapi/controller/v1/order/StoreOrderInvoice.php +++ b/crmeb/app/adminapi/controller/v1/order/StoreOrderInvoice.php @@ -193,7 +193,7 @@ class StoreOrderInvoice extends AuthController $data['invoice_type'] = 82; $data['is_enterprise'] = 0; } else { - $data['invoice_type'] = 81; + $data['invoice_type'] = $info['type'] == 1 ? 82 : 81; $data['tax_id'] = $info['duty_number']; $data['is_enterprise'] = 1; } diff --git a/crmeb/app/api/controller/v1/order/StoreOrderController.php b/crmeb/app/api/controller/v1/order/StoreOrderController.php index 042a6a5d3..bded23dc2 100644 --- a/crmeb/app/api/controller/v1/order/StoreOrderController.php +++ b/crmeb/app/api/controller/v1/order/StoreOrderController.php @@ -267,7 +267,7 @@ class StoreOrderController //创建订单jspay支付 /** @var StoreOrderSuccessServices $success */ $success = app()->make(StoreOrderSuccessServices::class); - $payPriceStatus = $success->zeroYuanPayment($orderInfo, $uid, $paytype); + $payPriceStatus = $success->zeroYuanPayment($orderInfo, $uid); if ($payPriceStatus)//0元支付成功 return app('json')->status('success', '支付成功', ['order_id' => $orderInfo['order_id'], 'key' => $orderInfo['unique']]); else diff --git a/crmeb/app/model/order/StoreOrder.php b/crmeb/app/model/order/StoreOrder.php index 2e1d6fef1..3d015e554 100644 --- a/crmeb/app/model/order/StoreOrder.php +++ b/crmeb/app/model/order/StoreOrder.php @@ -634,4 +634,9 @@ class StoreOrder extends BaseModel { $query->where('agent_brokerage', '>', $value); } + + public function searchVirtualTypeAttr($query, $value) + { + if ($value !== '') $query->where('virtual_type', $value); + } } diff --git a/crmeb/app/model/product/product/StoreCategory.php b/crmeb/app/model/product/product/StoreCategory.php index b8d4a767c..82ad93cc4 100644 --- a/crmeb/app/model/product/product/StoreCategory.php +++ b/crmeb/app/model/product/product/StoreCategory.php @@ -96,6 +96,6 @@ class StoreCategory extends BaseModel */ public function searchIdAttr($query, $value, $data) { - if ($value) $query->whereIn('id', $value); + if ($value) $query->whereIn('id', is_array($value) ? $value : (string)$value); } } diff --git a/crmeb/app/model/product/product/StoreProduct.php b/crmeb/app/model/product/product/StoreProduct.php index f8803e582..8180fbd94 100644 --- a/crmeb/app/model/product/product/StoreProduct.php +++ b/crmeb/app/model/product/product/StoreProduct.php @@ -311,7 +311,7 @@ class StoreProduct extends BaseModel $query->where(['is_show' => 0, 'is_del' => 0]); break; case 3: - $query->where(['is_del' => 0]); + $query->where(['is_del' => 0, 'vip_product' => 0]); break; case 4: $query->where(['is_del' => 0])->where(function ($query) { diff --git a/crmeb/app/services/activity/bargain/StoreBargainServices.php b/crmeb/app/services/activity/bargain/StoreBargainServices.php index 2e5e9642e..a087a8d2a 100644 --- a/crmeb/app/services/activity/bargain/StoreBargainServices.php +++ b/crmeb/app/services/activity/bargain/StoreBargainServices.php @@ -100,20 +100,28 @@ class StoreBargainServices extends BaseServices /** @var StoreBargainUserHelpServices $storeBargainUserHelpServices */ $storeBargainUserHelpServices = app()->make(StoreBargainUserHelpServices::class); $countHelpAll = $storeBargainUserHelpServices->getHelpAllCount([['bargain_id', 'in', $ids]]); + $stopIds = []; foreach ($list as &$item) { $item['count_people_all'] = $countAll[$item['id']] ?? 0;//参与人数 $item['count_people_help'] = $countHelpAll[$item['id']] ?? 0;//帮忙砍价人数 $item['count_people_success'] = $countSuccess[$item['id']] ?? 0;//砍价成功人数 $item['stop_status'] = $item['stop_time'] < time() ? 1 : 0; if ($item['status']) { - if ($item['start_time'] > time()) + if ($item['start_time'] > time()) { $item['start_name'] = '未开始'; - else if ($item['stop_time'] < time()) + } else if ($item['stop_time'] < time()) { $item['start_name'] = '已结束'; - else if ($item['stop_time'] > time() && $item['start_time'] < time()) { + $item['status'] = 0; + $stopIds[] = $item['id']; + } else if ($item['stop_time'] > time() && $item['start_time'] < time()) { $item['start_name'] = '进行中'; } - } else $item['start_name'] = '已结束'; + } else { + $item['start_name'] = '已结束'; + } + } + if ($stopIds) { + $this->dao->batchUpdate($stopIds, ['status' => 0]); } return compact('list', 'count'); } diff --git a/crmeb/app/services/activity/combination/StoreCombinationServices.php b/crmeb/app/services/activity/combination/StoreCombinationServices.php index 23f054866..4260e6529 100644 --- a/crmeb/app/services/activity/combination/StoreCombinationServices.php +++ b/crmeb/app/services/activity/combination/StoreCombinationServices.php @@ -136,20 +136,28 @@ class StoreCombinationServices extends BaseServices $countAll = $storePinkServices->getPinkCount([]); $countTeam = $storePinkServices->getPinkCount(['k_id' => 0, 'status' => 2]); $countPeople = $storePinkServices->getPinkCount(['k_id' => 0]); + $stopIds = []; foreach ($list as &$item) { $item['count_people'] = $countPeople[$item['id']] ?? 0;//拼团数量 $item['count_people_all'] = $countAll[$item['id']] ?? 0;//参与人数 $item['count_people_pink'] = $countTeam[$item['id']] ?? 0;//成团数量 $item['stop_status'] = $item['stop_time'] < time() ? 1 : 0; if ($item['is_show']) { - if ($item['start_time'] > time()) + if ($item['start_time'] > time()) { $item['start_name'] = '未开始'; - else if ($item['stop_time'] < time()) + } else if ($item['stop_time'] < time()) { $item['start_name'] = '已结束'; - else if ($item['stop_time'] > time() && $item['start_time'] < time()) { + $item['is_show'] = 0; + $stopIds[] = $item['id']; + } else if ($item['stop_time'] > time() && $item['start_time'] < time()) { $item['start_name'] = '进行中'; } - } else $item['start_name'] = '已结束'; + } else { + $item['start_name'] = '已结束'; + } + } + if ($stopIds) { + $this->dao->batchUpdate($stopIds, ['is_show' => 0]); } return compact('list', 'count'); } diff --git a/crmeb/app/services/activity/seckill/StoreSeckillServices.php b/crmeb/app/services/activity/seckill/StoreSeckillServices.php index c77674112..bbcb33757 100644 --- a/crmeb/app/services/activity/seckill/StoreSeckillServices.php +++ b/crmeb/app/services/activity/seckill/StoreSeckillServices.php @@ -206,14 +206,17 @@ class StoreSeckillServices extends BaseServices [$page, $limit] = $this->getPageValue(); $list = $this->dao->getList($where, $page, $limit); $count = $this->dao->count($where + ['is_del' => 0]); + $stopIds = []; foreach ($list as &$item) { $item['store_name'] = $item['title']; if ($item['status']) { - if ($item['start_time'] > time()) + if ($item['start_time'] > time()) { $item['start_name'] = '未开始'; - else if (bcadd($item['stop_time'], '86400') < time()) + } else if (bcadd($item['stop_time'], '86400') < time()) { $item['start_name'] = '已结束'; - else if (bcadd($item['stop_time'], '86400') > time() && $item['start_time'] < time()) { + $item['status'] = 0; + $stopIds[] = $item['id']; + } else if (bcadd($item['stop_time'], '86400') > time() && $item['start_time'] < time()) { $item['start_name'] = '进行中'; } } else $item['start_name'] = '已结束'; @@ -221,6 +224,9 @@ class StoreSeckillServices extends BaseServices $item['_stop_time'] = $end_time; $item['stop_status'] = $item['stop_time'] + 86400 < time() ? 1 : 0; } + if ($stopIds) { + $this->dao->batchUpdate($stopIds, ['status' => 0]); + } return compact('list', 'count'); } diff --git a/crmeb/app/services/order/StoreOrderDeliveryServices.php b/crmeb/app/services/order/StoreOrderDeliveryServices.php index 033f76f67..71283f9b5 100644 --- a/crmeb/app/services/order/StoreOrderDeliveryServices.php +++ b/crmeb/app/services/order/StoreOrderDeliveryServices.php @@ -626,7 +626,7 @@ class StoreOrderDeliveryServices extends BaseServices } $orderInfo->delivery_id = $data['delivery_id']; } - if ($data['express_record_type'] != 3) { + if (true) { $data['status'] = 1; $orderInfo->delivery_type = $data['delivery_type']; $orderInfo->delivery_name = $data['delivery_name']; diff --git a/crmeb/app/services/order/StoreOrderInvoiceServices.php b/crmeb/app/services/order/StoreOrderInvoiceServices.php index 440bd8c31..1528af48b 100644 --- a/crmeb/app/services/order/StoreOrderInvoiceServices.php +++ b/crmeb/app/services/order/StoreOrderInvoiceServices.php @@ -271,7 +271,7 @@ class StoreOrderInvoiceServices extends BaseServices $data['tax_id'] = ''; $data['is_enterprise'] = 0; } else { - $data['invoice_type'] = 81; + $data['invoice_type'] = $info['type'] == 1 ? 82 : 81; $data['tax_id'] = $info['duty_number']; $data['is_enterprise'] = 1; } diff --git a/crmeb/app/services/order/StoreOrderServices.php b/crmeb/app/services/order/StoreOrderServices.php index d2f8206cf..cbf9a2ec6 100644 --- a/crmeb/app/services/order/StoreOrderServices.php +++ b/crmeb/app/services/order/StoreOrderServices.php @@ -796,6 +796,15 @@ HTML; if ($order['two_brokerage'] > 0) { $data['two_brokerage'] = bcmul((string)$order['two_brokerage'], $percent, 2); } + if ($order['staff_brokerage'] > 0) { + $data['staff_brokerage'] = bcmul((string)$order['staff_brokerage'], $percent, 2); + } + if ($order['agent_brokerage'] > 0) { + $data['agent_brokerage'] = bcmul((string)$order['agent_brokerage'], $percent, 2); + } + if ($order['division_brokerage'] > 0) { + $data['division_brokerage'] = bcmul((string)$order['division_brokerage'], $percent, 2); + } } /** @var StoreOrderStatusServices $services */ $services = app()->make(StoreOrderStatusServices::class); @@ -2582,7 +2591,7 @@ HTML; } // 判断是否开启小程序订单管理 $orderData['order_shipping_open'] = false; - if (sys_config('order_shipping_open', 0) && $order['is_channel'] == 1 && $order['pay_type'] == 'weixin' && MiniOrderService::isManaged()) { + if (sys_config('order_shipping_open', 0) && $order['pay_price'] > 0 && $order['is_channel'] == 1 && $order['pay_type'] == 'weixin' && MiniOrderService::isManaged()) { // 判断是否存在子未收货子订单 if ($order['pid'] > 0) { if ($this->checkSubOrderNotTake((int)$order['pid'], (int)$order['id'])) { diff --git a/crmeb/app/services/order/StoreOrderTakeServices.php b/crmeb/app/services/order/StoreOrderTakeServices.php index 490ce3bce..be8337b35 100644 --- a/crmeb/app/services/order/StoreOrderTakeServices.php +++ b/crmeb/app/services/order/StoreOrderTakeServices.php @@ -572,7 +572,7 @@ class StoreOrderTakeServices extends BaseServices //自定义事件-佣金到账 event('CustomEventListener', ['order_brokerage', [ 'uid' => $spread_uid, - 'order_id' => $orderInfo['order_id'], + 'order_id' => $orderInfo['order_id'] ?? '', 'phone' => $spreadPhone, 'brokeragePrice' => $brokeragePrice, 'goodsName' => $goodsName, diff --git a/crmeb/app/services/other/export/ExportServices.php b/crmeb/app/services/other/export/ExportServices.php index 7145d4d00..d2c759620 100644 --- a/crmeb/app/services/other/export/ExportServices.php +++ b/crmeb/app/services/other/export/ExportServices.php @@ -218,7 +218,7 @@ class ExportServices extends BaseServices $export = $fileKey = []; /** @var StoreOrderServices $orderServices */ $orderServices = app()->make(StoreOrderServices::class); - $data = $orderServices->getOrderList(['status' => 1, 'shipping_type' => 1])['data']; + $data = $orderServices->getOrderList(['status' => 1, 'shipping_type' => 1, 'virtual_type' => 0])['data']; if (!empty($data)) { $i = 0; foreach ($data as $item) { diff --git a/crmeb/app/services/system/config/SystemConfigServices.php b/crmeb/app/services/system/config/SystemConfigServices.php index 183d8df7e..d69deacd2 100644 --- a/crmeb/app/services/system/config/SystemConfigServices.php +++ b/crmeb/app/services/system/config/SystemConfigServices.php @@ -782,6 +782,27 @@ class SystemConfigServices extends BaseServices } $i++; } + } else { + $sonData = $this->dao->getColumn(['level' => 1, 'link_id' => $data['id']], 'menu_name,link_value'); + if ($sonData) { + $sonValue = []; + foreach ($sonData as $sv) { + $sonValue[$sv['link_value']][] = $sv['menu_name']; + } + $i = 0; + foreach ($sonValue as $pk => $pv) { + $label = $data['menu_name']; + if ($i == 1) $label = $data['menu_name'] . '@'; + if ($i == 2) $label = $data['menu_name'] . '#'; + if (!isset($relateRule[$label])) { + $relateRule[$label]['show_value'] = (int)$pk; + } + foreach ($pv as $pvv) { + $relateRule[$label]['son_type'][$pvv] = ''; + } + $i++; + } + } } if (isset($relateRule[$key])) { $role = $relateRule[$key]; diff --git a/crmeb/app/services/user/UserExtractServices.php b/crmeb/app/services/user/UserExtractServices.php index 311f6e347..f141934f8 100644 --- a/crmeb/app/services/user/UserExtractServices.php +++ b/crmeb/app/services/user/UserExtractServices.php @@ -96,6 +96,7 @@ class UserExtractServices extends BaseServices $list = $this->dao->getExtractList($where, $field, $page, $limit); foreach ($list as &$item) { $item['nickname'] = $item['user']['nickname'] ?? ''; + $item['receive_price'] = bcsub((string)$item['extract_price'], (string)$item['extract_fee'], 2); } $count = $this->dao->count($where); return compact('list', 'count'); From 16b8cdcb7c304f18188f9c1d1d8c167b5f3cea43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=98=8A=E5=A4=A9?= <442384644@qq.com> Date: Mon, 15 Jul 2024 14:33:12 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E3=80=90=E7=A8=8B=E5=BA=8F=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E3=80=91=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/README.md b/README.md index 7ee8cb093..9b7841e13 100644 --- a/README.md +++ b/README.md @@ -144,10 +144,6 @@ So~~想要用CRMEB开源商城系统做公益项目的朋友,可以来免费 ![输入图片说明](readme/pic/gongyi1.jpg) ![输入图片说明](readme/pic/gongyi2.jpg) ---- -### 💎 捐赠 -赠人玫瑰,手留余香!CRMEB诚挚地邀请大家积极参与捐赠,我们会将捐赠获得的费用,悉数用于支持公益项目,让善意无限传递下去! -在此深表感谢~ --- [![输入图片说明](readme/pic/多商户.jpg)](https://www.crmeb.com/index/merchant) --- From d0ce7c66a03af8db9d1eda578db784bb369eeafc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=98=8A=E5=A4=A9?= <442384644@qq.com> Date: Mon, 15 Jul 2024 14:37:28 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E3=80=90=E6=A8=A1=E7=89=88=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E3=80=91=E6=9B=B4=E6=96=B0=E6=A8=A1=E7=89=88=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/admin/public/image/logo-small.png | Bin 0 -> 7650 bytes template/admin/public/index.html | 1 + template/admin/public/manifest.json | 13 + .../admin/src/assets/iconfont/iconfont.css | 18 +- template/admin/src/components/from/from.vue | 2 +- .../mobilePageDiy/home_goods_list.vue | 2 +- .../components/mobilePageDiy/home_hotspot.vue | 2 +- .../components/mobilePageDiy/picture_cube.vue | 2 +- .../src/pages/finance/userExtract/index.vue | 12 + .../pages/marketing/storeBargain/create.vue | 2 +- .../pages/marketing/storeBargain/index.vue | 2 +- .../marketing/storeCombination/create.vue | 2 +- .../marketing/storeCombination/index.vue | 2 +- .../pages/marketing/storeSeckill/create.vue | 2 +- .../pages/marketing/storeSeckill/index.vue | 1 + .../src/pages/product/productAdd/index.vue | 2 +- .../src/pages/product/productList/index.vue | 2 +- .../admin/src/pages/setting/devise/list.vue | 6 +- .../src/pages/system/codeGeneration/list.vue | 2 +- template/uni-app/App.vue | 24 +- template/uni-app/manifest.json | 4 +- .../goods_combination_details/index.vue | 6 +- .../goods_combination_status/index.vue | 4 +- .../activity/goods_seckill_details/index.vue | 7 +- .../uni-app/pages/annex/vip_paid/index.vue | 2 - .../pages/goods/order_details/index.vue | 2 +- .../pages/index/diy/components/menus.vue | 489 +++--- .../points_mall/integral_goods_details.vue | 5 - .../pages/users/user_invoice_form/index.vue | 1321 +++++++++-------- 29 files changed, 990 insertions(+), 949 deletions(-) create mode 100644 template/admin/public/image/logo-small.png create mode 100644 template/admin/public/manifest.json diff --git a/template/admin/public/image/logo-small.png b/template/admin/public/image/logo-small.png new file mode 100644 index 0000000000000000000000000000000000000000..77744f46515936d9da1415688b7bf5f46d1ef315 GIT binary patch literal 7650 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 + diff --git a/template/admin/public/manifest.json b/template/admin/public/manifest.json new file mode 100644 index 000000000..f65c0c3e4 --- /dev/null +++ b/template/admin/public/manifest.json @@ -0,0 +1,13 @@ +{ + "name":"CRMEB", + "display":"standalone", + "start_url":".", + "id": "index.html", + "background_color": "#999", + "theme_color":"#292d3e", + "icons":[{ + "src":"./image/logo-small.png", + "sizes":"144x144", + "type":"image/png" + }] +} \ No newline at end of file diff --git a/template/admin/src/assets/iconfont/iconfont.css b/template/admin/src/assets/iconfont/iconfont.css index a1ba4ef14..a96c3b2d8 100644 --- a/template/admin/src/assets/iconfont/iconfont.css +++ b/template/admin/src/assets/iconfont/iconfont.css @@ -1,8 +1,8 @@ @font-face { font-family: "iconfont"; /* Project id 1945396 */ - src: url('//at.alicdn.com/t/c/font_1945396_6gitgc05gen.woff2?t=1712912127437') format('woff2'), - url('//at.alicdn.com/t/c/font_1945396_6gitgc05gen.woff?t=1712912127437') format('woff'), - url('//at.alicdn.com/t/c/font_1945396_6gitgc05gen.ttf?t=1712912127437') format('truetype'); + src: url('//at.alicdn.com/t/c/font_1945396_qp61r9cscmj.woff2?t=1719814295530') format('woff2'), + url('//at.alicdn.com/t/c/font_1945396_qp61r9cscmj.woff?t=1719814295530') format('woff'), + url('//at.alicdn.com/t/c/font_1945396_qp61r9cscmj.ttf?t=1719814295530') format('truetype'); } .iconfont { @@ -13,6 +13,18 @@ -moz-osx-font-smoothing: grayscale; } +.iconrequ1:before { + content: "\e830"; +} + +.iconrequ:before { + content: "\e82f"; +} + +.iconicon_Like_2:before { + content: "\e7e1"; +} + .iconic_mall:before { content: "\e797"; } diff --git a/template/admin/src/components/from/from.vue b/template/admin/src/components/from/from.vue index 85b46c384..bda0e3ea8 100644 --- a/template/admin/src/components/from/from.vue +++ b/template/admin/src/components/from/from.vue @@ -1,6 +1,6 @@