购物车迁入

This commit is contained in:
2025-10-13 14:25:05 +08:00
parent a7837bc337
commit d5f1b19829
25 changed files with 4184 additions and 4 deletions

17
ba/Exception.php Normal file
View File

@@ -0,0 +1,17 @@
<?php
namespace ba;
use think\Exception as E;
/**
* BuildAdmin通用异常类
* catch 到异常后可以直接 $this->error(__($e->getMessage()), $e->getData(), $e->getCode());
*/
class Exception extends E
{
public function __construct(protected $message, protected $code = 0, protected $data = [])
{
parent::__construct($message, $code);
}
}