This commit is contained in:
wispx
2018-12-07 18:02:13 +08:00
parent df40fd0a8f
commit 37e002d620
10 changed files with 124 additions and 101 deletions
+2 -2
View File
@@ -37,8 +37,8 @@ class Upload extends Base
Db::commit();
} catch (Exception $e) {
Db::rollback();
return $this->response($e->getMessage(), 500);
return $this->response($e->getMessage(), null, 500);
}
return $this->response('success', 200, $data);
return $this->response('success', $data);
}
}