소스 검색

ms数据唯一判断字段修改

曹鹤洋 2 년 전
부모
커밋
53a47c66c1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 '已存在';
             }