diff --git a/app/api/logic/CartLogic.php b/app/api/logic/CartLogic.php index f418699..9ea8471 100644 --- a/app/api/logic/CartLogic.php +++ b/app/api/logic/CartLogic.php @@ -21,8 +21,8 @@ namespace app\api\logic; use app\api\model\Cart; use app\common\model\Footprint; -use app\common\server\UrlServer; -use think\Db; +use app\common\service\UrlServer; +use think\facade\Db; use think\facade\Hook; class CartLogic diff --git a/app/api/model/Cart.php b/app/api/model/Cart.php new file mode 100644 index 0000000..a0a73b2 --- /dev/null +++ b/app/api/model/Cart.php @@ -0,0 +1,37 @@ +hasOne('Goods', 'goods_id', 'goods_id'); + } + +} \ No newline at end of file diff --git a/app/common/model/Footprint.php b/app/common/model/Footprint.php new file mode 100644 index 0000000..69168e3 --- /dev/null +++ b/app/common/model/Footprint.php @@ -0,0 +1,54 @@ +