From fa99db461835e827a1c26a548a2b7d8a00575aa7 Mon Sep 17 00:00:00 2001 From: Yuan Chiu Date: Mon, 17 Nov 2014 23:04:39 +0800 Subject: [PATCH] fix api: message->msg --- htdocs/api/v2/src/ApiTemplates.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/htdocs/api/v2/src/ApiTemplates.php b/htdocs/api/v2/src/ApiTemplates.php index 3a1283f..cb6d036 100644 --- a/htdocs/api/v2/src/ApiTemplates.php +++ b/htdocs/api/v2/src/ApiTemplates.php @@ -12,8 +12,8 @@ class ApiTemplates { $array += array( 'error' => true, - 'message' => '', - 'message_cht' => '缺少必要的參數', + 'msg' => '', + 'msg_cht' => '缺少必要的參數', 'substatus' => 101 ); $this->app->render(400, $array); @@ -23,8 +23,8 @@ class ApiTemplates { $array = array( 'error' => true, - 'message' => '', - 'message_cht' => '輸入參數的Content-Type不在支援範圍內 或是沒有輸入', + 'msg' => '', + 'msg_cht' => '輸入參數的Content-Type不在支援範圍內 或是沒有輸入', 'substatus' => 102 ); $this->app->render(400, $array); @@ -34,8 +34,8 @@ class ApiTemplates { $array += array( 'error' => true, - 'message' => 'This function is not enable.', - 'message_cht' => '此功能尚未開放' + 'msg' => 'This function is not enable.', + 'msg_cht' => '此功能尚未開放' ); $this->app->render(405, $array); }