Toggle navigation
Toggle navigation
This project
Loading...
Sign in
web
/
yoho-live
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
wuxiao
2016-08-23 13:53:34 +0800
Commit
058c0bfaa7446e90a3ade5ed0c4dbc34c97f32c6
1 parent
4e74ab7f
解决getreplaybarrage接口返回的不是json格式的问题
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
0 deletions
soa/controllers/BaseController.php
soa/controllers/v1/LivingController.php
soa/controllers/BaseController.php
View file @
058c0bf
...
...
@@ -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
();
...
...
soa/controllers/v1/LivingController.php
View file @
058c0bf
Please
register
or
login
to post a comment