作者 lyh

gx

@@ -119,7 +119,6 @@ zFePUMXy1bFghAfzNKlrc5XgH4ixeeMh3cDtU97K @@ -119,7 +119,6 @@ zFePUMXy1bFghAfzNKlrc5XgH4ixeeMh3cDtU97K
119 $url = $this->path.'/api/post'; 119 $url = $this->path.'/api/post';
120 return $this->http_post_ayr($url,$param,$api_key); 120 return $this->http_post_ayr($url,$param,$api_key);
121 } 121 }
122 -  
123 public function http_post_ayr($url,$param,$api_key){ 122 public function http_post_ayr($url,$param,$api_key){
124 $curl = curl_init(); 123 $curl = curl_init();
125 curl_setopt_array($curl, array( 124 curl_setopt_array($curl, array(
@@ -139,7 +138,7 @@ zFePUMXy1bFghAfzNKlrc5XgH4ixeeMh3cDtU97K @@ -139,7 +138,7 @@ zFePUMXy1bFghAfzNKlrc5XgH4ixeeMh3cDtU97K
139 )); 138 ));
140 $response = curl_exec($curl); 139 $response = curl_exec($curl);
141 curl_close($curl); 140 curl_close($curl);
142 - echo $response; 141 + return $response;
143 } 142 }
144 /** 143 /**
145 * @name :(上传图片或视频到ayr_share)post_media_upload 144 * @name :(上传图片或视频到ayr_share)post_media_upload
@@ -77,12 +77,8 @@ class AyrReleaseController extends BaseController @@ -77,12 +77,8 @@ class AyrReleaseController extends BaseController
77 'mediaUrls'=>$this->param['mediaUrls'],//参数处理 77 'mediaUrls'=>$this->param['mediaUrls'],//参数处理
78 'idempotencyKey'=>$formattedTime,//时间(如是过去时间,立即发布) 78 'idempotencyKey'=>$formattedTime,//时间(如是过去时间,立即发布)
79 ]; 79 ];
80 - var_dump($param);  
81 - die();  
82 //发送请求发布社交文章 80 //发送请求发布社交文章
83 $res = $ayrShare->post_send_msg($param,$share_info['profile_key']); 81 $res = $ayrShare->post_send_msg($param,$share_info['profile_key']);
84 - var_dump($res);  
85 - die();  
86 //保存数据库 82 //保存数据库
87 $ayrReleaseLogic->release_add(); 83 $ayrReleaseLogic->release_add();
88 $this->response('success',Code::SUCCESS,$res); 84 $this->response('success',Code::SUCCESS,$res);