workerman-php / workerman-php/http-client
我发出的数组 int类型会全部变成了 string
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 55
- Forks
- 19
- PR merge metrics
- No merged PRs in 30d
Description
服务器A:
$response = [
"hello": "123456"
];
$http->request($host,$response)->getBody()->getContents();
接收端B:
$request->only(['hello']);
"data": {
"hello": "123456"
}
这是发送端 还是接收端 没处理
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the request shown from server A through $http->request($host, $response)->getBody()->getContents(), then inspect the received value selected with $request->only(['hello']). Compare the value before transmission with the decoded response and determine whether the conversion occurs in the client or the receiving side. Done means the responsible handling point and a reproducible expected result are documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100