diff --git a/app/pay/controller/PayController.php b/app/pay/controller/PayController.php
index 3580094..a0b7dba 100644
--- a/app/pay/controller/PayController.php
+++ b/app/pay/controller/PayController.php
@@ -64,7 +64,9 @@ class PayController extends HomeBaseController
                 'whole' => $whole,
                 'whole_num' => $whole_num,
                 'pay_type' => $request->param('pay_type'),
-                'step' => 1
+                'step' => 1,
+                //购买同时加入一级分类,用于判断是否赠送积分用
+                'cid' => $request->param('cid')
             ];
             Db::startTrans();
             if (Db::name('zj_order')->insert($order)) {
diff --git a/public/themes/simpleboot3/cart/zj_cart/order_confirm.html b/public/themes/simpleboot3/cart/zj_cart/order_confirm.html
index 6ba6721..6a4aea6 100644
--- a/public/themes/simpleboot3/cart/zj_cart/order_confirm.html
+++ b/public/themes/simpleboot3/cart/zj_cart/order_confirm.html
@@ -730,7 +730,8 @@
                 data: {
                     pay_type: pay_type,
                     address_id: address_id,
-                    remark: $("#remark").val()
+                    remark: $("#remark").val(),
+                    cid:'{$caid}'
                 },
                 type: "POST",
                 dataType: "JSON",
@@ -772,7 +773,8 @@
                 data:{
                     pay_type:pay_type,
                     address_id:address_id,
-                    remark:$("#remark").val()
+                    remark:$("#remark").val(),
+                    cid:'{$caid}'
                 },
                 type:"POST",
                 dataType:"JSON",
@@ -809,6 +811,7 @@
                         remark: $("#remark").val(),
                         pay_cash: pay_cash,
                         pay_num: pay_num,
+                        cid:'{$caid}'
                     },
                     type: "POST",
                     dataType: "JSON",