Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stringToJsonArray不支持解析被urlencode后的数据 #56

Closed
SuKerd opened this issue Jul 22, 2019 · 1 comment
Closed

stringToJsonArray不支持解析被urlencode后的数据 #56

SuKerd opened this issue Jul 22, 2019 · 1 comment
Labels
question Further information is requested

Comments

@SuKerd
Copy link

SuKerd commented Jul 22, 2019

swlib\util\src\DataParser.php 第94行

 public static function stringToJsonArray(string $var): array
    {
        //无法解析被urlencode后的数据
        var_dump($var);//%7b%22jlunit%22%3a%22%22%2c%22jsunit%22%3a%22%22%2c%22sgunit%22%3a%22%22%2c%22serialno%22%3a%2244b16204daaf41c3bed192681d70e5e5%22%2c%22errorcode%22%3a%220%22%2c%22errormessage%22%3a%22%22%7d
        return ($var = json_decode($var, true)) === false ? [] : $var;
    }
@twose
Copy link
Member

twose commented Aug 1, 2019

这个没法识别的 那需要自己decode自己解析了

@sy-records sy-records added the question Further information is requested label Aug 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants