Message.php 836 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. namespace App\Http\Controllers\Wechat;
  3. use Illuminate\Http\Request;
  4. use App\Http\Controllers\Controller;
  5. use App\Http\Controllers\Fpdx\Message as Msg;
  6. class Message extends Controller
  7. {
  8. public function text($object)
  9. {
  10. $messageObj = new Msg();
  11. return $messageObj->receive($object);
  12. }
  13. public function image($object)
  14. {
  15. $messageObj = new Msg();
  16. return $messageObj->receive($object);
  17. }
  18. public function voice($object)
  19. {
  20. $messageObj = new Msg();
  21. return $messageObj->receive($object);
  22. }
  23. public function video($object)
  24. {
  25. $messageObj = new Msg();
  26. return $messageObj->receive($object);
  27. }
  28. public function shortvideo($object)
  29. {
  30. $messageObj = new Msg();
  31. return $messageObj->receive($object);
  32. }
  33. }