Browse Source

去掉重复订单

afa 6 months ago
parent
commit
dd2015b95b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/controller/Index.php

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

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