正在显示
1 个修改的文件
包含
10 行增加
和
0 行删除
@@ -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; |
-
请 注册 或 登录 后发表评论