Commit 68107c57 authored by zhuwei's avatar zhuwei

quanxian

parent a2374add
......@@ -79,6 +79,7 @@ class Houses extends Basic
//获取商铺详情
try {
$list = $house->getHouseById($this->params['id'], 0);
if ($list['status'] == 'successful') {
$result['data'] = $list['data'];
} else {
......
......@@ -3,6 +3,7 @@
namespace app\model;
use app\api_broker\service\VipService;
use app\index\service\ImageDepotService;
use think\Db;
......@@ -778,7 +779,14 @@ class GHouses extends BaseModel
}
try {
$house_data = $this->field('id,external_image_id')->where('id', $data['id'])->find();
$house_data = $this->field('id,external_image_id,is_vip')->where('id', $data['id'])->find();
//vip盘判断权限
if($house_data['is_vip'] == 1){
$vip = new VipService();//0:有权限 1:无权限
if($vip->vip($data['user_id'], 'index/editHouse') == 1){
return (int)$house_id = 0;
}
}
//C端随机图片
if (!empty($save_data['industry_type']) && empty($house_data['external_image_id'])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment