php没有报错,测试环境是好的,但是放到线上出现有关问题,求大神来看看

WBOY
Release: 2016-06-13 12:45:46
Original
894 people have browsed it

php没有报错,测试环境是好的,但是放到线上出现问题,求大神来看看。

加了红色的代码就有问题,不加就正常。 是this的问题吗? 能深入讨论一下吗?是不是栈的问题?

    public function getUserStatus( $uid, &$userstatus )
    {
        $array = array(
            'ilevel'        => 0,
        );

        //中间省略获取代码
        $arr = $this->userstatus->getParam( $result );
        $userstatus = $arr[0];

        $userproperty = array();
        $ret = $this -> getUserProperty( $uid, $userproperty ) ;
        if( $ret              return $ret;
        }
        if( empty( $ret ) ){
            return 0;
        }
        $levelArr = $this->getLevelAndTitle( $userproperty['experience'] );
        $userstatus['level'] =  $levelArr['level'];
        return 1;
    }

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template