作者 lyh

gx

... ... @@ -43,6 +43,8 @@ class AiCommandLogic extends BaseLogic
if($info !== false){
$this->fail('当前指令已存在');
}
$this->param['operator_id'] = $this->manager['id'];
$this->param['create_id'] = $this->manager['id'];
$rs = $this->model->add($this->param);
if($rs === false){
$this->fail('error');
... ... @@ -86,4 +88,15 @@ class AiCommandLogic extends BaseLogic
}
return $this->success();
}
/**
* @remark :参数处理
* @name :paramHandle
* @author :lyh
* @method :post
* @time :2023/6/26 11:10
*/
public function paramHandle($param){
$param[''] = 1;
}
}
... ...
... ... @@ -16,11 +16,17 @@ class BaseLogic extends Logic
{
protected $requestAll;
protected $manager;
protected $request;
protected $side = Common::A;
public function __construct()
{
$this->requestAll = request()->all();
$this->request = request();
$this->requestAll = $this->request->all();
$this->manager = Cache::get(Common::MANAGE_TOKEN . $this->request->header('token'));
}
... ...