Explorar o código

ms数据唯一判断字段修改

曹鹤洋 %!s(int64=2) %!d(string=hai) anos
pai
achega
53a47c66c1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 '已存在';
             }