Commit 4826f72d authored by tufengqi's avatar tufengqi

old api add ecode

parent 594c511f
......@@ -147,7 +147,7 @@ class ResponseApi
if ($callback_key) {
$callback = $_GET[$callback_key] ?? '';
}
$arr = ['code' => 200, 'error' => 'OK', 'message' => 'OK', 'data' => $success_data];
$arr = ['code' => 200, 'ecode' => 200, 'error' => 'OK', 'message' => 'OK', 'data' => $success_data];
if ($callback) {
$callback = Html::encode($callback_key);
self::header('Content-type', 'application/javascript');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment