From 6924e67c6da0e1cad5d2bdea17461803b1e59451 Mon Sep 17 00:00:00 2001
From: 李忠强 <1354905998@qq.com>
Date: Fri, 21 Jan 2022 18:55:55 +0800
Subject: [PATCH] 更新

---
 application/api/controller/Buy.php   | 2 +-
 application/api/controller/Cart.php  | 2 +-
 application/api/controller/Order.php | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/application/api/controller/Buy.php b/application/api/controller/Buy.php
index 67bbe38..77d3179 100644
--- a/application/api/controller/Buy.php
+++ b/application/api/controller/Buy.php
@@ -65,7 +65,7 @@ class Buy extends Api
     {
         $json = $this->request->param('data_json');
         if (!$json) $this->error('data_json参数不能为空');
-        $json = str_replace('&qout;','"',$json);
+        $json = str_replace('&quot;','"',$json);
         $data = json_decode($json,true);
         $goodsmodel = new \app\api\model\Goods();
         $skumodel = new GoodsSpec();
diff --git a/application/api/controller/Cart.php b/application/api/controller/Cart.php
index 474599a..d3b5676 100644
--- a/application/api/controller/Cart.php
+++ b/application/api/controller/Cart.php
@@ -205,7 +205,7 @@ class Cart extends Api
         $json = $this->request->param('data_json');
         if (!$json) $this->error('data_json参数不能为空');
 //        $json = '[{"goods_id":22,"goods_sku_id":106,"number":2},{"goods_id":23,"goods_sku_id":66,"number":2}]';
-        $json = str_replace('&qout;','"',$json);
+        $json = str_replace('&quot;','"',$json);
         $data = json_decode($json,true);
         $goodsmodel = new \app\api\model\Goods();
         $skumodel = new GoodsSpec();
diff --git a/application/api/controller/Order.php b/application/api/controller/Order.php
index 07bd55e..1abfdd1 100644
--- a/application/api/controller/Order.php
+++ b/application/api/controller/Order.php
@@ -177,7 +177,7 @@ class Order extends Api
     {
         $json = $this->request->param('data_json');
         if (!$json) $this->error('data_json参数不能为空');
-        $json = str_replace('&qout;','"',$json);
+        $json = str_replace('&quot;','"',$json);
 //        $json = '[{"goods_id":22,"goods_sku_id":106,"number":2},{"goods_id":23,"goods_sku_id":66,"number":2}]';
         $data = json_decode($json,true);
         $goodsmodel = new \app\api\model\Goods();
@@ -383,7 +383,7 @@ class Order extends Api
                 ->find();
             if (!$coupon) $this->error('优惠券不存在');
         }
-        $json = str_replace('&qout;','"',$json);
+        $json = str_replace('&quot;','"',$json);
         $data = json_decode($json,true);
         $goodsmodel = new \app\api\model\Goods();
         $skumodel = new GoodsSpec();
--
libgit2 0.24.0