dever 2 years ago
parent
commit
6edb8e4a23
1 changed files with 7 additions and 7 deletions
  1. 7 7
      src/Api.php

+ 7 - 7
src/Api.php

@@ -139,7 +139,7 @@ class Api
 					$config['struct'][$k]['default'] = '';
 					$config['struct'][$k]['desc'] = $v['name'];
 					$config['struct'][$k]['update'] = 'hidden';
-					$config['struct'][$k]['type'] = 'varchar-11';
+					$config['struct'][$k]['type'] = 'varchar-800';
 					$config['struct'][$k]['match'] = 'is_numeric';
 
 					$k = 'attr_' . $v['id'] . '_e';
@@ -147,7 +147,7 @@ class Api
 					$config['struct'][$k]['default'] = '';
 					$config['struct'][$k]['desc'] = $v['name'];
 					$config['struct'][$k]['update'] = 'hidden';
-					$config['struct'][$k]['type'] = 'varchar-11';
+					$config['struct'][$k]['type'] = 'varchar-800';
 					$config['struct'][$k]['match'] = 'is_numeric';
 				}
 
@@ -202,7 +202,7 @@ class Api
 
 					case 10:
 						$config['struct'][$k]['update'] = 'radio';
-						$config['struct'][$k]['type'] = 'varchar-11';
+						$config['struct'][$k]['type'] = 'varchar-800';
 						$config['struct'][$k]['match'] = 'is_numeric';
 						$config['struct'][$k]['option'] = $option;
 						$config['struct'][$k]['search'] = 'select';
@@ -211,7 +211,7 @@ class Api
 						break;
 					case 11:
 						$config['struct'][$k]['update'] = 'checkbox';
-						$config['struct'][$k]['type'] = 'varchar-150';
+						$config['struct'][$k]['type'] = 'varchar-800';
 						$config['struct'][$k]['match'] = 'is_string';
 						$config['struct'][$k]['option'] = $option;
 						$config['struct'][$k]['search'] = 'select';
@@ -219,7 +219,7 @@ class Api
 						break;
 					case 12:
 						$config['struct'][$k]['update'] = 'select';
-						$config['struct'][$k]['type'] = 'varchar-11';
+						$config['struct'][$k]['type'] = 'varchar-800';
 						$config['struct'][$k]['match'] = 'is_numeric';
 						$config['struct'][$k]['option'] = $option;
 						$config['struct'][$k]['search'] = 'select';
@@ -231,10 +231,10 @@ class Api
 						$config['struct'][$k]['search'] = 'fulltext';
 						if ($v['type'] == 9) {
 							$config['struct'][$k]['name'] .= '-这是一个区间数值,后台填写请用半角逗号,隔开';
-							$config['struct'][$k]['type'] = 'varchar-100';
+							$config['struct'][$k]['type'] = 'varchar-800';
 							$config['struct'][$k]['match'] = 'is_string';
 						} elseif ($v['data_type'] == 1 || $v['type'] == 1) {
-							$config['struct'][$k]['type'] = 'varchar-11';
+							$config['struct'][$k]['type'] = 'varchar-800';
 							$config['struct'][$k]['match'] = 'is_numeric';
 						} else {
 							$config['struct'][$k]['type'] = 'varchar-800';