Your Name 5 months ago
parent
commit
3418f9f20f
1 changed files with 15 additions and 1 deletions
  1. 15
    1
      application/api/controller/Ai.php

+ 15
- 1
application/api/controller/Ai.php View File

@@ -25,7 +25,7 @@ use think\Db;
25 25
 class Ai extends MemberApi
26 26
 {
27 27
 
28
-    protected $noNeedLogin = ['login', 'register','uploadCsv','uploadCsvFrom','exportCsv','dsTitle','dsTitlelist','dsTitle13','bdPicHandle'];
28
+    protected $noNeedLogin = ['login', 'register','uploadCsv','uploadCsvFrom','exportCsv','dsTitle','dsTitlelist','dsTitle13','bdPicHandle','titleHandleApi'];
29 29
     protected $noNeedRight = [];
30 30
 
31 31
     //初始化
@@ -260,6 +260,15 @@ class Ai extends MemberApi
260 260
      * 模型控制器 操作数据
261 261
      */
262 262
 
263
+    /*
264
+     * http://console.zx2049.com/api/ai/titleHandleApi
265
+     * 调试
266
+     */
267
+    public function titleHandleApi(){
268
+        $t = $this->titleHandle('建筑职称评审',0,'建筑职称');
269
+        var_dump($t);
270
+    }
271
+
263 272
     /*
264 273
      * 处理函数
265 274
      * $title 主词
@@ -450,6 +459,11 @@ class Ai extends MemberApi
450 459
             return [1,$desc,$data];
451 460
         }
452 461
 
462
+        //var_dump($data['cfc']);
463
+        //var_dump($is_bh1);
464
+        //var_dump($is_bh2);
465
+        //die;
466
+
453 467
         if($is_bh1 > 0 && $is_bh2 > 0){
454 468
             //同时存在
455 469
             $desc .= '合法,同时存在并发词['.$fc2.']和触发词['.$fc1.']';

Loading…
Cancel
Save