正在显示
3 个修改的文件
包含
4 行增加
和
4 行删除
@@ -65,7 +65,7 @@ class Buy extends Api | @@ -65,7 +65,7 @@ class Buy extends Api | ||
65 | { | 65 | { |
66 | $json = $this->request->param('data_json'); | 66 | $json = $this->request->param('data_json'); |
67 | if (!$json) $this->error('data_json参数不能为空'); | 67 | if (!$json) $this->error('data_json参数不能为空'); |
68 | - $json = str_replace('&qout;','"',$json); | 68 | + $json = str_replace('"','"',$json); |
69 | $data = json_decode($json,true); | 69 | $data = json_decode($json,true); |
70 | $goodsmodel = new \app\api\model\Goods(); | 70 | $goodsmodel = new \app\api\model\Goods(); |
71 | $skumodel = new GoodsSpec(); | 71 | $skumodel = new GoodsSpec(); |
@@ -205,7 +205,7 @@ class Cart extends Api | @@ -205,7 +205,7 @@ class Cart extends Api | ||
205 | $json = $this->request->param('data_json'); | 205 | $json = $this->request->param('data_json'); |
206 | if (!$json) $this->error('data_json参数不能为空'); | 206 | if (!$json) $this->error('data_json参数不能为空'); |
207 | // $json = '[{"goods_id":22,"goods_sku_id":106,"number":2},{"goods_id":23,"goods_sku_id":66,"number":2}]'; | 207 | // $json = '[{"goods_id":22,"goods_sku_id":106,"number":2},{"goods_id":23,"goods_sku_id":66,"number":2}]'; |
208 | - $json = str_replace('&qout;','"',$json); | 208 | + $json = str_replace('"','"',$json); |
209 | $data = json_decode($json,true); | 209 | $data = json_decode($json,true); |
210 | $goodsmodel = new \app\api\model\Goods(); | 210 | $goodsmodel = new \app\api\model\Goods(); |
211 | $skumodel = new GoodsSpec(); | 211 | $skumodel = new GoodsSpec(); |
@@ -177,7 +177,7 @@ class Order extends Api | @@ -177,7 +177,7 @@ class Order extends Api | ||
177 | { | 177 | { |
178 | $json = $this->request->param('data_json'); | 178 | $json = $this->request->param('data_json'); |
179 | if (!$json) $this->error('data_json参数不能为空'); | 179 | if (!$json) $this->error('data_json参数不能为空'); |
180 | - $json = str_replace('&qout;','"',$json); | 180 | + $json = str_replace('"','"',$json); |
181 | // $json = '[{"goods_id":22,"goods_sku_id":106,"number":2},{"goods_id":23,"goods_sku_id":66,"number":2}]'; | 181 | // $json = '[{"goods_id":22,"goods_sku_id":106,"number":2},{"goods_id":23,"goods_sku_id":66,"number":2}]'; |
182 | $data = json_decode($json,true); | 182 | $data = json_decode($json,true); |
183 | $goodsmodel = new \app\api\model\Goods(); | 183 | $goodsmodel = new \app\api\model\Goods(); |
@@ -383,7 +383,7 @@ class Order extends Api | @@ -383,7 +383,7 @@ class Order extends Api | ||
383 | ->find(); | 383 | ->find(); |
384 | if (!$coupon) $this->error('优惠券不存在'); | 384 | if (!$coupon) $this->error('优惠券不存在'); |
385 | } | 385 | } |
386 | - $json = str_replace('&qout;','"',$json); | 386 | + $json = str_replace('"','"',$json); |
387 | $data = json_decode($json,true); | 387 | $data = json_decode($json,true); |
388 | $goodsmodel = new \app\api\model\Goods(); | 388 | $goodsmodel = new \app\api\model\Goods(); |
389 | $skumodel = new GoodsSpec(); | 389 | $skumodel = new GoodsSpec(); |
-
请 注册 或 登录 后发表评论