Authored by wuxiao

解决getreplaybarrage接口返回的不是json格式的问题

... ... @@ -70,6 +70,7 @@ class BaseController extends Controller
'md5' => md5(strval($data))
];
}
header('Content-type: application/json;charset=utf-8');
Yii::$app->response->format = \yii\web\Response::FORMAT_JSON;
echo json_encode($retData);
Yii::$app->end();
... ...