📅  最后修改于: 2022-03-11 14:44:55.720000             🧑  作者: Mango
var cartId = GlideGuid.generate(null);
var cart = new Cart(cartId);
var item = cart.addItem('e46305bdc0a8010a00645e608031eb0f');
cart.setVariable(item,'os','Linux Red Hat');
var rc = cart.placeOrder();
gs.addInfoMessage(rc.number);