$uid , 'md5' => $md5 , ] )->find(); if( ! $result || 2 == $result->status) { return 2; } return 1; } }