添加个人中心功能

This commit is contained in:
2026-01-15 20:44:03 +08:00
parent 039055838e
commit f7328c614a
8 changed files with 195 additions and 56 deletions

View File

@@ -42,7 +42,7 @@ class Cart extends ApiBase
if (true !== $check) {
$this->_error($check);
}
$res = CartLogic::add($post['item_id'], $post['goods_num'], $this->user_id);
$res = CartLogic::add($post['item_id'], $post['goods_num'], $this->user_id, $post['type']);
if ($res === true) {
$this->_success('加入成功');
}