|
@@ -49,7 +49,7 @@ class WechatMenuService extends BaseService
|
|
|
if (is_empty($info)) {
|
|
|
self::throwErrMsg('该菜单不存在或已删除');
|
|
|
}
|
|
|
- $appIds = WechatAccountMenuDetail::where(['status' => 1, 'menu_id' => $info->id])->pluck('id')->toArray();
|
|
|
+
|
|
|
WechatMenu::where('id', $id)->update($param);
|
|
|
$data = [
|
|
|
'type' => $param['type'],
|
|
@@ -57,6 +57,7 @@ class WechatMenuService extends BaseService
|
|
|
'msg_content' => $param['msg_content']
|
|
|
];
|
|
|
WechatAccountMenuDetail::where('menu_id', $id)->update($data);
|
|
|
+ $appIds = WechatAccountMenuDetail::where(['status' => 1, 'menu_id' => $info->id])->pluck('wechat_authorization_info_id')->toArray();
|
|
|
// 更新公众号菜单
|
|
|
self::createWechatMenus($appIds,$id);
|
|
|
return ['msg' => '操作成功'];
|