浏览代码

补充上一条

sugangqiang 8 月之前
父节点
当前提交
f3cb0bd524
共有 1 个文件被更改,包括 1 次插入1 次删除
  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();