debug
This commit is contained in:
@@ -10,7 +10,7 @@ class Site extends TagLib
|
||||
'cfg' => ['attr' => 'code,encode', 'close' => 0],
|
||||
'wz' => ['attr' => 'wz', 'close' => 0],
|
||||
'nurl' => ['attr' => 'n_id', 'close' => 0],
|
||||
'grm' => ['attr' => 'domain,code,line,diff', 'close' => 0],
|
||||
'grm' => ['attr' => 'domain,code,line,diff,start,end,index,type', 'close' => 0],
|
||||
];
|
||||
|
||||
|
||||
@@ -95,10 +95,14 @@ EOD;
|
||||
$strPageCode = isset($tag['code']) ? $tag['code'] : '';
|
||||
$intLine = isset($tag['line']) ? $tag['line'] : 0;
|
||||
$strDifference = isset($tag['diff']) ? $tag['diff'] : '';
|
||||
$intStartNumber = isset($tag['start']) ? (int)$tag['start'] : 10;
|
||||
$intEndNumber = isset($tag['end']) ? (int)$tag['end'] : 30;
|
||||
$intIndex = isset($tag['index']) ? (int)$tag['index'] : 10;
|
||||
$intType = isset($tag['type']) ? (int)$tag['type'] : 2;
|
||||
|
||||
$strParse = <<<EOD
|
||||
<?php
|
||||
\$strUrl = \\app\\model\\GanRaoMaModel::getGrmCode("{$strDomain}","{$strPageCode}","{$intLine}","{$strDifference}");
|
||||
\$strUrl = \\app\\model\\GanRaoMaModel::getGrmCode("{$strDomain}","{$strPageCode}","{$intLine}","{$strDifference}",{$intStartNumber},{$intEndNumber},{$intIndex},{$intType});
|
||||
echo \$strUrl;
|
||||
?>
|
||||
EOD;
|
||||
|
||||
Reference in New Issue
Block a user