You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
2.4 KiB
62 lines
2.4 KiB
<?php
|
|
// +----------------------------------------------------------------------
|
|
// | Niucloud-admin 企业快速开发的saas管理平台
|
|
// +----------------------------------------------------------------------
|
|
// | 官方网址:https://www.niucloud-admin.com
|
|
// +----------------------------------------------------------------------
|
|
// | niucloud团队 版权所有 开源版本可自由商用
|
|
// +----------------------------------------------------------------------
|
|
// | Author: Niucloud Team
|
|
// +----------------------------------------------------------------------
|
|
|
|
use app\api\middleware\ApiChannel;
|
|
use app\api\middleware\ApiCheckToken;
|
|
use app\api\middleware\ApiLog;
|
|
use app\api\route\dispatch\BindDispatch;
|
|
use core\dict\DictLoader;
|
|
use think\facade\Route;
|
|
use app\service\core\niucloud\CoreNotifyService;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
* 会员管理系统
|
|
*/
|
|
Route::group('hygl', function() {
|
|
/***************************************************** hello world ****************************************************/
|
|
//http://hycrm.zeyan.wang/api/hygl/test
|
|
Route::get('test', 'addon\hygl\app\api\controller\hello_world\Index@index');
|
|
Route::get('hello_world', 'addon\hygl\app\api\controller\hello_world\Index@index');
|
|
|
|
|
|
//获取广告列表
|
|
Route::get('getAdvertising', 'addon\hygl\app\api\controller\Home@getAdvertising');
|
|
|
|
//获取站点信息
|
|
Route::get('getSiteInfo', 'addon\hygl\app\api\controller\Home@getSiteInfo');
|
|
//获取用户信息
|
|
Route::get('getUser', 'addon\hygl\app\api\controller\Home@getUser');
|
|
//获取用户可用优惠券列表
|
|
Route::get('getUserCoupons', 'addon\hygl\app\api\controller\Home@getUserCoupons');
|
|
//创建订单
|
|
Route::get('addOrder', 'addon\hygl\app\api\controller\Home@addOrder');
|
|
|
|
//获取微信公众号openid
|
|
Route::any('getOpenid', 'addon\hygl\app\api\controller\WeChatController@getOpenid');
|
|
//获取微信小程序openid
|
|
Route::any('getMiniOpenid', 'addon\hygl\app\api\controller\WeChatController@getMiniOpenid');
|
|
//微信JSAPI支付
|
|
Route::any('wxMpPay', 'addon\hygl\app\api\controller\WeChatController@wxMpPay');
|
|
|
|
//微信小程序支付
|
|
Route::any('wxMiniPay', 'addon\hygl\app\api\controller\WeChatController@wxMiniPay');
|
|
|
|
//微信支付成功异步回调
|
|
Route::any('wechatPayNotify/:site_id', 'addon\hygl\app\api\controller\WeChatController@wechatPayNotify');
|
|
|
|
|
|
|
|
})->middleware(ApiChannel::class)
|
|
->middleware(ApiLog::class);
|
|
|