已解决 获取Token——ERROR: the control file ... not found

https://www.zentao.net/book/api/664.html

请求获取Token,返回状态码200,返回结果如下

<html><head><meta http-equiv='Content-Type' content='text/html; charset=utf-8' /></head><body><br />
09:16:53 ERROR: the control file D:\CD\xampp\zentao\module\tokens\control.php not found. in D:\CD\xampp\zentao\framework\base\router.class.php on line 1198, last called by D:\CD\xampp\zentao\framework\base\router.class.php on line 1568 through function setControlFile.<br />
 in <strong>D:\CD\xampp\zentao\framework\base\router.class.php</strong> on line <strong>2196</strong> when visiting <strong>tokens</strong><br />
</body></html>
禅道版本 9.8.3 源码包
操作系统 Windows 7
客户端浏览器 Chrome

提问者: chemitech 悬赏:5 日期: 2023-04-20 09:35:43 答案:1 点击:103
设置备注
答案列表
最佳答案
2023/04/20

这个链接中的api需要禅道开源版17.0以上才支持的,可以升级下版本

升级前请做好数据备份
升级请参考文档:http://www.zentao.net/book/zentaopmshelp/41.html
备份请参考文档:http://www.zentao.net/book/zentaopmshelp/42.html

2023/05/24
旗舰3.0版本也报同样的错请问是什么原因呢?
ERROR: the control file module/tokens/control.php not found. in framework/base/router.class.php on line 1364, last called by framework/router.class.php on line 423 through function setControlFile.<br />
in <strong>/var/www/html/zentaopms/framework/base/router.class.php</strong> on line <strong>2643</strong> when visiting <strong>tokens</strong><br
2023/05/24
旗舰版3.0不支持restful类型的接口,可以在后台-二次开发-API中看下json类型的接口信息,参考文档:https://devel.easycorp.cn/book/extension/api-auth-44.html