OfficialAccountRoutes.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. <?php
  2. Route::group(['domain'=>env('WECHAT_DOMAIN'),'namespace'=>'App\Http\Controllers\Wechat\OfficialAccount','prefix'=>'api'],function(){
  3. /**
  4. * 公众号
  5. */
  6. //获取公众号信息
  7. Route::any('OfficialAccount/officialAccountByAppid', 'OfficialAccountsController@officialAccountByAppid');
  8. //获取一个可分发的公众号
  9. Route::any('OfficialAccount/canUseOfficialAccountByChannelId', 'OfficialAccountsController@canUseOfficialAccountByChannelId');
  10. //授权公众号信息
  11. Route::any('OfficialAccount/authOfficialAccount','OfficialAccountsController@authOfficialAccount');
  12. //分销渠道ID获取服务号列表
  13. Route::any('OfficialAccount/allOfficialAccountBydistributionChannelId','OfficialAccountsController@allOfficialAccountBydistributionChannelId');
  14. //根据分销渠道ID获取授权公众号
  15. Route::any('OfficialAccount/officialAuthAccountBydistributionChannelId', 'OfficialAccountsController@officialAuthAccountBydistributionChannelId');
  16. //取消公众号授权
  17. Route::any('OfficialAccount/cancelAuthOfficialAccount','OfficialAccountsController@cancelAuthOfficialAccount');
  18. //服务号授权返回URL
  19. Route::any('OfficialAccount/officialAccountAuthUrl','OfficialAccountsController@officialAccountAuthUrl');
  20. //更新公众号信息
  21. Route::any('OfficialAccount/updateOfficialAccount','OfficialAccountsController@updateOfficialAccount');
  22. //测试发送客服消息
  23. Route::any('OfficialAccount/sendNewsTask','WechatCustomerMsgController@sendNewsTask');
  24. /**
  25. * 监控
  26. */
  27. // 检查公众号是否被封
  28. Route::any('OfficialAccount/check_gzh_ban', 'OfficialAccountService@check_gzh_ban');
  29. /**
  30. * 模板消息
  31. */
  32. //获取模板
  33. Route::any('OfficialAccount/wechatTemplateByAppidAndCommonTemplateId', 'WechatTemplatesController@wechatTemplateByAppidAndCommonTemplateId');
  34. //通过ID获取模板
  35. Route::any('OfficialAccount/wechatTemplateMsgById', 'WechatTemplatesController@wechatTemplateMsgById');
  36. //更新模板消息任务状态
  37. Route::any('OfficialAccount/updateWechatTemplateStatus', 'WechatTemplatesController@updateWechatTemplateStatus');
  38. //更新模板消息
  39. Route::any('OfficialAccount/updateWechatTemplateMsgById', 'WechatTemplatesController@updateWechatTemplateMsgById');
  40. //得到要开通的模板消息列表
  41. Route::any('OfficialAccount/wechatPublicTemplateList', 'WechatPublicTemplatesController@wechatPublicTemplateList');
  42. //保存模板
  43. Route::any('OfficialAccount/addWechatTemplate', 'WechatTemplatesController@addWechatTemplate');
  44. //更新模板
  45. Route::any('OfficialAccount/updateWechatTemplateId', 'WechatTemplatesController@updateWechatTemplateId');
  46. //发送模板消息
  47. Route::any('OfficialAccount/addWechatTemplateMsg', 'WechatTemplatesController@addWechatTemplateMsg');
  48. //测试发送模板消息
  49. Route::any('OfficialAccount/testAddWechatTemplateMsg', 'WechatTemplatesController@testAddWechatTemplateMsg');
  50. //测试RebitMQ
  51. Route::any('OfficialAccount/testRebitMQ', 'WechatTemplatesController@testRebitMQ');
  52. //个人测试发送模板消息
  53. Route::any('OfficialAccount/test_add_template_task', 'WechatTemplatesController@test_add_template_task');
  54. //获取推送模板消息
  55. Route::any('OfficialAccount/wechatTemplateMsgBydistributionChannelId', 'WechatTemplatesController@wechatTemplateMsgBydistributionChannelId');
  56. /**
  57. * 强制关注用户
  58. */
  59. //获取强关用户
  60. Route::any('OfficialAccount/forceSubscribeUsersByAppidAndOpenId', 'ForceSubscribeUsersController@forceSubscribeUsersByAppidAndOpenId');
  61. //appid获取强关用户
  62. Route::any('OfficialAccount/forceSubscribeUsersByUid', 'ForceSubscribeUsersController@forceSubscribeUsersByUid');
  63. //添加强关用户
  64. Route::any('OfficialAccount/addForceSubscribeUsers', 'ForceSubscribeUsersController@addForceSubscribeUsers');
  65. //强制关注用户
  66. Route::any('OfficialAccount/subscribeForceSubscribeUsers', 'ForceSubscribeUsersController@subscribeForceSubscribeUsers');
  67. //取消强制关注
  68. Route::any('OfficialAccount/cancelForceSubscribeUsers', 'ForceSubscribeUsersController@cancelForceSubscribeUsers');
  69. //强关用户与公众号最后交互时间更新
  70. Route::any('OfficialAccount/forceSubscribeUsersLastTimeUpdate', 'ForceSubscribeUsersController@forceSubscribeUsersLastTimeUpdate');
  71. //强关用户uid强制更新
  72. Route::any('OfficialAccount/updateForceSubscribeUsers', 'ForceSubscribeUsersController@updateForceSubscribeUsers');
  73. //根据渠道号,appid,openid获取用户
  74. Route::any('OfficialAccount/forceSubscribeUsersByOpenidAndAppidAndChannelId', 'ForceSubscribeUsersController@forceSubscribeUsersByOpenidAndAppidAndChannelId');
  75. //根据渠道号,openid获取素材强关映射
  76. Route::any('OfficialAccount/getMaterialForceSubscribeMapping', 'ForceSubscribeUsersController@getMaterialForceSubscribeMapping');
  77. /**
  78. * ----------------------方法测试--START
  79. */
  80. //测试queue延迟队列
  81. Route::any('OfficialAccount/testGetSimpleChannelBook', 'WechatTestController@getSimpleChannelBook');
  82. //测试queue延迟队列
  83. Route::any('OfficialAccount/testSendMailDelayQueue', 'WechatTestController@testSendMailDelayQueue');
  84. //从redis中取officialaccount或者从数据库中取并更新redis
  85. Route::any('OfficialAccount/officialAccountByAppidTestRedis', 'WechatTestController@officialAccountByAppidTestRedis');
  86. //同步official_account表至Redis
  87. Route::any('OfficialAccount/updateOfficialToRedisTest', 'WechatTestController@updateOfficialToRedisTest');
  88. //从Redis中取一个公众号
  89. Route::any('OfficialAccount/getOfficialFromRedis', 'WechatTestController@getOfficialFromRedis');
  90. //从Redis中取一个客服消息
  91. Route::any('OfficialAccount/getWechatMsgRedis', 'WechatTestController@getWechatMsgRedis');
  92. //sign参数
  93. Route::any('OfficialAccount/getSignTest', 'WechatTestController@getSignTest');
  94. //获取渠道下所有的服务号信息
  95. Route::any('OfficialAccount/allOfficialAccountBydistributionChannelId', 'WechatTestController@allOfficialAccountBydistributionChannelId');
  96. //获取渠道的服务号数量
  97. Route::any('OfficialAccount/officialAccountCountByChannelId', 'WechatTestController@officialAccountCountByChannelId');
  98. //通过渠道号和时间获取用户数
  99. Route::any('OfficialAccount/forceSubscribeUserCountByChannelIdAndDate', 'ForceSubscribeUsersController@forceSubscribeUserCountByChannelIdAndDate');
  100. //通过渠道号和时间获取用户数
  101. Route::any('OfficialAccount/customerImgUrlByChannelId', 'ForceSubscribeUsersController@customerImgUrlByChannelId');
  102. //测试上传客服图片
  103. Route::any('OfficialAccount/uploadCustomerImgUrl', 'ForceSubscribeUsersController@uploadCustomerImgUrl');
  104. //根据模板消息参数获取用户
  105. Route::any('OfficialAccount/forceUserCountByTemplatePrams', 'WechatTemplatesController@forceUserCountByTemplatePrams');
  106. //测试文字格式的模板消息发送
  107. Route::any('OfficialAccount/testSendTextOfficialMsg', 'ForceSubscribeUsersController@testSendTextOfficialMsg');
  108. //客服消息开关设置
  109. Route::any('OfficialAccount/customMsgSwitchSetting', 'WechatCustomerMsgController@customMsgSwitchSetting');
  110. //客服消息开关列表获取
  111. Route::any('OfficialAccount/customMsgSwitchsByChannelId', 'WechatCustomerMsgController@customMsgSwitchsByChannelId');
  112. //获取指定客服消息开关
  113. Route::any('OfficialAccount/customMsgSwitchsByChannelCate', 'WechatCustomerMsgController@customMsgSwitchsByChannelCate');
  114. //发送客服消息列表获取
  115. Route::any('OfficialAccount/customSendMsgsByChannelId', 'WechatCustomerMsgController@customSendMsgsByChannelId');
  116. //通过ID获取指定客服消息
  117. Route::any('OfficialAccount/customSendMsgsById', 'WechatCustomerMsgController@customSendMsgsById');
  118. //停止发送客服消息
  119. Route::any('OfficialAccount/stopCustomSendMsgsById', 'WechatCustomerMsgController@stopCustomSendMsgsById');
  120. //发送客服消息
  121. Route::any('OfficialAccount/addCustomSendMsgs', 'WechatCustomerMsgController@addCustomSendMsgs');
  122. //测试发送客服消息
  123. Route::any('OfficialAccount/testAddCustomSendMsgs', 'WechatCustomerMsgController@testAddCustomSendMsgs');
  124. //测试3天回本12小时推送
  125. Route::any('OfficialAccount/add_news_recovery_push_hot', 'WechatCustomerMsgController@add_news_recovery_push_hot');
  126. //测试3天回本24小时推送
  127. Route::any('OfficialAccount/add_news_recovery_push_activity', 'WechatCustomerMsgController@add_news_recovery_push_activity');
  128. //测试发送定制书籍推送
  129. Route::any('OfficialAccount/add_news_point_book', 'WechatCustomerMsgController@add_news_point_book');
  130. //测试发送热门书籍推送
  131. Route::any('OfficialAccount/add_news_top_book', 'WechatCustomerMsgController@add_news_top_book');
  132. //测试发送未支付订单提醒
  133. Route::any('OfficialAccount/sendUnpaid', 'WechatCustomerMsgController@sendUnpaid');
  134. //支付用户每日推送提醒
  135. Route::any('OfficialAccount/add_template_pay_push_daily', 'WechatCustomerMsgController@add_template_pay_push_daily');
  136. //获取每日智能推送分析数据
  137. Route::any('OfficialAccount/customSendDayStatsByChannelAndFrom', 'CustomSendStatsController@customSendDayStatsByChannelAndFrom');
  138. //获取渠道下智能推送分析总数据
  139. Route::any('OfficialAccount/customSendStatsByChannelAndFrom', 'CustomSendStatsController@customSendStatsByChannelAndFrom');
  140. //获取所有图库素材
  141. Route::any('OfficialAccount/getAllDocumentCovers', 'WechatCustomerMsgController@getAllDocumentCovers');
  142. //获取所有标签文案
  143. Route::any('OfficialAccount/getAllHeadlinesNoType', 'WechatCustomerMsgController@getAllHeadlinesNoType');
  144. //获取图文链接
  145. Route::any('OfficialAccount/createOfficialImgTxtUrl', 'WechatCustomerMsgController@createOfficialImgTxtUrl');
  146. //获取图文链接列表
  147. Route::any('OfficialAccount/getOfficialImgTxtUrl', 'WechatCustomerMsgController@getOfficialImgTxtUrl');
  148. /**
  149. * ----------------------方法测试--END
  150. */
  151. /**
  152. * 公众号事件交互
  153. */
  154. //公众号事件交互
  155. Route::any('OfficialAccount/officialInteractiveEventFeedback', 'OfficialInteractiveEventController@officialInteractiveEventFeedback');
  156. /**
  157. * 公众号菜单
  158. */
  159. //获取菜单列表
  160. Route::any('OfficialAccount/officialMenusList', 'OfficialMenusController@officialMenusList');
  161. /**
  162. * 分销用户
  163. */
  164. //保存公众号用户
  165. Route::any('OfficialAccount/saveOfficialWechatUser', 'OfficialWechatUserController@saveOfficialWechatUser');
  166. //获取公众号用户
  167. Route::any('OfficialAccount/getOfficialWechatUser', 'OfficialWechatUserController@getOfficialWechatUser');
  168. });
  169. Route::group(['domain'=>env('WECHAT_DOMAIN'),'namespace'=>'App\Http\Controllers\Manage\DailyReport','prefix'=>'api'],function(){
  170. Route::any('public/getSendOrderDaliyData', 'SendOrderController@getSendOrderDaliyData');
  171. Route::any('public/getYeserdaySendOrderData', 'SendOrderController@getYeserdaySendOrderData');
  172. Route::any('public/getPromoterSendOrderData', 'SendOrderController@getPromoterSendOrderData');
  173. Route::any('public/exportSendOrderDaliyData', 'SendOrderController@exportSendOrderDaliyData');
  174. Route::any('public/updateRemark', 'SendOrderController@updateRemark');
  175. Route::any('public/getSendOrderMonthlyData2', 'SendOrderController@getSendOrderMonthlyData2');
  176. });