CRMEB 异常

后端

use crmeb\exceptions\AdminException;

throw new AdminException('1111111');
// throw new AdminException(json_encode($skuList));
// throw new AdminException(count($skuList));
// throw new AdminException(serialize($skuList));

use think\exception\ValidateException;
throw new ValidateException('订单当前无法退款!');

前端

use crmeb\exceptions\ApiException;

throw new ApiException('1111111');

posted @ 2021-12-13 16:14  古兴越  阅读(71)  评论(0编辑  收藏  举报