{"size": 277, "ext": "js", "max_stars_repo_path": "rabbit-client-pc/src/api/cart.js", "max_stars_repo_name": "Sue-52/Little-Rabbit-Fresh", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "rabbit-client-pc/src/api/cart.js", "max_issues_repo_name": "Sue-52/Little-Rabbit-Fresh", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "rabbit-client-pc/src/api/cart.js", "max_forks_repo_name": "Sue-52/Little-Rabbit-Fresh", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.0833333333, "max_line_length": 70, "alphanum_fraction": 0.6353790614}
import requestWithoutToken from "@/utils/request";

/**
 * 更新购物车中的商品信息 (库存, 是否有效, 现价)
 * @param skuId
 * @param id
 * @return {AxiosPromise}
 */
export function updateLocalCart({ skuId, id }) {
  return requestWithoutToken(`/goods/stock/${skuId}`, "get", { id });
}
