|
@@ -1000,6 +1000,13 @@ class Api extends BaseController {
|
|
|
return true;
|
|
|
}
|
|
|
break;
|
|
|
+ case ProjectState::HOUSE:
|
|
|
+ if ($this->user["usertype"] == 2) {
|
|
|
+ $user_id = $this->user["uid"];
|
|
|
+ $record = Db::table("un_housepurchase")->findOrEmpty($mainId);
|
|
|
+ if ($user_id == $record["enterpriseId"])
|
|
|
+ return true;
|
|
|
+ }
|
|
|
}
|
|
|
return false;
|
|
|
}
|