// 写入 $goodsWarehouse->pic_url = Yii::$app->serializer->encode($this->pic_url); // 获取 $detail['pic_url'] = json_decode($goods->goodsWarehouse->pic_url, true) ?: [];