Browse Source

质抵详情

afa 7 months ago
parent
commit
bf3b75ece5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      application/common/logic/PledgeLogic.php

+ 2 - 2
application/common/logic/PledgeLogic.php

@@ -43,7 +43,7 @@ class PledgeLogic
             ->join('product_list b', 'a.product_id = b.id', 'left')
             ->where('a.user_id', $user_id)
             ->where('a.status', $model::Paid)
-            ->whereIn('a.order_no', $order_no)->column('b.id,b.thum');
+            ->whereIn('a.order_no', $order_no)->field('b.id,b.thum,a.order_no')->select();
 
         if(empty($product) || count($product) != count($order_no))  throw new Exception('订单不存在');
         $pledge_num = 1;
@@ -53,7 +53,7 @@ class PledgeLogic
 
         //添加订单 
         Loader::model('UserPledge')::setPledgeData($user_id, $pledge->id, $pledge->product_id, 
-        ['product'=>$product, 'order_no'=>$order_no], //订单信息
+        $product, //订单信息
         $pledge->day_num, $pledge_num);
        
         //修改状态