''' 交易名称:${tadeCode} 说 明:${desc} ''' def M${tadeCode}_ENTRY(__REQ__,__RSP__): CGC_Debug("开始交易 [${tadeCode}]:${desc}") __SND__ = {} __RCV__ = {} if not CGC_INIT_CHECK(__REQ__,__RSP__): return True objResult = None objMethod = ${firstMothod} while(type(objMethod) is FunctionType): objResult = objMethod(__REQ__,__RSP__,__SND__,__RCV__) objMethod = objResult __SND__.clear() __RCV__.clear() del __SND__ del __RCV__ CGC_END_CHECK(__REQ__,__RSP__) CGC_Debug("结束交易 [${tadeCode}]") return True