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