route.php 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  1. <?php
  2. use think\facade\Route;
  3. //账号密码登录
  4. Route::post('login', 'AuthController/login')->name('login')
  5. ->middleware(\app\http\middleware\AllowOriginMiddleware::class);
  6. // 获取发短信的key
  7. Route::get('verify_code', 'AuthController/verifyCode')->name('verifyCode')
  8. ->middleware(\app\http\middleware\AllowOriginMiddleware::class);
  9. //手机号登录
  10. Route::post('login/mobile', 'AuthController/mobile')->name('loginMobile')
  11. ->middleware(\app\http\middleware\AllowOriginMiddleware::class);
  12. //图片验证码
  13. Route::get('sms_captcha', 'AuthController/captcha')->name('captcha')
  14. ->middleware(\app\http\middleware\AllowOriginMiddleware::class);
  15. //验证码发送
  16. Route::post('register/verify', 'AuthController/verify')->name('registerVerify')
  17. ->middleware(\app\http\middleware\AllowOriginMiddleware::class);
  18. //手机号注册
  19. Route::post('register', 'AuthController/register')->name('register')
  20. ->middleware(\app\http\middleware\AllowOriginMiddleware::class);
  21. //手机号修改密码
  22. Route::post('register/reset', 'AuthController/reset')->name('registerReset')
  23. ->middleware(\app\http\middleware\AllowOriginMiddleware::class);
  24. Route::any('wechat/serve', 'wechat.WechatController/serve');//公众号服务
  25. Route::any('wechat/notify', 'wechat.WechatController/notify');//公众号支付回调
  26. Route::any('routine/notify', 'wechat.AuthController/notify');//小程序支付回调
  27. Route::any('mobile/notify', 'user.MobileChargeController/notify');//话费充值回调
  28. Route::any('udun/notify', 'PublicController/udunCallBack');//小程序支付回调
  29. Route::any('test', 'PublicController/test');//小程序支付回调
  30. Route::any('retry', 'PublicController/retry');//小程序支付回调
  31. Route::any('alipay/notify', 'AlipayController/notify');//支付支付回调
  32. //管理员订单操作类
  33. Route::group(function () {
  34. Route::get('admin/order/statistics', 'admin.StoreOrderController/statistics')->name('adminOrderStatistics');//订单数据统计
  35. Route::get('admin/order/data', 'admin.StoreOrderController/data')->name('adminOrderData');//订单每月统计数据
  36. Route::get('admin/order/list', 'admin.StoreOrderController/lst')->name('adminOrderList');//订单列表
  37. Route::get('admin/order/detail/:orderId', 'admin.StoreOrderController/detail')->name('adminOrderDetail');//订单详情
  38. Route::get('admin/order/delivery/gain/:orderId', 'admin.StoreOrderController/delivery_gain')->name('adminOrderDeliveryGain');//订单发货获取订单信息
  39. Route::post('admin/order/delivery/keep', 'admin.StoreOrderController/delivery_keep')->name('adminOrderDeliveryKeep');//订单发货
  40. Route::post('admin/order/price', 'admin.StoreOrderController/price')->name('adminOrderPrice');//订单改价
  41. Route::post('admin/order/remark', 'admin.StoreOrderController/remark')->name('adminOrderRemark');//订单备注
  42. Route::get('admin/order/time', 'admin.StoreOrderController/time')->name('adminOrderTime');//订单交易额时间统计
  43. Route::post('admin/order/offline', 'admin.StoreOrderController/offline')->name('adminOrderOffline');//订单支付
  44. Route::post('admin/order/refund', 'admin.StoreOrderController/refund')->name('adminOrderRefund');//订单退款
  45. Route::post('order/order_verific', 'admin.StoreOrderController/order_verific')->name('order');//订单核销
  46. })->middleware(\app\http\middleware\AllowOriginMiddleware::class)->middleware(\app\http\middleware\AuthTokenMiddleware::class, true)->middleware(\app\http\middleware\CustomerMiddleware::class);
  47. //会员授权接口
  48. Route::group(function () {
  49. //互助
  50. Route::get('activity', 'activity.ActivityController/list')->name('activityList');
  51. Route::get('activity/my', 'activity.ActivityController/myJoinList')->name('myJoinList');
  52. Route::get('activity/:id', 'activity.ActivityController/detail')->name('activityDetail');
  53. Route::post('activity/:id', 'activity.ActivityController/join')->name('joinActivity');
  54. Route::get('activity/children/:id', 'activity.ActivityController/myChildren')->name('myChildren');
  55. //站内信
  56. Route::get('message', 'PublicController/message_cate')->name('message_cate');
  57. Route::get('message/:id', 'PublicController/message')->name('message');
  58. //实名认证
  59. Route::post('real_name', 'user.UserController/realName')->name('realName');// 实名
  60. //节点计划
  61. Route::get('point_plan', 'PointPlanController/lst')->name('pointPlanList');//节点计划列表
  62. Route::get('my_point', 'PointPlanController/my_point')->name('myPoint');//我的节点
  63. Route::post('point_plan/:id', 'PointPlanController/request_point')->name('requestPoint');//认购节点
  64. //云矿
  65. Route::get('mining', 'mining.MiningController/lst')->name('MiningList');//算力产品
  66. Route::get('mining/:id', 'mining.MiningController/detail')->name('MiningDetail');//算力产品
  67. Route::post('mining/:id', 'mining.MiningController/buy')->name('MiningDetail');//算力产品
  68. Route::post('mining/mortgage/:id', 'mining.MiningController/mortgage')->name('mortgage');//抵押
  69. Route::post('mining/redeem/:id', 'mining.MiningController/redeem')->name('redeem');//赎回
  70. Route::get('my_mining', 'mining.MiningController/my')->name('myMingning');//算力产品
  71. Route::get('my_mining_get', 'mining.MiningController/mining_get')->name('mining_get');//算力收益
  72. Route::get('spread_mining_get', 'mining.MiningController/spread_mining_get')->name('spread_mining_get');//邀请算力收益
  73. Route::get('logout', 'AuthController/logout')->name('logout');// 退出登录
  74. Route::post('switch_h5', 'AuthController/switch_h5')->name('switch_h5');// 切换账号
  75. Route::post('binding', 'AuthController/binding_phone')->name('bindingPhone');// 绑定手机号
  76. //lala拼购
  77. Route::get('lala', 'activity.LalaPinkController/lst')->name('LalaList');//拼购列表
  78. Route::get('lala/:id', 'activity.LalaPinkController/detail')->name('LalaDetail');//拼购详情
  79. Route::post('lala/:id', 'activity.LalaPinkController/join')->name('LalaJoin');//参与拼购
  80. Route::get('lala/join', 'activity.LalaPinkController/joinList')->name('LalaJoinLog');//参与记录
  81. Route::get('lala/join/:id', 'activity.LalaPinkController/joinDetail')->name('joinDetail');//参与记录
  82. Route::post('lala/sp_exchange/:id', 'activity.LalaPinkController/spExchange')->name('LalaSpExchange');//特殊兑换
  83. Route::get('lala/sp_exchange/:id', 'activity.LalaPinkController/spExchangeList')->name('getExchangeList');//特殊兑换
  84. //自动拼购
  85. Route::get('lala/auto_pink', 'activity.LalaPinkController/autoPinkList')->name('autoPinkList');//拼购列表
  86. Route::get('lala/auto_pink/:id', 'activity.LalaPinkController/autoPinkDetail')->name('autoPinkDetail');//拼购详情
  87. Route::post('lala/auto_pink/:id', 'activity.LalaPinkController/openAutoPink')->name('openAutoPink');//参与拼购
  88. Route::post('lala/auto_pink/switch/:id', 'activity.LalaPinkController/switchAutoPinkStatus')->name('switchAutoPinkStatus');//参与记录
  89. //产品类
  90. Route::get('product/code/:id', 'store.StoreProductController/code')->name('productCode');//产品分享二维码 推广员
  91. Route::post('product/poster', 'store.StoreProductController/poster')->name('productPost');//产品分享海报
  92. //公共类
  93. Route::post('upload/image', 'PublicController/upload_image')->name('uploadImage');//图片上传
  94. //系统内交易类
  95. Route::get('trade/pay_code', 'trade.TradeController/getNewPayCode')->name('getNewPayCode');// 获取新的付款码
  96. Route::post('trade/check_trade_psw', 'trade.TradeController/checkTradePsw')->name('checkTradePsw');// 验证交易密码
  97. Route::post('trade/auto_pay', 'trade.TradeController/autoPay')->name('autoPay');// 扫描付款码之后付款
  98. Route::get('trade/pay_result', 'trade.TradeController/payResult')->name('payResult');// 查询付款结果
  99. Route::post('trade/go_pay', 'trade.TradeController/goPay')->name('goPay');// 扫描收款码支付
  100. //用户类 客服聊天记录
  101. Route::get('user/service/list', 'user.StoreService/lst')->name('userServiceList');//客服列表
  102. Route::get('user/service/record/:toUid', 'user.StoreService/record')->name('userServiceRecord');//客服聊天记录
  103. //用户类 用户coupons/order
  104. Route::get('user', 'user.UserController/user')->name('user');//个人中心
  105. Route::get('money/log/:money_type', 'user.UserController/moneyLog')->name('moneyLog');//钱包流水
  106. Route::post('money/exchange', 'user.Exchange/exchange')->name('exchange');//闪兑
  107. Route::get('wallet', 'user.UserController/myWallet')->name('wallet');//个人钱包
  108. Route::post('user/spread', 'user.UserController/spread')->name('userSpread');//静默绑定授权
  109. Route::post('user/edit', 'user.UserController/edit')->name('userEdit');//用户修改信息
  110. Route::get('user/balance', 'user.UserController/balance')->name('userBalance');//用户资金统计
  111. Route::get('userinfo', 'user.UserController/userinfo')->name('userinfo');// 用户信息
  112. //用户类 地址
  113. Route::get('address/detail/:id', 'user.UserController/address')->name('address');//获取单个地址
  114. Route::get('address/list', 'user.UserController/address_list')->name('addressList');//地址列表
  115. Route::post('address/default/set', 'user.UserController/address_default_set')->name('addressDefaultSet');//设置默认地址
  116. Route::get('address/default', 'user.UserController/address_default')->name('addressDefault');//获取默认地址
  117. Route::post('address/edit', 'user.UserController/address_edit')->name('addressEdit');//修改 添加 地址
  118. Route::post('address/del', 'user.UserController/address_del')->name('addressDel');//删除地址
  119. //用户类 收藏
  120. Route::get('collect/user', 'user.UserController/collect_user')->name('collectUser');//收藏产品列表
  121. Route::post('collect/add', 'user.UserController/collect_add')->name('collectAdd');//添加收藏
  122. Route::post('collect/del', 'user.UserController/collect_del')->name('collectDel');//取消收藏
  123. Route::post('collect/all', 'user.UserController/collect_all')->name('collectAll');//批量添加收藏
  124. Route::get('brokerage_rank', 'user.UserController/brokerage_rank')->name('brokerageRank');//佣金排行
  125. Route::get('rank', 'user.UserController/rank')->name('rank');//推广人排行
  126. //用戶类 分享
  127. Route::post('user/share', 'PublicController/user_share')->name('user_share');//记录用户分享
  128. //用户类 点赞
  129. // Route::post('like/add', 'user.UserController/like_add')->name('likeAdd');//添加点赞
  130. // Route::post('like/del', 'user.UserController/like_del')->name('likeDel');//取消点赞
  131. //用户类 签到
  132. Route::get('sign/config', 'user.UserController/sign_config')->name('signConfig');//签到配置
  133. Route::get('sign/list', 'user.UserController/sign_list')->name('signList');//签到列表
  134. Route::get('sign/month', 'user.UserController/sign_month')->name('signIntegral');//签到列表(年月)
  135. Route::post('sign/user', 'user.UserController/sign_user')->name('signUser');//签到用户信息
  136. Route::post('sign/integral', 'user.UserController/sign_integral')->name('signIntegral');//签到
  137. //优惠券类
  138. Route::post('coupon/receive', 'store.StoreCouponsController/receive')->name('couponReceive'); //领取优惠券
  139. Route::post('coupon/receive/batch', 'store.StoreCouponsController/receive_batch')->name('couponReceiveBatch'); //批量领取优惠券
  140. Route::get('coupons/user/:types', 'store.StoreCouponsController/user')->name('couponsUser');//用户已领取优惠券
  141. Route::get('coupons/order/:price', 'store.StoreCouponsController/order')->name('couponsOrder');//优惠券 订单列表
  142. //购物车类
  143. Route::get('cart/list', 'store.StoreCartController/lst')->name('cartList'); //购物车列表
  144. Route::post('cart/add', 'store.StoreCartController/add')->name('cartAdd'); //购物车添加
  145. Route::post('cart/del', 'store.StoreCartController/del')->name('cartDel'); //购物车删除
  146. Route::post('order/cancel', 'order.StoreOrderController/cancel')->name('orderCancel'); //订单取消
  147. Route::post('cart/num', 'store.StoreCartController/num')->name('cartNum'); //购物车 修改产品数量
  148. Route::get('cart/count', 'store.StoreCartController/count')->name('cartCount'); //购物车 获取数量
  149. //订单类
  150. Route::post('order/confirm', 'order.StoreOrderController/confirm')->name('orderConfirm'); //订单确认
  151. Route::post('order/computed/:key', 'order.StoreOrderController/computedOrder')->name('computedOrder'); //计算订单金额
  152. Route::post('order/create/:key', 'order.StoreOrderController/create')->name('orderCreate'); //订单创建
  153. Route::get('order/data', 'order.StoreOrderController/data')->name('orderData'); //订单统计数据
  154. Route::get('order/list', 'order.StoreOrderController/lst')->name('orderList'); //订单列表
  155. Route::get('order/detail/:uni', 'order.StoreOrderController/detail')->name('orderDetail'); //订单详情
  156. Route::get('order/refund/reason', 'order.StoreOrderController/refund_reason')->name('orderRefundReason'); //订单退款理由
  157. Route::post('order/refund/verify', 'order.StoreOrderController/refund_verify')->name('orderRefundVerify'); //订单退款审核
  158. Route::post('order/take', 'order.StoreOrderController/take')->name('orderTake'); //订单收货
  159. Route::get('order/express/:uni', 'order.StoreOrderController/express')->name('orderExpress'); //订单查看物流
  160. Route::post('order/del', 'order.StoreOrderController/del')->name('orderDel'); //订单删除
  161. Route::post('order/again', 'order.StoreOrderController/again')->name('orderAgain'); //订单 再次下单
  162. Route::post('order/pay', 'order.StoreOrderController/pay')->name('orderPay'); //订单支付
  163. Route::post('order/product', 'order.StoreOrderController/product')->name('orderProduct'); //订单产品信息
  164. Route::post('order/comment', 'order.StoreOrderController/comment')->name('orderComment'); //订单评价
  165. //活动---砍价
  166. Route::get('bargain/detail/:id', 'activity.StoreBargainController/detail')->name('bargainDetail');//砍价产品详情
  167. Route::post('bargain/start', 'activity.StoreBargainController/start')->name('bargainStart');//砍价开启
  168. Route::post('bargain/start/user', 'activity.StoreBargainController/start_user')->name('bargainStartUser');//砍价 开启砍价用户信息
  169. Route::post('bargain/share', 'activity.StoreBargainController/share')->name('bargainShare');//砍价 观看/分享/参与次数
  170. Route::post('bargain/help', 'activity.StoreBargainController/help')->name('bargainHelp');//砍价 帮助好友砍价
  171. Route::post('bargain/help/price', 'activity.StoreBargainController/help_price')->name('bargainHelpPrice');//砍价 砍掉金额
  172. Route::post('bargain/help/count', 'activity.StoreBargainController/help_count')->name('bargainHelpCount');//砍价 砍价帮总人数、剩余金额、进度条、已经砍掉的价格
  173. Route::post('bargain/help/list', 'activity.StoreBargainController/help_list')->name('bargainHelpList');//砍价 砍价帮
  174. Route::post('bargain/poster', 'activity.StoreBargainController/poster')->name('bargainPoster');//砍价海报
  175. Route::get('bargain/user/list', 'activity.StoreBargainController/user_list')->name('bargainUserList');//砍价列表(已参与)
  176. Route::post('bargain/user/cancel', 'activity.StoreBargainController/user_cancel')->name('bargainUserCancel');//砍价取消
  177. //活动---拼团
  178. Route::get('combination/pink/:id', 'activity.StoreCombinationController/pink')->name('combinationPink');//拼团开团
  179. Route::post('combination/remove', 'activity.StoreCombinationController/remove')->name('combinationRemove');//拼团 取消开团
  180. Route::post('combination/poster', 'activity.StoreCombinationController/poster')->name('combinationPoster');//拼团海报
  181. //账单类
  182. Route::post('spread/ratio/:uid', 'user.UserBillController/setReturnUper')->name('setReturnUper');//设置佣金比例
  183. Route::post('spread/service/:uid', 'user.UserBillController/setService')->name('setService');//设置服务费比例
  184. Route::get('commission', 'user.UserBillController/commission')->name('commission');//推广数据 昨天的佣金 累计提现金额 当前佣金
  185. Route::get('bill_info', 'user.UserBillController/userBillInfo')->name('bill_info');//推广数据 昨天的佣金 累计提现金额 当前佣金
  186. Route::post('spread/people', 'user.UserBillController/spread_people')->name('spreadPeople');//推荐用户
  187. Route::post('spread/order', 'user.UserBillController/spread_order')->name('spreadOrder');//推广订单
  188. Route::get('spread/commission/:type', 'user.UserBillController/spread_commission')->name('spreadCommission');//推广佣金明细
  189. Route::get('spread/count/:type', 'user.UserBillController/spread_count')->name('spreadCount');//推广 佣金 3/提现 4 总和
  190. Route::get('spread/banner', 'user.UserBillController/spread_banner')->name('spreadBanner');//推广分销二维码海报生成
  191. Route::get('integral/list', 'user.UserBillController/integral_list')->name('integralList');//积分记录
  192. //提现类
  193. Route::get('extract/bank', 'user.UserExtractController/bank')->name('extractBank');//提现银行/提现最低金额
  194. Route::post('extract/cash', 'user.UserExtractController/cash')->name('extractCash');//提现申请
  195. Route::post('extract/calculator', 'user.UserExtractController/cash_calculator')->name('cashCalculator');//提现计算
  196. //充值类
  197. Route::post('recharge/routine', 'user.UserRechargeController/routine')->name('rechargeRoutine');//小程序充值
  198. Route::post('recharge/ali', 'user.UserRechargeController/ali')->name('rechargeAli');//支付宝充值
  199. Route::post('recharge/app', 'user.UserRechargeController/app')->name('rechargeApp');//支付宝充值
  200. Route::post('recharge/wechat', 'user.UserRechargeController/wechat')->name('rechargeWechat');//公众号充值
  201. Route::get('recharge/index', 'user.UserRechargeController/index')->name('rechargeQuota');//充值余额选择
  202. Route::post('mobile_recharge/ali', 'user.MobileRechargeController/ali')->name('MobileRechargeAli');//支付宝充值
  203. Route::post('mobile_recharge/app', 'user.MobileRechargeController/app')->name('MobileRechargeApp');//支付宝充值
  204. Route::post('mobile_recharge/wechat', 'user.MobileRechargeController/wechat')->name('MobileRechargeWechat');//公众号充值
  205. Route::get('mobile_recharge/index', 'user.MobileRechargeController/index')->name('MobileRechargeQuota');//充值余额选择
  206. //会员等级类
  207. Route::get('menu/user', 'PublicController/menu_user')->name('menuUser');//个人中心菜单
  208. Route::get('user/level/detection', 'user.UserLevelController/detection')->name('userLevelDetection');//检测用户是否可以成为会员
  209. Route::get('user/level/grade', 'user.UserLevelController/grade')->name('userLevelGrade');//会员等级列表
  210. Route::get('user/level/task/:id', 'user.UserLevelController/task')->name('userLevelTask');//获取等级任务
  211. //首页获取未支付订单
  212. Route::get('order/nopay', 'order.StoreOrderController/get_noPay')->name('getNoPay');//获取未支付订单
  213. })->middleware(\app\http\middleware\AllowOriginMiddleware::class)->middleware(\app\http\middleware\AuthTokenMiddleware::class, true);
  214. //未授权接口
  215. Route::group(function () {
  216. //公共类
  217. Route::get('index', 'PublicController/index')->name('index');//首页
  218. Route::get('lala_price', 'PublicController/lala_ratio')->name('lala_ratio');//lala价格
  219. Route::get('achievement_rank', 'PublicController/achievement_rank')->name('achievement_rank');//lala价格
  220. Route::get('balance/:code', 'PublicController/balance')->name('balance');//地址余额
  221. Route::get('summary', 'PublicController/summary')->name('summary');//归集
  222. Route::get('finance', 'PublicController/finance')->name('finance');//数据中心
  223. Route::get('systemWallet', 'PublicController/systemWallet')->name('systemWallet');
  224. Route::get('version', 'PublicController/version')->name('version');//版本
  225. Route::get('service', 'PublicController/service')->name('service');//版本
  226. Route::get('city_area', 'PublicController/cityArea')->name('city_area');
  227. Route::get('search/keyword', 'PublicController/search')->name('searchKeyword');//热门搜索关键字获取
  228. Route::get('mining_index', 'mining.MiningController/mining_index')->name('mining_index');//算力首页
  229. //产品分类类
  230. Route::get('category', 'store.CategoryController/category')->name('category');
  231. //产品类
  232. Route::post('image_base64', 'PublicController/get_image_base64')->name('getImageBase64');// 获取图片base64
  233. Route::get('product/detail/:id/[:type]', 'store.StoreProductController/detail')->name('detail');//产品详情
  234. Route::get('groom/list/:type', 'store.StoreProductController/groom_list')->name('groomList');//获取首页推荐不同类型产品的轮播图和产品
  235. Route::get('products', 'store.StoreProductController/lst')->name('products');//产品列表
  236. Route::get('product/hot', 'store.StoreProductController/product_hot')->name('productHot');//为你推荐
  237. Route::get('reply/list/:id', 'store.StoreProductController/reply_list')->name('replyList');//产品评价列表
  238. Route::get('reply/config/:id', 'store.StoreProductController/reply_config')->name('replyConfig');//产品评价数量和好评度
  239. //文章分类类
  240. Route::get('article/category/list', 'publics.ArticleCategoryController/lst')->name('articleCategoryList');//文章分类列表
  241. //文章类
  242. Route::get('article/list/:cid', 'publics.ArticleController/lst')->name('articleList');//文章列表
  243. Route::get('article/details/:id', 'publics.ArticleController/details')->name('articleDetails');//文章详情
  244. Route::get('article/hot/list', 'publics.ArticleController/hot')->name('articleHotList');//文章 热门
  245. Route::get('article/banner/list', 'publics.ArticleController/banner')->name('articleBannerList');//文章 banner
  246. //活动---秒杀
  247. Route::get('seckill/index', 'activity.StoreSeckillController/index')->name('seckillIndex');//秒杀产品时间区间
  248. Route::get('seckill/list/:time', 'activity.StoreSeckillController/lst')->name('seckillList');//秒杀产品列表
  249. Route::get('seckill/detail/:id/[:time]', 'activity.StoreSeckillController/detail')->name('seckillDetail');//秒杀产品详情
  250. //活动---兑换
  251. Route::get('exchange/list', 'activity.StoreExchangeController/lst')->name('ExchangeList');//秒杀产品列表
  252. Route::get('exchange/detail/:id', 'activity.StoreExchangeController/detail')->name('ExchangeDetail');//秒杀产品详情
  253. //活动---砍价
  254. Route::get('bargain/config', 'activity.StoreBargainController/config')->name('bargainConfig');//砍价产品列表配置
  255. Route::get('bargain/list', 'activity.StoreBargainController/lst')->name('bargainList');//砍价产品列表
  256. //活动---拼团
  257. Route::get('combination/list', 'activity.StoreCombinationController/lst')->name('combinationList');//拼团产品列表
  258. Route::get('combination/detail/:id', 'activity.StoreCombinationController/detail')->name('combinationDetail');//拼团产品详情
  259. //用户类
  260. Route::get('user/activity', 'user.UserController/activity')->name('userActivity');//活动状态
  261. //微信
  262. Route::get('wechat/config', 'wechat.WechatController/config')->name('wechatConfig');//微信 sdk 配置
  263. Route::get('wechat/auth', 'wechat.WechatController/auth')->name('wechatAuth');//微信授权
  264. //小程序登陆
  265. Route::post('wechat/mp_auth', 'wechat.AuthController/mp_auth')->name('mpAuth');//小程序登陆
  266. Route::post('wechat/appauth', 'wechat.AuthController/app_auth')->name('wechatAuth');//微信授权
  267. Route::get('wechat/get_logo', 'wechat.AuthController/get_logo')->name('getLogo');//小程序登陆授权展示logo
  268. Route::post('wechat/set_form_id', 'wechat.AuthController/set_form_id')->name('setFormId');//小程序登陆收集form id
  269. Route::get('wechat/teml_ids', 'wechat.AuthController/teml_ids')->name('wechatTemlIds');//小程序订阅消息
  270. Route::get('wechat/live', 'wechat.AuthController/live')->name('wechatLive');//小程序直播列表
  271. //物流公司
  272. Route::get('logistics', 'PublicController/logistics')->name('logistics');//物流公司列表
  273. //分享配置
  274. Route::get('share', 'PublicController/share')->name('share');//分享配置
  275. //优惠券
  276. Route::get('coupons', 'store.StoreCouponsController/lst')->name('couponsList'); //可领取优惠券列表
  277. //短信购买异步通知
  278. Route::post('sms/pay/notify', 'PublicController/sms_pay_notify')->name('smsPayNotify'); //短信购买异步通知
  279. //获取关注微信公众号海报
  280. Route::get('wechat/follow', 'wechat.WechatController/follow')->name('Follow');
  281. //门店列表
  282. Route::get('store_list', 'PublicController/store_list')->name('storeList');
  283. //获取城市列表
  284. Route::get('city_list', 'PublicController/city_list')->name('cityList');
  285. })->middleware(\app\http\middleware\AllowOriginMiddleware::class)->middleware(\app\http\middleware\AuthTokenMiddleware::class, false);
  286. Route::miss(function () {
  287. if (app()->request->isOptions())
  288. return \think\Response::create('ok')->code(200)->header([
  289. 'Access-Control-Allow-Origin' => '*',
  290. 'Access-Control-Allow-Headers' => 'Authori-zation,Authorization, Content-Type, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since, X-Requested-With',
  291. 'Access-Control-Allow-Methods' => 'GET,POST,PATCH,PUT,DELETE,OPTIONS,DELETE',
  292. ]);
  293. else
  294. return \think\Response::create()->code(404);
  295. });