| 1234567891011121314151617181920212223242526272829 |
- <?php
- /*
- |--------------------------------------------------------------------------
- | Web Routes
- |--------------------------------------------------------------------------
- |
- | Here is where you can register web routes for your application. These
- | routes are loaded by the RouteServiceProvider within a group which
- | contains the "web" middleware group. Now create something great!
- |
- */
- //token
- Route::any('wechatH5', 'Api\WeixinController@wechatH5');
- //前端请求这个接口 最后会带着openid 重定向到前端页面
- Route::any('setWebHook', 'Api\WeixinController@setWebHook');
- //前端给的openid 保存
- Route::any('wxSetUser', 'Api\WeixinController@setUser');
- //如果没绑定账号 要求绑定
- Route::any('wxLogin', 'Api\WeixinController@login');
- //重定向过程中对外开放的接口 用于最后拿到openid
- Route::any('getUnionid', 'Api\WeixinController@getUnionid');
- Route::any('getOpenid', 'Api\WeixinController@getOpenid');
- Route::group(['middleware'=> ['checkWeixin']],function ($route){
- $route->any('reminderDetail', 'Api\OrderController@reminderDetail2');
- $route->any('reminderSave', 'Api\OrderController@reminderSave');
- });
|