web.php 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459
  1. <?php
  2. use Illuminate\Http\Request;
  3. /*
  4. |--------------------------------------------------------------------------
  5. | API Routes
  6. |--------------------------------------------------------------------------
  7. |
  8. | Here is where you can register API routes for your application. These
  9. | routes are loaded by the RouteServiceProvider within a group which
  10. | is assigned the "api" middleware group. Enjoy building your API!
  11. |
  12. */
  13. /** @var TYPE_NAME $api */
  14. $api = app('Dingo\Api\Routing\Router');
  15. $api->version('v1',[
  16. 'namespace'=>'App\Http\Controllers'
  17. ],function ($api){
  18. /*----------------登录相关---------------*/
  19. $api->get('/login/judge_login','LoginController@judge_login');
  20. $api->get('/wechat_mess','UserController@wechat_mess');
  21. $api->any('/login/login','LoginController@login');
  22. $api->get('/set_login','LoginController@setUserInfo');
  23. $api->get('/login/wechat_login','LoginController@wechat_login');
  24. $api->get('/login/register','LoginController@register');
  25. $api->get('user/submit_user','UserController@submit_user');
  26. $api->get('/login/get_user_openid','LoginController@wxLogin');
  27. $api->get('/enid','LoginController@enid');
  28. //产品详情
  29. $api->get('/detail/index','DetailController@index');
  30. $api->get('AddQrCode','IndexController@AddQrCode');//文章列表
  31. $api->get('AddQrCodes','IndexController@AddQrCodes');//文章列表
  32. $api->get('/GetNewUserDetail','TeamController@GetNewUserDetail');
  33. $api->group(['middleware' => 'jwt.auth'], function($api) {
  34. /*--------------------个人信息开始-------------------*/
  35. $api->get('user/getinfo','UserController@getinfo');
  36. $api->get('user/per_data','UserController@per_data');
  37. $api->get('user/confirm_level','UserController@confirm_level');
  38. $api->get('user/user_cert','AuditController@user_cert');
  39. /*----------------授权书相关------------*/
  40. $api->get('/user/auth_code','UserController@auth_code');
  41. $api->post('/user/auth_share','UserController@auth_share');
  42. /*-----------------换绑手机号-----------*/
  43. $api->get('user/send_code','UserController@send_code');
  44. $api->get('user/change_num','UserController@change_num');
  45. /*-----------------地址管理------------*/
  46. $api->get('user/show_address','UserController@show_address');
  47. $api->post('user/add_address','UserController@add_address');
  48. $api->get('user/search_address','UserController@search_address');
  49. $api->get('user/del_address','UserController@del_address');
  50. $api->post('user/update_address','UserController@update_address');
  51. $api->post('user/update_nickname','UserController@update_nickname');
  52. $api->post('user/update_phone','UserController@update_phone');
  53. $api->post('user/update_qr_code','UserController@update_qr_code');
  54. $api->post('user/upload_img','UserController@uploadImg');
  55. $api->get('user/auth_info','UserController@authInfo');
  56. /*--------------------个人信息结束-------------------*/
  57. //消息公告
  58. $api->get('index/get_message_info','IndexController@getMessageInfo');
  59. /**------------邀请相关-----------***/
  60. // $api->get('user/audit','AuditController@recom_sure');
  61. $api->get('team/examine','AuditController@recom_audit');
  62. $api->get('team/examine_list','AuditController@recom_sure_record');//注册审核列表
  63. // $api->get('user/recom_audit_record','AuditController@recom_sure_record');
  64. // $api->get('user/agent_audit','AuditController@agent_audit');
  65. // $api->get('user/agent_audit_show','AuditController@agent_sure_show');
  66. // $api->get('user/agent_audit_record','AuditController@agent_sure_record');
  67. $api->post('store/set_agree','StoreController@setAgree');
  68. $api->post('store/share_store','StoreController@shareStore');
  69. $api->post('store/upload_cert_img','StoreController@uploadCertImg');
  70. $api->post('store/upload_face_img','StoreController@uploadFaceImg');
  71. $api->get('store/get_store_info','StoreController@getStoreInfo');
  72. $api->get('store/get_agent_info','StoreController@getAgentInfo');
  73. $api->post('store/edit_store_info','StoreController@editStoreInfo');
  74. $api->post('store/upload_store_img','StoreController@uploadStoreImg');
  75. $api->post('store/cert_store','StoreController@certStore');
  76. $api->get('store/get_user_data_info','StoreController@getUserDataInfo');
  77. $api->get('store/get_user_info','StoreController@getUserInfo');
  78. $api->get('store/get_all_address','StoreController@getAllAddress');
  79. $api->get('store/get_address','StoreController@getAddress');
  80. $api->post('store/add_address','StoreController@addAddress');
  81. $api->post('store/update_address','StoreController@updateAddress');
  82. $api->post('store/destroy_address','StoreController@destroyAddress');
  83. $api->post('store/set_default_address','StoreController@setDefaultAddress');
  84. $api->post('store/submit_order_info','StoreController@submitOrderInfo');
  85. $api->get('store/get_order_list','StoreController@getOrderList');
  86. $api->get('store/get_order_info','StoreController@getOrderInfo');
  87. $api->get('store/get_order_no_info','StoreController@getOrderNoInfo');
  88. $api->post('store/add_comment','StoreController@addComment');
  89. $api->get('store/get_comment','StoreController@getComment');
  90. $api->get('store/get_express_code','StoreController@getExpressCode');
  91. $api->post('store/add_order_express_no','StoreController@addOrderExpressNo');
  92. $api->get('store/get_order_express','StoreController@getOrderExpress');
  93. $api->get('store/get_more_buy','StoreController@getMoreBuy');
  94. $api->get('store/get_more_scan','StoreController@getMoreScan');
  95. $api->get('store/send_sms','StoreController@sendSms');
  96. $api->post('store/edit_sms','StoreController@editSms');
  97. $api->post('store/check_sms','StoreController@checkSms');
  98. $api->post('store/one_self_take','StoreController@oneSelfTake');
  99. $api->get('store_goods/get_goods_taps','StoreGoodsController@getGoodsTaps');
  100. $api->get('store_goods/get_goods_list','StoreGoodsController@getGoodsList');
  101. $api->get('store_goods/share_goods','StoreGoodsController@shareGoods');
  102. $api->get('store_goods/get_store_user','StoreGoodsController@getStoreUser');
  103. $api->post('payment/pay','PaymentController@pay');
  104. $api->post('payment/set_bank_info','MiniSubController@setBankInfo');
  105. $api->get('payment/get_bank_info','MiniSubController@getBankInfo');
  106. /*-------团队--------*/
  107. $api->get('team/card_data','TeamController@card_data');
  108. $api->get('team/new_per','TeamController@new_per');
  109. $api->get('team/list','TeamController@level_count');
  110. $api->get('team/add_list','TeamController@add_list');
  111. $api->get('team/GetNewUserDetail','TeamController@GetNewUserDetail');
  112. $api->get('team/money','TeamController@money');
  113. $api->get('team/invite','TeamController@invite');
  114. $api->get('team/invite_code','TeamController@invite_code');
  115. $api->group(['prefix'=>'team'],function ($api){
  116. $api->get('GetUserTeamList','TeamController@GetUserTeamList');
  117. $api->get('GetUserTeamLevelDetail','TeamController@GetUserTeamLevelDetail');
  118. $api->get('GetTeamList','TeamController@GetTeamList');
  119. });
  120. /**
  121. * 商品
  122. */
  123. $api->get('/goods/list','GoodsController@goods_list');
  124. $api->get('/goods/detail','GoodsController@goods_detail');
  125. $api->get('app/chart','BasicController@charts');
  126. $api->get('app/index','BasicController@index');
  127. $api->get('app/message','BasicController@message');
  128. $api->get('app/message_read','BasicController@message_read');
  129. $api->get('app/updata','BasicController@version');
  130. /*
  131. * 订单相关
  132. * */
  133. $api->post('order/submit_order','OrderController@submit_order');//提交
  134. $api->get('order/order_complete','OrderController@order_complete');//收货
  135. $api->get('order/order_sure_pay','OrderController@order_sure_pay');//收款
  136. $api->get('order/order_del','OrderController@order_del');//删除
  137. $api->get('order/detail','OrderController@order_detail');//订单详情
  138. $api->get('order/my_order','OrderController@my_order');//我的订单
  139. $api->get('order/order_lower','OrderController@order_lower');//我的订单
  140. $api->get('order/order_turn','OrderController@order_turn');//转单订单
  141. $api->post('order/forward','OrderController@turn_order');//转单订单
  142. $api->get('inventory/record','OrderController@single_record');//转单订单
  143. /**----财富相关------**/
  144. $api->get('income/income','TreasureController@income');
  145. $api->get('income/detail','TreasureController@detail');
  146. /**----APP相关-----**/
  147. $api->get('app/feedback','BasicController@question');
  148. // $api->get('/index','IndexController@index');
  149. $api->get('article/show_list','ArticleController@show_list');
  150. $api->get('article/show_detail','ArticleController@show_detail');
  151. $api->get('article/like','ArticleController@like');
  152. $api->get('article/collection','ArticleController@collection');
  153. $api->get('article/mycollection','ArticleController@mycollection');
  154. $api->post('/user/update_pass','UserController@update_pass');
  155. $api->post('/submit_order','OrdertestController@submit_order');//提交订单
  156. $api->get('/order/get_gift','OrdertestController@get_data');//获取赠品信息
  157. $api->get('/order/sure_order','OrdertestController@sure_order');//提交订单
  158. $api->get('/order_detail','OrdertestController@order_detail');//订单详情
  159. $api->get('/order_list','OrdertestController@order_list');//订单列表
  160. $api->get('/get_log','OrdertestController@get_log');//订单操作日志
  161. $api->get('/pay_order','OrdertestController@pay_order');//订单支付
  162. $api->get('/destory','OrdertestController@destory');//订单修改和作废
  163. $api->get('/user/user_pay_log','PayController@user_pay_log');//账户金额日志
  164. $api->get('/order/get_gift_info','OrdertestController@get_gift');//获取订单赠品信息
  165. $api->get('/order/get_order_expresses','OrdertestController@get_order_expresses');//订单物流
  166. $api->get('/order/get_express','OrdertestController@get_express');//订单物流
  167. $api->get('/order/order_data','OrdertestController@order_data');//订单统计
  168. $api->get('/order/search_order','OrdertestController@search_order');//订单统计
  169. $api->get('/inventory/get_user','OrdertestController@get_user');//订单统计
  170. $api->get('/order/ApplyDestoryOrder','OrdertestController@ApplyDestoryOrder');//订单统计
  171. $api->get('/order/CancleDestoryOrder','OrdertestController@CancleDestoryOrder');//订单统计
  172. $api->get('/logout','UserController@logout');
  173. /**礼品统计**/
  174. $api->get('order/type_count','OrdertestController@type_count');//下级信息礼品详情
  175. $api->post('order/type_submit','OrdertestController@type_submit');//礼品提交
  176. $api->get('get_activity','OrdertestController@get_activity');//获取活动时间
  177. $api->get('get_activity_list','OrdertestController@get_activity_list');//获取活动时间
  178. $api->get('GetUserHonor','OrdertestController@GetUserHonor');//获取活动时间
  179. $api->get('order/GetOrderDetail','OrdertestController@GetOrderDetail');//获取活动时间
  180. $api->group(['prefix'=>'order'], function ($api){
  181. $api->get('look_good','StorageController@look_good');
  182. $api->get('good_detail','StorageController@good_detail');
  183. });
  184. $api->group(['prefix'=>'studioGood'],function ($api){
  185. $api->get('good_show','StudioGoodController@good_show');
  186. });
  187. $api->group(['prefix'=>'studioOrder'],function ($api){
  188. $api->post('submit_order','StudioOrderController@submit_order');
  189. $api->get('studio_record','StudioOrderController@studio_record');
  190. $api->get('order_detail','StudioOrderController@order_detail');
  191. $api->get('look_good','StudioOrderController@look_good');
  192. $api->get('good_detail','StudioOrderController@good_detail');
  193. $api->get('/get_express','StudioOrderController@get_express');//订单物流
  194. });
  195. $api->group(['prefix'=>'studio'],function ($api){
  196. $api->get('studioBonus','StudioOrderController@studioBonus');
  197. });
  198. $api->group(['prefix'=>'article'],function ($api){
  199. $api->get('GetArticleGroup','ArticleController@GetArticleGroup');//文章分组
  200. $api->get('GetRecomArticle','ArticleController@GetRecomArticle');//推荐文章
  201. $api->get('GetArticleDetail','ArticleController@GetArticleDetail');//文章详情
  202. $api->get('GetArticleList','ArticleController@GetArticleList');//文章列表
  203. });
  204. $api->group(['prefix'=>'user'],function ($api){
  205. $api->get('GetFillStatus','UserController@GetFillStatus');
  206. $api->post('ValiInfo','UserController@ValiInfo');
  207. });
  208. $api->group(['prefix'=>'storage'], function ($api){
  209. /**我的***/
  210. $api->get('my_storage','StorageController@my_storage');
  211. /**库存详情***/
  212. $api->get('storage_detail','StorageController@storage_detail');
  213. /***待入库***/
  214. $api->get('put_storage','StorageController@put_storage');
  215. /**入库操作**/
  216. $api->get('put_good_storage','StorageController@put_good_storage');
  217. /**入库记录详情(出库记录、盘库记录)**/
  218. $api->get('put_storage_detail','StorageController@put_storage_detail');
  219. /**入库记录分组**/
  220. $api->get('put_storage_group','StorageController@put_storage_group');
  221. /*获取商品图片**/
  222. $api->get('get_goodimg','StorageController@get_goodimg');
  223. /**一次性盘库**/
  224. $api->post('one_sure_storage','StorageController@one_sure_storage');
  225. /**获取库存**/
  226. $api->get('get_storage','StorageController@get_storage');
  227. /**盘库**/
  228. $api->post('sure_storage','StorageController@sure_storage');
  229. /**出库**/
  230. $api->post('out_storage','StorageController@out_storage');
  231. $api->get('sure_storage_group','StorageController@sure_storage_group');//盘库记录的分组
  232. $api->get('sure_storage_detail','StorageController@sure_storage_detail');//盘库记录的详情
  233. $api->get('put_storage_groups','StorageController@put_storage_groups');//入库记录的分组
  234. $api->get('put_storage_details','StorageController@put_storage_details');//入库记录的详情
  235. $api->post('put_storages','StorageController@put_storages');//入库的详情
  236. $api->get('get_group','StorageController@get_group');//货物相亲
  237. $api->get('get_detail','StorageController@get_detail');
  238. });
  239. $api->group(['prefix'=>'miniSub'], function ($api){
  240. /**小商户进件***/
  241. $api->post('apply_wx','MiniSubController@apply_wx');
  242. /**获取平台证书***/
  243. $api->get('getzhengshu','MiniSubController@getzhengshu');
  244. /**查看进件状态***/
  245. $api->get('query','MiniSubController@query');
  246. $api->post('uploadmedia','MiniSubController@uploadmedia');
  247. $api->post('upload_img','MiniSubController@uploadImg');
  248. });
  249. $api->group(['prefix'=>'UserSend'],function($api){
  250. /**货物扫码权限**/
  251. $api->get('get_arr','UserGoodSendController@get_arr');//new
  252. /**获取下级信息**/
  253. $api->get('get_lower_user','UserGoodSendController@get_lower_user');//new
  254. /**退货操作**/
  255. $api->get('user_return_good','UserGoodSendController@user_return_good');//new
  256. /**发货时的信息查询**/
  257. $api->get('select_send_user','UserGoodSendController@select_send_user');//new
  258. /**退款的信息查询*/
  259. $api->get('select_return_user','UserGoodSendController@select_return_user');//new
  260. /***零售**/
  261. $api->get('sell','UserGoodSendController@sell');//new
  262. //批量发货
  263. $api->post('AllSendGood','UserGoodSendController@AllSendGood');//new
  264. /**代理扫码信息**/
  265. $api->get('user_send_good','UserGoodSendController@user_send_good');//new
  266. });
  267. });
  268. $api->post('payment/notify','PaymentController@notify');
  269. $api->get('/good_show','GoodtestController@good_show');//商品列表
  270. $api->get('/again_order','GoodtestController@again_order');//商品列表
  271. $api->get('/json','IndexController@json');
  272. $api->get('/index','IndexController@index');
  273. // $api->get('/index',function(){
  274. // return '123123aa';
  275. // });
  276. // $api->get('/test','IndexController@test');
  277. $api->get('/ress','UserController@ress');
  278. $api->get('/show','OrderController@show_index');
  279. $api->get('/order/order_rank','OrdertestController@order_rank');
  280. /*
  281. * 活动
  282. * */
  283. $api->get('order/order_notpay','OrderController@order_notpay');
  284. $api->get('order/submit_orders','OrdertestController@submit_orders');
  285. /*
  286. * 商品
  287. * */
  288. $api->get('article/show_article','ArticleController@index');
  289. $api->get('/user/auth_sel','UserController@auth_sel');
  290. $api->get('/user/auth_show','UserController@auth_show');
  291. $api->get('/wechat/wechat_data','BasicController@wechat_data');
  292. $api->get('/wechat/wechat','BasicController@wechat');
  293. $api->get('/wechat/return_code','BasicController@return_code');
  294. // $api->get('inventory/detail','GoodSkuTotalController@total_sur');
  295. $api->get('order/my_storage','GoodSkuTotalController@total_sur');//库存
  296. $api->get('system','BasicController@system');
  297. $api->get('send_code','LoginController@send_code');
  298. $api->get('/proxy/updata','ActiveController@active');//代理升级
  299. $api->get('/CreateTokenTest','UserController@CreateTokenTest');
  300. $api->get('gzh','UserController@gzh');
  301. $api->get('agent','UserController@agent');
  302. $api->get('test/{any}','UserController@test');
  303. $api->get('test','UserController@test');
  304. $api->get('test/{any}/{name}','UserController@test');
  305. $api->get('test/{any}/{name}/{all}','UserController@test');
  306. $api->get('test/{any}/{name}/{all}/{alll}','UserController@test');
  307. $api->get('gzh/{nickname}/{mobile}/{code}',function (){
  308. return '<script>alert("当前链接失效,请联系邀请人重新分享二维码")</script>';
  309. });
  310. $api->get('gzh/{nickname}/{mobile}/{code}/{time}',function (){
  311. return '<script>alert("当前二维码失效,请联系邀请人重新分享二维码")</script>';
  312. });
  313. $api->get('gzh/{nickname}','UserController@gzh');
  314. $api->get('select','UserController@auth_select');
  315. $api->any('/user/login','LoginController@login');
  316. $api->get('/index/login','IndexController@login');
  317. $api->get('/indes','IndexController@indes');
  318. $api->get('/user/token','BasicController@token');
  319. $api->get('user/get_user_re','BasicController@get_user_re');
  320. $api->post('/index/info','IndexController@info');
  321. $api->get('/index/get_index','IndexController@get_index');
  322. $api->get('/index/GetUser','IndexController@GetUser');
  323. $api->get('/get_address','UserController@get_address');
  324. $api->get('/get_data','OrdertestController@get_data');//获取订单赠品信息
  325. $api->get('look_good','StudioOrderController@look_good');
  326. $api->get('my_storage','StorageController@my_storage');
  327. $api->get('put_storage','StorageController@put_storage');
  328. $api->get('good_detail','StorageController@good_detail');
  329. $api->get('put_storage_detail','StorageController@put_storage_detail');
  330. $api->get('get_storage','StorageController@get_storage');
  331. $api->get('get_group','StorageController@get_group');
  332. $api->get('get_detail','StorageController@get_detail');
  333. $api->get('GetUserTeamList','TeamController@GetUserTeamList');
  334. $api->get('GetUserTeamLevelDetail','TeamController@GetUserTeamLevelDetail');
  335. $api->get('GetArticleGroup','ArticleController@GetArticleGroup');//文章分组
  336. $api->get('GetRecomArticle','ArticleController@GetRecomArticle');//推荐文章
  337. $api->get('GetArticleDetail','ArticleController@GetArticleDetail');//文章详情
  338. $api->get('GetArticleList','ArticleController@GetArticleList');//文章列表
  339. $api->get('makeQrCode','WechatController@makeQrCode');//文章列表
  340. $api->get('TestCache','IndexController@TestCache');//文章列表
  341. $api->get('discernAdress','AddressController@DealAddress');
  342. $api->get('GetOrderDetail','OrdertestController@GetOrderDetail');//获取活动时间
  343. $api->get('sql','BasicController@GetSql');
  344. });