def M${tadeCode}_ENTRY(__REQ__,__RSP__,__BUF__ = None,__EXT__ = None): ''' 交 易:${tadeCode} 说 明:${desc} ''' CGC_Trace("开始交易 [${tadeCode}]:${desc}") if not CGC_INIT_CHECK(__REQ__,__RSP__): return True objResult = None objMethod = ${firstMothod} while(type(objMethod) is FunctionType): objResult = objMethod(__REQ__,__RSP__,__BUF__,__EXT__) objMethod = objResult CGC_END_CHECK(__REQ__,__RSP__) CGC_Trace("结束交易 [${tadeCode}]") return True