web.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | Web Routes
  5. |--------------------------------------------------------------------------
  6. |
  7. | Here is where you can register web routes for your application. These
  8. | routes are loaded by the RouteServiceProvider within a group which
  9. | contains the "web" middleware group. Now create something great!
  10. |
  11. */
  12. Route::get('/', function () {
  13. return view('welcome');
  14. });
  15. Route::get('attachment/{md5}', [
  16. 'as' => 'attachment.download',
  17. 'uses' => 'Web\AttachmentController@download',
  18. ]);
  19. Route::get('image/{md5}', [
  20. 'as' => 'attachment.image',
  21. 'uses' => 'Web\AttachmentController@image',
  22. ]);
  23. // Route::get('/test',function() {
  24. // $password = bcrypt('admin');
  25. // dd($password);
  26. // dd(dict()->get('user_info','work_type'));
  27. // $password = bcrypt('admin');
  28. // dd($password);
  29. // $obj = new \App\Services\User\Info();
  30. // $obj = $obj->find(1);
  31. // var_dump($obj);exit;
  32. // });
  33. Route::get('/test', 'TestController@index');
  34. Route::any('/web/bind', 'Web\AuthController@bind');
  35. Route::any('/web/success', 'Web\AuthController@success');
  36. Route::any('/web/error', 'Web\AuthController@error');
  37. Route::any('/web/notify', 'Web\AuthController@notify');
  38. Route::any('/web/notify-account', 'Web\AuthController@notifyAccount');
  39. /*Route::group(['prefix'=>'web','namespace'=>'Web','middleware' => ['web', 'wechat.oauth:snsapi_userinfo']],function (){
  40. Route::any('bind','AuthController@bind');});*/