diff --git a/Modules/Mp/Http/Controllers/Admin/MpReplyController.php b/Modules/Mp/Http/Controllers/Admin/MpReplyController.php index 86556870e57f21c2dd3f057c200956b6d40b1a82..5d0f74d20773e3c709c6cf3faa0493075192971a 100644 --- a/Modules/Mp/Http/Controllers/Admin/MpReplyController.php +++ b/Modules/Mp/Http/Controllers/Admin/MpReplyController.php @@ -45,7 +45,7 @@ class MpReplyController extends MpController if ($reply->reply_type == 'image' && $reply->reply_image) { if ($reply->reply_media_id) { - $this->service->uploadImage($reply->mp_id, $reply->reply_media_id); + $this->service->deleteImage($reply->mp_id, $reply->reply_media_id); } $reply->reply_media_id = $this->service->uploadImage($reply->reply_image, $reply->mp_id); diff --git a/config/role.php b/config/role.php index 51bf78b3d46c94fd62f13fac0c68a3287cd49970..3aa27530d300ae11eb4e154517d33be9e70c9f2a 100644 --- a/config/role.php +++ b/config/role.php @@ -179,6 +179,10 @@ return [ 'mp/admin/mp_code/{id}/destroy' => '删除渠道码', 'mp/admin/mp_code/{id}/edit' => '修改渠道码', + 'mp/admin/mp_reply/{id}' => '公众号回复管理', + 'mp/admin/mp_reply/{id}/create' => '添加公众号回复', + 'mp/admin/mp_reply/{id}/destroy' => '删除公众号回复', + 'mp/admin/mp_reply/edit' => '修改公众号回复', 'mp/admin/mp_user/{id}' => '公众号用户列表', diff --git a/resources/views/mp/admin/mp_code/index.blade.php b/resources/views/mp/admin/mp_code/index.blade.php index 3d9020f968f2f01937c8fa3f024cc60cefbde6eb..97290cc3feb3ae3ef5c3a8d2382afc9552e1839e 100644 --- a/resources/views/mp/admin/mp_code/index.blade.php +++ b/resources/views/mp/admin/mp_code/index.blade.php @@ -23,6 +23,7 @@ }, [ {type: "checkbox"}, {field: 'id', width: 80, title: 'ID'}, + {field: 'name', minWidth: 80, title: '名称'}, {field: 'mp.name', minWidth: 80, title: '公众号'}, { field: 'code_type', minWidth: 80, title: '二维码类型', callback: function (type) {