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
xiaofeng.yao@yoho.cn
8 years ago
Commit
bc1ab0f831c79d5e219fb76ef24c6e6c7ef15ecc
1 parent
1658e6d1
直播打日志
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
common/lib/YohonowApi/Request.php
common/lib/YohonowApi/Request.php
View file @
bc1ab0f
...
...
@@ -58,9 +58,9 @@ class Request
private
function
_send
(
$uri
,
array
$data
)
{
file_put_contents
(
"/tmp/yoholive.log"
,
date
(
'Y-m-d H:i:s'
)
.
"|request yohonow,url:"
.
$this
->
makeUrl
(
$uri
,
$data
),
FILE_APPEND
);
file_put_contents
(
"/tmp/yoholive.log"
,
date
(
'Y-m-d H:i:s'
)
.
"|request yohonow,url:"
.
$this
->
makeUrl
(
$uri
,
$data
)
.
"
\n
"
,
FILE_APPEND
);
$response
=
Curl
::
get
(
$this
->
makeUrl
(
$uri
,
$data
));
file_put_contents
(
"/tmp/yoholive.log"
,
date
(
'Y-m-d H:i:s'
)
.
"|request yohonow,result:"
.
var_export
(
$response
,
true
),
FILE_APPEND
);
file_put_contents
(
"/tmp/yoholive.log"
,
date
(
'Y-m-d H:i:s'
)
.
"|request yohonow,result:"
.
var_export
(
$response
,
true
)
.
"
\n
"
,
FILE_APPEND
);
$response
=
json_decode
(
$response
,
true
);
if
(
$response
[
'code'
]
==
self
::
$success
)
{
return
true
;
...
...
Please
register
or
login
to post a comment