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');

原文地址:https://www.cnblogs.com/guxingy/p/15683919.html