api插件更新数据库一直报错
使用api插件,进行php格式运行,在php中运行更改数据库的操作,一直报错。

\Phpcmf\Service::M()->db->table('dr_1_yzgl')->where('id', $taskid)->update($data);
报错的代码是
"title": "ParseError",
"type": "ParseError",
"code": 500,
"message": "syntax error, unexpected fully qualified name \"\\Phpcmf\\Service\"",