123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318 |
- <?php
- use Illuminate\Http\Request;
- /*
- |--------------------------------------------------------------------------
- | API Routes
- |--------------------------------------------------------------------------
- |
- | Here is where you can register API routes for your application. These
- | routes are loaded by the RouteServiceProvider within a group which
- | is assigned the "api" middleware group. Enjoy building your API!
- |
- */
- /** @var TYPE_NAME $api */
- $api = app("Dingo\Api\Routing\Router");
- $api->version('v1', [
- 'namespace' => 'App\Http\Controllers'
- ], function ($api) {
- $api->get('/GetSignPlaces', 'PayNewController@GetSignPlaces');
- $api->get('/TestDemo', 'PayController@get_basic_infos');
- $api->post('/TestDemoss', 'PayController@ssss');
- $api->get('/insex','UserController@insex');
- $api->get('/DemoTest', 'PayController@DemoTest');
- $api->get('/Al', 'PayController@AllRefund');
- $api->get('/get_pays', 'PayController@get_pays');
- $api->get('/get_payss', 'PayController@get_payss');
- $api->get('UpdateCache', 'UserController@UpdateCache');
- $api->get('user/GetUpgradeInfo', 'UserController@GetUpgradeInfo');
- $api->get('/get_basic_infos', 'PayController@get_basic_infoss');
- $api->get('/AddIndex', 'IndexController@AddIndex');
- $api->get('test', 'IndexController@index');
- $api->get('arr', 'IndexController@arr');
- $api->get('insert', 'IndexController@insert');
- $api->get('image_time', 'ImageClassController@image_time');
- $api->get('lokks', 'ImageClassController@lokks');
- $api->get('wechat_img', 'IndexController@wechat_img');
- $api->get('indexs', 'IndexController@indexs');
- $api->get('index', 'IndexController@index');
- $api->get('wechat', 'UserController@wechat');
- $api->get('basicinfo', 'UserController@basicinfo');
- $api->get('image_upload', 'IntegralController@image_upload');
- $api->get('token', 'IntegralController@token');
- $api->post('/wechat/message', 'WechatController@message');
- $api->get('make_sign_code','SignController@make_sign_code');
- /**登录相关**/
- $api->get('/login/send_code', 'LoginController@send_code');//发送验证码
- $api->get('/login/validator', 'LoginController@validator');//验证码手机验证码
- $api->get('/login/wechat_login', 'LoginController@wechat_login');//微信登录
- $api->post('/pay/message', 'PayNewController@message');
- $api->get('GetCaches', 'PayNewController@GetCache');
- $api->post('/payonline/message', 'PayOnlineController@message');
- $api->get('/pay/text', 'PayController@text');
- $api->get('/pay/pay_query', 'PayController@pay_query');
- /**发起退款**/
- $api->post('/pay/refund', 'PayController@sure_code');
- $api->get('/search_pay_statuss', 'PayNewController@search_pay_statuss');
- $api->post('/AllRefund', 'PayNewController@AllRefund');
- $api->post('/online_refund', 'OnlineController@online_refund');
- /**退款回调**/
- $api->post('/pay/send', 'PayController@refund');
- $api->post('/pay/online_send', 'OnlineController@online_send');
- $api->get('/pay/RefundNum', 'PayController@RefundNum');
- $api->post('/pay/refunds', 'PayController@refunds');
- $api->get('/user/basic_info', 'UserController@basic_info');
- /**退款申请**/
- // $api->post('/pay/send', 'PayController@sure_code');
- $api->get('/send', 'IndexController@send');
- $api->group(['middleware' => 'refresh.token'], function ($api) {
- $api->get('/TestAddress', 'PayNewController@TestAddress');
- /****新支付****/
- $api->get('/payNew/check_pay', 'PayNewController@check_pay');
- $api->get('/payNew/InsertPostern', 'PayNewController@InsertPostern');
- $api->get('/payNew/search_pay_status', 'PayNewController@search_pay_status');
- $api->get('/payNew/queue_info', 'PayNewController@queue_info');
- $api->get('/signup/queue_list', 'SignUpController@queue_list');
- /***新支付****/
- /**获取基本信息*/
- $api->get('/user/get_info', 'UserController@get_info');
- $api->get('/user/signStatus', 'UserController@signStatus');
- $api->get('/user/GetSignPlaces', 'PayNewController@GetSignPlaces');
- $api->get('/pay/PayCost', 'PayNewController@PayCost');
- /**获取承诺书**/
- $api->get('user/promise_book', 'UserController@promise_book');
- /**提交承诺书**/
- $api->get('user/submit_promise', 'UserController@submit_promise');
- /**报名**/
- $api->get('pay/pay', 'PayNewController@pay');
- // $api->get('pay/pay', 'PayController@pay');
- /**支付结果查询**/
- $api->get('pay/get_pay', 'PayController@get_pay');
- /**上传图片*/
- $api->post('integral/image_upload', 'IntegralController@image_upload');
- /**获取排行榜**/
- $api->get('rank/rank', 'RankController@rank');
- /**上传记录**/
- $api->get('user/upload_log', 'UserController@upload_log');
- /**报名历史*/
- $api->get('user/sign_list', 'PayController@pay_log');
- $api->get('user/get_season_log', 'PayController@get_season_log');
- /********
- * 新 增 *
- *******/
- //报名凭证
- $api->get('sign/look_sign', 'SignController@look_sign');
- $api->get('sign/get_sign_info', 'SignController@get_sign_info');
- /**确认签到**/
- $api->get('sign/sure_sign_user', 'SignController@sure_sign');
- $api->get('sign/GetLocation', 'SignController@GetLocation');
- /**生成另一种签到码**/
- $api->get('sign/make_sign_code', 'SignController@make_sign_code');
- /**填写的表单**/
- $api->get('pay/get_form', 'PayController@get_form');
- /**获取是否得到了相关信息**/
- $api->get('pay/get_basic_info', 'PayController@get_basic_info');
- /**提交表单**/
- $api->post('pay/submit_form', 'PayController@submit_form');
- /**查看已经填写的表单**/
- $api->post('pay/look_form', 'PayController@look_form');
- /**已报名的名单**/
- $api->get('enroll/get_enroll_user', 'UserController@get_enroll_user');
- /**相册内容**/
- $api->get('image/image_time', 'ImageClassController@image_time');
- /**查看某一个相册的详情**/
- $api->get('image/get_detail', 'ImageClassController@get_detail');
- /**获取全部文件夹**/
- $api->get('image/get_folder', 'ImageClassController@get_folder');
- /**获取某个文件夹下的照片**/
- $api->get('image/get_img_detail', 'ImageClassController@get_img_detail');
- /**收藏某一张图片**/
- $api->get('image/like', 'ImageClassController@like');
- /**我的收藏**/
- $api->get('image/get_like', 'ImageClassController@get_like');
- /**获取四种四种情况的人数**/
- $api->get('sign/sign_info','SignUpController@sign_info');
- $api->get('sign/queue_info','SignUpController@queue_info');
- /**获取每一种情况的人员列表**/
- $api->get('sign/get_sign_detail','SignUpController@get_sign_detail');
- /**获取个人的信息**/
- $api->get('sign/get_user_detail','SignUpController@get_user_detail');
- /**数据统计**/
- $api->get('data/data','IndexController@data');
- $api->get('data/count_data','IndexController@count_data');
- /**查看身份**/
- $api->get('/look/look_auth', 'UserController@look_auth');
- /*货物排名**/
- $api->get('/look/get_rank', 'UserController@get_rank');
- /***********/
- /**便 签***/
- /************/
- /**我的便签*/
- $api->get('/note/my_note_list','NoteController@my_note_list');
- /**展示便签**/
- $api->get('/note/show_note','NoteController@show_note');
- /**增加修改便签**/
- $api->post('/note/add_update_note','NoteController@add_update_note');
- $api->post('/note/upload_img','NoteController@upload_img');
- /**便签广场**/
- $api->get('/note/note_lists','NoteController@note_lists');
- /**查看评论**/
- $api->get('/note/look_comment','NoteController@look_comment');
- /**发表评论**/
- $api->post('/note/send_comment','NoteController@send_comment');
- /**回复评论**/
- $api->post('/note/reply','NoteController@reply');
- /**点赞**/
- $api->get('/note/click_heart','NoteController@click_heart');
- /**分享**/
- $api->get('/note/note_share','NoteController@note_share');
- $api->get('/note/note_share_img','NoteController@note_share_img');
- $api->group(['prefix'=>'message'],function ($api){
- //查看留言
- $api->get('look_message','MessageController@look_message');
- //管理查看留言
- $api->get('look_messages','MessageController@look_messages');
- /**删除**/
- $api->get('delete_message','MessageController@delete_message');
- /**精选留言***/
- $api->get('look_message_top','MessageController@look_message_top');
- /*这位精选**/
- $api->get('is_wonderful','MessageController@is_wonderful');
- /**这位置顶**/
- $api->get('is_top','MessageController@is_top');
- /*取消精选**/
- $api->get('cancel_wonderful','MessageController@cancel_wonderful');
- /**取消置顶**/
- $api->get('cancel_top','MessageController@cancel_top');
- //留言(☞动作)
- $api->post('message','MessageController@message');
- //回复留言
- $api->post('reply_message','MessageController@reply_message');
- $api->post('reply_message','MessageController@reply_message');
- });
- $api->group(['middleware' => 'checkauth'], function ($api) {
- /**显示核销信息**/
- $api->get('sign/get_user', 'SignController@get_user');
- /**确认核销**/
- $api->get('sign/sure_sign', 'SignController@sure_sign');
- });
- $api->group(['prefix'=>'image'],function ($api){
- $api->post('UploadUserFace','ImageClassController@UploadImg');
- $api->post('UploadFaceImg','ImageClassController@UploadFaceImg');
- $api->get('GetUserImage','ImageClassController@GetUserImage');
- $api->get('GetImg','ImageClassController@GetImg');
- });
- $api->group(['prefix'=>'online'],function ($api){
- $api->get('GetEnrollInfo','UserController@GetEnrollInfo');
- $api->get('GetEnrollUserAddress','UserController@GetEnrollUserAddress');
- $api->get('UpdateAddAddress','UserController@UpdateAddAddress');
- $api->get('GetStatus','UserController@GetStatus');
- $api->get('GetGiftInfo','UserController@GetGiftInfo');
- $api->get('GetExpress','UserController@GetExpress');
- $api->post('/PayCost', 'PayOnlineController@pays');
- $api->post('/SearchStatus', 'PayOnlineController@SearchStatus');
- });
- $api->get('online/GetEnrollInfo','OnlineController@GetEnrollInfo');
- $api->get('online/UpdateAddAddress','OnlineController@UpdateAddAddress');
- $api->get('online/GetStatus','OnlineController@GetStatus');
- $api->get('online/SearchStatus','OnlineController@SearchStatus');
- $api->get('online/GetEnrollUserAddress','OnlineController@GetEnrollUserAddress');
- $api->get('online/GetGiftInfo','OnlineController@GetGiftInfo');
- $api->get('online/GetExpress','OnlineController@GetExpress');
- $api->post('online/pays','OnlineController@pays');
- });
- $api->post('online/message','OnlineController@message');
- $api->post('online/RefundMessage','OnlineController@RefundMessage');
- $api->get('online/refund','OnlineController@refund');
- $api->get('/index/note_share','NoteController@note_share');
- $api->get('/index/note_share_img','NoteController@note_share_img');
- $api->get('/index/look_message','MessageController@look_message');
- $api->get('GetCache','WechatController@GetCache');
- $api->post('UploadImgs','ImageClassController@UploadImgs');
- });
|