Browse Source

优化报工接口

huangsanjia 1 năm trước cách đây
mục cha
commit
c535387f48
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      application/api/controller/ReportingWork.php

+ 2 - 2
application/api/controller/ReportingWork.php

@@ -217,8 +217,8 @@ class ReportingWork extends Api
         }
 //        $res = \db('制程检验_记录')->field('UniqId')->order('UniqId desc')->find();
         $res = \db('制程检验_记录')->field('UniqId')->order('UniqId desc')->find();
-        if ($res['UniqId'] < 100000000){
-            $data['UniqId'] = 100000000;
+        if (empty($res['UniqId'])){
+            $data['UniqId'] = 1;
         }else{
             $data['UniqId'] = $res['UniqId'] + 1;
         }