Skip to content

Commit 20346a1

Browse files
committed
【程序目录】更新v4.7.0
1 parent c963fd6 commit 20346a1

File tree

2,111 files changed

+15296
-9601
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,111 files changed

+15296
-9601
lines changed

README.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,18 +75,13 @@ Redis
7575

7676
> 温馨提示:虚拟空间不支持,推荐使用bt宝塔面板,服务器推荐阿里云ecs或腾讯云cvm 云服务器:<a href="https://promotion.aliyun.com/ntms/yunparter/invite.html?userCode=dligum2z" target="_blank"> 查看 </a>
7777
78+
### 官方论坛
7879

79-
### 系统演示
80-
81-
![输入图片说明](readme/pic/20公众号.jpg)
8280

83-
管理后台: http://v4.crmeb.net/admin 账号:demo 密码:crmeb.com
81+
[![输入图片说明](readme/pic/gflt.jpg)](https://www.crmeb.com/ask/thread/list/147)
8482

85-
H5端:http://v4.crmeb.net/(移动端打开)
83+
产品BUG、优化建议,欢迎社区反馈:https://www.crmeb.com/ask/thread/list?id=147
8684

87-
PC端:http://v4.crmeb.net/(电脑端打开)
88-
89-
APP下载:http://app.crmeb.cn/bzv (苹果手机直接在APP Store里搜索CRMEB下载)
9085

9186
---
9287

@@ -97,11 +92,19 @@ APP下载:http://app.crmeb.cn/bzv (苹果手机直接在APP Store里搜索CR
9792

9893
---
9994

100-
### 官方论坛
10195

10296

103-
产品BUG、优化建议,欢迎社区反馈:https://www.crmeb.com/ask/thread/list?id=147
97+
### 系统演示
98+
99+
![输入图片说明](readme/pic/20公众号.jpg)
100+
101+
管理后台: http://v4.crmeb.net/admin 账号:demo 密码:crmeb.com
104102

103+
H5端:http://v4.crmeb.net/(移动端打开)
104+
105+
PC端:http://v4.crmeb.net/(电脑端打开)
106+
107+
APP下载:http://app.crmeb.cn/bzv (苹果手机直接在APP Store里搜索CRMEB下载)
105108

106109
### 页面展示
107110
(页面仅展示部分UI)

crmeb/app/adminapi/controller/Common.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ public function menusList()
346346
$pid = $item->getData('pid');
347347
$data[$key] = json_decode($item, true);
348348
$data[$key]['pid'] = $pid;
349+
$data[$key]['menu_path'] = '/' . config('app.admin_prefix', 'admin') . $item['menu_path'];
349350
if (in_array($item->id, $counts)) {
350351
$data[$key]['type'] = 1;
351352
} else {

crmeb/app/adminapi/controller/UpgradeController.php

Lines changed: 1601 additions & 9 deletions
Large diffs are not rendered by default.

crmeb/app/adminapi/controller/v1/export/ExportExcel.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ public function orderList()
9595
['pay_type', ''],
9696
['order', ''],
9797
['field_key', ''],
98+
['ids', []],
9899
]);
99100
$where['is_system_del'] = 0;
100101
$where['pid'] = 0;
@@ -110,7 +111,8 @@ public function productList()
110111
$where = $this->request->getMore([
111112
['store_name', ''],
112113
['cate_id', ''],
113-
['type', 1]
114+
['type', 1],
115+
['ids', []]
114116
]);
115117
return app('json')->success($this->service->exportProductList($where));
116118
}
@@ -206,6 +208,7 @@ public function userCommission(UserBillServices $services)
206208
['price_max', ''],
207209
['price_min', ''],
208210
['excel', '1'],
211+
['time', ''],
209212
]);
210213
$data = $services->getCommissionList($where, false);
211214
return app('json')->success($this->service->userCommission($data['list'] ?? []));

crmeb/app/adminapi/controller/v1/kefu/StoreService.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public function create(UserWechatuserServices $services)
6262
['data', '', '', 'time'],
6363
['type', '', '', 'user_type'],
6464
]);
65+
$where['is_del'] = 0;
6566
[$list, $count] = $services->getWhereUserList($where, 'u.nickname,u.uid,u.avatar as headimgurl,w.subscribe,w.province,w.country,w.city,w.sex,u.user_type,u.is_del');
6667
return app('json')->success(compact('list', 'count'));
6768
}

crmeb/app/adminapi/controller/v1/marketing/StoreSeckill.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,7 @@ public function delete($id)
106106
$storeProductAttrValueServices = app()->make(StoreProductAttrValueServices::class);
107107
$unique = $storeProductAttrValueServices->value(['product_id' => $id, 'type' => 1], 'unique');
108108
if ($unique) {
109-
$name = 'seckill_' . $unique . '_1';
110-
/** @var CacheService $cache */
111-
$cache = app()->make(CacheService::class);
112-
$cache->del($name);
109+
CacheService::delete('seckill_' . $unique . '_1');
113110
}
114111
return app('json')->success(100002);
115112
}

crmeb/app/adminapi/controller/v1/marketing/live/LiveRoom.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ public function add()
7878
['replay_status', 1],
7979
['sort', 0]
8080
]);
81+
if (mb_strlen($data['name']) < 6 || mb_strlen($data['name']) > 17) {
82+
return app('json')->fail(500030);
83+
}
8184
$this->validate($data, \app\adminapi\validate\marketing\LiveRoomValidate::class, 'save');
8285
$this->services->add($data);
8386
return app('json')->success(100000);

crmeb/app/adminapi/controller/v1/notification/sms/SmsConfig.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,10 @@ public function is_login(ServeServices $services)
103103
*/
104104
public function logout()
105105
{
106-
$res = CacheService::delete('sms_account');
107-
if ($res) {
108-
$this->services->updateSmsConfig('', '');
109-
CacheService::clear();
110-
return app('json')->success(100042);
111-
} else {
112-
return app('json')->fail(100043);
113-
}
106+
CacheService::delete('sms_account');
107+
$this->services->updateSmsConfig('', '');
108+
CacheService::clear();
109+
return app('json')->success(100042);
114110
}
115111

116112
/**

crmeb/app/adminapi/controller/v1/order/RefundOrder.php

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,13 @@ public function getRefundList()
5757
/**
5858
* 订单详情
5959
* @param $uni
60-
* @return mixed
60+
* @return \think\Response
61+
* @throws \think\db\exception\DataNotFoundException
62+
* @throws \think\db\exception\DbException
63+
* @throws \think\db\exception\ModelNotFoundException
64+
* @author 吴汐
65+
66+
* @date 2023/03/02
6167
*/
6268
public function getRefundInfo($uni)
6369
{
@@ -163,12 +169,12 @@ public function refundPrice(Request $request, StoreOrderServices $services, $id)
163169
return app('json')->fail(400147);
164170
}
165171
$refund_price = $data['refund_price'];
172+
}
166173

167-
$data['refunded_price'] = bcadd($data['refund_price'], $orderRefund['refunded_price'], 2);
168-
$bj = bccomp((string)$orderRefund['refund_price'], (string)$data['refunded_price'], 2);
169-
if ($bj < 0) {
170-
return app('json')->fail(400148);
171-
}
174+
$data['refunded_price'] = bcadd($data['refund_price'], $orderRefund['refunded_price'], 2);
175+
$bj = bccomp((string)$orderRefund['refund_price'], (string)$data['refunded_price'], 2);
176+
if ($bj < 0) {
177+
return app('json')->fail(400148);
172178
}
173179

174180
unset($data['type']);
@@ -184,7 +190,7 @@ public function refundPrice(Request $request, StoreOrderServices $services, $id)
184190
$refund_data['open_id'] = $wechatUserServices->uidToOpenid((int)$order['uid'], 'routine') ?? '';
185191
$refund_data['refund_no'] = $orderRefund['order_id'];
186192
//修改订单退款状态
187-
unset($data['refund_price']);
193+
$data['refund_price'] = $data['refunded_price'];
188194
if ($this->services->agreeRefund($id, $refund_data)) {
189195
$this->services->update($id, $data);
190196
return app('json')->success(400149);

crmeb/app/adminapi/controller/v1/order/StoreOrder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ public function update_un_refund(StoreOrderRefundServices $services, $id)
591591
}
592592
$services->storeProductOrderRefundNo((int)$id, $refund_reason);
593593
//提醒推送
594-
event('notice.notice', [['orderInfo' => $orderInfo], 'send_order_refund_no_status']);
594+
event('NoticeListener', [['orderInfo' => $orderInfo], 'send_order_refund_no_status']);
595595
return app('json')->success(100010);
596596
}
597597

0 commit comments

Comments
 (0)