Преглед изворни кода

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 '已存在';
             }