...
|
...
|
@@ -714,6 +714,10 @@ class Store extends Api |
|
|
if($times >= config('site.send_red_times')){
|
|
|
$this->error('商家每天发布红包信息不能超过'.config('site.send_red_times').'次');
|
|
|
}
|
|
|
// 红包最低起投数量
|
|
|
if($param['number'] < config('site.send_red_min')){
|
|
|
$this->error('红包最低起投数量不能低于'.config('site.send_red_min').'个');
|
|
|
}
|
|
|
$param['single'] = $param['red_package'] / $param['number'];
|
|
|
$param['score'] = bcadd(config('site.send_score'),$param['red_package'] * config('site.withdraw_percent'),2);
|
|
|
if($this->auth->score < $param['score']) {
|
...
|
...
|
|