芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/myvyralapp.com/bck/app/Http/Helpers/Response.php
[ 'error' => $errors, ], 'data' => $data, 'type' => "error", ]; return response()->json($responseData,$status); } public static function success($success,$data = null,$status = 200) { $responseData = [ 'message' => [ 'success' => $success, ], 'data' => $data, 'type' => "success", ]; return response()->json($responseData,$status); } public static function warning($warning,$data = null,$status = 400) { $responseData = [ 'message' => [ 'error' => $warning, ], 'data' => $data, 'type' => "warning", ]; return response()->json($responseData,$status); } public static function paymentApiError($errors,$data = [], $status = 400) { $responseData = [ 'message' => [ 'code' => $status, 'error' => $errors, ], 'data' => $data, 'type' => "error", ]; return response()->json($responseData,$status); } public static function paymentApiSuccess($success,$data = null,$status = 200) { $responseData = [ 'message' => [ 'code' => $status, 'success' => $success, ], 'data' => $data, 'type' => "success", ]; return response()->json($responseData,$status); } }