瀏覽代碼

修复购房补贴不能删除附件

sugangqiang 7 月之前
父節點
當前提交
9df2148f67
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      app/common/controller/Api.php

+ 7 - 0
app/common/controller/Api.php

@@ -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;
     }