作者 Cool
1 个管道 的构建 通过 耗费 1 秒

商圈信息发布优化

... ... @@ -686,6 +686,16 @@ class Store extends Api
if(!in_array($v,$house_ids)) {
$this->error('包含未绑定的社区,请重新选择');
}
$where_store_house = [
'user_id' => $this->auth->id,
'store_id' => $store['id'],
'house_id' => $v,
'end_time' => ['>',time()]
];
$store_house = Db::name('store_house')->where($where_store_house)->find();
if(!$store_house) {
$this->error('部分社区已过期,请续费后操作');
}
}
$img_count = count(explode(',',$param['images']));
$video_count = !empty($param['video']) ? count(explode(',',$param['video'])) : 0;
... ...