thinkphp接收json数组,比如一下格式

thinkphp 接收小程序json数组

thinkphp 接收小程序json数组


如果用thinkphp的I方法接收数据,比如I('goods_arr'),这样是收不到数据的,得用$_POST['goods_arr']

// 将json数组解析,必须是$_POST方法获取,不能使用I方法
        $goods_arr = json_decode($_POST['goods_arr'],true);

相关文章:

  • 2022-01-07
  • 2022-01-19
  • 2022-02-07
猜你喜欢
  • 2021-06-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-22
相关资源
相似解决方案