business.php 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * Name: 芸众商城系统
  5. * Author: 广州市芸众信息科技有限公司
  6. * Profile: 广州市芸众信息科技有限公司位于国际商贸中心的广州,专注于移动电子商务生态系统打造,拥有芸众社交电商系统、区块链数字资产管理系统、供应链管理系统、电子合同等产品/服务。官网 :www.yunzmall.com www.yunzshop.com
  7. * Date: 2021/9/22
  8. * Time: 13:37
  9. */
  10. const BASE_ROUTE = 'business';
  11. Route::group(['middleware' => ['business:', 'businessLogin:']], function () { //插件路由
  12. $base_route = BASE_ROUTE . '/{uniacid}/plugin/';
  13. /*芸客服路由*/
  14. Route::group(['prefix' => $base_route . 'YunChat/'], function () {
  15. $yun_chat_path = '\Yunshop\YunChat\manage\\';
  16. Route::any('groupGetList', $yun_chat_path . 'GroupController@getList');//客服组列表
  17. Route::any('groupSave', $yun_chat_path . 'GroupController@save');//添加编辑客服组
  18. Route::any('groupDelete', $yun_chat_path . 'GroupController@delete');//删除客服组
  19. Route::any('groupQuery', $yun_chat_path . 'GroupController@query');//检索客服组
  20. Route::any('employeeGetList', $yun_chat_path . 'EmployeeController@getList');//客服列表
  21. Route::any('employeeGetSummary', $yun_chat_path . 'EmployeeController@getSummary');//客服列表统计信息
  22. Route::any('employeeCreate', $yun_chat_path . 'EmployeeController@create');//添加客服
  23. Route::any('employeeUpdate', $yun_chat_path . 'EmployeeController@update');//编辑客服
  24. Route::any('employeeGetDetail', $yun_chat_path . 'EmployeeController@getDetail');//客服详情
  25. Route::any('employeeChangeStatus', $yun_chat_path . 'EmployeeController@changeStatus');//修改客服状态
  26. Route::any('employeeDelete', $yun_chat_path . 'EmployeeController@delete');//删除客服
  27. Route::any('employeeSetAgent', $yun_chat_path . 'EmployeeController@setAgent');//分配客服坐席
  28. Route::any('employeeRemoveAgent', $yun_chat_path . 'EmployeeController@removeAgent');//释放客服坐席
  29. Route::any('chatGetHistoryList', $yun_chat_path . 'ChatController@getHistoryList');//会话列表
  30. Route::any('chatGetChatList', $yun_chat_path . 'ChatController@getChatList');//会话消息列表
  31. Route::any('chatDeleteChat', $yun_chat_path . 'ChatController@deleteChat');//会话消息删除
  32. Route::any('commonReplyGetList', $yun_chat_path . 'CommonReplyController@getList');//快捷回复列表
  33. Route::any('commonReplyGetDetail', $yun_chat_path . 'CommonReplyController@getDetail');//快捷回复详情
  34. Route::any('commonReplySave', $yun_chat_path . 'CommonReplyController@save');//添加编辑快捷回复
  35. Route::any('commonReplyDelete', $yun_chat_path . 'CommonReplyController@delete');//删除快捷回复
  36. Route::any('setBasic', $yun_chat_path . 'SetController@basic');//获取设置信息
  37. Route::any('setBasicPost', $yun_chat_path . 'SetController@basicPost');//保存芸客服设置信息
  38. Route::any('wordsReplyGetList', $yun_chat_path . 'WordsReplyController@getList');//关键词回复列表
  39. Route::any('wordsReplyGetDetail', $yun_chat_path . 'WordsReplyController@getDetail');//获取关键词回复详情
  40. Route::any('wordsReplySave', $yun_chat_path . 'WordsReplyController@save');//添加编辑关键词回复
  41. Route::any('wordsReplyDelete', $yun_chat_path . 'WordsReplyController@delete');//删除关键词回复
  42. Route::any('wordsReplyQueryKeyWords', $yun_chat_path . 'WordsReplyController@queryKeyWords');//检索快捷回复关键词
  43. Route::any('toolbarGetList', $yun_chat_path . 'ToolBarController@getList');//聊天工具栏列表
  44. Route::any('toolbarSave', $yun_chat_path . 'ToolBarController@save');//聊天工具栏添加编辑
  45. Route::any('toolbarGetDetail', $yun_chat_path . 'ToolBarController@getDetail');//获取工具栏详情
  46. Route::any('toolbarChangeStatus', $yun_chat_path . 'ToolBarController@changeStatus');//修改聊天工具栏状态
  47. Route::any('toolbarDelete', $yun_chat_path . 'ToolBarController@delete');//删除聊天工具栏
  48. Route::any('getWechatKfSet', $yun_chat_path . 'SetController@getWechatKfSet');//设置微信客服设置
  49. Route::any('saveWechatKfSet', $yun_chat_path . 'SetController@saveWechatKfSet');//保存微信客服设置
  50. Route::any('getWechatKfAccount', $yun_chat_path . 'GroupController@getWechatKfAccount');//获取微信客服账号列表
  51. Route::any('bindWhatKf', $yun_chat_path . 'GroupController@bindWhatKf');//绑定微信客服账号
  52. Route::any('changeWechatKfStatus', $yun_chat_path . 'GroupController@changeWechatKfStatus');//开启或关闭微信客服功能
  53. Route::any('syncWechatKfEmployee', $yun_chat_path . 'EmployeeController@syncWechatKfEmployee');//同步微信客服接待员
  54. Route::any('changeWeChatKfUser', $yun_chat_path . 'EmployeeController@changeWeChatKfUser');//添加或删除客服帐号接待人员
  55. Route::post('getDepartmentMember', '\business\admin\controllers\DepartmentMemberController@getDepartmentMember');// 选择部门和成员
  56. });
  57. /*芸客服路由*/
  58. /*律师平台路由*/
  59. Route::group(['prefix' => $base_route . 'LawyerPlatform/'], function () {
  60. $lawyer_platform_path = '\Yunshop\LawyerPlatform\manage\controllers\\';
  61. Route::any('lawyerSearch', $lawyer_platform_path.'LawyerController@search');
  62. Route::any('lawyerDetail', $lawyer_platform_path.'LawyerController@detail');
  63. Route::any('lawyerEdit', $lawyer_platform_path.'LawyerController@edit');
  64. Route::any('lawyerApply', $lawyer_platform_path.'LawyerController@apply');
  65. Route::any('lawyerBlack', $lawyer_platform_path.'LawyerController@black');
  66. Route::any('getCategory', $lawyer_platform_path.'LawyerController@getCategory');
  67. Route::any('lawyerApplySearch', $lawyer_platform_path.'LawyerApplyController@search');
  68. Route::any('lawyerApplyDetail', $lawyer_platform_path.'LawyerApplyController@detail');
  69. Route::any('lawyerFirmEdit', $lawyer_platform_path.'LawyerFirmController@edit');
  70. Route::any('lawyerFirmDetail', $lawyer_platform_path.'LawyerFirmController@detail');
  71. Route::any('getOrderList', $lawyer_platform_path.'OrderListController@getList');
  72. Route::any('orderExport', $lawyer_platform_path.'OrderListController@export');
  73. Route::any('getOrderButton', $lawyer_platform_path.'OrderListController@getOrderButton');
  74. Route::any('getOrderDetail', $lawyer_platform_path.'OrderListController@getDetail');
  75. Route::any('getDividend', $lawyer_platform_path.'DividendController@search');
  76. });
  77. /*律师平台路由*/
  78. /*企业客户路由*/
  79. Route::group(['prefix' => $base_route . 'WechatCustomers/'], function () {
  80. $wechat_cunstomers_path = '\Yunshop\WechatCustomers\manage\\';
  81. Route::any('getList', $wechat_cunstomers_path . 'customer\IndexController@getList');//列表
  82. Route::any('synchBaseData', $wechat_cunstomers_path . 'customer\IndexController@synchBaseData');//同步企业微信
  83. Route::any('synchMemberBaseData', $wechat_cunstomers_path . 'customer\IndexController@synchMemberBaseData');//同步会员
  84. Route::any('getDetails', $wechat_cunstomers_path . 'customer\IndexController@getDetails');//同步会员
  85. Route::any('myCustomerList', $wechat_cunstomers_path . 'customer\MyCustomerController@index');//我的客户
  86. Route::any('myLossCustomerList', $wechat_cunstomers_path . 'customer\MyLossCustomerController@index');//我的流失客户
  87. Route::any('receive', '\Yunshop\WorkWechat\wevent\ChangeExtContactController@receive');//同步会员
  88. });
  89. /*企业客户路由*/
  90. /*群拓客路由*/
  91. Route::group(['prefix' => $base_route . 'GroupDevelopUser/'], function () {
  92. $this_path = '\Yunshop\GroupDevelopUser\manage\\';
  93. Route::post('getSetting', $this_path . 'SettingController@getSetting');//获取设置
  94. Route::post('setSetting', $this_path . 'SettingController@setSetting');//编辑设置
  95. Route::post('getGroupSetting', $this_path . 'SettingController@getGroupSetting');//获取群设置
  96. Route::post('setGroupSetting', $this_path . 'SettingController@setGroupSetting');//编辑群设置
  97. Route::any('getList', $this_path . 'GroupChatController@getList');//列表
  98. Route::any('synch', $this_path . 'GroupChatController@synch');//同步
  99. Route::any('listExport', $this_path . 'GroupChatController@listExport');//导出
  100. Route::any('getGroupMembers', $this_path . 'GroupChatController@getGroupMembers');//获取群会员
  101. Route::any('saveQrcodeImg', $this_path . 'GroupChatController@saveQrcodeImg');//上传二维码
  102. Route::any('getNewPost', $this_path . 'PosterController@getPoster');//生成海报
  103. Route::any('posterList', $this_path . 'PosterController@posterList');//海报列表
  104. Route::any('deletePost', $this_path . 'PosterController@deletePoster');//删除海报
  105. Route::any('deleteAllPoster', $this_path . 'PosterController@deleteAllPoster');//删除所有满足搜索条件的海报
  106. Route::any('refreshPost', $this_path . 'PosterController@refreshPoster');//重新生成海报
  107. Route::any('bindUser', $this_path . 'GroupChatController@bindUser');//生成海报
  108. Route::any('getGroupEmployees', $this_path . 'GroupChatController@getGroupEmployees');//生成海报
  109. Route::any('groupMemberListExport', $this_path . 'GroupChatController@groupMemberListExport');//生成海报
  110. Route::any('groupEmployeeListExport', $this_path . 'GroupChatController@groupEmployeeListExport');//生成海报
  111. Route::any('bindExternalContacts', $this_path . 'GroupChatController@bindExternalContacts');//绑定外部联系人
  112. Route::any('getMemberList', $this_path . 'GroupChatController@getMemberList');//获取商城会员
  113. // 群标签
  114. Route::post('saveGroupChatTag', $this_path . 'GroupChatController@saveGroupChatTag');// 群聊绑定标签
  115. Route::post('getGroupList', $this_path . 'GroupChatTagController@getGroupList');// 获取标签组列表
  116. Route::post('getTagList', $this_path . 'GroupChatTagController@getTagList');// 获取标签列表
  117. Route::post('getAllTag', $this_path . 'GroupChatTagController@getAllTag');// 获取所有标签
  118. Route::post('getAllGroupTag', $this_path . 'GroupChatTagController@getAllGroupTag');// 获取整合信息
  119. Route::post('getGroupDetail', $this_path . 'GroupChatTagController@getGroupDetail');// 获取标签组详情
  120. Route::post('getTagDetail', $this_path . 'GroupChatTagController@getTagDetail');// 获取标签详情
  121. Route::post('saveTag', $this_path . 'GroupChatTagController@saveTag');// 保存标签
  122. Route::post('saveGroup', $this_path . 'GroupChatTagController@saveGroup');// 保存标签组
  123. Route::post('delGroup', $this_path . 'GroupChatTagController@delGroup');// 删除标签组
  124. Route::post('delTag', $this_path . 'GroupChatTagController@delTag');// 删除标签
  125. });
  126. /*群拓客路由*/
  127. /*群拓客奖励路由*/
  128. Route::group(['prefix' => $base_route . 'GroupReward/'], function () {
  129. $this_path = '\Yunshop\GroupReward\manage\\';
  130. Route::post('getActivityList', $this_path . 'GroupRewardController@getActivityList');// 活动管理数据接口
  131. Route::post('getRewardDetail', $this_path . 'GroupRewardController@getRewardDetail');// 活动群聊数据接口
  132. Route::post('getActivityDetail', $this_path . 'GroupRewardController@getActivityDetail');// 活动详细信息接口
  133. Route::post('setGroupActivity', $this_path . 'GroupRewardController@setGroupActivity');// 保存活动
  134. Route::post('setActivityStatus', $this_path . 'GroupRewardController@setActivityStatus');// 结束活动
  135. Route::post('searchGroup', $this_path . 'GroupRewardController@searchGroup');// 搜索活动
  136. Route::post('searchCoupon', $this_path . 'GroupRewardController@searchCoupon');// 搜索优惠券
  137. Route::any('rewardExport', $this_path . 'GroupRewardController@export');// 导出
  138. });
  139. /*群拓客奖励路由*/
  140. /*侧边栏路由*/
  141. Route::group(['prefix' => $base_route . 'WechatChatSidebar/'], function () {
  142. $this_path = '\Yunshop\WechatChatSidebar\manage\\';
  143. Route::any('getDepartmentMember', '\business\admin\controllers\DepartmentMemberController@getDepartmentMember'); //选择部门和成员
  144. Route::any('getData', $this_path . 'ListController@getData');//列表
  145. Route::any('getLinkPower', $this_path . 'ListController@getLinkPower');//获取链接权限角色
  146. Route::any('editPower', $this_path . 'ListController@editPower');//修改链接权限
  147. });
  148. /*侧边栏路由*/
  149. /*会话存档路由*/
  150. Route::group(['prefix' => $base_route . 'WorkSession/'], function () {
  151. $work_session_path = '\Yunshop\WorkSession\manage\\';
  152. Route::get('basicInfo', $work_session_path . 'SetController@basicInfo');//员工列表
  153. Route::get('basicSave', $work_session_path . 'SetController@basicSave');//员工列表
  154. Route::get('getList', $work_session_path . 'MessageController@getList');//员工列表
  155. Route::get('switchStaff', $work_session_path . 'MessageController@switchStaff');//切换员工、消息类型,搜索群聊或者私聊
  156. Route::post('getChatMsg', $work_session_path . 'MessageController@getChatMsg');//获取群聊消息列表
  157. Route::post('getPrivateChatMsg', $work_session_path . 'MessageController@getPrivateChatMsg');//获取私聊消息列表
  158. });
  159. /*会话存档路由*/
  160. /*欢迎语路由*/
  161. Route::group(['prefix' => $base_route . 'WelcomeWords/'], function () {
  162. $this_path = '\Yunshop\WelcomeWords\manage\\';
  163. Route::any('getDepartmentMember', '\business\admin\controllers\DepartmentMemberController@getDepartmentMember'); //选择部门和成员
  164. Route::any('getList', $this_path . 'ListController@listData');//欢迎语列表
  165. Route::any('detail', $this_path . 'ListController@detail');//欢迎语详情
  166. Route::any('save', $this_path . 'ListController@save');//欢迎语保存
  167. Route::any('search', $this_path . 'ListController@search');//部门成员搜索
  168. Route::any('delete', $this_path . 'ListController@delete');//欢迎语删除
  169. });
  170. /*欢迎语路由*/
  171. /*企业客户标签路由*/
  172. Route::group(['prefix' => $base_route . 'WorkWechatTag/'], function () {
  173. $this_path = '\Yunshop\WorkWechatTag\business\\';
  174. Route::any('getTagSetting', $this_path . 'SettingController@getSetting');//获取标签设置
  175. Route::any('setTagSetting', $this_path . 'SettingController@setSetting');//编辑标签设置
  176. Route::any('tagList', $this_path . 'TagController@tagList');//标签列表
  177. Route::any('tagDetail', $this_path . 'TagController@tagDetail');//标签详情
  178. Route::any('addTag', $this_path . 'TagController@addTag');//添加标签
  179. Route::any('editTag', $this_path . 'TagController@editTag');//编辑标签
  180. Route::any('deleteTag', $this_path . 'TagController@deleteTag');//删除标签
  181. Route::any('tagGroupList', $this_path . 'TagGroupController@tagGroupList');//标签组列表
  182. Route::any('tagGroupDetail', $this_path . 'TagGroupController@tagGroupDetail');//标签组详情
  183. Route::any('addTagGroup', $this_path . 'TagGroupController@addTagGroup');//添加标签组
  184. Route::any('editTagGroup', $this_path . 'TagGroupController@editTagGroup');//编辑标签组
  185. Route::any('deleteTagGroup', $this_path . 'TagGroupController@deleteTagGroup');//删除标签组
  186. Route::any('groupChooseList', $this_path . 'TagGroupController@groupChooseList');//标签组选择栏
  187. Route::any('refreshShopTag', $this_path . 'RefreshController@refreshShopTag');//同步商城标签
  188. Route::any('refreshWechatTag', $this_path . 'RefreshController@refreshWechatTag');//同步企业微信客户标签
  189. });
  190. /*企业客户标签路由*/
  191. /*企业客户好友裂变路由*/
  192. Route::group(['prefix' => $base_route . 'CustomerIncrease/'], function () {
  193. $this_path = '\Yunshop\CustomerIncrease\business\\';
  194. Route::any('activityList', $this_path . 'ActivityController@activityList');//活动列表
  195. Route::any('activityDetail', $this_path . 'ActivityController@activityDetail');//活动详情
  196. Route::any('activityAdd', $this_path . 'ActivityController@activityAdd');//创建活动
  197. Route::any('activityEdit', $this_path . 'ActivityController@activityEdit');//编辑活动
  198. Route::any('activityClose', $this_path . 'ActivityController@activityClose');//结束活动
  199. Route::any('activityCount', $this_path . 'ActivityController@activityCount');//活动助力统计
  200. Route::any('activityCode', $this_path . 'ActivityController@activityCode');//活动推广码
  201. Route::any('searchTag', $this_path . 'ActivityController@searchTag');//查询企业微信标签
  202. Route::any('searchCoupon', $this_path . 'ActivityController@searchCoupon');//查询优惠券
  203. Route::any('memberList', $this_path . 'CountController@memberList');//参与记录列表
  204. Route::any('activityAnalysis', $this_path . 'CountController@activityAnalysis');//统计概况
  205. Route::any('posterList', $this_path . 'PosterController@posterList');//海报生成记录列表
  206. Route::any('posterDelete', $this_path . 'PosterController@posterDelete');//删除海报
  207. Route::any('posterRefresh', $this_path . 'PosterController@posterRefresh');//重新生成海报
  208. Route::any('deleteManyPoster', $this_path . 'PosterController@deleteManyPoster');//批量删除海报
  209. Route::any('rewardList', $this_path . 'RewardController@rewardList');//奖励记录列表
  210. Route::any('rewardByPeople', $this_path . 'RewardController@rewardByPeople');//手动发放奖励
  211. Route::any('searchStaff', '\business\admin\controllers\StaffController@searchStaff');//查询企业微信关联员工
  212. });
  213. /*企业客户好友裂变路由*/
  214. /*sop任务*/
  215. Route::group(['prefix' => $base_route . 'SopTask/'], function () {
  216. $this_path = '\Yunshop\SopTask\business\controller\\';
  217. Route::post('getTaskList', $this_path . 'TaskListController@getTaskList');// 任务列表
  218. Route::post('getLogList', $this_path . 'TaskListController@getLogList');// 推送列表
  219. Route::post('getTaskDetail', $this_path . 'TaskListController@getTaskDetail');// 任务详情
  220. Route::post('saveTask', $this_path . 'TaskListController@saveTask');// 保存任务
  221. Route::post('setTaskStatus', $this_path . 'TaskListController@setTaskStatus');// 修改任务状态
  222. Route::post('delTask', $this_path . 'TaskListController@delTask');// 删除任务
  223. Route::post('getTagList', $this_path . 'TaskListController@getTagList');// 获取企业标签
  224. Route::get('getSet', $this_path . 'TaskListController@getSet');// 获取基础配置
  225. Route::any('taskExport', $this_path . 'TaskListController@taskExport');// 导出任务
  226. Route::any('logExport', $this_path . 'TaskListController@logExport');// 导出推送日志
  227. Route::post('checkGroupChat', $this_path . 'GroupChatController@checkGroupChat');// 查看群数量
  228. Route::post('searchStaff', $this_path . 'StaffController@searchStaff');// 查询企业微信关联员工
  229. Route::post('searchGroupLeader', $this_path . 'GroupChatController@searchGroupLeader');// 获取群主列表
  230. Route::post('getAllTagGroup', $this_path . 'GroupChatController@getAllTagGroup');// 获取所有标签组
  231. Route::post('searchGroupChat', $this_path . 'GroupChatController@searchGroupChat');// 查询群聊
  232. Route::post('getAllTag', $this_path . 'GroupChatTagController@getAllTag');// 获取所有标签
  233. });
  234. /*sop任务*/
  235. /*话术库路由*/
  236. Route::group(['prefix' => $base_route . 'SpeechcraftLibrary/'], function () {
  237. $this_path = '\Yunshop\SpeechcraftLibrary\business\controller\\';
  238. Route::post('getDepartmentMember', '\business\admin\controllers\DepartmentMemberController@getDepartmentMember'); //选择部门和成员
  239. Route::post('getGroupList', $this_path . 'MaterialGroupController@getGroupList');// 获取分组列表
  240. Route::post('getGroupInfo', $this_path . 'MaterialGroupController@getGroupInfo');// 获取分组信息
  241. Route::post('saveGroup', $this_path . 'MaterialGroupController@saveGroup');// 保存分组信息
  242. Route::post('delGroup', $this_path . 'MaterialGroupController@delGroup');// 删除分组
  243. Route::post('getMaterialList', $this_path . 'MaterialController@getMaterialList');// 获取素材列表
  244. Route::post('getMaterialInfo', $this_path . 'MaterialController@getMaterialInfo');// 获取素材信息
  245. Route::post('saveMaterial', $this_path . 'MaterialController@saveMaterial');// 保存素材
  246. Route::post('delMaterial', $this_path . 'MaterialController@delMaterial');// 删除素材
  247. Route::post('editMaterialStatus', $this_path . 'MaterialController@editMaterialStatus');// 修改素材状态
  248. Route::post('getSet', $this_path . 'SetController@index');// 获取基础设置
  249. Route::post('editSet', $this_path . 'SetController@editSet');// 修改基础设置
  250. });
  251. /*话术库路由*/
  252. /*让利涨粉*/
  253. Route::group(['prefix' => $base_route . 'DiscountHarvestFans/'], function () {
  254. $this_path = '\Yunshop\DiscountHarvestFans\business\controller\\';
  255. Route::post('getSet', $this_path . 'SetController@getSet');// 获取设置
  256. Route::post('saveSet', $this_path . 'SetController@saveSet');// 保存设置
  257. Route::post('getStaffList', $this_path . 'StaffController@getStaffList');// 获取员工列表
  258. Route::post('getTagList', $this_path . 'TagController@getTagList');// 获取标签列表
  259. });
  260. /*让利涨粉*/
  261. /*pos收银*/
  262. Route::group(['prefix' => $base_route . 'ShopPos/'], function () {
  263. $this_path = '\Yunshop\ShopPos\business\\';
  264. Route::post('getSetting', $this_path . 'SettingController@index');//获取设置
  265. Route::post('editSetting', $this_path . 'SettingController@edit');//编辑设置
  266. Route::post('searchMember', '\business\admin\controllers\StaffController@businessGetMemberByMobile');//查询会员
  267. });
  268. /*pos收银*/
  269. /*众筹活动*/
  270. Route::group(['prefix' => $base_route . 'Crowdfunding/'], function () {
  271. $this_path = '\Yunshop\Crowdfunding\business\\';
  272. Route::any('activityChannelIndex', $this_path . 'ActivityChannelController@index');// 活动列表
  273. Route::any('activityChannelPromotes', $this_path . 'ActivityChannelController@promotes');// 推广活动
  274. Route::any('activityMemberIndex', $this_path . 'ActivityMemberController@index');// 报名活动数据
  275. Route::any('activityOrderIndex', $this_path . 'ActivityOrderController@index');// 订单管理
  276. });
  277. /*众筹活动*/
  278. /*拓客雷达*/
  279. Route::group(['prefix' => $base_route . 'CustomerRadar/'], function () {
  280. $this_path = '\Yunshop\CustomerRadar\business\controller\\';
  281. Route::post('getSet', $this_path . 'SetController@getSet');// 获取设置
  282. Route::post('saveSet', $this_path . 'SetController@saveSet');// 保存设置
  283. Route::post('getMemberList', $this_path . 'SetController@getMemberList');// 会员列表
  284. Route::post('getDepartmentMember', '\business\admin\controllers\DepartmentMemberController@getDepartmentMember');// 选择部门和成员
  285. });
  286. /*拓客雷达*/
  287. /*客户管理*/
  288. Route::group(['prefix' => $base_route . 'CustomerManage/'], function () {
  289. $this_path = '\Yunshop\CustomerManage\business\controller\\';
  290. Route::post('getCustomerBasicInfo', $this_path . 'CustomerController@getCustomerBasicInfo');// 客户基本信息
  291. Route::post('getCustomerDynamicList', $this_path . 'CustomerController@getCustomerDynamicList');// 获取客户动态信息
  292. Route::post('getCustomerBrowseList', $this_path . 'CustomerController@getCustomerBrowseList');// 获取客户浏览轨迹
  293. Route::post('getMyCustomerList', $this_path . 'CustomerController@getMyCustomerList');// 我的客户列表
  294. Route::post('getDepatmentCustomerList', $this_path . 'CustomerController@getDepatmentCustomerList');// 部门客户列表
  295. Route::post('getPublicCustomerList', $this_path . 'CustomerController@getPublicCustomerList');// 公海客户列表
  296. Route::post('saveCustomer', $this_path . 'CustomerController@saveCustomer');// 保存客户资料
  297. Route::post('callCustomer', $this_path . 'CustomerController@callCustomer');// 联系客户
  298. Route::post('followCustomer', $this_path . 'CustomerController@followCustomer');// 关注客户
  299. Route::post('setTag', $this_path . 'CustomerController@setTag');// 设置标签
  300. Route::post('setProgress', $this_path . 'CustomerController@setProgress');// 设置进展
  301. Route::post('addFollowup', $this_path . 'CustomerController@addFollowup');// 添加跟进记录
  302. Route::post('receiveOneCustomer', $this_path . 'CustomerController@receiveOneCustomer');// 领取单个客户
  303. Route::post('distributionOneCustomer', $this_path . 'CustomerController@distributionOneCustomer');// 分配单个客户
  304. Route::post('transferOneCustomer', $this_path . 'CustomerController@transferOneCustomer');// 转让单个客户
  305. Route::post('sharedOneCustomer', $this_path . 'CustomerController@sharedOneCustomer');// 共享单个客户
  306. Route::post('abandonOneCustomer', $this_path . 'CustomerController@abandonOneCustomer');// 放弃单个客户
  307. Route::post('receiveMoreCustomer', $this_path . 'CustomerController@receiveMoreCustomer');// 批量领取
  308. Route::post('distributionMoreCustomer', $this_path . 'CustomerController@distributionMoreCustomer');// 批量分配
  309. Route::post('transferMoreCustomer', $this_path . 'CustomerController@transferMoreCustomer');// 批量转让
  310. Route::post('sharedMoreCustomer', $this_path . 'CustomerController@sharedMoreCustomer');// 批量共享
  311. Route::post('abandonMoreCustomer', $this_path . 'CustomerController@abandonMoreCustomer');// 批量放弃
  312. Route::any('importTemplate', $this_path . 'CustomerController@importTemplate');// 导入模板
  313. Route::any('importCustomer', $this_path . 'CustomerController@importCustomer');// 导入客户
  314. Route::post('getImportList', $this_path . 'CustomerController@getImportList');// 获取导入记录列表
  315. Route::post('getImportDetailList', $this_path . 'CustomerController@getImportDetailList');// 获取导入详细列表
  316. Route::post('synchCustomer', $this_path . 'CustomerController@synchCustomer');// 同步客户
  317. Route::post('getIndustryList', $this_path . 'IndustryController@getIndustryList');// 获取行业列表
  318. Route::post('saveIndustry', $this_path . 'IndustryController@saveIndustry');// 保存行业
  319. Route::post('delIndustry', $this_path . 'IndustryController@delIndustry');// 删除行业
  320. Route::post('getProgressList', $this_path . 'ProgressController@getProgressList');// 获取进展列表
  321. Route::post('saveProgress', $this_path . 'ProgressController@saveProgress');// 保存进展
  322. Route::post('delProgress', $this_path . 'ProgressController@delProgress');// 删除进展
  323. Route::post('getSourceList', $this_path . 'SourceController@getSourceList');// 获取来源列表
  324. Route::post('saveSource', $this_path . 'SourceController@saveSource');// 保存来源
  325. Route::post('delSource', $this_path . 'SourceController@delSource');// 删除来源
  326. Route::post('getSet', $this_path . 'SetController@getSet');// 获取基本设置菜单所有信息
  327. Route::post('getBasicSet', $this_path . 'SetController@getBasicSet');// 获取基本设置
  328. Route::post('saveSet', $this_path . 'SetController@saveSet');// 保存设置
  329. Route::post('saveStrategy', $this_path . 'SetController@saveStrategy');// 保存回收策略
  330. Route::post('getTagList', $this_path . 'TagController@getTagList');// 获取标签列表
  331. Route::any('getDepartmentMember', '\business\admin\controllers\DepartmentMemberController@getDepartmentMember'); //选择部门和成员
  332. Route::post('getStaffList', $this_path . 'StaffController@getStaffList'); //根据部门id获取员工列表
  333. Route::post('getCustomerAllList', $this_path . 'CustomerAllController@index');// 获取全部客户列表
  334. Route::post('getStatisticsList', $this_path . 'CustomerStatisticsController@index'); //客户统计
  335. Route::any('getDepartmentList', $this_path . 'CustomerStatisticsController@getDepartmentList'); //部门列表
  336. });
  337. /*客户管理*/
  338. /*外呼电销系统*/
  339. Route::group(['prefix' => $base_route . 'OutboundSystem/'], function () {
  340. $this_path = '\Yunshop\OutboundSystem\business\controllers\\';
  341. Route::post('getRecordList', $this_path . 'CallRecordController@getRecordList');// 获取通话记录列表
  342. Route::post('getStatisticsList', $this_path . 'TrafficStatisticsController@getStatisticsList');// 获取话务统计列表
  343. Route::post('getSet', $this_path . 'SetController@getSet');// 获取基础设置
  344. Route::post('saveSet', $this_path . 'SetController@saveSet');// 保存设置
  345. Route::post('getDepartmentList', $this_path . 'DepartmentController@getDepartmentList');// 保存设置
  346. Route::any('getMyRecordList', $this_path . 'CallRecordController@getMyRecordList');// 获取我的通话记录列表
  347. Route::any('staffAgent/agentList', $this_path . 'StaffAgentController@agentList');//获取员工列表
  348. Route::post('staffAgent/setAgent', $this_path . 'StaffAgentController@setAgent');// 保存员工工号
  349. });
  350. /*外呼电销系统*/
  351. /*爆客码*/
  352. Route::group(['prefix' => $base_route . 'DrainageCode/'], function () {
  353. $this_path = '\Yunshop\DrainageCode\business\controllers\\';
  354. Route::post('saveCode', $this_path . 'CodeController@saveCode');// 保存爆客码
  355. Route::post('copyCode', $this_path . 'CodeController@copyCode');// 复制爆客码
  356. Route::post('delCode', $this_path . 'CodeController@delCode');// 删除爆客码
  357. Route::post('getDetail', $this_path . 'CodeController@getDetail');// 获取爆客码详情
  358. Route::post('getList', $this_path . 'CodeController@getList');// 获取爆客码列表
  359. Route::post('getQrCode', $this_path . 'CodeController@getQrCode');// 获取二维码
  360. Route::post('getMiniQrCode', $this_path . 'CodeController@getMiniQrCode');// 获取小程序码
  361. Route::post('getTagList', $this_path . 'TagController@getTagList');// 获取标签列表
  362. Route::post('getDepartmentMember', '\business\admin\controllers\DepartmentMemberController@getDepartmentMember');// 选择部门和成员
  363. });
  364. /*爆客码*/
  365. /*员工审批路由*/
  366. Route::group(['prefix' => $base_route . 'StaffAudit/'], function () {
  367. $this_path = '\Yunshop\StaffAudit\business\controllers\\';
  368. //基础设置
  369. Route::post('getSetting', $this_path . 'SettingController@getSetting');// 获取设置
  370. Route::post('saveSetting', $this_path . 'SettingController@saveSetting');// 编辑设置
  371. Route::any('getDepartmentMember', '\business\admin\controllers\DepartmentMemberController@getDepartmentMember');// 选择部门和成员
  372. //审批记录
  373. Route::post('getAuditLog', $this_path . 'AuditLogController@getList');// 获取审批记录
  374. Route::post('getAuditLogDepartmentList', $this_path . 'AuditLogController@getDepartmentList');// 获取部门列表
  375. //奖励记录
  376. Route::post('getRewardLog', $this_path . 'RewardLogController@getList');// 获取审批记录
  377. Route::post('getRewardLogDepartmentList', $this_path . 'RewardLogController@getDepartmentList');// 获取部门列表
  378. });
  379. /*员工审批路由*/
  380. /*商机管理*/
  381. Route::group(['prefix' => $base_route . 'opportunityManagement/'], function () {
  382. $this_path = '\Yunshop\OpportunityManagement\manage\\';
  383. Route::any('getStatus', $this_path . 'BasicSettingsController@getStatus');// 获取商机状态
  384. Route::any('addStatus', $this_path . 'BasicSettingsController@AddStatus');// 添加商机状态
  385. Route::any('getType', $this_path . 'BasicSettingsController@getType');// 获取商机类型
  386. Route::any('addType', $this_path . 'BasicSettingsController@AddType');// 添加商机类型
  387. Route::any('delStatus', $this_path . 'BasicSettingsController@delStatus');// 删除商机状态
  388. Route::any('delType', $this_path . 'BasicSettingsController@delType');// 删除商机类型
  389. Route::any('upload', $this_path . 'OpportunityManagementController@upload');// 上传附件
  390. Route::any('addOpportunity', $this_path . 'OpportunityManagementController@addOpportunity');// 新建商机
  391. Route::any('getOpportunity', $this_path . 'OpportunityManagementController@getOpportunity');// 获取商机信息
  392. Route::any('editOpportunity', $this_path . 'OpportunityManagementController@editOpportunity');// 编辑商机
  393. Route::any('delOpportunity', $this_path . 'BasicSettingsController@delOpportunity');// 删除商机
  394. Route::any('myOpportunityList', $this_path . 'OpportunityManagementController@myOpportunityList');// 我的商机列表
  395. Route::any('departmentOpportunityList', $this_path . 'OpportunityManagementController@DepartmentOpportunityList');// 部门商机列表
  396. Route::any('allOpportunityList', $this_path . 'OpportunityManagementController@allOpportunityList');// 全部商机列表
  397. Route::any('editOpportunityType', $this_path . 'OpportunityManagementController@editOpportunityType');// 修改商机状态
  398. Route::any('editOpportunityStatus', $this_path . 'OpportunityManagementController@editOpportunityStatus');// 修改商机类型
  399. Route::any('getCustomerList', $this_path . 'OpportunityManagementController@getCustomerList');// 获取客户列表
  400. Route::any('delAnnex', $this_path . 'OpportunityManagementController@delAnnex');// 删除附件
  401. Route::any('getStatisticsList', $this_path . 'OpportunityManagementController@getStatisticsList');// 商机统计
  402. Route::any('getDepartmentList', $this_path . 'OpportunityManagementController@getDepartmentList');// 部门列表
  403. });
  404. /*商机管理*/
  405. });
  406. Route::group(['namespace' => 'admin\controllers'], function () {
  407. Route::group(['prefix' => BASE_ROUTE . '/{uniacid}/admin/', 'middleware' => ['business:']], function () {
  408. Route::any('manageBusiness', 'BusinessController@manageBusiness'); //管理企业
  409. Route::any('businessList', 'BusinessController@businessList'); //企业管理列表
  410. Route::any('addBussiness', 'BusinessController@addBussiness'); //创建企业
  411. Route::any('getBusinessCommonData', 'BusinessController@getBusinessCommonData'); //获取公共参数
  412. Route::any('pluginEnabled', 'BusinessController@pluginEnabled'); //获取企业开启的插件参数
  413. Route::any('managerList', 'ManagerController@managerList'); //管理员列表
  414. Route::any('changeBusinessOwner', 'ManagerController@changeBusinessOwner'); //企业转让
  415. Route::any('addManager', 'ManagerController@addManager'); //添加管理员
  416. Route::any('deleteManager', 'ManagerController@deleteManager'); //删除管理员
  417. Route::any('cleanMemberCache', 'SettingController@cleanMemberCache'); //清除会员缓存
  418. Route::any('uploadPic', 'UploadController@uploadPic'); //上传附件
  419. Route::any('downloadFile', 'UploadController@downloadFile'); //下载文件
  420. Route::any('getAddressList', 'AddressController@getAddressList'); //地址列表
  421. });
  422. Route::get( BASE_ROUTE . '/{uniacid}/admin/message/test','NoticeController@ttt'); //消息通知测试
  423. Route::group(['prefix' => BASE_ROUTE . '/{uniacid}/admin/', 'middleware' => ['business:', 'businessLogin:']], function () {
  424. Route::any('getBusinessSurvey', 'SettingController@getBusinessSurvey'); //企业概况
  425. Route::any('cleanBusinessCache', 'SettingController@cleanBusinessCache'); //清除企业缓存
  426. Route::any('businessQyWxSetting', 'SettingController@businessQyWxSetting'); //企业微信设置
  427. Route::any('editBussiness', 'SettingController@editBussiness'); //编辑企业
  428. //企业消息通知
  429. Route::get('message/unread','NoticeController@unread'); //未读
  430. Route::get('message/read','NoticeController@read'); //已读
  431. Route::get('message/waitHandle','NoticeController@waitHandle'); //待处理列表
  432. Route::get('message/allAppModule','NoticeController@allAppModule'); //消息应用模块
  433. Route::any('message/markRead','NoticeController@markRead'); //操作已读
  434. Route::any('message/batchMarkRead','NoticeController@batchMarkRead'); //操作全部已读
  435. Route::any('message/alreadyHandle','NoticeController@alreadyHandle'); //已处理
  436. Route::any('message/laterHandle','NoticeController@laterHandle'); //加入待处理
  437. Route::any('getDepatmemtList', 'DepartmentController@getDepatmemtList'); //获取部门列表
  438. Route::any('createDepartment', 'DepartmentController@createDepartment'); //创建部门
  439. Route::any('updateDepartment', 'DepartmentController@updateDepartment'); //编辑部门
  440. Route::any('deleteDepartment', 'DepartmentController@deleteDepartment'); //删除部门
  441. Route::any('refreshDepartmentList', 'DepartmentController@refreshDepartmentList'); //从企业微信同步部门列表到本地
  442. Route::any('pushDepartment', 'DepartmentController@pushDepartment'); //推送部门列表到企业微信
  443. Route::any('getStaffList', 'StaffController@getStaffList'); //根据部门id获取员工列表
  444. Route::any('refreshStaffList', 'StaffController@refreshStaffList'); //从企业微信同步员工列表
  445. // Route::any($base_route . 'pushStaff', 'StaffController@pushStaff'); //推送员工到企业微信
  446. Route::any('setDepartmentLeader', 'StaffController@setDepartmentLeader'); //设置部门领导
  447. Route::any('createStaff', 'StaffController@createStaff'); //创建员工
  448. Route::any('updateStaff', 'StaffController@updateStaff'); //编辑员工
  449. Route::any('deleteStaff', 'StaffController@deleteStaff'); //禁用员工
  450. Route::any('businessGetMemberByMobile', 'StaffController@businessGetMemberByMobile'); //根据手机号精确查找会员
  451. Route::any('searchStaff', 'StaffController@searchStaff'); //查找企业员工
  452. Route::any('getAuthList', 'AuthController@getAuthList'); //获取权限列表
  453. Route::any('setAuth', 'AuthController@setAuth'); //设置权限
  454. Route::any('getApplicationList', 'ApplicationController@getApplicationList'); //应用中心
  455. Route::any('getArea', 'AreaController@index'); //获取地址
  456. Route::any('streetSet', 'AreaController@openStreet'); //街道设置
  457. Route::any('intArea', 'AreaController@init'); //初始化地址
  458. });
  459. });
  460. Route::group(['namespace' => 'frontend\controllers'], function () {
  461. Route::any('business/{uniacid}/frontend/qyWxCallback', 'WxCallbackController@qyWxCallback'); //企业微信通知
  462. Route::any('/{uniacid}/frontend/qyWxCallback', 'WxCallbackController@qyWxCallback'); //企业微信通知
  463. });
  464. //企业微信客服,接收事件服务器回调地址
  465. Route::any('business/{uniacid}/plugin/YunChat/wechatKfCallback', '\Yunshop\YunChat\manage\WechatKfCallbackController@wechatKfCallback');
  466. //芸签短链
  467. Route::group(['prefix' => 'sign/'], function () {
  468. Route::any('s', '\Yunshop\YunSign\frontend\ShortUrlController@index');
  469. });