zac3533 1 년 전
부모
커밋
fdd3499861
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 3
      application/api/controller/Demo.php

+ 4 - 3
application/api/controller/Demo.php

@@ -42,7 +42,7 @@ class Demo extends Api
     {   
         $data = $this->request->param();
         db('test1')->insert(['vax'=>json_encode($data)]);
-        
+
         $this->success('返回成功', );
     }
 
@@ -51,8 +51,9 @@ class Demo extends Api
      *
      */
     public function test1()
-    {
-        $this->success('返回成功', ['action' => 'test1']);
+    {   
+        ;
+        $this->success('返回成功', ['action' => db('test1')->field('vax')->select()]);
     }
 
     /**