Przeglądaj źródła

补充上一条

sugangqiang 8 miesięcy temu
rodzic
commit
f3cb0bd524
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/enterprise/controller/TalentAllowance.php

+ 1 - 1
app/enterprise/controller/TalentAllowance.php

@@ -416,7 +416,7 @@ class TalentAllowance extends EnterpriseController {
     public function delete() {
         $id = $this->request["id"];
         $info = TalentAllowanceApi::getInfoById($id);
-        if ($info["checkState"] != 1 || $info["checkState"] != -1) {
+        if ($info["checkState"] != 1 && $info["checkState"] != -1) {
             return new Response(Response::ERROR, "删除失败!此数据已提交审核,无法删除!");
         }
         Db::startTrans();