123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179 |
- <?php
- use App\Jobs\DealBetPool;
- use Illuminate\Http\Request;
- use Illuminate\Support\Facades\Route;
- /*
- |--------------------------------------------------------------------------
- | 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!
- |
- */
- Route::group(['namespace' => 'Api'], function ($router) {
- // 获取验证码
- $router->post('sms', 'HomeController@getSms');
- // 注册接口
- $router->post('register', 'AuthController@reg');
- // 登录
- $router->post('login', 'AuthController@login');
- $router->post('test', 'TestController@index');
- $router->get('test', 'TestController@index');
- $router->get('pwd', function (){
- // var_dump(bcrypt('123456'));
- });
- // 忘记密码
- $router->post('forgetpass', 'AuthController@forgetpass')->name('forgetpass');
- // 用户协议
- $router->post('rule/protocol', 'ProtocolController@index');
- // 获取地区信息
- $router->get('area/{id}', 'AreaController@Index');
- $router->get('allarea/{id}', 'AreaController@allareas');
- // 支付回调接口
- $router->any('notify/return', 'PayController@aliReturn');
- // 支付异步通知接口
- $router->any('notify/alipay', 'PayController@aliNotify');
- //查询订单信息
- $router->any('pay/getpayinfo', 'PayController@getPcPayInfo');
- // 支付异步通知接口
- $router->any('notify/wechat', 'PayController@weichatNotify');
- // 不强制认证访问令牌接口
- $router->group(['middleware' => 'token.maybe'], function ($router) {
-
- });
- // 强制认证访问令牌接口
- $router->group(['middleware' => 'token.must'], function ($router) {
- // 个人中心-用户资料
- $router->get('user', 'UserController@show');
- // 完善信息
- $router->post('user/update', 'UserController@update');
- //获取二维码信息
- $router->get('user/qrcode', 'UserController@getPayQrcode');
- Route::middleware('mustLevelMiddleware')->group(function ($router) {
- // 用户协议
- $router->post('rule/{rule}', 'ConfigController@Show');
- /*****************************个人中心*******************************/
- // 个人中心-消息
- $router->post('user/msg', 'UserMsgController@message');
- // 个人中心-更新消息已读
- $router->post('usermsg/update', 'UserMsgController@updateStatus');
- // 银行卡列表
- $router->post('userBank/index', 'UserBankController@index');
- // 银行卡-添加/编辑
- $router->post('userBank/edit', 'UserBankController@edit');
- // 银行卡-解绑
- $router->post('userBank/unbundle', 'UserBankController@unbundle');
- // 用户信息
- $router->post('user/getUser', 'UserController@getUser');
- // 获取升级差额
- $router->post('upgrade/cost', 'UpgradeController@cost');
- // 交费升级
- $router->get('upgrade/upReq', 'UpgradeController@getList');
- $router->post('upgrade/add', 'UpgradeController@add');
- // 升级记录
- $router->post('upgrade/uplog', 'UpgradeController@getUpgradeLogs');
- //变更升级等级信息
- $router->post('upgrade/changelv', 'UpgradeController@changeLevel');
- // 升级列表
- $router->post('upgrade', 'UpgradeController@index');
- //调用用户升级到下一级信息
- $router->post('upgrade/nextLevel', 'UpgradeController@getNextLevelInfo');
- //支付升级后
- $router->post('upgrade/check', 'UpgradeController@upCheck');
- // 业务达到要求升级
- $router->post('upgrade/addbycondition', 'UpgradeController@addByCondition');
- // 点币记录
- $router->post('account/coin', 'AccountLogController@coin');
- // 点币转账
- $router->post('coin/transfer', 'AccountLogController@coinTransfer');
- $router->post('coin/transfer', 'AccountLogController@coinTransfer');
- // 点币汇率
- $router->post('coin/getCoin', 'UserCoinController@getCoin');
- // 点币购买
- $router->post('coin/buy', 'UserCoinController@buy');
- // 提现申请
- $router->post('user/withdraw', 'UserWithdrawController@add');
- // 提现记录
- $router->post('user/withdrawlog', 'UserWithdrawController@outCashLog');
- // 投诉反馈
- $router->post('feedback', 'FeedBackController@add');
- // 修改支付密码
- $router->post('user/modifyPayPass', 'UserController@modifyPayPass');
- // 修改账号密码
- $router->post('user/modifyPass', 'UserController@modifyPassword');
- /*****************************首页*******************************/
- // 首页-代理明细
- $router->post('invitor', 'UserController@invitor');
- // 首页-广告明细
- $router->post('adver', 'AdverController@adver');
- // 首页-代理广告(下级提交的对赌广告,需要上级审核)
- $router->post('index/adver', 'AdverController@index');
- // 首页-代理广告(提交对赌协议数据)
- $router->post('adver/betguarantee', 'AdverController@userGuarantee');
- // 首页-代理广告(提交业务数据)
- $router->post('adver/betachievement', 'AdverController@userAchievement');
- // 首页-上级审核对赌广告
- $router->post('index/adver/audit', 'AdverController@auditBet');
- // 首页-收益记录
- $router->post('index/statistics', 'HomeController@statistics');
- // 轮播图
- $router->post('index/slider', 'HomeController@slider');
- // 首页-任务进度轴
- $router->post('index/progress', 'HomeController@progress');
- // 首页-广告发布记录
- $router->post('index/publish', 'AdverController@publish');
- // 首页-广告发布记录-广告详情
- $router->post('adver/show', 'AdverController@show');
- // 首页-广告发布记录-详情
- $router->post('adver/modify', 'AdverController@modify');
- // 首页-奖金记录
- $router->post('index/account', 'AccountLogController@index');
- // 地区代理申请
- $router->post('index/proxyarea', 'ProxyAreaController@add');
- // 首页-统计信息
- $router->post('index/sum', 'AccountLogController@sum');
- // 首页-申请代理-获取代理费用
- $router->post('index/proxy/applymoney', 'ProxyController@getApplyMoney');
- /*****************************投放广告*******************************/
- // 投放广告
- $router->post('adver/add', 'AdverController@add');
- //pc投放广告
- $router->post('adver/pcadd', 'AdverController@pcadd');
- // 代理地区信息(最低额度)
- $router->post('proxy/get', 'ProxyController@show');
- // 行业列表
- $router->post('industry', 'IndustryController@index');
- // 担保协议设置信息
- $router->post('guarantee', 'ConfigController@guarantee');
- // 首页-广告详情
- });
- });
- /*****************************桃牛对接接口****************************************/
- $router->group(['middleware' => 'taoniu.auth'], function ($router) {
- // 桃牛获取广告
- $router->post('taoniu/adver', 'TaoniuController@adver');
- // 广告计费
- $router->post('taoniu/deduction', 'TaoniuController@adverDeduction');
- // 分享扣费
- $router->post('taoniu/share', 'TaoniuController@shareBilling');
- });
- Route::post('uploadImg', 'PublicController@uploadImg');
- });
|