正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
@@ -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 | } |
-
请 注册 或 登录 后发表评论