dever пре 3 година
родитељ
комит
72b3f58586
2 измењених фајлова са 25 додато и 1 уклоњено
  1. 21 1
      app/shop/database/sell_order.php
  2. 4 0
      app/shop/lib/Sell.php

+ 21 - 1
app/shop/database/sell_order.php

@@ -276,7 +276,7 @@ return array
             'name'      => '物流号',
             'default'   => '',
             'desc'      => '物流号',
-            'match'     => 'is_numeric',
+            'match'     => 'is_string',
         ),
 
         'ps_status'        => array
@@ -290,6 +290,26 @@ return array
             'option'    => $ps_status,
         ),
 
+        'ps_id'        => array
+        (
+            'type'      => 'int-11',
+            'name'      => '配送服务商id',
+            'default'   => '1',
+            'desc'      => '配送服务商id',
+            'match'     => 'is_numeric',
+            //'update'    => 'select',
+            //'option'    => $ps_service,
+        ),
+
+        'ps_cash'        => array
+        (
+            'type'      => 'varchar-100',
+            'name'      => '配送金额',
+            'default'   => '',
+            'desc'      => '配送金额',
+            'match'     => 'is_string',
+        ),
+
         'pay_id'      => array
         (
             'type'      => 'varchar-100',

+ 4 - 0
app/shop/lib/Sell.php

@@ -224,6 +224,10 @@ class Sell
                 	$update['code_status'] = 2;
                 } else {
                 	$update['ps_status'] = 2;
+
+                    # 先在这里分配配送吧
+                    $update['ps_cash'] = 0;
+                    $update['ps_id'] = 1;
                 }
             }