api.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  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. $api->get('/GetSignPlaces', 'PayNewController@GetSignPlaces');
  19. $api->get('/TestDemo', 'PayController@get_basic_infos');
  20. $api->post('/TestDemoss', 'PayController@ssss');
  21. $api->get('/insex','UserController@insex');
  22. $api->get('/DemoTest', 'PayController@DemoTest');
  23. $api->get('/Al', 'PayController@AllRefund');
  24. $api->get('/get_pays', 'PayController@get_pays');
  25. $api->get('/get_payss', 'PayController@get_payss');
  26. $api->get('UpdateCache', 'UserController@UpdateCache');
  27. $api->get('user/GetUpgradeInfo', 'UserController@GetUpgradeInfo');
  28. $api->get('/get_basic_infos', 'PayController@get_basic_infoss');
  29. $api->get('/AddIndex', 'IndexController@AddIndex');
  30. $api->get('test', 'IndexController@index');
  31. $api->get('arr', 'IndexController@arr');
  32. $api->get('insert', 'IndexController@insert');
  33. $api->get('image_time', 'ImageClassController@image_time');
  34. $api->get('lokks', 'ImageClassController@lokks');
  35. $api->get('wechat_img', 'IndexController@wechat_img');
  36. $api->get('indexs', 'IndexController@indexs');
  37. $api->get('index', 'IndexController@index');
  38. $api->get('wechat', 'UserController@wechat');
  39. $api->get('basicinfo', 'UserController@basicinfo');
  40. $api->get('image_upload', 'IntegralController@image_upload');
  41. $api->get('token', 'IntegralController@token');
  42. $api->post('/wechat/message', 'WechatController@message');
  43. $api->get('make_sign_code','SignController@make_sign_code');
  44. /**登录相关**/
  45. $api->get('/login/send_code', 'LoginController@send_code');//发送验证码
  46. $api->get('/login/validator', 'LoginController@validator');//验证码手机验证码
  47. $api->get('/login/wechat_login', 'LoginController@wechat_login');//微信登录
  48. $api->post('/pay/message', 'PayNewController@message');
  49. $api->get('GetCaches', 'PayNewController@GetCache');
  50. $api->post('/payonline/message', 'PayOnlineController@message');
  51. $api->get('/pay/text', 'PayController@text');
  52. $api->get('/pay/pay_query', 'PayController@pay_query');
  53. /**发起退款**/
  54. $api->post('/pay/refund', 'PayController@sure_code');
  55. $api->get('/search_pay_statuss', 'PayNewController@search_pay_statuss');
  56. $api->post('/AllRefund', 'PayNewController@AllRefund');
  57. $api->post('/online_refund', 'OnlineController@online_refund');
  58. /**退款回调**/
  59. $api->post('/pay/send', 'PayController@refund');
  60. $api->post('/pay/online_send', 'OnlineController@online_send');
  61. $api->get('/pay/RefundNum', 'PayController@RefundNum');
  62. $api->post('/pay/refunds', 'PayController@refunds');
  63. $api->get('/user/basic_info', 'UserController@basic_info');
  64. /**退款申请**/
  65. // $api->post('/pay/send', 'PayController@sure_code');
  66. $api->get('/send', 'IndexController@send');
  67. $api->group(['middleware' => 'refresh.token'], function ($api) {
  68. $api->get('/TestAddress', 'PayNewController@TestAddress');
  69. /****新支付****/
  70. $api->get('/payNew/check_pay', 'PayNewController@check_pay');
  71. $api->get('/payNew/InsertPostern', 'PayNewController@InsertPostern');
  72. $api->get('/payNew/search_pay_status', 'PayNewController@search_pay_status');
  73. $api->get('/payNew/queue_info', 'PayNewController@queue_info');
  74. $api->get('/signup/queue_list', 'SignUpController@queue_list');
  75. /***新支付****/
  76. /**获取基本信息*/
  77. $api->get('/user/get_info', 'UserController@get_info');
  78. $api->get('/user/signStatus', 'UserController@signStatus');
  79. $api->get('/user/GetSignPlaces', 'PayNewController@GetSignPlaces');
  80. $api->get('/pay/PayCost', 'PayNewController@PayCost');
  81. /**获取承诺书**/
  82. $api->get('user/promise_book', 'UserController@promise_book');
  83. /**提交承诺书**/
  84. $api->get('user/submit_promise', 'UserController@submit_promise');
  85. /**报名**/
  86. $api->get('pay/pay', 'PayNewController@pay');
  87. // $api->get('pay/pay', 'PayController@pay');
  88. /**支付结果查询**/
  89. $api->get('pay/get_pay', 'PayController@get_pay');
  90. /**上传图片*/
  91. $api->post('integral/image_upload', 'IntegralController@image_upload');
  92. /**获取排行榜**/
  93. $api->get('rank/rank', 'RankController@rank');
  94. /**上传记录**/
  95. $api->get('user/upload_log', 'UserController@upload_log');
  96. /**报名历史*/
  97. $api->get('user/sign_list', 'PayController@pay_log');
  98. $api->get('user/get_season_log', 'PayController@get_season_log');
  99. /********
  100. * 新 增 *
  101. *******/
  102. //报名凭证
  103. $api->get('sign/look_sign', 'SignController@look_sign');
  104. $api->get('sign/get_sign_info', 'SignController@get_sign_info');
  105. /**确认签到**/
  106. $api->get('sign/sure_sign_user', 'SignController@sure_sign');
  107. $api->get('sign/GetLocation', 'SignController@GetLocation');
  108. /**生成另一种签到码**/
  109. $api->get('sign/make_sign_code', 'SignController@make_sign_code');
  110. /**填写的表单**/
  111. $api->get('pay/get_form', 'PayController@get_form');
  112. /**获取是否得到了相关信息**/
  113. $api->get('pay/get_basic_info', 'PayController@get_basic_info');
  114. /**提交表单**/
  115. $api->post('pay/submit_form', 'PayController@submit_form');
  116. /**查看已经填写的表单**/
  117. $api->post('pay/look_form', 'PayController@look_form');
  118. /**已报名的名单**/
  119. $api->get('enroll/get_enroll_user', 'UserController@get_enroll_user');
  120. /**相册内容**/
  121. $api->get('image/image_time', 'ImageClassController@image_time');
  122. /**查看某一个相册的详情**/
  123. $api->get('image/get_detail', 'ImageClassController@get_detail');
  124. /**获取全部文件夹**/
  125. $api->get('image/get_folder', 'ImageClassController@get_folder');
  126. /**获取某个文件夹下的照片**/
  127. $api->get('image/get_img_detail', 'ImageClassController@get_img_detail');
  128. /**收藏某一张图片**/
  129. $api->get('image/like', 'ImageClassController@like');
  130. /**我的收藏**/
  131. $api->get('image/get_like', 'ImageClassController@get_like');
  132. /**获取四种四种情况的人数**/
  133. $api->get('sign/sign_info','SignUpController@sign_info');
  134. $api->get('sign/queue_info','SignUpController@queue_info');
  135. /**获取每一种情况的人员列表**/
  136. $api->get('sign/get_sign_detail','SignUpController@get_sign_detail');
  137. /**获取个人的信息**/
  138. $api->get('sign/get_user_detail','SignUpController@get_user_detail');
  139. /**数据统计**/
  140. $api->get('data/data','IndexController@data');
  141. $api->get('data/count_data','IndexController@count_data');
  142. /**查看身份**/
  143. $api->get('/look/look_auth', 'UserController@look_auth');
  144. /*货物排名**/
  145. $api->get('/look/get_rank', 'UserController@get_rank');
  146. /***********/
  147. /**便 签***/
  148. /************/
  149. /**我的便签*/
  150. $api->get('/note/my_note_list','NoteController@my_note_list');
  151. /**展示便签**/
  152. $api->get('/note/show_note','NoteController@show_note');
  153. /**增加修改便签**/
  154. $api->post('/note/add_update_note','NoteController@add_update_note');
  155. $api->post('/note/upload_img','NoteController@upload_img');
  156. /**便签广场**/
  157. $api->get('/note/note_lists','NoteController@note_lists');
  158. /**查看评论**/
  159. $api->get('/note/look_comment','NoteController@look_comment');
  160. /**发表评论**/
  161. $api->post('/note/send_comment','NoteController@send_comment');
  162. /**回复评论**/
  163. $api->post('/note/reply','NoteController@reply');
  164. /**点赞**/
  165. $api->get('/note/click_heart','NoteController@click_heart');
  166. /**分享**/
  167. $api->get('/note/note_share','NoteController@note_share');
  168. $api->get('/note/note_share_img','NoteController@note_share_img');
  169. $api->group(['prefix'=>'message'],function ($api){
  170. //查看留言
  171. $api->get('look_message','MessageController@look_message');
  172. //管理查看留言
  173. $api->get('look_messages','MessageController@look_messages');
  174. /**删除**/
  175. $api->get('delete_message','MessageController@delete_message');
  176. /**精选留言***/
  177. $api->get('look_message_top','MessageController@look_message_top');
  178. /*这位精选**/
  179. $api->get('is_wonderful','MessageController@is_wonderful');
  180. /**这位置顶**/
  181. $api->get('is_top','MessageController@is_top');
  182. /*取消精选**/
  183. $api->get('cancel_wonderful','MessageController@cancel_wonderful');
  184. /**取消置顶**/
  185. $api->get('cancel_top','MessageController@cancel_top');
  186. //留言(☞动作)
  187. $api->post('message','MessageController@message');
  188. //回复留言
  189. $api->post('reply_message','MessageController@reply_message');
  190. $api->post('reply_message','MessageController@reply_message');
  191. });
  192. $api->group(['middleware' => 'checkauth'], function ($api) {
  193. /**显示核销信息**/
  194. $api->get('sign/get_user', 'SignController@get_user');
  195. /**确认核销**/
  196. $api->get('sign/sure_sign', 'SignController@sure_sign');
  197. });
  198. $api->group(['prefix'=>'image'],function ($api){
  199. $api->post('UploadUserFace','ImageClassController@UploadImg');
  200. $api->post('UploadFaceImg','ImageClassController@UploadFaceImg');
  201. $api->get('GetUserImage','ImageClassController@GetUserImage');
  202. $api->get('GetImg','ImageClassController@GetImg');
  203. });
  204. $api->group(['prefix'=>'online'],function ($api){
  205. $api->get('GetEnrollInfo','UserController@GetEnrollInfo');
  206. $api->get('GetEnrollUserAddress','UserController@GetEnrollUserAddress');
  207. $api->get('UpdateAddAddress','UserController@UpdateAddAddress');
  208. $api->get('GetStatus','UserController@GetStatus');
  209. $api->get('GetGiftInfo','UserController@GetGiftInfo');
  210. $api->get('GetExpress','UserController@GetExpress');
  211. $api->post('/PayCost', 'PayOnlineController@pays');
  212. $api->post('/SearchStatus', 'PayOnlineController@SearchStatus');
  213. });
  214. $api->get('online/GetEnrollInfo','OnlineController@GetEnrollInfo');
  215. $api->get('online/UpdateAddAddress','OnlineController@UpdateAddAddress');
  216. $api->get('online/GetStatus','OnlineController@GetStatus');
  217. $api->get('online/SearchStatus','OnlineController@SearchStatus');
  218. $api->get('online/GetEnrollUserAddress','OnlineController@GetEnrollUserAddress');
  219. $api->get('online/GetGiftInfo','OnlineController@GetGiftInfo');
  220. $api->get('online/GetExpress','OnlineController@GetExpress');
  221. $api->post('online/pays','OnlineController@pays');
  222. });
  223. $api->post('online/message','OnlineController@message');
  224. $api->post('online/RefundMessage','OnlineController@RefundMessage');
  225. $api->get('online/refund','OnlineController@refund');
  226. $api->get('/index/note_share','NoteController@note_share');
  227. $api->get('/index/note_share_img','NoteController@note_share_img');
  228. $api->get('/index/look_message','MessageController@look_message');
  229. $api->get('GetCache','WechatController@GetCache');
  230. $api->post('UploadImgs','ImageClassController@UploadImgs');
  231. });