|
@@ -43,6 +43,8 @@ class AiCommandLogic extends BaseLogic |
|
@@ -43,6 +43,8 @@ class AiCommandLogic extends BaseLogic |
|
43
|
if($info !== false){
|
43
|
if($info !== false){
|
|
44
|
$this->fail('当前指令已存在');
|
44
|
$this->fail('当前指令已存在');
|
|
45
|
}
|
45
|
}
|
|
|
|
46
|
+ $this->param['operator_id'] = $this->manager['id'];
|
|
|
|
47
|
+ $this->param['create_id'] = $this->manager['id'];
|
|
46
|
$rs = $this->model->add($this->param);
|
48
|
$rs = $this->model->add($this->param);
|
|
47
|
if($rs === false){
|
49
|
if($rs === false){
|
|
48
|
$this->fail('error');
|
50
|
$this->fail('error');
|
|
@@ -86,4 +88,15 @@ class AiCommandLogic extends BaseLogic |
|
@@ -86,4 +88,15 @@ class AiCommandLogic extends BaseLogic |
|
86
|
}
|
88
|
}
|
|
87
|
return $this->success();
|
89
|
return $this->success();
|
|
88
|
}
|
90
|
}
|
|
|
|
91
|
+
|
|
|
|
92
|
+ /**
|
|
|
|
93
|
+ * @remark :参数处理
|
|
|
|
94
|
+ * @name :paramHandle
|
|
|
|
95
|
+ * @author :lyh
|
|
|
|
96
|
+ * @method :post
|
|
|
|
97
|
+ * @time :2023/6/26 11:10
|
|
|
|
98
|
+ */
|
|
|
|
99
|
+ public function paramHandle($param){
|
|
|
|
100
|
+ $param[''] = 1;
|
|
|
|
101
|
+ }
|
|
89
|
} |
102
|
} |