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

更新

@@ -454,6 +454,11 @@ class Index extends Api @@ -454,6 +454,11 @@ class Index extends Api
454 if (!$ideacomment){ 454 if (!$ideacomment){
455 $this->error('该评论不存在'); 455 $this->error('该评论不存在');
456 } 456 }
  457 + $msg = $this->checkMsg($this->auth->id,$comment);
  458 + $msg = json_decode($msg,true);
  459 + if ($msg['errcode'] != 0 || $msg['result']['label'] != 100){
  460 + $this->error('您的评论违规,请修改');
  461 + }
457 if ($type == 1){ 462 if ($type == 1){
458 $data = [ 463 $data = [
459 'pid'=>$id, 464 'pid'=>$id,
@@ -553,7 +558,7 @@ class Index extends Api @@ -553,7 +558,7 @@ class Index extends Api
553 'scene'=>2, 558 'scene'=>2,
554 'content'=>$msg, 559 'content'=>$msg,
555 ]; 560 ];
556 - $data = json_encode($data); 561 + $data = json_encode($data,JSON_UNESCAPED_UNICODE);
557 $curl = curl_init(); 562 $curl = curl_init();
558 curl_setopt($curl, CURLOPT_URL, $url); 563 curl_setopt($curl, CURLOPT_URL, $url);
559 curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE); 564 curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);