收藏
回答

已经添加内容过滤,请求批准审核?

AppID
wxed314a86250f4b70

已经在后台添加内容过滤机制,请批准



opt($ch,CURLOPT_URL,$get_token_url);

  curl_setopt($ch,CURLOPT_HEADER,0);

  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1 );

  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);

  $res = curl_exec($ch);

  curl_close($ch);

  $json_obj = json_decode($res,true);

  

  //根据openid和access_token查询用户信息

  $accesstoken = $json_obj['access_token'];

  

  

  $post_url = 'https://api.weixin.qq.com/wxa/msg_sec_check?access_token='.$accesstoken;

  

  $ch = curl_init();

  curl_setopt($ch,CURLOPT_URL,$post_url);

  curl_setopt($ch,CURLOPT_HEADER,0);

  curl_setopt($ch, CURLOPT_POST, 1);

  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1 );

  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);

  

  $post_data = array(

    "content" => $content

  );

  $data_string = json_encode($post_data,JSON_UNESCAPED_UNICODE); 

  

  curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);

  curl_setopt($ch, CURLOPT_HTTPHEADER, array(

      'Content-Type: application/json'

  ));

  

  $res = curl_exec($ch);

  curl_close($ch);

  $json_obj = json_decode($res,true);

  

  return $json_obj;


回答关注问题邀请回答
收藏

1 个回答

  • Ltt
    Ltt
    2019-10-08

    请耐心等待审核结果。

    2019-10-08
    有用
    回复
登录 后发表内容
问题标签