admin.php 55 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890
  1. <?php
  2. use app\common\middleware\AdminAuthMiddleware;
  3. use app\common\middleware\AdminTokenMiddleware;
  4. use app\common\middleware\AllowOriginMiddleware;
  5. use app\common\middleware\InstallMiddleware;
  6. use app\common\middleware\LogMiddleware;
  7. use think\facade\Route;
  8. Route::group(config('admin.admin_prefix'), function () {
  9. Route::miss(function () {
  10. $DB = DIRECTORY_SEPARATOR;
  11. return view(app()->getRootPath() . 'public' . $DB . 'system.html');
  12. });
  13. })->middleware(InstallMiddleware::class);
  14. Route::group(config('admin.api_admin_prefix') . '/', function () {
  15. Route::group(function () {
  16. //短信
  17. Route::group('sms', function () {
  18. //保存配置 登录
  19. Route::post('config', '.Sms/save_basics')->name('smsLogin');
  20. //短信发送记录
  21. Route::get('record', '.Sms/record')->name('smsRecord');
  22. //短信账号数据
  23. Route::get('data', '.Sms/data')->name('smsData');
  24. //查看是否登录
  25. Route::get('is_login', '.Sms/is_login');
  26. //退出登录
  27. Route::get('logout', '.Sms/logout')->name('smsLogout');
  28. //发送短信验证码
  29. Route::post('captcha', '.Sms/captcha')->name('smsCaptcha');
  30. //修改/注册短信平台账号
  31. Route::post('register', '.Sms/save')->name('smsSave');
  32. //短信模板列表
  33. Route::get('temp', '.SmsTemplate/template')->name('smsTemplate');
  34. //短信模板申请表单
  35. Route::get('temp/form', '.SmsTemplate/form')->name('smsCreateForm');
  36. //短信模板申请
  37. Route::post('temp', '.SmsTemplate/apply')->name('smsCreate');
  38. //公共短信模板列表
  39. Route::get('public', '.SmsTemplate/public')->name('smsPublicTemplate');
  40. //剩余条数
  41. Route::get('number', '.SmsPay/number')->name('smsNumber');
  42. //获取支付套餐
  43. Route::get('price', '.SmsPay/price')->name('smsPrice');
  44. //获取支付码
  45. Route::post('pay_code', '.SmsPay/pay')->name('smsPay');
  46. //修改密码
  47. Route::post('change_password', '.Sms/changePassword')->name('smsChangePassword');
  48. //修改簽名
  49. Route::post('change_sign', '.Sms/changeSign')->name('smsChangeSign');
  50. })->prefix('admin.system.sms');
  51. //配置分类
  52. Route::group('config/classify', function () {
  53. Route::get('create/table', '/createTable')->name('configClassifyCreateForm');
  54. Route::post('create', '/create')->name('configClassifyCreate');
  55. Route::delete('delete/:id', '/delete')->name('configClassifyDelete');
  56. Route::post('update/:id', '/update')->name('configClassifyUpdate');
  57. Route::get('update/table/:id', '/updateTable')->name('configClassifyUpdateForm');
  58. Route::post('status/:id', '/switchStatus')->name('configClassifySwitchStatus');
  59. Route::get('lst', '/lst')->name('configClassifyLst');
  60. })->prefix('admin.system.config.ConfigClassify');
  61. Route::get('menus', 'admin.system.auth.Menu/menus');
  62. //配置
  63. Route::group('config/setting', function () {
  64. Route::get('create/table', '/createTable')->name('configSettingCreateForm');
  65. Route::post('create', '/create')->name('configSettingCreate');
  66. Route::post('update/:id', '/update')->name('configSettingUpdate');
  67. Route::get('update/table/:id', '/updateTable')->name('configSettingUpdateForm');
  68. Route::post('status/:id', '/switchStatus')->name('configSettingSwitchStatus');
  69. Route::get('lst', '/lst')->name('configSettingLst');
  70. Route::delete('delete/:id', '/delete')->name('configSettingDelete');
  71. Route::post('upload_file/:field', '/upload')->name('configUpload');
  72. })->prefix('admin.system.config.Config');
  73. Route::group('config/others', function () {
  74. Route::get('lst', 'ConfigOthers/lst')->name('configOthersSettingLst');
  75. Route::post('update', 'ConfigOthers/update')->name('configOthersSettingUpdate');
  76. Route::get('group_buying', 'ConfigOthers/getGroupBuying')->name('configOthersGroupBuyingDetail');
  77. Route::post('group_buying', 'ConfigOthers/setGroupBuying')->name('configOthersGroupBuyingUpdate');
  78. })->prefix('admin.system.config.');
  79. Route::get('config/:key', 'admin.system.config.Config/form')->name('configForm');
  80. Route::post('config/save/:key', 'admin.system.config.ConfigValue/save')->name('configSave');
  81. //组合数据
  82. Route::group('group', function () {
  83. Route::get('lst', '/lst')->name('groupLst');
  84. Route::post('create', '/create')->name('groupCreate');
  85. Route::post('update/:id', '/update')->name('groupUpdate');
  86. Route::get('create/table', '/createTable')->name('groupCreateForm');
  87. Route::get('update/table/:id', '/updateTable')->name('groupUpdateForm');
  88. Route::get('detail/:id', '/get')->name('groupDetail');
  89. Route::get('data/lst/:groupId', 'Data/lst')->name('groupDataLst');
  90. Route::get('data/create/table/:groupId', 'Data/createTable')->name('groupDataCreateForm');
  91. Route::post('data/create/:groupId', 'Data/create')->name('groupDataCreate');
  92. Route::get('data/update/table/:groupId/:id', 'Data/updateTable')->name('groupDataUpdateForm');
  93. Route::post('data/update/:groupId/:id', 'Data/update')->name('groupDataUpdate');
  94. Route::delete('data/delete/:id', 'Data/delete')->name('groupDataDelete');
  95. Route::post('data/status/:id', 'Data/changeStatus')->name('groupDataChangeStatus');
  96. })->prefix('admin.system.groupData.Group');
  97. //附件管理
  98. Route::group('system/attachment', function () {
  99. Route::get('lst', '/getList')->name('systemAttachmentLst');
  100. Route::delete('delete', '/delete')->name('systemAttachmentDelete');
  101. Route::post('category', '/batchChangeCategory')->name('systemAttachmentBatchChangeCategory');
  102. Route::get('update/:id/form', '/updateForm')->name('systemAttachmentUpdateForm');
  103. Route::post('update/:id', '/update')->name('systemAttachmentUpdate');
  104. })->prefix('admin.system.attachment.Attachment');
  105. //上传图片
  106. Route::post('upload/image/:id/:field', 'admin.system.attachment.Attachment/image')->name('uploadImage');
  107. //附件分类管理
  108. Route::group('system/attachment/category', function () {
  109. Route::get('formatLst', '/getFormatList')->name('systemAttachmentCategoryGetFormatList');
  110. Route::get('create/form', '/createForm')->name('systemAttachmentCategoryCreateForm');
  111. Route::get('update/form/:id', '/updateForm')->name('systemAttachmentCategoryUpdateForm');
  112. Route::post('create', '/create')->name('systemAttachmentCategoryCreate');
  113. Route::post('update/:id', '/update')->name('systemAttachmentCategoryUpdate');
  114. Route::delete('delete/:id', '/delete')->name('systemAttachmentCategoryDelete');
  115. })->prefix('admin.system.attachment.AttachmentCategory');
  116. //权限管理
  117. Route::group('system/menu', function () {
  118. Route::get('lst', '/getList')->name('systemMenuGetLst');
  119. Route::get('create/form', '/createForm')->name('systemMenuCreateForm');
  120. Route::get('update/form/:id', '/updateForm')->name('systemMenuUpdateForm');
  121. Route::post('create', '/create')->name('systemMenuCreate');
  122. Route::post('update/:id', '/update')->name('systemMenuUpdate');
  123. Route::delete('delete/:id', '/delete')->name('systemMenuDelete');
  124. })->prefix('admin.system.auth.Menu');
  125. //商户权限管理
  126. Route::group('merchant/menu', function () {
  127. Route::get('lst', '/getList')->name('systemMerchantMenuGetLst')->append(['merchant' => 1]);
  128. Route::get('create/form', '/createForm')->name('systemMerchantMenuCreateForm')->append(['merchant' => 1]);
  129. Route::get('update/form/:id', '/updateForm')->name('systemMerchantMenuUpdateForm')->append(['merchant' => 1]);
  130. Route::post('create', '/create')->name('systemMerchantMenuCreate')->append(['merchant' => 1]);
  131. Route::post('update/:id', '/update')->name('systemMerchantMenuUpdate')->append(['merchant' => 1]);
  132. Route::delete('delete/:id', '/delete')->name('systemMerchantMenuDelete')->append(['merchant' => 1]);
  133. })->prefix('admin.system.auth.Menu');
  134. //申请列表
  135. Route::group('merchant/intention', function () {
  136. Route::get('lst', '/lst')->name('systemMerchantIntentionLst');
  137. Route::post('status/:id', '/switchStatus')->name('systemMerchantIntentionStatus');
  138. Route::delete('delete/:id', '/delete')->name('systemMerchantIntentionDelete');
  139. Route::get('mark/:id/form', '/form')->name('systemMerchantIntentionMarkForm');
  140. Route::get('status/:id/form', '/statusForm')->name('systemMerchantIntentionStatusForm');
  141. Route::post('mark/:id', '/mark')->name('systemMerchantIntentionMark');
  142. Route::post('agree', '/saveAgree')->name('systemMerchantIntentionSaveAgree');
  143. Route::get('agree', '/getAgree')->name('systemMerchantIntentionGetAgree');
  144. Route::get('excel', '/excel')->name('systemMerchantIntentionExcel');
  145. })->prefix('admin.system.merchant.MerchantIntention');
  146. //身份规则
  147. Route::group('system/role', function () {
  148. Route::get('lst', '/getList')->name('systemRoleGetList');
  149. Route::post('create', '/create')->name('systemRoleCreate');
  150. Route::get('create/form', '/createForm')->name('systemRoleCreateForm');
  151. Route::post('update/:id', '/update')->name('systemRoleUpdate');
  152. Route::get('update/form/:id', '/updateForm')->name('systemRoleUpdateForm');
  153. Route::post('status/:id', '/switchStatus')->name('systemRoleStatus');
  154. Route::delete('delete/:id', '/delete')->name('systemRoleDelete');
  155. })->prefix('admin.system.auth.Role');
  156. //Admin管理
  157. Route::group('system/admin', function () {
  158. Route::get('lst', '.Admin/getList')->name('systemAdminLst');
  159. Route::post('status/:id', '.Admin/switchStatus')->name('systemAdminStatus');
  160. Route::post('create', '.Admin/create')->name('systemAdminCreate');
  161. Route::get('create/form', '.Admin/createForm')->name('systemAdminCreateForm');
  162. Route::post('update/:id', '.Admin/update')->name('systemAdminUpdate');
  163. Route::get('update/form/:id', '.Admin/updateForm')->name('systemAdminUpdateForm');
  164. Route::post('password/:id', '.Admin/password')->name('systemAdminPassword');
  165. Route::get('password/form/:id', '.Admin/passwordForm')->name('systemAdminPasswordForm');
  166. Route::delete('delete/:id', '.Admin/delete')->name('systemAdminDelete');
  167. Route::get('edit/form', '.Admin/editForm')->name('systemAdminEditForm');
  168. Route::post('edit', '.Admin/edit')->name('systemAdminEdit');
  169. Route::get('edit/password/form', '.Admin/editPasswordForm')->name('systemAdminEditPasswordForm');
  170. Route::post('edit/password', '.Admin/editPassword')->name('systemAdminEditPassword');
  171. Route::get('log', '.AdminLog/lst')->name('systemAdminLog');
  172. })->prefix('admin.system.admin');
  173. //商户管理
  174. Route::group('system/merchant', function () {
  175. Route::get('create/form', '.Merchant/createForm')->name('systemMerchantCreateForm');
  176. Route::get('count', '.Merchant/count');
  177. Route::get('lst', '.Merchant/lst')->name('systemMerchantLst');
  178. Route::post('create', '.Merchant/create')->name('systemMerchantCreate');
  179. Route::get('update/form/:id', '.Merchant/updateForm')->name('systemMerchantUpdateForm');
  180. Route::post('update/:id', '.Merchant/update')->name('systemMerchantUpdate');
  181. Route::post('status/:id', '.Merchant/switchStatus')->name('systemMerchantStatus');
  182. Route::post('close/:id', '.Merchant/switchClose')->name('systemMerchantClose');
  183. Route::delete('delete/:id', '.Merchant/delete')->name('systemMerchantDelete');
  184. Route::post('password/:id', '.MerchantAdmin/password')->name('systemMerchantAdminPassword');
  185. Route::get('password/form/:id', '.MerchantAdmin/passwordForm')->name('systemMerchantAdminPasswordForm');
  186. Route::post('login/:id', '.Merchant/login')->name('systemMerchantLogin');
  187. Route::get('changecopy/:id/form', '.Merchant/changeCopyNumForm')->name('systemMerchantChangeCopyForm');
  188. Route::post('changecopy/:id', '.Merchant/changeCopyNum')->name('systemMerchantChangeCopy');
  189. })->prefix('admin.system.merchant');
  190. //商户分类
  191. Route::group('system/merchant', function () {
  192. Route::get('category/lst', '/lst')->name('systemMerchantCategoryLst');
  193. Route::get('category_lst', '/lst');
  194. Route::post('category', '/create')->name('systemMerchantCategoryCreate');
  195. Route::get('category/form', '/createForm')->name('systemMerchantCategoryCreateForm');
  196. Route::delete('category/:id', '/delete')->name('systemMerchantCategoryDelete');
  197. Route::post('category/:id', '/update')->name('systemMerchantCategoryUpdate');
  198. Route::get('category/form/:id', '/updateForm')->name('systemMerchantCategoryUpdateForm');
  199. Route::get('category/options', '/getOptions');
  200. })->prefix('admin.system.merchant.MerchantCategory');
  201. Route::group('system/applyments', function () {
  202. Route::get('lst', '/lst')->name('systemMerchantApplymentsLst');
  203. Route::get('detail/:id', '/detail')->name('systemMerchantApplymentsDetail');;
  204. Route::post('status/:id', '/switchWithStatus')->name('systemMerchantApplymentsStatus');
  205. Route::get('merchant/:id', '/getMerchant')->name('systemMerchantApplymentsGet');
  206. Route::get('mark/:id/form', '/markForm')->name('systemMerchantApplymentsMarrk');
  207. Route::post('mark/:id', '/mark')->name('systemMerchantApplymentsMarrkSave');
  208. })->prefix('admin.system.merchant.MerchantApplyments');
  209. //用户标签
  210. Route::group('user/label', function () {
  211. Route::get('lst', '/lst')->name('systemUserLabelLst');
  212. Route::post('user/label', '/create')->name('systemUserLabelCreate');
  213. Route::get('form', '/createForm')->name('systemUserLabelCreateForm');
  214. Route::delete(':id', '/delete')->name('systemUserLabelDelete');
  215. Route::post(':id', '/update')->name('systemUserLabelUpdate');
  216. Route::get('form/:id', '/updateForm')->name('systemUserLabelUpdateForm');
  217. })->prefix('admin.user.UserLabel');
  218. //用户积分
  219. Route::group('user/integral', function () {
  220. Route::get('title', '.UserIntegral/getTitle')->name('systemUserIntegralTitle');
  221. Route::get('lst', '.UserIntegral/getList')->name('systemUserIntegralLst');
  222. Route::get('excel', '.UserIntegral/excel')->name('systemUserIntegralExcel');
  223. Route::get('config', '.UserIntegral/getConfig')->name('systemUserIntegralConfig');
  224. Route::post('config', '.UserIntegral/saveConfig')->name('systemUserIntegralConfigSave');
  225. })->prefix('admin.user');
  226. //用户分销等级
  227. Route::group('user/brokerage', function () {
  228. Route::get('lst', '.UserBrokerage/getLst')->name('systemUserBrokerageLst');
  229. Route::get('detail/:id', '.UserBrokerage/detail');
  230. Route::get('options', '.UserBrokerage/options');
  231. Route::post('create', '.UserBrokerage/create')->name('systemUserBrokerageCreate');
  232. Route::post('update/:id', '.UserBrokerage/update')->name('systemUserBrokerageUpdate');
  233. Route::delete('delete/:id', '.UserBrokerage/delete')->name('systemUserBrokerageDelete');
  234. })->prefix('admin.user');
  235. //用户分组
  236. Route::group('user/group', function () {
  237. Route::get('lst', '/lst')->name('systemUserGroupLst');
  238. Route::post('user/group', '/create')->name('systemUserGroupCreate');
  239. Route::get('form', '/createForm')->name('systemUserGroupCreateForm');
  240. Route::delete(':id', '/delete')->name('systemUserGroupDelete');
  241. Route::post(':id', '/update')->name('systemUserGroupUpdate');
  242. Route::get('form/:id', '/updateForm')->name('systemUserGroupUpdateForm');
  243. })->prefix('admin.user.UserGroup');
  244. //推广人
  245. Route::group('user/spread', function () {
  246. Route::get('lst/:uid', '/spreadList')->name('systemUserSpreadLst');
  247. Route::get('order/:uid', '/spreadOrder')->name('systemUserSpreadOrder');
  248. Route::post('clear/:uid', '/clearSpread')->name('systemUserSpreadClear');
  249. })->prefix('admin.user.User');
  250. //协议
  251. Route::group('agree', function () {
  252. Route::get('user/:key', '/getAgree')->name('systemAgreeUserDetail');
  253. Route::post('user/:key', '/saveAgree')->name('systemAgreeUserCreate');
  254. Route::get('extension/:key', '/getAgree')->name('systemAgreeExtensionDetail');
  255. Route::post('extension/:key', '/saveAgree')->name('systemAgreeExtensionCreate');
  256. Route::get('receipt/:key', '/getAgree')->name('systemAgreeReceiptDetail');
  257. Route::post('receipt/:key', '/saveAgree')->name('systemAgreeReceiptCreate');
  258. Route::get('merchant/:key', '/getAgree')->name('systemAgreeMerchantDetail');
  259. Route::post('merchant/:key', '/saveAgree')->name('systemAgreeMerchantCreate');
  260. Route::get('brokerage/:key', '/getAgree')->name('systemAgreeBrokerageDetail');
  261. Route::post('brokerage/:key', '/saveAgree')->name('systemAgreeBrokerageCreate');
  262. })->prefix('admin.system.Cache');
  263. //用户
  264. Route::group('user', function () {
  265. //用户列表
  266. Route::get('lst', '/lst')->name('systemUserLst');
  267. Route::get('promoter/lst', '/promoterList')->name('systemPromoterUserLst');
  268. Route::get('promoter/count', '/promoterCount')->name('systemPromoterUserCount');
  269. Route::get('update/form/:id', '/updateForm')->name('systemUserUpdateForm');
  270. Route::post('update/:id', '/update')->name('systemUserUpdate');
  271. Route::get('lst', '/lst')->name('systemUserLst');
  272. //修改用户分组
  273. Route::get('change_group/form/:id', '/changeGroupForm')->name('systemUserChangeGroupForm');
  274. Route::get('batch_change_group/form', '/batchChangeGroupForm')->name('systemUserBatchChangeGroupForm');
  275. Route::post('change_group/:id', '/changeGroup')->name('systemUserChangeGroup');
  276. Route::post('batch_change_group', '/batchChangeGroup')->name('systemUserBatchChangeGroup');
  277. //修改用户标签
  278. Route::get('change_label/form/:id', '/changeLabelForm')->name('systemUserChangeLabelForm');
  279. Route::get('batch_change_label/form', '/batchChangeLabelForm')->name('systemUserBatchChangeLabelForm');
  280. Route::post('change_label/:id', '/changeLabel')->name('systemUserChangeLabel');
  281. Route::post('batch_change_label', '/batchChangeLabel')->name('systemUserBatchChangeLabel');
  282. //修改用户余额
  283. Route::get('change_now_money/form/:id', '/changeNowMoneyForm')->name('systemUserChangeNowMoneyForm');
  284. Route::post('change_now_money/:id', '/changeNowMoney')->name('systemUserChangeNowMoney');
  285. //修改用户积分
  286. Route::get('change_integral/form/:id', '/changeIntegralForm')->name('systemUserChangeIntegralForm');
  287. Route::post('change_integral/:id', '/changeIntegral')->name('systemUserChangeIntegral');
  288. //微信图文群发
  289. Route::post('news/push', '/sendNews')->name('systemWechatUserSendNews');
  290. Route::get('detail/:id', '/detail')->name('systemUserDetail');
  291. Route::get('order/:id', '/order')->name('systemUserOrder');
  292. Route::get('coupon/:id', '/coupon')->name('systemUserCoupon');
  293. Route::get('bill/:id', '/bill')->name('systemUserBill');
  294. Route::get('spread_log/:id', '/spreadLog')->name('systemUserSpreadLog');
  295. Route::get('change_spread_form/:id', '/spreadForm')->name('systemUserSpreadChangeForm');
  296. Route::post('change_spread/:id', '/spread')->name('systemUserSpreadChange');
  297. //搜索记录
  298. Route::get('search_log', '/searchLog')->name('systemUserSearchLog');
  299. Route::get('search_log/export', '/exportSearchLog')->name('systemUserExportSearchLog');
  300. })->prefix('admin.user.User');
  301. //内容管理
  302. Route::group('system/article/category', function () {
  303. Route::get('create/form', '/createForm')->name('systemArticleCategoryCreateForm');
  304. Route::get('lst', '/lst')->name('systemArticleCategoryLst');
  305. Route::post('create', '/create')->name('systemArticleCategoryCreate');
  306. Route::get('update/form/:id', '/updateForm')->name('systemArticleCategoryUpdateForm');
  307. Route::post('update/:id', '/update')->name('systemArticleCategoryUpdate');
  308. Route::post('status/:id', '/switchStatus')->name('systemArticleCategoryStatus');
  309. Route::delete('delete/:id', '/delete')->name('systemArticleCategoryDelete');
  310. Route::get('detail/:id', '/detail')->name('systemArticleCategoryDetail');
  311. })->prefix('admin.article.ArticleCategory');
  312. Route::group('system/article/article', function () {
  313. Route::get('lst', '/getList')->name('systemArticlArticleLst');
  314. Route::post('create', '/create')->name('systemArticleArticleCreate');
  315. Route::post('update/:id', '/update')->name('systemArticArticleleUpdate');
  316. Route::delete('delete/:id', '/delete')->name('systemArticArticleleDelete');
  317. Route::get('detail/:id', '/detail')->name('systemArticArticleleDetail');
  318. Route::get('lst', '/getList')->name('systemArticlArticleLst');
  319. })->prefix('admin.article.Article');
  320. //微信菜单
  321. Route::group('wechat', function () {
  322. Route::get('menu', '/info')->name('wechatMenu');
  323. Route::post('menu', '/save')->name('saveWechatMenu');
  324. })->prefix('admin.wechat.WechatMenu');
  325. //自动回复
  326. Route::group('wechat/reply', function () {
  327. Route::get('detail/:id', '/info')->name('wechatReplyInfo');
  328. Route::post('save/:key', '/save')->name('saveWechatReply');
  329. Route::post('create', '/create')->name('createWechatReply');
  330. Route::post('update/:id', '/update')->name('updateWechatReply');
  331. Route::get('lst', '/lst')->name('wechatReplyLst');
  332. Route::delete(':id', '/delete')->name('wechatReplyDelete');
  333. Route::post('status/:id', '/changeStatus')->name('wechatReplyStatus');
  334. Route::post('upload/image', '/uploadImage')->name('wechatUploadImage');
  335. Route::post('upload/voice', '/uploadVoice')->name('wechatUploadVoice');
  336. })->prefix('admin.wechat.WechatReply');
  337. /*//微信用户标签
  338. Route::group('wechat/user/tag',function(){
  339. Route::get('/lst', '/lst')->name('wechatUserTagLst');
  340. Route::get('/create/form', '/createForm')->name('createWechatUserTagForm');
  341. Route::post('/create', '/create')->name('createWechatUserTag');
  342. Route::get('/update/form/:id', '/updateForm')->name('updateWechatUserTagForm');
  343. Route::post('/update/:id', '/update')->name('updateWechatUserTag');
  344. Route::delete('/delete/:id', '/delete')->name('deleteWechatUserTag');
  345. })->prefix('admin.wechat.WechatTag');
  346. //微信用户分组
  347. Route::group('wechat/user/group',function(){
  348. Route::get('lst', '/lst')->name('wechatUserGroupLst');
  349. Route::get('create/form', '/createForm')->name('createWechatUserGroupForm');
  350. Route::post('create', '/create')->name('createWechatUserGroup');
  351. Route::get('update/form/:id', '/updateForm')->name('updateWechatUserGroupForm');
  352. Route::post('update/:id', '/update')->name('updateWechatUserGroupTag');
  353. Route::delete('delete/:id', '/delete')->name('deleteWechatUserGroup');
  354. })->prefix('admin.wechat.WechatGroup');
  355. //微信用户管理
  356. Route::group('wechat',function(){
  357. Route::get('user/lst', '/lst')->name('wechatUserLst');
  358. Route::get('user/sync_tag/:id', '/syncTag')->name('wechatUserSyncTag');
  359. Route::get('user/tag_group', '/tagGroup')->name('wechatUserTagGroup');
  360. Route::get('user_tag/form/:id', '/tagForm')->name('wechatUserTagForm');
  361. Route::post('user_tag/:id', '/tag')->name('wechatUserTag');
  362. Route::get('user_group/form/:id', '/groupForm')->name('wechatUserGroupForm');
  363. Route::post('user_group/:id', '/group')->name('wechatUserGroup');
  364. })->prefix('admin.wechat.WechatUser');*/
  365. //图文管理
  366. Route::group('wechat/news', function () {
  367. Route::post('create', '/create')->name('systemWechatNewsCreate');
  368. Route::post('update/:id', '/update')->name('systemWechatNewsUpdate');
  369. Route::delete('delete/:id', '/delete')->name('systemWechatNewsDelete');
  370. Route::get('lst', '/lst')->name('systemWechatNewsLst');
  371. Route::post('create', '/create')->name('systemWechatNewsCreate');
  372. Route::post('update/:id', '/update')->name('systemWechatNewsUpdate');
  373. Route::delete('delete/:id', '/delete')->name('systemWechatNewsDelete');
  374. Route::get('detail/:id', '/detail')->name('systemWechatNewsDetail');
  375. })->prefix('admin.wechat.WechatNews');
  376. //商品分类
  377. Route::group('store/category', function () {
  378. Route::get('create/form', '/createForm')->name('systemStoreCategoryCreateForm');
  379. Route::get('update/form/:id', '/updateForm')->name('systemStoreCategoryUpdateForm');
  380. Route::post('update/:id', '/update')->name('systemStoreCategoryUpdate');
  381. Route::get('lst', '/lst')->name('systemStoreCategoryLst');
  382. Route::get('detail/:id', '/detail')->name('systemStoreCategoryDtailt');
  383. Route::post('create', '/create')->name('systemStoreCategoryCreate');
  384. Route::delete('delete/:id', '/delete')->name('systemStoreCategoryDelete');
  385. Route::post('status/:id', '/switchStatus')->name('systemStoreCategorySwitchStatus');
  386. Route::get('list', '/getList');
  387. })->prefix('admin.store.StoreCategory');
  388. //品牌分类
  389. Route::group('store/brand/category', function () {
  390. Route::get('create/form', '/createForm')->name('systemStoreBrandCategoryCreateForm');
  391. Route::get('update/form/:id', '/updateForm')->name('systemStoreBrandCategoryUpdateForm');
  392. Route::post('update/:id', '/update')->name('systemStoreBrandCategoryUpdate');
  393. Route::get('lst', '/lst')->name('systemStoreBrandCategoryLst');
  394. Route::get('detail/:id', '/detail')->name('systemStoreBrandCategoryDtailt');
  395. Route::post('create', '/create')->name('systemStoreBrandCategoryCreate');
  396. Route::delete('delete/:id', '/delete')->name('systemStoreBrandCategoryDelete');
  397. Route::post('status/:id', '/switchStatus')->name('systemStoreBrandCategorySwitchStatus');
  398. })->prefix('admin.store.StoreBrandCategory');
  399. //品牌
  400. Route::group('store/brand', function () {
  401. Route::get('create/form', '/createForm')->name('systemStoreBrandCreateForm');
  402. Route::get('update/form/:id', '/updateForm')->name('systemStoreBrandUpdateForm');
  403. Route::get('lst', '/lst')->name('systemStoreBrandLst');
  404. Route::post('status/:id', '/switchStatus')->name('systemStoreBrandSwithStatus');
  405. Route::post('create', '/create')->name('systemStoreBrandCreate');
  406. Route::post('update/:id', '/update')->name('systemStoreBrandUpdate');
  407. Route::delete('delete/:id', '/delete')->name('systemStoreBrandDelete');
  408. })->prefix('admin.store.StoreBrand');
  409. //商品
  410. Route::group('store/product', function () {
  411. Route::get('mer_select', '/lists');
  412. Route::get('lst_filter', '/getStatusFilter')->name('systemStoreProductLstFilter');
  413. Route::get('lst', '/lst')->name('systemStoreProductLst');
  414. Route::get('list', '/lst');
  415. Route::get('detail/:id', '/detail')->name('systemStoreProductDetail');
  416. Route::post('update/:id', '/update')->name('systemStoreProductUpdate');
  417. Route::post('status', '/switchStatus')->name('systemStoreProductSwitchStatus');
  418. Route::post('check', '/checkProduct')->name('systemStoreProductCheck');
  419. Route::post('change/:id', '/changeUsed')->name('systemStoreProductChangeUsed');
  420. Route::get('ficti/form/:id', '/addFictiForm')->name('systemStoreProductAddFictiForm');
  421. Route::post('ficti/:id', '/addFicti')->name('systemStoreProductAddFicti');
  422. })->prefix('admin.store.StoreProduct');
  423. //预售商品
  424. Route::group('store/product/presell', function () {
  425. Route::get('lst', 'StoreProductPresell/lst')->name('systemStoreProductPresellLst');
  426. Route::post('is_show/:id', 'StoreProductPresell/switchStatus')->name('systemStoreProductPresellShow');
  427. Route::get('detail/:id', 'StoreProductPresell/detail')->name('systemStoreProductPresellDetail');
  428. Route::get('get/:id', 'StoreProductPresell/get')->name('systemStoreProductPresellGet');
  429. Route::post('update/:id', 'StoreProductPresell/update')->name('systemStoreProductPresellUpdate');
  430. Route::post('status', 'StoreProductPresell/productStatus')->name('systemStoreProductPresellSwitchStatus');
  431. Route::post('agree', 'StoreProductPresell/saveAgree')->name('systemStoreProductPresellSaveAgree');
  432. Route::get('agree', 'StoreProductPresell/getAgree')->name('systemStoreProductPresellGetAgree');
  433. })->prefix('admin.store.');
  434. //助力商品
  435. Route::group('store/product/assist', function () {
  436. Route::get('lst', 'StoreProductAssist/lst')->name('systemStoreProductAssistLst');
  437. Route::post('is_show/:id', 'StoreProductAssist/switchStatus')->name('systemStoreProductAssistShow');
  438. Route::get('detail/:id', 'StoreProductAssist/detail')->name('systemStoreProductAssistDetail');
  439. Route::post('update/:id', 'StoreProductAssist/update')->name('systemStoreProductAssistProductUpdate');
  440. Route::post('status', 'StoreProductAssist/productStatus')->name('systemStoreProductAssistStatus');
  441. Route::get('set/lst', 'StoreProductAssistSet/lst')->name('systemStoreProductAssistSetLst');
  442. Route::get('set/detail/:id', 'StoreProductAssistSet/detail')->name('systemStoreProductAssistSetDetail');
  443. Route::get('get/:id', 'StoreProductAssist/get')->name('systemStoreProductAssistGet');
  444. })->prefix('admin.store.');
  445. //拼团商品
  446. Route::group('store/product/group', function () {
  447. Route::get('lst', 'StoreProductGroup/lst')->name('systemStoreProductGroupLst');
  448. Route::post('is_show/:id', 'StoreProductGroup/switchStatus')->name('systemStoreProductGroupShow');
  449. Route::get('detail/:id', 'StoreProductGroup/detail')->name('systemStoreProductGroupDetail');
  450. Route::post('update/:id', 'StoreProductGroup/update')->name('systemStoreProductGroupProductUpdate');
  451. Route::post('status', 'StoreProductGroup/productStatus')->name('systemStoreProductGroupStatus');
  452. Route::get('get/:id', 'StoreProductGroup/get')->name('systemStoreProductGroupGet');
  453. Route::post('sort/:id', 'StoreProductGroup/updateSort')->name('systemStoreProductGroupSort');
  454. Route::get('buying/lst', 'StoreProductGroupBuying/lst')->name('systemStoreProductGroupBuyingLst');
  455. Route::get('buying/detail/:id', 'StoreProductGroupBuying/detail')->name('systemStoreProductGroupBuyingDetail');
  456. })->prefix('admin.store.');
  457. //直播间
  458. Route::group('broadcast/room', function () {
  459. Route::get('lst', '/lst')->name('systemBroadcastRoomLst');
  460. Route::get('detail/:id', '/detail')->name('systemBroadcastRoomDetail');
  461. Route::get('apply/form/:id', '/applyForm')->name('systemBroadcastRoomApplyForm');
  462. Route::post('apply/:id', '/apply')->name('systemBroadcastRoomApply');
  463. Route::post('status/:id', '/changeStatus')->name('systemBroadcastRoomChangeStatus');
  464. Route::post('sort/:id', '/sort')->name('systemBroadcastRoomSort');
  465. Route::post('live_status/:id', '/changeLiveStatus')->name('systemBroadcastRoomChangeLiveStatus');
  466. Route::delete('delete/:id', '/delete')->name('systemBroadcastRoomDelete');
  467. Route::get('goods/:id', '/goodsList')->name('systemBroadcastRoomGoods');
  468. })->prefix('admin.store.BroadcastRoom');
  469. //直播间商品
  470. Route::group('broadcast/goods', function () {
  471. Route::get('lst', '/lst')->name('systemBroadcastGoodsLst');
  472. Route::get('detail/:id', '/detail')->name('systemBroadcastGoodsDetail');
  473. Route::get('apply/form/:id', '/applyForm')->name('systemBroadcastGoodsApplyForm');
  474. Route::post('apply/:id', '/apply')->name('systemBroadcastGoodsApply');
  475. Route::post('status/:id', '/changeStatus')->name('systemBroadcastGoodsChangeStatus');
  476. Route::post('sort/:id', '/sort')->name('systemBroadcastGoodsSort');
  477. Route::delete('delete/:id', '/delete')->name('systemBroadcastGoodsDelete');
  478. })->prefix('admin.store.BroadcastGoods');
  479. //礼包
  480. Route::group('store/bag', function () {
  481. Route::get('mer_select', '/lists');
  482. Route::get('list', '/lst');
  483. Route::get('lst_filter', '/getBagStatusFilter')->name('systemStoreBagLstFilter');
  484. Route::get('lst', '/bagList')->name('systemStoreBagLst');
  485. Route::get('detail/:id', '/detail')->name('systemStoreBagDetail');
  486. Route::post('update/:id', '/update')->name('systemStoreBagUpdate');
  487. Route::post('status', '/switchStatus')->name('systemStoreBagSwitchStatus');
  488. Route::post('change/:id', '/changeUsed')->name('systemStoreBagChangeUsed');
  489. })->prefix('admin.store.StoreProduct');
  490. Route::group('store/coupon', function () {
  491. Route::get('lst', '/lst')->name('systemStoreCouponLst');
  492. Route::get('issue', '/issue')->name('systemCouponIssue');
  493. Route::get('detail/:id', '/detail')->name('systemCouponDetail');
  494. Route::get('product/:id', '/product')->name('systemCouponProduct');
  495. Route::post('agree', '/setAgree')->name('systemCouponSetAgree');
  496. Route::get('agree/:key', '/getAgree')->name('systemCouponGetAgree');
  497. })->prefix('admin.store.Coupon');
  498. //地址快读公司
  499. Route::group('store/express', function () {
  500. Route::get('lst', '/lst')->name('systemExpressLst');
  501. Route::get('create/form', '/createForm')->name('systemExpressCreateForm');
  502. Route::post('create', '/create')->name('systemExpressCreate');
  503. Route::post('status/:id', '/switchStatus')->name('systemExpressSwitchStatus');
  504. Route::get('detail/:id', '/detail')->name('systemExpressDetail');
  505. Route::get('update/form/:id', '/updateForm')->name('systemExpressUpdateForm');
  506. Route::post('update/:id', '/update')->name('systemExpressUpdate');
  507. Route::delete('delete/:id', '/delete')->name('systemExpressDelete');
  508. Route::get('sync', '/syncAll')->name('systemExpressSync');
  509. })->prefix('admin.store.Express');
  510. //秒杀配置管理
  511. Route::group('seckill/config', function () {
  512. Route::get('lst', '/lst')->name('systemSeckillConfigLst');
  513. Route::get('select', '/select');
  514. Route::get('create/form', '/createForm')->name('systemSeckillConfigCreateForm');
  515. Route::post('create', '/create')->name('systemSeckillConfigCreate');
  516. Route::get('update/:id/form', '/updateForm')->name('systemSeckillConfigUpdateForm');
  517. Route::post('update/:id', '/update')->name('systemSeckillConfigUpdate');
  518. Route::post('status/:id', '/switchStatus')->name('systemSeckillConfigStatus');
  519. Route::delete('delete/:id', '/delete')->name('systemSeckillConfigDelete');
  520. })->prefix('admin.store.StoreSeckill');
  521. //秒杀商品管理
  522. Route::group('seckill/product', function () {
  523. Route::get('mer_select', '/lists');
  524. Route::get('lst_filter', '/getStatusFilter')->name('systemStoreSeckillProductLstFilter');
  525. Route::get('lst', '/lst')->name('systemStoreSeckillProductLst');
  526. Route::get('list', '/lst');
  527. Route::get('detail/:id', '/detail')->name('systemStoreSeckillProductDetail');
  528. Route::post('update/:id', '/update')->name('systemStoreSeckillProductUpdate');
  529. Route::post('status', '/switchStatus')->name('systemStoreSeckillProductSwitchStatus');
  530. Route::post('change/:id', '/changeUsed')->name('systemStoreSeckillProductChangeUsed');
  531. })->prefix('admin.store.StoreProductSeckill');
  532. //商品评价管理
  533. Route::group('store/reply', function () {
  534. Route::get('lst', '/lst')->name('systemProductReplyLst');
  535. Route::get('create/form/:id?', '/virtualForm')->name('systemProductReplyCreateForm');
  536. Route::post('create', '/virtualReply')->name('systemProductReplyCreate');
  537. Route::post('sort/:id', '/sort')->name('systemProductReplySort');
  538. Route::delete('delete/:id', '/delete')->name('systemProductReplyDelete');
  539. })->prefix('admin.store.StoreProductReply');
  540. //安全维护
  541. Route::group('safety/database', function () {
  542. Route::get('lst', '/lst')->name('systemSafetyDatabaseLst');
  543. Route::get('fileList', '/fileList')->name('systemSafetyDatabaseFileList');
  544. Route::get('detail/:name', '/detail')->name('systemSafetyDatabaseDetail');
  545. Route::post('backups', '/backups')->name('systemSafetyDatabaseBackups');
  546. Route::post('optimize', '/optimize')->name('systemSafetyDatabaseOptimize');
  547. Route::post('repair', '/repair')->name('systemSafetyDatabaseRepair');
  548. Route::get('download/:feilname', '/downloadFile')->name('systemSafetyDatabaseDownloadFile');
  549. Route::delete('delete', '/deleteFile')->name('systemSafetyDatabaseDeleteFile');
  550. })->prefix('admin.system.safety.Database');
  551. //用户反馈
  552. Route::group('user/feedback', function () {
  553. Route::get('category/lst', 'FeedBackCategory/lst')->name('systemUserFeedBackCategoryLst');
  554. Route::get('category/create/form', 'FeedBackCategory/createForm')->name('systemUserFeedBackCategoryCreateForm');
  555. Route::post('category/create', 'FeedBackCategory/create')->name('systemUserFeedBackCategoryCreate');
  556. Route::get('category/update/:id/form', 'FeedBackCategory/updateForm')->name('systemUserFeedBackCategoryUpdateForm');
  557. Route::post('category/update/:id', 'FeedBackCategory/update')->name('systemUserFeedBackCategoryUpdate');
  558. Route::post('category/status/:id', 'FeedBackCategory/switchStatus')->name('systemUserFeedBackCategorySwitchStatus');
  559. Route::delete('category/delete/:id', 'FeedBackCategory/delete')->name('systemUserFeedBackCategoryDelete');
  560. Route::get('lst', 'FeedBack/lst')->name('systemUserFeedBackLst');
  561. Route::get('detail/:id', 'FeedBack/detail')->name('systemUserFeedBackDetail');
  562. Route::post('status/:id', 'FeedBack/switchStatus')->name('systemUserFeedBackStatus');
  563. //Route::post('reply/:id','FeedBack/reply')->name('systemUserFeedBackReply');
  564. Route::delete('delete/:id', 'FeedBack/delete')->name('systemUserFeedBackDelete');
  565. })->prefix('admin.user.');
  566. //商户订单
  567. Route::group('merchant/order', function () {
  568. Route::get('lst/:id', 'Order/lst')->name('systemMerchantOrderLst');
  569. Route::get('mark/:id/form', 'Order/markForm')->name('systemMerchantOrderMarkForm');
  570. Route::post('mark/:id', 'Order/mark')->name('systemMerchantOrderMark');
  571. Route::get('refund/lst/:id', 'RefundOrder/lst')->name('systemMerchantRefundOrderLst');
  572. Route::get('refund/mark/:id/form', 'RefundOrder/markForm')->name('systemMerchantRefundOrderMarkForm');
  573. Route::post('refund/mark/:id', 'RefundOrder/mark')->name('systemMerchantRefundOrderMark');
  574. Route::get('reconciliation/lst', 'Reconciliation/lst')->name('systemMerchantReconciliationLst');
  575. Route::post('reconciliation/create/:id', 'Reconciliation/create')->name('systemMerchantReconciliationCreate');
  576. Route::post('reconciliation/status/:id', 'Reconciliation/switchStatus')->name('systemMerchantReconciliationSwitchStatus');
  577. Route::get('reconciliation/:id/order', 'Order/reList')->name('systemMerchantOrderReList');
  578. Route::get('reconciliation/:id/refund', 'RefundOrder/reList')->name('systemMerchantRefundOrderReList');
  579. Route::get('reconciliation/mark/:id/form', 'Reconciliation/markForm')->name('systemMerchantReconciliationMarkForm');
  580. Route::post('reconciliation/mark/:id', 'Reconciliation/mark')->name('systemMerchantReconciliationMark');
  581. })->prefix('admin.order.');
  582. //分账单
  583. Route::group('profitsharing', function () {
  584. Route::get('lst', '/getList')->name('systemOrderProfitsharingLst');
  585. Route::post('again/:id', '/again')->name('systemOrderProfitsharingAgain');
  586. })->prefix('admin.order.OrderProfitsharing');
  587. Route::get('profitsharing/config', 'admin.system.config.ConfigOthers/getProfitsharing')->name('systemOrderProfitsharingGetConfig');
  588. Route::post('profitsharing/config', 'admin.system.config.ConfigOthers/setProfitsharing')->name('systemOrderProfitsharingSetConfig');
  589. //提现
  590. Route::group('user/extract', function () {
  591. Route::get('lst', 'UserExtract/lst')->name('systemUserExtractLst');
  592. Route::post('status/:id', 'UserExtract/switchStatus')->name('systemUserExtractSwitchStatus');
  593. })->prefix('admin.user.');
  594. //微信消息模板
  595. Route::group('wechat/template', function () {
  596. Route::get('lst', 'TemplateMessage/lst')->name('systemTemplateMessageLst');
  597. Route::get('create/form', 'TemplateMessage/createform')->name('systemTemplateMessageCreateForm');
  598. Route::post('create', 'TemplateMessage/create')->name('systemTemplateMessageCreate');
  599. Route::get('update/:id/form', 'TemplateMessage/updateForm')->name('systemTemplateMessageUpdateForm');
  600. Route::post('update/:id', 'TemplateMessage/update')->name('systemTemplateMessageUpdate');
  601. Route::delete('delete/:id', 'TemplateMessage/delete')->name('systemTemplateMessageDelete');
  602. Route::post('status/:id', 'TemplateMessage/switchStatus')->name('systemTemplateMessageSwitchStatus');
  603. })->prefix('admin.wechat.');
  604. //小程序订阅消息
  605. Route::group('wechat/template/min', function () {
  606. Route::get('lst', 'TemplateMessage/minList')->name('systemTemplateMessageMinList');
  607. Route::get('create/form', 'TemplateMessage/createMinform')->name('systemTemplateMessageMinCreateForm');
  608. Route::post('create', 'TemplateMessage/create')->name('systemTemplateMessageMinCreate');
  609. Route::get('update/:id/form', 'TemplateMessage/updateForm')->name('systemTemplateMessageMinUpdateForm');
  610. Route::post('update/:id', 'TemplateMessage/update')->name('systemTemplateMessageMinUpdate');
  611. Route::delete('delete/:id', 'TemplateMessage/delete')->name('systemTemplateMessageMinDelete');
  612. Route::post('status/:id', 'TemplateMessage/switchStatus')->name('systemTemplateMessageMinSwitchStatus');
  613. })->prefix('admin.wechat.');
  614. Route::group('receipt', function () {
  615. Route::get('lst', '/getList')->name('systemOrderReceiptList');
  616. Route::get('detail/:id', '/detail')->name('systemOrderReceiptDetail');
  617. })->prefix('merchant.store.order.OrderReceipt');
  618. //充值
  619. Route::group('user/recharge', function () {
  620. Route::get('list', 'UserRecharge/getList')->name('systemUserRechargeList');
  621. Route::get('total', 'UserRecharge/total')->name('systemUserRechargeTotal');
  622. })->prefix('admin.user.');
  623. //余额变动记录
  624. Route::group('bill', function () {
  625. Route::get('list', 'UserBill/getList')->name('systemUserBillList');
  626. Route::get('type', 'UserBill/type');
  627. })->prefix('admin.user.');
  628. //系统公告
  629. Route::group('notice', function () {
  630. Route::get('lst', '/lst')->name('systemNoticeList');
  631. Route::post('create', '/create')->name('systemNoticeCreate');
  632. })->prefix('admin.system.notice.SystemNotice');
  633. //资金明细
  634. Route::group('financial_record', function () {
  635. Route::get('list', '/lst')->name('systemFinancialRecordList');
  636. Route::get('export', '/export')->name('systemFinancialRecordExport');
  637. Route::get('lst', '/getList')->name('systemFinancialRecordLst');
  638. Route::get('title', '/getTitle')->name('systemFinancialRecordTitle');
  639. Route::get('count', '/title')->name('systemFinancialCount');
  640. Route::get('detail/:type', '/detail')->name('systemFinancialRecordDetail');
  641. Route::get('detail_export/:type', '/exportDetail')->name('systemFinancialRecordDetailExport');
  642. })->prefix('admin.system.merchant.FinancialRecord');
  643. //财务
  644. Route::group('financial', function () {
  645. //申请转账
  646. Route::get('lst', 'Financial/lst')->name('systemFinancialList');
  647. Route::get('detail/:id', 'Financial/detail')->name('systemFinancialDetail');
  648. Route::post('update/:id', 'Financial/update')->name('systemFinancialUpdate');
  649. Route::post('status/:id', 'Financial/switchStatus')->name('systemFinancialSwitchStatus');
  650. Route::get('mark/:id/form', 'Financial/markForm')->name('systemFinancialMarkForm');
  651. Route::post('mark/:id', 'Financial/mark')->name('systemFinancialMark');
  652. Route::get('title', 'Financial/title')->name('systemFinancialTitle');
  653. })->prefix('admin.system.financial.');
  654. //客服
  655. // Route::group('service',function(){
  656. // Route::get('lst/:id','/lst')->name('systemServiceLst');
  657. // Route::get('mer/:id/user','/merchantUserList')->name('systemServiceMerchantUserLst');
  658. // Route::get('/:id/:uid/log','/getUserMsnByMerchant')->name('systemServiceMerchantUserLogLst');
  659. // })->prefix('admin.store.StoreService');
  660. Route::group('statistics', function () {
  661. Route::get('main', '/main')->name('systemStatisticsMain');
  662. Route::get('order', '/order')->name('systemStatisticsOrder');
  663. Route::get('order_num', '/orderNum')->name('systemStatisticsOrderNum');
  664. Route::get('order_user', '/orderUser')->name('systemStatisticsOrderUser');
  665. Route::get('merchant_stock', '/merchantStock')->name('systemStatisticsMerchantStock');
  666. Route::get('merchant_rate', '/merchantRate')->name('systemStatisticsMerchantRate');
  667. Route::get('merchant_visit', '/merchantVisit')->name('systemStatisticsMerchantVisit');
  668. Route::get('user_data', '/userData')->name('systemStatisticsUserData');
  669. })->prefix('admin.Common');
  670. Route::get('statistics/user', 'merchant.Common/user')->name('systemStatisticsUser');
  671. Route::get('statistics/user_rate', 'merchant.Common/userRate')->name('systemStatisticsUserRate');
  672. //所有订单
  673. Route::group('order', function () {
  674. Route::get('filtter', 'Order/orderType')->name('systemStoreOrderFiltter');
  675. Route::get('lst', 'Order/getAllList')->name('systemOrderLst');
  676. Route::get('title', 'Order/title')->name('systemOrderStat');
  677. Route::get('take_title', 'Order/takeTitle')->name('systemOrderTakeStat');
  678. Route::get('takelst', 'Order/getTakeList')->name('systemTakeOrderLst');
  679. Route::get('express/:id', 'Order/express')->name('systemOrderExpress');
  680. Route::get('chart', 'Order/chart')->name('systemOrderTitle');
  681. Route::get('takechart', 'Order/takeChart')->name('systemTakeOrderTitle');
  682. Route::get('detail/:id', 'Order/detail')->name('systemOrderDetail');
  683. Route::get('refund/lst', 'RefundOrder/getAllList')->name('systemRefundOrderLst');
  684. Route::get('excel', 'Order/Excel')->name('systemOrderExcel');
  685. })->prefix('admin.order.');
  686. Route::group('merchant/type', function () {
  687. Route::get('lst', '/lst')->name('systemMerchantTypeLst');
  688. Route::post('create', '/create')->name('systemMerchantTypeCreate');
  689. Route::post('update/:id', '/update')->name('systemMerchantTypeUpdate');
  690. Route::delete('delete/:id', '/delete')->name('systemMerchantTypeDelete');
  691. Route::get('options', '/options');
  692. })->prefix('admin.system.merchant.MerchantType');
  693. Route::get('system/city/lst', 'merchant.store.shipping.City/lst');
  694. //退出登陆
  695. Route::get('logout', 'admin.system.admin.Login/logout');
  696. //获取版本号
  697. Route::get('version', 'admin.Common/version');
  698. //授权
  699. Route::post('auth_apply', 'admin.Common/auth_apply');
  700. Route::get('check_auth', 'admin.Common/check_auth');
  701. Route::get('auth', 'admin.Common/auth');
  702. Route::get('upload/config', 'admin.Common/uploadConfig')->name('systemUploadConfig');
  703. Route::post('upload/config', 'admin.Common/saveUploadConfig')->name('systemSaveUploadConfig');
  704. //导出文件
  705. Route::group('excel',function(){
  706. Route::get('lst', '/lst')->name('systemStoreExcelLst');
  707. Route::get('download/:id', '/download')->name('systemStoreExcelDownload');
  708. Route::get('type', '/type')->name('systemStoreExcelType');
  709. })->prefix('merchant.store.Excel');
  710. //保障服务
  711. Route::group('guarantee',function(){
  712. Route::get('lst','/lst')->name('systemGuaranteeLst');
  713. Route::get('create/form','/createForm')->name('systemGuaranteeCreateForm');
  714. Route::post('create','/create')->name('systemGuaranteeCreate');
  715. Route::get('update/:id/form','/updateForm')->name('systemGuaranteeUpdateForm');
  716. Route::post('update/:id','/update')->name('systemGuaranteeUpdate');
  717. Route::get('detail/:id','/detail')->name('systemGuaranteeDetail');
  718. Route::delete('delete/:id','/delete')->name('systemGuaranteeDelete');
  719. Route::post('sort/:id','/sort')->name('systemGuaranteeSort');
  720. Route::post('status/:id','/switchStatus')->name('systemGuaranteeStatus');
  721. })->prefix('admin.store.Guarantee');
  722. //一号通
  723. Route::group('serve',function (){
  724. Route::get('captcha/:phone','Login/captcha')->name('systemServeCaptcha');
  725. Route::post('captcha','Login/checkCode')->name('systemServeCaptchaCheck');
  726. Route::post('register','Login/register')->name('systemServeRegister');
  727. Route::post('login','Login/login')->name('systemServeLogin');
  728. Route::post('change_password','Serve/changePassword')->name('systemServeChangePassword');
  729. Route::post('change_phone','Serve/updatePhone')->name('systemServeChangePhone');
  730. Route::get('user/is_login','Serve/is_login')->name('systemServeIsLogin');
  731. Route::get('user/info','Serve/getUserInfo')->name('systemServeUserInfo');
  732. Route::get('record','Serve/getRecord')->name('systemServeRecordLst');
  733. Route::get('mealList/:type','Serve/mealList')->name('systemServeMealLst');
  734. Route::get('paymeal','Serve/payMeal')->name('systemServePayMeal');
  735. Route::post('open','Serve/openServe')->name('systemServeOpenServe');
  736. Route::get('config','Serve/getConfig')->name('systemServeGetConfig');
  737. Route::post('config','Serve/setConfig')->name('systemServeSetConfig');
  738. Route::get('paylst','Serve/paylst')->name('systemServePayLst');
  739. Route::get('mer/paylst','Serve/merPaylst')->name('systemServeMerPayLst');
  740. Route::get('mer/lst','Serve/merlst')->name('systemServeMerLst');
  741. Route::post('change_sign','Sms/changeSign')->name('systemServeChangeSign');
  742. Route::get('sms/temps','Sms/temps')->name('systemServeSmsTemps');
  743. Route::post('sms/apply','Sms/apply')->name('systemServeSmsApply');
  744. Route::get('sms/apply_record','Sms/applyRecord')->name('systemServeSmsApplyRecord');
  745. Route::get('expr/lst','Export/getExportAll')->name('systemServeExportLst');
  746. Route::get('expr/temps','Export/getExportTemp')->name('systemServeExportTemps');
  747. Route::get('expr/dump_lst','Export/dumpLst')->name('systemServeExportDumpLst');
  748. Route::get('meal/lst','Config/lst')->name('systemServeMerMealLst');
  749. Route::get('meal/detail/:id','Config/detail')->name('systemServeMealDetail');
  750. Route::get('meal/create/form','Config/createForm')->name('systemServeMealCreateForm');
  751. Route::post('meal/create','Config/create')->name('systemServeMealCreate');
  752. Route::get('meal/update/:id/form','Config/updateForm')->name('systemServeMealUpdateForm');
  753. Route::post('meal/update/:id','Config/update')->name('systemServeMealUpdate');
  754. Route::delete('meal/detele/:id','Config/detele')->name('systemServeMealDelete');
  755. Route::post('meal/status/:id','Config/switchStatus')->name('systemServeMealStatus');
  756. })->prefix('admin.system.serve.');
  757. //复制商品
  758. Route::group('serve', function () {
  759. Route::get('us_lst', '/lst')->name('systemStoreProductCopyLst');
  760. })->prefix('merchant.store.product.ProductCopy');
  761. })->middleware(AllowOriginMiddleware::class)
  762. ->middleware(AdminTokenMiddleware::class, true)
  763. ->middleware(AdminAuthMiddleware::class)
  764. ->middleware(LogMiddleware::class);
  765. //不带token认证
  766. Route::group(function () {
  767. //短信支付成功回调
  768. Route::any('sms/notice', 'admin.system.sms.SmsPay/notice');
  769. //验证码
  770. Route::get('captcha', 'admin.system.admin.Login/getCaptcha');
  771. //登录
  772. Route::post('login', 'admin.system.admin.Login/login');
  773. Route::get('login_config', 'admin.Common/loginConfig');
  774. Route::group(function () {
  775. })->middleware(AdminTokenMiddleware::class, false);
  776. })->middleware(AllowOriginMiddleware::class);
  777. Route::miss(function () {
  778. return app('json')->fail('接口不存在');
  779. })->middleware(AllowOriginMiddleware::class);
  780. })->middleware(InstallMiddleware::class);