Commit 863d64f4 by doszhang

dos

parent 5884c343
...@@ -29,8 +29,8 @@ class IndexController extends Controller ...@@ -29,8 +29,8 @@ class IndexController extends Controller
$this->display(); $this->display();
} }
public function detectSensitiveWords(){ public function detectSensitiveWords($text){
$text = $_GET['text']; // $text = $_GET['text'];
$cred = new Credential("AKID9B4pPq5YBgz9Yo7qDRkspgOQK3c89PrD", "MXWK3DKNFzYgpvWwCKH4kKoma0O1Yu8A"); $cred = new Credential("AKID9B4pPq5YBgz9Yo7qDRkspgOQK3c89PrD", "MXWK3DKNFzYgpvWwCKH4kKoma0O1Yu8A");
$httpProfile = new HttpProfile(); $httpProfile = new HttpProfile();
$httpProfile->setEndpoint("nlp.tencentcloudapi.com"); $httpProfile->setEndpoint("nlp.tencentcloudapi.com");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment