diff --git a/crmeb/services/WechatTemplateMessageService.php b/crmeb/services/WechatTemplateMessageService.php index 97f8eb0c..dfc57f11 100644 --- a/crmeb/services/WechatTemplateMessageService.php +++ b/crmeb/services/WechatTemplateMessageService.php @@ -78,7 +78,7 @@ class WechatTemplateMessageService public function subscribeSendTemplate($data) { event('wechat.subscribeTemplate.before',compact('data')); - $res = $this->subscribeTemplateMessage($data['tempCode'],$data['id']); + $res = $this->subscribeTemplateMessage($data['tempId'],$data['id']); if(!$res || !is_array($res))return true; foreach($res as $item){ diff --git a/route/admin/wechat.php b/route/admin/wechat.php index 2f94ecfc..33c0ea91 100644 --- a/route/admin/wechat.php +++ b/route/admin/wechat.php @@ -177,11 +177,11 @@ Route::group(function () { //小程序订阅消息 Route::group('wechat/template/min', function () { - Route::get('wechat/template/min/sync', '/sync')->name('systemTemplateMessageMinSync')->append(['type' => 0])->option([ + Route::get('sync', '/sync')->name('systemTemplateMessageSync')->append(['type' => 0])->option([ '_alias' => '同步', ]); Route::get('lst', '/minList')->name('systemTemplateMessageMinList')->option([ - '_alias' => '列表 ', + '_alias' => '列表', ]); Route::get('create/form', '/createMinform')->name('systemTemplateMessageMinCreateForm')->option([ '_alias' => '添加表单',