function main() { if (exchange.GetName() != 'Futures_CTP') { throw "只支持CTP前置机"; } r = exchange.IO("settlement", QDate); if (r) { return r.Content || r; } else { throw "没有数据"; } }