...
|
...
|
@@ -615,6 +615,7 @@ class Store extends Api |
|
|
* @ApiParams (name="inform_id", type="string", required=false, description="信息id")
|
|
|
* @ApiParams (name="content", type="string", required=true, description="详细内容")
|
|
|
* @ApiParams (name="images", type="string", required=true, description="图片")
|
|
|
* @ApiParams (name="video", type="string", required=true, description="视频")
|
|
|
* @ApiParams (name="house_ids", type="string", required=true, description="推广社区")
|
|
|
* @ApiParams (name="type", type="integer", required=true, description="推广类型1=红包推送信息2=一般信息")
|
|
|
* @ApiParams (name="red_package", type="string", required=false, description="红包总金额")
|
...
|
...
|
@@ -640,6 +641,14 @@ class Store extends Api |
|
|
$this->error('包含未绑定的社区,请重新选择');
|
|
|
}
|
|
|
}
|
|
|
$img_count = count(explode(',',$param['images']));
|
|
|
$video_count = !empty($param['video']) ? count(explode(',',$param['video'])) : 0;
|
|
|
if($video_count > 1) {
|
|
|
$this->error('视频只能上传一个');
|
|
|
}
|
|
|
if(($video_count == 1 && $img_count > 8) || $img_count > 9) {
|
|
|
$this->error('最多上传9张图片或1个视频及8张图片');
|
|
|
}
|
|
|
if($param['type'] == 1) {
|
|
|
$param['single'] = $param['red_package'] / $param['number'];
|
|
|
$param['score'] = bcadd(config('site.send_score'),$param['red_package'] * config('site.withdraw_percent'),2);
|
...
|
...
|
|