Prechádzať zdrojové kódy

ms数据唯一判断字段修改

曹鹤洋 2 rokov pred
rodič
commit
53a47c66c1
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      application/api/controller/Index.php

+ 1 - 1
application/api/controller/Index.php

@@ -179,7 +179,7 @@ class Index extends Api
             ];
 
             //查询记录是否存在
-            $bool = db()->name('gather_txt_gcms')->where('gather_time',$res['gather_time'])->find();
+            $bool = db()->name('gather_txt_gcms')->where('data_txt_name',$res['data_txt_name'])->find();
             if($bool){
                 return '已存在';
             }