Pārlūkot izejas kodu

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

sugangqiang 7 mēneši atpakaļ
vecāks
revīzija
9df2148f67
1 mainītis faili ar 7 papildinājumiem un 0 dzēšanām
  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;
     }