调用需要登录验证的api返回登录请求页面
[21:11:55]INFO:sessionid=47rn3pvnjc29ik7dttge410t71
[21:11:55]INFO:Send:http://localhost/zentaopms/www/index.php?t=json&m=user&f=login&account=admin&password=zhm2009&sid=47rn3pvnjc29ik7dttge410t71
status:success
user:{id=1, dept=0, account=admin, role=, realname=admin, nickname=, commiter=, avatar=, birthday=0000-00-00, gender=f, email=, skype=, qq=, yahoo=, gtalk=, wangwang=, mobile=, phone=, address=, zipcode=, join=0000-00-00, visits=24, ip=127.0.0.1, last=2017-10-10 21:11:55, fails=0, locked=0000-00-00 00:00:00, ranzhi=, admin=true, modifyPassword=false, rights={rights=[], acls=[]}, groups=[], company=Automation}
[21:11:55]INFO:Send:http://localhost/zentaopms/www/index.php?t=json&m=testtask&f=browse&productID=1&sid=47rn3pvnjc29ik7dttge410t71
com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source: (String)"<html><meta charset='utf-8'/><style>body{background:white}</style><script>self.location='/zentaopms/www/index.php?m=user&f=login&t=json&referer=L3plbnRhb3Btcy93d3cvaW5kZXgucGhwP3Q9anNvbiZtPXRlc3R0YXNrJmY9YnJvd3NlJnByb2R1Y3RJRD0xJnNpZD00N3JuM3B2bmpjMjlpazdkdHRnZTQxMHQ3MQ==';</script>"; line: 1, column: 2]
API查询测试版本信息页面信息结果跳转登录页面 查看下面链接说明 已确认php拓展库已安装可以使用,如有大神知晓原因应帮忙指导下
http://devel.easycorp.cn/book/extension/api-auth-44.html
查询GB信息如下:
GD Version: bundled (2.1.0 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
GIF Read Support: 1
GIF Create Support: 1
JPEG Support: 1
PNG Support: 1
WBMP Support: 1
XPM Support:
XBM Support: 1
WebP Support:
JIS-mapped Japanese Font Support:
查看一下贵公司的session变量名称是 sid 还是 zentaosid ? 可以在 zentao/config/config.php中查看变量的名称: