|
@@ -79,7 +79,7 @@ class Pledge extends Api
|
|
|
if(empty($pledge_id) || empty($order_no)) $this->error(__("参数有误,无可用产品"));
|
|
if(empty($pledge_id) || empty($order_no)) $this->error(__("参数有误,无可用产品"));
|
|
|
|
|
|
|
|
$pledge = $productPledges::get($pledge_id);
|
|
$pledge = $productPledges::get($pledge_id);
|
|
|
- if(count(explode(',', $pledge->product_id)) != count($order_no)) $this->error(__("质押商品数量与订单数量不匹配"));
|
|
|
|
|
|
|
+ if($pledge->type_id == $productPledges::Combin && count(explode(',', $pledge->product_id)) != count($order_no)) $this->error(__("质押商品数量与订单数量不匹配"));
|
|
|
|
|
|
|
|
if (empty($pledge)) $this->error(__("质抵活动不存在"));
|
|
if (empty($pledge)) $this->error(__("质抵活动不存在"));
|
|
|
if (empty($pledge->status) )$this->error(__("质抵活动已结束"));
|
|
if (empty($pledge->status) )$this->error(__("质抵活动已结束"));
|