知识付费使用使用PHP7.4版本时,订单导出报错
解决方法:
if ($_info) {
foreach ($_info as $k => $v) {
$v = json_decode($v, true);
$goodsName = $v['productInfo']['store_name'] . ' ' . "[{$v['cart_num']} * {$v['truePrice']}]";
}
} else {
$_info = [];
$goodsName = '商品信息缺失';
}