瀏覽代碼

added business transact method

develop
Robin Thoni 9 年之前
父節點
當前提交
fe848d4e56
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9
    0
      src/Utils/Business/LuBusiness.php

+ 9
- 0
src/Utils/Business/LuBusiness.php 查看文件

34
         throw new LuBusinessException($reason, 400);
34
         throw new LuBusinessException($reason, 400);
35
     }
35
     }
36
 
36
 
37
+    /**
38
+     * @param \Closure $function
39
+     * @return mixed
40
+     */
41
+    public static function transact(\Closure $function)
42
+    {
43
+        return static::getDataAccess()->transact($function);
44
+    }
45
+
37
     /**
46
     /**
38
      * @param $id int
47
      * @param $id int
39
      * @return LuDbo
48
      * @return LuDbo

Loading…
取消
儲存