Php does not report an error. the Test environment is good, but there is a problem online. please take a look. If the red code is added, the problem may occur. if the red code is not added, it will be normal. Is this the problem? Can I discuss it in depth? Is it a stack issue?
Public function getUserStatus ($ uid, & $ userstatus)
{
$ Array = array (
'Level' => 0,
);
// The code is omitted in the middle.
$ Arr = $ this-> userstatus-> getParam ($ result );
$ Userstatus = $ arr [0];
$ Userproperty = array ();
$ Ret = $ this-> getUserProperty ($ uid, $ userproperty );
If ($ ret <0 ){
Return $ ret;
}
If (empty ($ ret )){
Return 0;
}
$ LevelArr = $ this-> getLevelAndTitle ($ userproperty ['Experience ']);
$ Userstatus ['level'] = $ levelArr ['level']; return 1;
}
Reply to discussion (solution)
If you only provide code snippets, you should describe the meaning of these codes.
What is "abnormal"
Every time we add 1.1 points, we will know whether it is a syntax error or a data error.
Starting with error messages and logs will solve the problem faster than you.
The server configuration is different from your local configuration.
The question of the landlord cannot be seen. the Forum contains an article titled "wisdom of asking questions". let's take a look at it and learn how to ask questions first.