Authored by xiaofeng.yao@yoho.cn

直播打日志

... ... @@ -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;
... ...