Your Name 3 年之前
父節點
當前提交
68f873380f
共有 2 個文件被更改,包括 12 次插入1 次删除
  1. 11 0
      service/agent/database/dh_order.php
  2. 1 1
      service/agent/lib/Dhorder.php

+ 11 - 0
service/agent/database/dh_order.php

@@ -654,4 +654,15 @@ return array
             'col' => '*',
             'col' => '*',
         ),
         ),
     ),
     ),
+    'getSellDui' => array
+        (
+            # 匹配的正则或函数 选填项
+            'option' => array
+            (
+                'id' => 'yes',
+                'state' => 1,
+            ),
+            'type' => 'one',
+            'col' => 'num',
+        ),
 );
 );

+ 1 - 1
service/agent/lib/Dhorder.php

@@ -1519,7 +1519,7 @@ class Dhorder
                         if ($order_ps) {
                         if ($order_ps) {
                             foreach($order_ps as $a => $b) {
                             foreach($order_ps as $a => $b) {
                                 if (isset($b['order_id'])) {
                                 if (isset($b['order_id'])) {
-                                    $pc_order = Dever::db('shop/sell_order')->getSellDui(array('id'=>$b['order_id']));
+                                    $pc_order = Dever::db('agent/dh_order')->getSellDui(array('id'=>$b['order_id']));
                                     if($pc_order){
                                     if($pc_order){
                                         $d[$i] += $pc_order['num'];
                                         $d[$i] += $pc_order['num'];
                                     }
                                     }