作者 李忠强
1 个管道 的构建 通过 耗费 6 秒

更新

... ... @@ -454,6 +454,11 @@ class Index extends Api
if (!$ideacomment){
$this->error('该评论不存在');
}
$msg = $this->checkMsg($this->auth->id,$comment);
$msg = json_decode($msg,true);
if ($msg['errcode'] != 0 || $msg['result']['label'] != 100){
$this->error('您的评论违规,请修改');
}
if ($type == 1){
$data = [
'pid'=>$id,
... ... @@ -553,7 +558,7 @@ class Index extends Api
'scene'=>2,
'content'=>$msg,
];
$data = json_encode($data);
$data = json_encode($data,JSON_UNESCAPED_UNICODE);
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
... ...