NotifyController.php 858 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace App\Http\Controllers\Api;
  3. use App\Helpers\Jwt;
  4. use App\Http\Validator\MemberValidator;
  5. use App\Services\Api\AdService;
  6. use App\Services\Api\MemberService;
  7. use App\Services\ConfigService;
  8. use App\Services\EmailService;
  9. use App\Services\RedisService;
  10. use App\Services\SmsService;
  11. use App\Services\UsdtWalletService;
  12. /**
  13. * 异步回调控制器基类
  14. * Class NotifyController
  15. * @package App\Http\Controllers
  16. */
  17. class NotifyController extends webApp
  18. {
  19. /**
  20. * wallet
  21. * @return array
  22. */
  23. public function wallet()
  24. {
  25. RedisService::set("caches:wallet", request()->post(), 600);
  26. return message(1010, true);
  27. }
  28. public function trade()
  29. {
  30. $data = request()->all();
  31. $cacheKey = "caches:trade:notify:".date('YmdHis');
  32. RedisService::set($cacheKey, $data , 7200);
  33. }
  34. }