請求_getBodyParams得到數據的問題
當我請求_getBodyParams時,傳入username和password得到的數據是這樣的
string(244) "------WebKitFormBoundaryHbGX5UJLIB3QGAPm
Content-Disposition: form-data; name="username"
3344
------WebKitFormBoundaryHbGX5UJLIB3QGAPm
Content-Disposition: form-data; name="password"
342424
------WebKitFormBoundaryHbGX5UJLIB3QGAPm--
"
然后用return json_decode($row)
得不到數據,
請問,這是什么原因》?
2018-02-08
你傳的不是json。
需要傳json才可以