|
|
@@ -80,7 +80,7 @@ class Pledge extends Api
|
|
|
if(empty($pledge_id) || empty($order_no)) $this->error(__("参数有误,无可用产品"));
|
|
|
|
|
|
$pledge = $productPledges::get($pledge_id);
|
|
|
- if(count(explode(',', $pledge->product_id)) || count($order_no)) $this->error(__("参数有误,无可用产品"));
|
|
|
+ if(count(explode(',', $pledge->product_id)) != count($order_no)) $this->error(__("参数有误,无可用产品"));
|
|
|
|
|
|
if (empty($pledge)) $this->error(__("质抵活动不存在"));
|
|
|
if (empty($pledge->status) )$this->error(__("质抵活动已结束"));
|
|
|
@@ -121,10 +121,9 @@ class Pledge extends Api
|
|
|
public function collect(PledgeLogic $pledgeLogic)
|
|
|
{
|
|
|
if($pledgeLogic::getCheckRequestApi('collect', $this->auth->id, 300) == false){
|
|
|
- $this->error(__("参数有误,无可用产品"));
|
|
|
+ $this->error(__("收取太pio啦,请稍后再试"));
|
|
|
}
|
|
|
- echo 'ok';
|
|
|
- die;
|
|
|
+
|
|
|
Db::startTrans();
|
|
|
try {
|
|
|
// 质抵押订单
|