chuweiqiang 1 年之前
父节点
当前提交
c45a27b4f4
共有 1 个文件被更改,包括 15 次插入0 次删除
  1. 15 0
      app/admin/controller/Recruitment.php

+ 15 - 0
app/admin/controller/Recruitment.php

@@ -84,6 +84,21 @@ class Recruitment extends Controller
         DataRecruitment::mForm('form');
     }
 
+    /**
+     * 表单结果处理
+     * @param boolean $result
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\DbException
+     * @throws \think\db\exception\ModelNotFoundException
+     */
+    protected function _form_result(bool $result)
+    {
+        if ($result && $this->request->isPost()) {
+//            GoodsService::stock(input('code'));
+            $this->success('恭喜,数据保存成功!', 'javascript:history.back()');
+        }
+    }
+
     public function _form_filter($vo){
         if ($this->request->isGet()) {