@@ -140,7 +140,7 @@ class Base extends Controller
*/
protected function error($msg = '', $data = null, $is_login = 1, $code = 0, $type = null, array $header = [])
{
- if(empty($this->uid)){
+ if(empty($this->uid) && $is_login != -1 ){
$is_login = 0;
}
$this->results($msg, $data, $is_login, $code, $type, $header);