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