请问访问报错,Uncaught Error: Class 'errorEntry' not found in /opt/zbox/app/zentao/framework/api/router.class.php:199 且安装版本中的接口文档地址是以.json结尾的,和官网文档描述不一致,是接口版本有差异吗?本地安装的是开源版
执行后错误提示如下
C:\Users\DJJ>curl --location --request POST "http://192.168.11.241/api.php/v1/tokens" --header "Content-Type: application/json" --data-raw "{\"account\": \"admin\", \"password\": \"Lxxxx_1234\"}"
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
</body></html>
16:55:50 Uncaught Error: Class 'zentao' not found in C:\xampp\zentao\module\zentaosdk\control.php:8
Stack trace:
#0 C:\xampp\zentao\framework\base\router.class.php(1714): zentaosdk->getDeptList()
#1 C:\xampp\zentao\www\index.php(72): baseRouter->loadModule()
#2 {main}
thrown in C:\xampp\zentao\module\zentaosdk\control.php on line 8 when visiting zentaosdk-getDeptList
但是参考文档,进行V1版本api的调用,发现调用失败 (https://www.yuque.com/jinyong-sfqfa/qc179b/xyhg4m)
curl --location --request POST "http://192.168.11.241/api.php/v1/tokens" --header "Content-Type: application/json" --data-raw "{\"account\": \"admin\", \"password\": \"Lxxxx_1234\"}"
执行后错误提示如下
C:\Users\DJJ>curl --location --request POST "http://192.168.11.241/api.php/v1/tokens" --header "Content-Type: application/json" --data-raw "{\"account\": \"admin\", \"password\": \"Lxxxx_1234\"}"
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
</body></html>
我们搭建的是开源版本,12.3.3
Stack trace:
#0 C:\xampp\zentao\framework\base\router.class.php(1714): zentaosdk->getDeptList()
#1 C:\xampp\zentao\www\index.php(72): baseRouter->loadModule()
#2 {main}
thrown in C:\xampp\zentao\module\zentaosdk\control.php on line 8 when visiting zentaosdk-getDeptList
http://127.0.0.1/zentao/zentaosdk-getDeptList.html
按照步骤访问网页结果报错了?这是为什么?