|
|
@@ -10,7 +10,6 @@ use fast\Asset;
|
|
|
use app\common\model\ProductOrder;
|
|
|
use app\common\model\LedgerTeacChangeModel;
|
|
|
use app\common\model\ProductPledges;
|
|
|
-use Google\Service\Storage\Resource\Objects;
|
|
|
|
|
|
class PledgeLogic
|
|
|
{
|
|
|
@@ -47,8 +46,8 @@ class PledgeLogic
|
|
|
->where('a.user_id', $user_id)
|
|
|
->where('a.status', $model::Paid)
|
|
|
->whereIn('a.order_no', $order_no)->field('b.id,b.zh_name,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;
|
|
|
if($pledge->type_id == ProductPledges::Single){
|
|
|
$pledge_num = count($order_no);
|
|
|
@@ -60,7 +59,7 @@ class PledgeLogic
|
|
|
$pledge->day_num, $pledge_num);
|
|
|
|
|
|
//修改状态
|
|
|
- return $model->whereIn('order_no', $order_no)->setField('status', $model::Freeze);
|
|
|
+ return $model->whereIn('order_no', $order_no)->limit(count($order_no))->setField('status', $model::Freeze);
|
|
|
}
|
|
|
|
|
|
//获取质抵押订单列表
|