...
|
...
|
@@ -604,4 +604,29 @@ class WebAction extends Controller_Abstract |
|
|
return $apiDomain;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* JS 跳转并提示
|
|
|
*
|
|
|
* @param String $message 提示信息
|
|
|
* @param String $expression 附加的JS
|
|
|
* @return void
|
|
|
*/
|
|
|
protected function helpJsRedirect($message = '', $expression = "history.back()")
|
|
|
{
|
|
|
header("content-type: text/html; charset=utf-8");
|
|
|
|
|
|
if ($message != '') {
|
|
|
$message = strtr(addslashes($message), array('\n' => '\\n'));
|
|
|
echo "<script language=\"javascript\">";
|
|
|
echo "alert(\"{$message}\");";
|
|
|
echo "</script>";
|
|
|
}
|
|
|
if ($expression != '') {
|
|
|
echo "<script language=\"javascript\">\n";
|
|
|
echo $expression . "\n";
|
|
|
echo "</script>";
|
|
|
}
|
|
|
exit();
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|