|
...
|
...
|
@@ -21,11 +21,18 @@ class AiCommandLogic extends BaseLogic |
|
|
|
* @author :liyuhang
|
|
|
|
* @method
|
|
|
|
*/
|
|
|
|
<<<<<<< HEAD
|
|
|
|
public function info(){
|
|
|
|
=======
|
|
|
|
public function ai_info(){
|
|
|
|
<<<<<<< HEAD
|
|
|
|
>>>>>>> 0a33166a03a36ebcf1c74fe78d1a9a2080e1c6d4
|
|
|
|
=======
|
|
|
|
$info = $this->model->read($this->param);
|
|
|
|
if($info !== false){
|
|
|
|
$this->fail('当前数据不存在');
|
|
|
|
}
|
|
|
|
>>>>>>> 6732faf6504ff84e7d22309bfc7c7de49f0432c0
|
|
|
|
return $this->success();
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -35,7 +42,13 @@ class AiCommandLogic extends BaseLogic |
|
|
|
* @author :liyuhang
|
|
|
|
* @method
|
|
|
|
*/
|
|
|
|
<<<<<<< HEAD
|
|
|
|
public function add(){
|
|
|
|
=======
|
|
|
|
public function ai_add(){
|
|
|
|
<<<<<<< HEAD
|
|
|
|
>>>>>>> 0a33166a03a36ebcf1c74fe78d1a9a2080e1c6d4
|
|
|
|
=======
|
|
|
|
$condition = [
|
|
|
|
'key'=>$this->param['key']
|
|
|
|
];
|
|
...
|
...
|
@@ -47,6 +60,7 @@ class AiCommandLogic extends BaseLogic |
|
|
|
if($rs === false){
|
|
|
|
$this->fail('error');
|
|
|
|
}
|
|
|
|
>>>>>>> 6732faf6504ff84e7d22309bfc7c7de49f0432c0
|
|
|
|
return $this->success();
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -56,7 +70,13 @@ class AiCommandLogic extends BaseLogic |
|
|
|
* @author :liyuhang
|
|
|
|
* @method
|
|
|
|
*/
|
|
|
|
<<<<<<< HEAD
|
|
|
|
public function edit(){
|
|
|
|
=======
|
|
|
|
public function ai_edit(){
|
|
|
|
<<<<<<< HEAD
|
|
|
|
>>>>>>> 0a33166a03a36ebcf1c74fe78d1a9a2080e1c6d4
|
|
|
|
=======
|
|
|
|
$condition = [
|
|
|
|
'id'=>['!=',$this->param['id']],
|
|
|
|
'key'=>$this->param['key']
|
|
...
|
...
|
@@ -69,6 +89,7 @@ class AiCommandLogic extends BaseLogic |
|
|
|
if($rs === false){
|
|
|
|
$this->fail('error');
|
|
|
|
}
|
|
|
|
>>>>>>> 6732faf6504ff84e7d22309bfc7c7de49f0432c0
|
|
|
|
return $this->success();
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -78,12 +99,19 @@ class AiCommandLogic extends BaseLogic |
|
|
|
* @author :liyuhang
|
|
|
|
* @method
|
|
|
|
*/
|
|
|
|
<<<<<<< HEAD
|
|
|
|
public function del(){
|
|
|
|
=======
|
|
|
|
public function ai_del(){
|
|
|
|
<<<<<<< HEAD
|
|
|
|
>>>>>>> 0a33166a03a36ebcf1c74fe78d1a9a2080e1c6d4
|
|
|
|
=======
|
|
|
|
$this->param['id'] = ['in',$this->param['id']];
|
|
|
|
$rs = $this->model->del($this->param);
|
|
|
|
if($rs === false){
|
|
|
|
$this->fail('error');
|
|
|
|
}
|
|
|
|
>>>>>>> 6732faf6504ff84e7d22309bfc7c7de49f0432c0
|
|
|
|
return $this->success();
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|