Browse Source

更新了一些基础组件

panda 5 months ago
parent
commit
581dbba3d6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      application/common/controller/Api.php

+ 2 - 2
application/common/controller/Api.php

@@ -200,7 +200,7 @@ class Api
         if(empty($msg)){
             $msg = '操作成功';
         }
-        $this->result($msg, $data, $code, $type, $header);
+        $this->result($msg, $data, $code, $type, $header);return true;
     }
 
     /**
@@ -216,7 +216,7 @@ class Api
         if(empty($msg)){
             $msg = __('Invalid parameters');
         }
-        $this->result($msg, $data, $code, $type, $header);
+        $this->result($msg, $data, $code, $type, $header);return true;
     }
 
     /**