小程序处理数组传参
$product = htmlspecialchars_decode($product);
$product = stripslashes($product);
$product = json_decode($product, true);
htmlspecialchars_decode方法格式实体字符
stripslashes方法删除addslashes方法添加反斜杠
json_decode方法JSON字符串转为数组
thinkPHP 5.0的input方法和stripslashes方法一起使用可能会导致报错