BaseServices.php 370 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. *
  4. * @file:BaseServices.php
  5. * @Date: 2023/5/29
  6. * @Time: 11:50
  7. */
  8. namespace Modules\OrderRefund\Services;
  9. use Catch\Exceptions\FailedException;
  10. class BaseServices
  11. {
  12. protected static function throwErrMsg($msg,$code = ""){
  13. if ($code){
  14. throw new FailedException($msg,$code);
  15. }
  16. throw new FailedException($msg);
  17. }
  18. }