@@ -56,7 +56,9 @@ class Pledge extends Api
if (!empty($pledges)) {
$pledges->product_list = $productList::getBySynthesisProduct($pledges->product_id, $pledges->type_id, $this->lan);
}
- $pledges['day_num'] = round($pledges['day_num'], 2);
+ $num = $pledges->type_id == $productPledges::Single? 3 : 1; //单品最大三个限制
+ $pledges['day_num'] = bcmul($pledges['day_num'] *$num, 30, 2);
+ $pledges['announcement_id'] = ['zh'=>339, 'en'=>340]; //协议ID
$this->success('', $pledges);
@@ -76,7 +76,7 @@ class PledgeLogic
->where('a.end_time', '>', $time)
->field('a.*,b.title,b.type_id,b.day_num,b.token,b.teac,b.is_renew')
->select();
- if(empty($list)) throw new Exception('暂无质押订单');
+ if(empty($list)) throw new Exception('暂无存储订单');
$day = 86400;
$total = 0; //当前累计收益
$growth= 0; //增长累计收益