OfficialAccountRoutes.php 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. <?php
  2. Route::group(['domain'=>env('CHANNEL_DOMAIN'),'namespace'=>'App\Http\Controllers\Channel\OfficialAccount','prefix'=>'api','middleware'=>'ChannelApiAuth'],function(){
  3. /**
  4. * 公众号
  5. */
  6. //Route::group(['middleware'=>'ChannelOperateRecord'],function (){
  7. //获取公众号信息
  8. Route::any('OfficialAccount/officialAccountById', 'OfficialAccountsController@officialAccountById');
  9. //分销渠道ID获取服务号列表
  10. Route::any('OfficialAccount/allOfficialAccountBydistributionChannelId','OfficialAccountsController@allOfficialAccountBydistributionChannelId');
  11. //服务号授权返回URL
  12. Route::any('OfficialAccount/officialAccountAuthUrl','OfficialAccountsController@officialAccountAuthUrl');
  13. //更新公众号信息
  14. Route::any('OfficialAccount/updateOfficialAccount','OfficialAccountsController@updateOfficialAccount');
  15. // 获取短连接
  16. Route::any('OfficialAccount/getShortUrl','OfficialAccountsController@getShortUrl');
  17. /**
  18. * 客服
  19. */
  20. //获取客服二维码图片
  21. Route::any('OfficialAccount/customerImgUrlByChannelId','CustomMsgController@customerImgUrlByChannelId');
  22. //测试上传客服图片
  23. Route::any('OfficialAccount/uploadCustomerImgUrl', 'CustomMsgController@uploadCustomerImgUrl');
  24. //客服消息开关设置
  25. Route::any('OfficialAccount/customMsgSwitchSetting', 'CustomMsgController@customMsgSwitchSetting');
  26. //客服消息开关列表获取
  27. Route::any('OfficialAccount/customMsgSwitchsByChannelId', 'CustomMsgController@customMsgSwitchsByChannelId');
  28. //获取指定客服消息开关
  29. Route::any('OfficialAccount/customMsgSwitchsByChannelCate', 'CustomMsgController@customMsgSwitchsByChannelCate');
  30. //发送客服消息列表获取
  31. Route::any('OfficialAccount/customSendMsgsByChannelId', 'CustomMsgController@customSendMsgsByChannelId');
  32. //搜索客服消息列表
  33. Route::any('OfficialAccount/searchCustomSendMsgs', 'CustomMsgController@searchCustomSendMsgs');
  34. Route::any('OfficialAccount/exportCustomSendMsgs', 'CustomMsgController@exportCustomSendMsgs');
  35. //根据客服消息参数获取用户
  36. Route::any('OfficialAccount/forceUserCountByCustomPrams', 'CustomMsgController@forceUserCountByCustomPrams');
  37. //通过ID获取指定客服消息
  38. Route::any('OfficialAccount/customSendMsgsById', 'CustomMsgController@customSendMsgsById');
  39. //停止发送客服消息
  40. Route::any('OfficialAccount/stopCustomSendMsgsById', 'CustomMsgController@stopCustomSendMsgsById');
  41. //发送客服消息
  42. Route::any('OfficialAccount/addCustomSendMsgs', 'CustomMsgController@addCustomSendMsgs');
  43. //修改客服消息
  44. Route::any('OfficialAccount/editCustomSendMsgs', 'CustomMsgController@editCustomSendMsgs');
  45. //删除客服消息
  46. Route::any('OfficialAccount/delCustomSendMsgs', 'CustomMsgController@delCustomSendMsgs');
  47. //测试发送客服消息
  48. Route::any('OfficialAccount/testAddCustomSendMsgs', 'CustomMsgController@testAddCustomSendMsgs');
  49. //获取所有图库素材
  50. Route::any('OfficialAccount/getAllDocumentCovers', 'CustomMsgController@getAllDocumentCovers');
  51. //获取所有标签文案
  52. Route::any('OfficialAccount/getAllHeadlinesNoType', 'CustomMsgController@getAllHeadlinesNoType');
  53. //获取图文链接
  54. Route::any('OfficialAccount/createOfficialImgTxtUrl', 'CustomMsgController@createOfficialImgTxtUrl');
  55. //获取图文链接列表
  56. Route::any('OfficialAccount/getOfficialImgTxtUrl', 'CustomMsgController@getOfficialImgTxtUrl');
  57. //根据书籍名称获取图文链接列表
  58. Route::any('OfficialAccount/getOfficialImgTxtUrlByBookName', 'CustomMsgController@getOfficialImgTxtUrlByBookName');
  59. //删除图文链接
  60. Route::any('OfficialAccount/delOfficialImgTxtUrl', 'CustomMsgController@delOfficialImgTxtUrl');
  61. //微信转码二维码图片
  62. Route::any('OfficialAccount/uploadQrcodeImgToWechat', 'CustomMsgController@uploadQrcodeImgToWechat');
  63. //上传二维码图片到OSS
  64. Route::any('OfficialAccount/uploadQrcodeImgToOss', 'CustomMsgController@uploadQrcodeImgToOss');
  65. /**
  66. * 智能分析
  67. */
  68. //获取每日智能推送分析数据
  69. Route::any('OfficialAccount/customSendDayStatsByChannelAndFrom', 'CustomSendStatsController@customSendDayStatsByChannelAndFrom');
  70. //获取渠道下智能推送分析总数据
  71. Route::any('OfficialAccount/customSendStatsByChannelAndFrom', 'CustomSendStatsController@customSendStatsByChannelAndFrom');
  72. //获取渠道下智能推送菜单
  73. Route::any('OfficialAccount/customSendStatsFromTypes', 'CustomSendStatsController@customSendStatsFromTypes');
  74. /**
  75. * 模板消息
  76. */
  77. //获取模板
  78. Route::any('OfficialAccount/wechatTemplateByAppidAndCommonTemplateId', 'WechatTemplatesController@wechatTemplateByAppidAndCommonTemplateId');
  79. //根据模板消息参数获取用户
  80. Route::any('OfficialAccount/forceUserCountByTemplatePrams', 'WechatTemplatesController@forceUserCountByTemplatePrams');
  81. //停止发送模板消息
  82. Route::any('OfficialAccount/stopsSendWechatTemplate', 'WechatTemplatesController@stopsSendWechatTemplate');
  83. //通过ID获取模板
  84. Route::any('OfficialAccount/wechatTemplateMsgById', 'WechatTemplatesController@wechatTemplateMsgById');
  85. //更新模板消息任务状态
  86. Route::any('OfficialAccount/updateWechatTemplateStatus', 'WechatTemplatesController@updateWechatTemplateStatus');
  87. //更新模板消息
  88. Route::any('OfficialAccount/updateWechatTemplateMsgById', 'WechatTemplatesController@updateWechatTemplateMsgById');
  89. //删除模板消息
  90. Route::any('OfficialAccount/delWechatTemplateMsg', 'WechatTemplatesController@delWechatTemplateMsg');
  91. //得到要开通的模板消息列表
  92. Route::any('OfficialAccount/wechatPublicTemplateList', 'WechatPublicTemplatesController@wechatPublicTemplateList');
  93. //保存模板
  94. Route::any('OfficialAccount/addWechatTemplate', 'WechatTemplatesController@addWechatTemplate');
  95. //发送模板消息
  96. Route::any('OfficialAccount/addWechatTemplateMsg', 'WechatTemplatesController@addWechatTemplateMsg');
  97. //测试发送模板消息
  98. Route::any('OfficialAccount/testAddWechatTemplateMsg', 'WechatTemplatesController@testAddWechatTemplateMsg');
  99. //搜索模板消息
  100. Route::any('OfficialAccount/searchWechatTemplateMsg', 'WechatTemplatesController@searchWechatTemplateMsg');
  101. //导出模板消息
  102. Route::any('OfficialAccount/exportWechatTemplateMsg', 'WechatTemplatesController@exportWechatTemplateMsg');
  103. //测试RebitMQ
  104. Route::any('OfficialAccount/testRebitMQ', 'WechatTemplatesController@testRebitMQ');
  105. //个人测试发送模板消息
  106. Route::any('OfficialAccount/test_add_template_task', 'WechatTemplatesController@test_add_template_task');
  107. //获取推送模板消息
  108. Route::any('OfficialAccount/wechatTemplateMsgBydistributionChannelId', 'WechatTemplatesController@wechatTemplateMsgBydistributionChannelId');
  109. //检测模板消息状态并修复
  110. Route::any('OfficialAccount/checkTemplateStatus', 'WechatTemplatesController@checkTemplateStatus');
  111. /**
  112. * 关键字回复
  113. */
  114. //得到关键字消息列表
  115. Route::any('OfficialAccount/wechatKeywordMsgBydistributionChannelId', 'WechatKeywordsController@wechatKeywordMsgBydistributionChannelId');
  116. //通过ID获取关键字
  117. Route::any('OfficialAccount/wechatKeywordMsgById', 'WechatKeywordsController@wechatKeywordMsgById');
  118. //更新关键字消息
  119. Route::any('OfficialAccount/updateWechatKeywordMsg', 'WechatKeywordsController@updateWechatKeywordMsg');
  120. //更新关键字状态
  121. Route::any('OfficialAccount/updateWechatKeywordMsgStatus', 'WechatKeywordsController@updateWechatKeywordMsgStatus');
  122. //保存关键字
  123. Route::any('OfficialAccount/addWechatKeywordMsg', 'WechatKeywordsController@addWechatKeywordMsg');
  124. /**
  125. * 自定义智能推送
  126. */
  127. //通过id获取自定义智能推荐内容
  128. Route::any('OfficialAccount/smartPushMsgById', 'SmartPushsController@smartPushMsgById');
  129. //通过分类渠道性别获取自定义智能推送
  130. Route::any('OfficialAccount/smartPushByDistributionChannelIdAndCategorySex', 'SmartPushsController@smartPushByDistributionChannelIdAndCategorySex');
  131. //检测男女是否都编辑了
  132. Route::any('OfficialAccount/checkSexAllEdit', 'SmartPushsController@checkSexAllEdit');
  133. //添加自定义智能推送
  134. Route::any('OfficialAccount/addSmartPushMsg', 'SmartPushsController@addSmartPushMsg');
  135. //更新自定义智能推送
  136. Route::any('OfficialAccount/updateSmartPushMsg', 'SmartPushsController@updateSmartPushMsg');
  137. //});
  138. /**
  139. * 关注回复
  140. */
  141. Route::get('getSubReply', 'DistributionSelfDefineContentsController@getSubReply');
  142. Route::get('getSubReplyList', 'DistributionSelfDefineContentsController@getSubReplyList');
  143. Route::get('getCurrentReply', 'DistributionSelfDefineContentsController@getCurrentReply');
  144. Route::any('setSubReply', 'DistributionSelfDefineContentsController@setSubReply');
  145. });