Browse Source

去掉重复订单

afa 6 tháng trước cách đây
mục cha
commit
b683857a47
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      application/api/controller/Index.php

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

@@ -61,7 +61,7 @@ class Index extends Api
      
         foreach ($rows as $row) {
 
-            $order = $productOrder::where('order_no', $row['order_no'])->order('id asc')->select();
+            $order = $productOrder::where('id', $row['id'])->order('id asc')->select();
             foreach ($order as $key => $vv) {
                 if($key > 0){
                     $vv->order_no = $row['order_no']. $key;