shizhongqi 1 жил өмнө
parent
commit
3b091353d3

+ 3 - 3
app-ghs/controllers/ExpendController.php

@@ -385,11 +385,11 @@ class ExpendController extends BaseController
             util::fail('员工不存在');
         }
 
-        $shop = $this->shop;
-        $admin = $this->admin;
-
         $id = intval($post['id']);
         $expend = ExpendClass::getById($id, true);
+        if ($expend->mainId != $this->mainId){
+            util::fail('没有找到支出数据');
+        }
         $expend->delStaffId = $staffId;
         $expend->delStaffName = $staff->name;
         $rs = $expend->save();