dever 5 years ago
parent
commit
7347d436e3
2 changed files with 11 additions and 10 deletions
  1. 1 0
      code/lib/Manage.php
  2. 10 10
      service/database/product.php

+ 1 - 0
code/lib/Manage.php

@@ -37,6 +37,7 @@ class Manage
 		$code = Dever::param('code', $data);
 		$type = Dever::param('type', $data);
 		$product_id = Dever::param('product_id', $data);
+		$product_id = $id;
 		if (!in_array(2, $type)) {
 			return;
 		}

+ 10 - 10
service/database/product.php

@@ -92,17 +92,17 @@ return array
 			'default' 	=> '',
 			'desc' 		=> '产品购买路径',
 			'match' 	=> 'option',
-			//'update'	=> 'text',
+			'update'	=> 'text',
 		),
 
 		'price'		=> array
 		(
 			'type' 		=> 'varchar-50',
-			'name' 		=> '产品显示价格-已废弃',
+			'name' 		=> '产品显示价格',
 			'default' 	=> '',
 			'desc' 		=> '产品显示价格',
 			'match' 	=> 'is_string',
-			//'update'	=> 'text',
+			'update'	=> 'text',
 		),
 
 		'price_info'		=> array
@@ -128,36 +128,36 @@ return array
 		'type'		=> array
 		(
 			'type' 		=> 'varchar-150',
-			'name' 		=> '获取方式-已废弃',
+			'name' 		=> '获取方式',
 			'default' 	=> '1',
 			'desc' 		=> '获取方式',
 			'match' 	=> 'is_numeric',
 			'option' 	=> $type,
 			'search'	=> 'select',
-			//'update'	=> 'checkbox',
-			//'list'		=> true,
+			'update'	=> 'checkbox',
+			'list'		=> true,
 			'control'	=> 'type',
 		),
 
 		'cash'		=> array
 		(
 			'type' 		=> 'varchar-50',
-			'name' 		=> '支付价格-已废弃.单位元,直接填写数字即可',
+			'name' 		=> '支付价格-单位元,直接填写数字即可',
 			'default' 	=> '',
 			'desc' 		=> '支付价格',
 			'match' 	=> 'is_string',
-			//'update'	=> 'text',
+			'update'	=> 'text',
 			'show'		=> 'type=1',
 		),
 
 		'code'		=> array
 		(
 			'type' 		=> 'varchar-50',
-			'name' 		=> '兑换码数量-已废弃.直接填写数字即可,系统将自动生成对应数量的兑换码',
+			'name' 		=> '兑换码数量-直接填写数字即可,系统将自动生成对应数量的兑换码',
 			'default' 	=> '',
 			'desc' 		=> '兑换码数量',
 			'match' 	=> 'is_string',
-			//'update'	=> 'text',
+			'update'	=> 'text',
 			'show'		=> 'type=2',
 		),