wechat_api.php 834 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * 小程序相关的接口
  4. */
  5. use Illuminate\Support\Facades\Route;
  6. Route::group([
  7. 'prefix' => 'api/wechat/mini',
  8. 'namespace' => 'Hanson\\LaravelAdminWechat\\Http\\Controllers\\Api\\Mini',
  9. ], function () {
  10. Route::post('login', 'AuthController@login');
  11. Route::middleware('auth:mini')->group(function () {
  12. Route::post('check-token', 'AuthController@checkToken');
  13. Route::post('decrypt-user-info', 'AuthController@decryptUserInfo');
  14. Route::post('decrypt-mobile', 'AuthController@decryptMobile');
  15. });
  16. });
  17. /**
  18. * 支付相关的接口
  19. */
  20. Route::group([
  21. 'prefix' => 'api/wechat/payment',
  22. 'namespace' => 'Hanson\\LaravelAdminWechat\\Http\\Controllers\\Api\\Payment',
  23. ], function () {
  24. Route::post('paid-notify', 'OrderController@paidNotify');
  25. });