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()]);
     }
 
     /**