|
|
@@ -260,24 +260,6 @@ class TestController extends Controller
|
|
|
app("AuthorityService")->removeAllAuth();//移除所有用户权限缓存,这将在用户下次访问时重新建立
|
|
|
}
|
|
|
|
|
|
- public function test1()
|
|
|
- {
|
|
|
- DB::beginTransaction();
|
|
|
- try {
|
|
|
- DB::beginTransaction();
|
|
|
- try {
|
|
|
- $unit = Unit::query()->first();
|
|
|
- $unit->update(["name" => "xxx"]);
|
|
|
- DB::commit();
|
|
|
- } catch (\Exception $e) {
|
|
|
- DB::rollBack();
|
|
|
- }
|
|
|
- DB::commit();
|
|
|
- } catch (\Exception $e) {
|
|
|
- DB::rollBack();
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
public function orderCreateBill()
|
|
|
{
|
|
|
$order = Order::query()->find(\request("id"));
|