/**
  * 执行本地消息序列
  *
  * @param unknown_type $pwd
  */
 public static function execMsgList()
 {
     //判断是否锁定
     if (Watt_Sync_MessageListManage::isLock('exec')) {
         //如果锁定
         return false;
     }
     $result = false;
     Watt_Sync_MessageListManage::AddLock('exec');
     $config = self::_getConfig();
     //$TpmMsgListDir = $config['TpmMsgListDir'];
     $TpmMsgListDir = $config['TpmMsgListDir'] . 'outside/';
     $msglistArr = self::getAllMessageList('outside');
     if (is_array($msglistArr) && count($msglistArr)) {
         foreach ($msglistArr as $key => $val) {
             foreach ($val as $k => $v) {
                 if (self::executeMessageList($v)) {
                     //执行成功
                     //删除序列
                     //Watt_Sync_MessageListManage::delMessageList($key,$TpmMsgListDir);
                     $result = '1';
                 } else {
                     //移动序列
                     $result = '0';
                     break;
                     //Watt_Sync_MessageListManage::moveMsglist($key,$TpmMsgListDir);
                 }
             }
             if ($result == '1') {
                 //执行成功,删除序列
                 //Watt_Sync_MessageListManage::delMessageList($key,$TpmMsgListDir);
                 //将消息序列移动到outside/old/年月日/目录下
                 Watt_Sync_MessageListManage::moveOutsideMsglistOld($key);
             } else {
                 //移动序列
                 Watt_Sync_MessageListManage::moveMsglist($key, $TpmMsgListDir);
             }
             /*
             if (self::executeMessageList($val))
             {//执行成功
             	//删除序列
             	Watt_Sync_MessageListManage::delMessageList($key,$TpmMsgListDir);	
             	$result = '1';
             }else{
             	//移动序列
             	Watt_Sync_MessageListManage::moveMsglist($key,$TpmMsgListDir);
             }
             */
         }
     }
     Watt_Sync_MessageListManage::DelLock('exec');
     return $result;
     //executeMessageList
 }