修正traits\controller/Jump.php

This commit is contained in:
thinkphp
2016-05-12 09:45:07 +08:00
parent 49c899acc5
commit 67cebd8ca1

View File

@@ -29,7 +29,7 @@ trait Jump
* @param integer $wait 跳转等待时间
* @return void
*/
public static function success($msg = '', $url = null, $data = '', $wait = 3)
public function success($msg = '', $url = null, $data = '', $wait = 3)
{
$code = 1;
if (is_numeric($msg)) {
@@ -62,7 +62,7 @@ trait Jump
* @param integer $wait 跳转等待时间
* @return void
*/
public static function error($msg = '', $url = null, $data = '', $wait = 3)
public function error($msg = '', $url = null, $data = '', $wait = 3)
{
$code = 0;
if (is_numeric($msg)) {