作者 景龙
1 个管道 的构建 通过 耗费 0 秒

测试微博

@@ -453,10 +453,11 @@ class LoginController extends HomeBaseController @@ -453,10 +453,11 @@ class LoginController extends HomeBaseController
453 $url = 'https://api.weibo.com/2/statuses/share.json'; 453 $url = 'https://api.weibo.com/2/statuses/share.json';
454 $data = [ 454 $data = [
455 'access_token' => $token, 455 'access_token' => $token,
456 - 'status' => $title."  ".$share_url 456 + 'status' => $title." ".$share_url
457 ]; 457 ];
458 $res = $this->http_post($url,$data); 458 $res = $this->http_post($url,$data);
459 $json_arr = json_decode($res,true); 459 $json_arr = json_decode($res,true);
  460 + var_dump($json_arr);exit;
460 if(isset($json_arr['error_code'])&&!empty($json_arr['error_code'])){ 461 if(isset($json_arr['error_code'])&&!empty($json_arr['error_code'])){
461 $this->apiResponse(0,'分享失败!'); 462 $this->apiResponse(0,'分享失败!');
462 } 463 }