SmsService.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | LARAVEL8.0 框架 [ LARAVEL ][ RXThinkCMF ]
  4. // +----------------------------------------------------------------------
  5. // | 版权所有 2017~2021 LARAVEL研发中心
  6. // +----------------------------------------------------------------------
  7. // | 官方网站: http://www.laravel.cn
  8. // +----------------------------------------------------------------------
  9. // | Author: laravel开发员 <laravel.qq.com>
  10. // +----------------------------------------------------------------------
  11. namespace App\Services;
  12. use App\Models\ConfigModel;
  13. /**
  14. * 手机短信管理-服务类
  15. * @author
  16. * @since 2020/11/11
  17. * Class SmsService
  18. * @package App\Services
  19. */
  20. class SmsService extends BaseService
  21. {
  22. /**
  23. * 发送手机短信
  24. * @param $email
  25. * @param string $scene 场景:默认reg-注册
  26. * @return bool
  27. */
  28. public function sendCode($mobile, $scene='reg')
  29. {
  30. return true;
  31. }
  32. /**
  33. * 验证手机短信
  34. * @param $mobile
  35. * @param string $scene 场景:默认reg-注册
  36. * @return bool
  37. */
  38. public function check($mobile, $scene='reg')
  39. {
  40. return true;
  41. }
  42. }