dever 6 years ago
parent
commit
07afe71d33
3 changed files with 13 additions and 0 deletions
  1. 11 0
      product/database/order.php
  2. 1 0
      product/lib/Manage.php
  3. 1 0
      product/src/Api.php

+ 11 - 0
product/database/order.php

@@ -133,6 +133,17 @@ return array
 			'match' 	=> 'is_numeric',
 		),
 
+		'num'		=> array
+		(
+			'type' 		=> 'varchar-50',
+			'name' 		=> '数量',
+			'default' 	=> '1',
+			'desc' 		=> '数量',
+			'match' 	=> 'is_string',
+			'update'	=> 'text',
+			//'list'		=> true,
+		),
+
 		'cash'		=> array
 		(
 			'type' 		=> 'varchar-50',

+ 1 - 0
product/lib/Manage.php

@@ -23,6 +23,7 @@ class Manage
             $table['支付方式'] = '兑换';
             $table['兑换码'] = $info['code'];
         }
+        $table['购买数量'] = $info['num'];
 
         if (isset($info['address_name'])) {
             $table['收货人姓名'] = $info['address_name'];

+ 1 - 0
product/src/Api.php

@@ -134,6 +134,7 @@ class Api extends Base
             $order_data['type'] = 1;
             $order_data['status'] = 1;
             $order_data['name'] = $name;
+            $order_data['num'] = Dever::input('num');
             $order_data['address_name'] = $address_name;
             $order_data['address_mobile'] = $mobile;
             $order_data['address_address'] = $address;