完善图片上传接口

This commit is contained in:
wispx
2018-12-06 12:30:32 +08:00
parent 6057e304ba
commit 2727978c64
4 changed files with 117 additions and 87 deletions
+4 -4
View File
@@ -70,12 +70,12 @@ class Base extends Controller
/**
* 返回数据给客户端并中断输出
*
* @param $msg 提示信息
* @param int $code 状态码
* @param array $data 数据
* @param string $msg 提示信息
* @param int $code 状态码
* @param array $data 数据
*
*/
protected function response($msg, $code = 200, $data = [])
protected function response($msg = '', $code = 200, $data = [])
{
$response = Response::create([
'code' => $code,