示例#1
0
文件: code.php 项目: kimcerry/autoXYT
 // echo $strMain;	//die;
 $arrSPONOFF = $fun->splitMainStrToArr($strMain);
 // print_r($arrSPONOFF);	//die;
 $funPattern = $fun->getFunPattern($strMain);
 // print_r($funPattern); //die;
 $arrFunSP = $fun->findSplitIncFunFlagToArr($funPattern, $arrSPONOFF);
 switch ($funPattern) {
     case $arrFunPattern["proTitle"]:
         //产品标题
         $strCirResult = $fun->cirProTitle($arrRPProTitle, $arrFunSP);
         $strCombitResult = $fun->combitStrToStr($arrSPONOFF, $arrFunSP, $strCirResult, $arrRPProTitle);
         filterEcho($strCombitResult);
         break;
     case $arrFunPattern['video']:
         //视频
         $strCirResult = $fun->cirVideo($arrRPVedioUrl, $arrFunSP);
         $strCombitResult = $fun->combitStrToStr($arrSPONOFF, $arrFunSP, $strCirResult, $arrRPVedioUrl);
         filterEcho($strCombitResult);
         break;
     case $arrFunPattern["proPicSrc"]:
         //产品图片
         $strCirResult = $fun->cirProPic($arrRPProPic, $arrFunSP);
         $strCombitResult = $fun->combitStrToStr($arrSPONOFF, $arrFunSP, $strCirResult, $arrRPProPic);
         filterEcho($strCombitResult);
         break;
     case $arrFunPattern["banner"]:
         //海报图
         $strCirResult = $fun->cirBanner($arrRPBanner, $arrFunSP);
         $strCombitResult = $fun->combitStrToStr($arrSPONOFF, $arrFunSP, $strCirResult, $arrRPBanner);
         filterEcho($strCombitResult);
         break;