GithubHelp home page GithubHelp logo

行 1503 about hprose-aauto HOT 5 CLOSED

hprose avatar hprose commented on September 7, 2024
行 1503

from hprose-aauto.

Comments (5)

andot avatar andot commented on September 7, 2024

1503 行是个括号,看不出哪儿有问题来啊

from hprose-aauto.

pengcw avatar pengcw commented on September 7, 2024

感谢回复,不好意思,是1502行,我自己在前面加了个if(pos)

from hprose-aauto.

andot avatar andot commented on September 7, 2024

什么情况下会出错,是什么引起的?仅凭现在提供的这些信息我没法确定该怎么改。你的这个错误我也没法复现。

from hprose-aauto.

pengcw avatar pengcw commented on September 7, 2024

服务器新浪sae,框架是thinkphp3.2.3
我打印了参数 cookieList 的值:
参数位置:1
数据类型:table
变量值: {
[1] = PHPSESSID=ea1ff7774a721b472210f32a276eba76; path=/; HttpOnly
}
序列数组长度: 1
貌似是由于多了个 HttpOnly 不是键值对引起的pos为空
thinkphp 有个参数可以设置这个属性
'COOKIE_HTTPONLY' => '', // Cookie的httponly属性 3.2.2新增
服务端不是我的,不知道是不是设置了这个的原因
我目前在前面加了 if(pos) ,可以正常使用,不晓得有没副作用
希望能有帮助

from hprose-aauto.

andot avatar andot commented on September 7, 2024

哦,原来如此,我明白了。加上 if (pos !== null) 应该可以

from hprose-aauto.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.