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

商圈信息发布优化

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