下单的代码如下: var id = 0; id = exchange.Buy(25, 0.1); if ((typeof(id) == ‘undefined’) || id === null) { Log(‘下单失败’); id = exchange.Buy(25, 0.1); }