diff --git a/backend/modules/goods/controllers/GoodsController.php b/backend/modules/goods/controllers/GoodsController.php
index 9284c30..ee91963 100755
--- a/backend/modules/goods/controllers/GoodsController.php
+++ b/backend/modules/goods/controllers/GoodsController.php
@@ -99,7 +99,7 @@ class GoodsController extends Controller
$model->stock = -1;
$model->is_taking = Goods::IS_TAKING_NO;
$model->is_express = Goods::IS_EXPRESS_YES;
- $model->express_type = Goods::EXPRESS_TYPE_EXPRESS_TEMPLAGE;
+ $model->express_type = Goods::EXPRESS_TYPE_EXPRESS_TEMPLATE;
if ($model->load(Yii::$app->request->post()) && $model->validate()) {
if ($model->uniform_postage) {
$model->uniform_postage *= 100;
diff --git a/backend/modules/goods/models/ars/Goods.php b/backend/modules/goods/models/ars/Goods.php
index 721e4f6..0028e81 100755
--- a/backend/modules/goods/models/ars/Goods.php
+++ b/backend/modules/goods/models/ars/Goods.php
@@ -77,7 +77,7 @@ class Goods extends \yii\db\ActiveRecord
const IS_EXPRESS_YES = 1; //是
//快递运费计算方式express_type
const EXPRESS_TYPE_UNIFORM_POSTAGE = 1; //统一邮费
- const EXPRESS_TYPE_EXPRESS_TEMPLAGE = 2; //运费模板
+ const EXPRESS_TYPE_EXPRESS_TEMPLATE = 2; //运费模板
public static $isTaking = [
self::IS_TAKING_NO => '否',
@@ -89,7 +89,7 @@ class Goods extends \yii\db\ActiveRecord
];
public static $expressType = [
self::EXPRESS_TYPE_UNIFORM_POSTAGE => '统一邮费',
- self::EXPRESS_TYPE_EXPRESS_TEMPLAGE => '运费模板'
+ self::EXPRESS_TYPE_EXPRESS_TEMPLATE => '运费模板'
];
public static $isSale = [
self::IS_SALE_NO => '不在售',
@@ -128,7 +128,7 @@ class Goods extends \yii\db\ActiveRecord
public function rules()
{
return [
- [['pid', 'cat_id', 'brand_id', 'shop_cat_id', 'supplier_id', 'weight', 'length', 'width', 'height', 'diameter', 'sold_count', 'limit_count', 'stock', 'stock_warn', 'market_price', 'price', 'image', 'model_id', 'is_sale', 'sort_order', 'bouns_points', 'experience_points', 'is_delete', 'express_template', 'sku_mode', 'is_taking', 'is_express', 'express_type'], 'integer'],
+ [['pid', 'cat_id', 'brand_id', 'shop_cat_id', 'supplier_id', 'weight', 'length', 'width', 'height', 'diameter', 'sold_count', 'limit_count', 'stock', 'stock_warn', 'image', 'model_id', 'is_sale', 'sort_order', 'bouns_points', 'experience_points', 'is_delete', 'express_template', 'sku_mode', 'is_taking', 'is_express', 'express_type'], 'integer'],
[['cat_id', 'brand_id', 'shop_cat_id', 'name'], 'required'],
[['sn'], 'checkExist'],
[['description', 'coverImageId', 'detailImageId'], 'string'],
@@ -138,7 +138,7 @@ class Goods extends \yii\db\ActiveRecord
[['unit'], 'string', 'max' => 16],
[['brief'], 'string', 'max' => 255],
[['weight', 'length', 'width', 'height', 'diameter', 'sold_count', 'market_price', 'price', 'uniform_postage'], 'checkNegative'],
- [['uniform_postage'], 'safe']
+ [['uniform_postage', 'market_price', 'price'], 'safe']
];
}
diff --git a/backend/modules/goods/views/goods/_search.php b/backend/modules/goods/views/goods/_search.php
index 9a86777..8e00aec 100755
--- a/backend/modules/goods/views/goods/_search.php
+++ b/backend/modules/goods/views/goods/_search.php
@@ -3,6 +3,9 @@
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use \blobt\widgets\DateRangePicker;
+use linyao\widgets\Select2;
+use backend\modules\goods\models\ars\Category;
+use backend\modules\goods\models\ars\ShopCategory;
/* @var $this yii\web\View */
/* @var $model common\models\searchs\GoodsSearch */
@@ -10,40 +13,92 @@ use \blobt\widgets\DateRangePicker;
?>
['index'],
- 'method' => 'get',
- 'validateOnType' => true,
- ]);
+ 'action' => ['index'],
+ 'method' => 'get',
+ 'validateOnType' => true,
+]);
?>
-
-
- = $form->field($model, 'id', [
- "template" => "{input}{error}",
- "inputOptions" => [
- "placeholder" => "检索ID",
- "class" => "form-control",
- ],
- "errorOptions" => [
- "class" => "error-tips"
- ]
- ])
- ?>
-
-
- = $form->field($model, "created_at_range", [
- "template" => "{input}{error}",
- "inputOptions" => [
- "placeholder" => "创建时间",
- ],
- "errorOptions" => [
- "class" => "error-tips"
- ]
- ])->widget(DateRangePicker::className());
- ?>
-
+
+
+ = $form->field($model, 'id', [
+ "template" => "{input}{error}",
+ "inputOptions" => [
+ "placeholder" => "检索ID",
+ "class" => "form-control",
+ ],
+ "errorOptions" => [
+ "class" => "error-tips"
+ ]
+ ])
+ ?>
+
+
+ = $form->field($model, 'name', [
+ "template" => "{input}{error}",
+ "inputOptions" => [
+ "placeholder" => "商品名称",
+ "class" => "form-control",
+ ],
+ "errorOptions" => [
+ "class" => "error-tips"
+ ]
+ ])
+ ?>
+
+
+ = $form->field($model, 'sn', [
+ "template" => "{input}{error}",
+ "inputOptions" => [
+ "placeholder" => "商品唯一货号",
+ "class" => "form-control",
+ ],
+ "errorOptions" => [
+ "class" => "error-tips"
+ ]
+ ])
+ ?>
+
+
+ = $form->field($model, 'cat_id', [
+ "template" => "{input}{error}",
+ "inputOptions" => [
+ "placeholder" => "后台商品类别",
+ "class" => "form-control",
+ ],
+ "errorOptions" => [
+ "class" => "error-tips"
+ ]
+ ])->dropDownList(Category::modelColumn(), ['prompt' => '后台商品类别']);
+ ?>
+
+
+ = $form->field($model, 'shop_cat_id', [
+ "template" => "{input}{error}",
+ "inputOptions" => [
+ "placeholder" => "前端商品类别",
+ "class" => "form-control",
+ ],
+ "errorOptions" => [
+ "class" => "error-tips"
+ ]
+ ])->dropDownList(ShopCategory::modelColumn(), ['prompt' => '前端商品类别']);
+ ?>
+
+
+ = $form->field($model, "created_at_range", [
+ "template" => "{input}{error}",
+ "inputOptions" => [
+ "placeholder" => "创建时间",
+ ],
+ "errorOptions" => [
+ "class" => "error-tips"
+ ]
+ ])->widget(DateRangePicker::className());
+ ?>
+
= Html::submitButton('', ['class' => 'btn btn-default']) ?>
= Html::resetButton('', ['class' => 'btn btn-default']) ?>
-
+
\ No newline at end of file
diff --git a/backend/modules/goods/views/goods/express.php b/backend/modules/goods/views/goods/express.php
index c97839e..df9ecb9 100755
--- a/backend/modules/goods/views/goods/express.php
+++ b/backend/modules/goods/views/goods/express.php
@@ -21,7 +21,7 @@ use backend\modules\shop\models\ars\ExpressTemplate;
= $form->field($model, 'uniform_postage')->textInput() ?>
-
@@ -52,8 +52,28 @@ use backend\modules\shop\models\ars\ExpressTemplate;
$(this).val("0.00")
}
var basicPrice = $(this).val();
- $(this).val(basicPrice.toString().match(/^\d+(?:\.\d{0,2})?/));
+ $(this).val(toFixeds($(this).val(), 2));
})
+ //金额补全
+ function toFixeds(val, pre) {
+ const num = parseFloat(val);
+ // eslint-disable-next-line no-restricted-globals
+ if (isNaN(num)) {
+ return false;
+ }
+ const p = 10 ** pre;
+ const value = num * p;
+ let f = (Math.round(value) / p).toString();
+ let rs = f.indexOf('.');
+ if (rs < 0) {
+ rs = f.length;
+ f += '.';
+ }
+ while (f.length <= rs + pre) {
+ f += '0';
+ }
+ return f;
+ }
JS;
$this->registerJs($js);
diff --git a/backend/modules/goods/views/goods/goods.php b/backend/modules/goods/views/goods/goods.php
index c53b7ea..1f9bf09 100755
--- a/backend/modules/goods/views/goods/goods.php
+++ b/backend/modules/goods/views/goods/goods.php
@@ -61,4 +61,50 @@ use backend\modules\goods\models\ars\Goods;
= Html::submitButton('保存', ['class' => 'btn btn-success']) ?>
= Html::a('返回', ['index'], ['class' => 'btn btn-info']) ?>
-
\ No newline at end of file
+
+registerJs($js);
+
+?>
\ No newline at end of file
diff --git a/backend/modules/shop/views/express-template/express_area_form.php b/backend/modules/shop/views/express-template/express_area_form.php
index 74b97d9..d014ccf 100755
--- a/backend/modules/shop/views/express-template/express_area_form.php
+++ b/backend/modules/shop/views/express-template/express_area_form.php
@@ -86,6 +86,26 @@ function changeCalType(type){//当切换计算方式
}
calType = type;
}
+//金额补全
+function toFixeds(val, pre) {
+ const num = parseFloat(val);
+ // eslint-disable-next-line no-restricted-globals
+ if (isNaN(num)) {
+ return false;
+ }
+ const p = 10 ** pre;
+ const value = num * p;
+ let f = (Math.round(value) / p).toString();
+ let rs = f.indexOf('.');
+ if (rs < 0) {
+ rs = f.length;
+ f += '.';
+ }
+ while (f.length <= rs + pre) {
+ f += '0';
+ }
+ return f;
+}
$(document).ready(function(){
$("#expressarea-basic_count").blur(function(){
if(isNaN($(this).val())){
@@ -96,8 +116,7 @@ $(document).ready(function(){
$(this).val(1)
}
var basiccount = $(this).val();
- // $(this).val(Math.floor(basiccount * 10) / 10);
- $(this).val(basiccount.toString().match(/^\d+(?:\.\d{0,1})?/));
+ $(this).val(toFixeds($(this).val(), 1));
} else{
if($(this).val() < 1){
$(this).val(1)
@@ -114,7 +133,7 @@ $(document).ready(function(){
$(this).val("0.00")
}
var basicPrice = $(this).val();
- $(this).val(basicPrice.toString().match(/^\d+(?:\.\d{0,2})?/));
+ $(this).val(toFixeds($(this).val(), 2));
})
$("#expressarea-extra_count").blur(function(){
if(isNaN($(this).val())){
@@ -125,7 +144,7 @@ $(document).ready(function(){
$(this).val(0)
}
var basiccount = $(this).val();
- $(this).val(Math.floor(basiccount * 10) / 10);
+ $(this).val(toFixeds($(this).val(), 1));
} else{
if($(this).val() < 0){
$(this).val(0)
@@ -142,7 +161,7 @@ $(document).ready(function(){
$(this).val("0.00")
}
var basicPrice = $(this).val();
- $(this).val(basicPrice.toString().match(/^\d+(?:\.\d{0,2})?/));
+ $(this).val(toFixeds($(this).val(), 2));
})
$("input:radio[name='ExpressArea[calculation_type]']").on('ifChecked', function(event){
diff --git a/console/runtime/logs/app.log b/console/runtime/logs/app.log
index 4ee8544..0b27f98 100644
--- a/console/runtime/logs/app.log
+++ b/console/runtime/logs/app.log
@@ -1786,3 +1786,86 @@ $_SERVER = [
]
'argc' => 2
]
+2019-12-05 14:04:52 [-][-][-][error][yii\base\ErrorException:2] yii\base\ErrorException: file_get_contents(/home/wwwroot/default/antshop/console/migrations/sql/add_category.sql): failed to open stream: No such file or directory in /home/wwwroot/default/antshop/console/migrations/m190802_072830_add_category.php:14
+Stack trace:
+#0 [internal function]: yii\base\ErrorHandler->handleError(2, 'file_get_conten...', '/home/wwwroot/d...', 14, Array)
+#1 /home/wwwroot/default/antshop/console/migrations/m190802_072830_add_category.php(14): file_get_contents('/home/wwwroot/d...')
+#2 /home/wwwroot/default/antshop/vendor/yiisoft/yii2/console/controllers/BaseMigrateController.php(724): m190802_072830_add_category->up()
+#3 /home/wwwroot/default/antshop/vendor/yiisoft/yii2/console/controllers/BaseMigrateController.php(200): yii\console\controllers\BaseMigrateController->migrateUp('m190802_072830_...')
+#4 [internal function]: yii\console\controllers\BaseMigrateController->actionUp(0)
+#5 /home/wwwroot/default/antshop/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
+#6 /home/wwwroot/default/antshop/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
+#7 /home/wwwroot/default/antshop/vendor/yiisoft/yii2/console/Controller.php(164): yii\base\Controller->runAction('', Array)
+#8 /home/wwwroot/default/antshop/vendor/yiisoft/yii2/base/Module.php(528): yii\console\Controller->runAction('', Array)
+#9 /home/wwwroot/default/antshop/vendor/yiisoft/yii2/console/Application.php(180): yii\base\Module->runAction('migrate', Array)
+#10 /home/wwwroot/default/antshop/vendor/yiisoft/yii2/console/Application.php(147): yii\console\Application->runAction('migrate', Array)
+#11 /home/wwwroot/default/antshop/vendor/yiisoft/yii2/base/Application.php(386): yii\console\Application->handleRequest(Object(yii\console\Request))
+#12 /home/wwwroot/default/antshop/yii(23): yii\base\Application->run()
+#13 {main}
+2019-12-05 14:04:51 [-][-][-][info][application] $_GET = []
+
+$_POST = []
+
+$_FILES = []
+
+$_COOKIE = []
+
+$_SERVER = [
+ 'CLUTTER_IM_MODULE' => 'xim'
+ 'LS_COLORS' => 'bd=38;5;68;1:ca=38;5;17:cd=38;5;132;1:di=38;5;105:do=38;5;127:ex=38;5;80:pi=38;5;126:fi=38;5;167:ln=38;5;63:mh=38;5;99;1:or=48;5;197;38;5;228;1:ow=38;5;220;1:sg=48;5;234;38;5;100;1:su=38;5;9;1:so=38;5;197:st=38;5;86;48;5;234:tw=48;5;235;38;5;139;3:*LS_COLORS=48;5;89;38;5;197;1;3;4;7:*.BAT=38;5;108:*.exe=38;5;196:*.PL=38;5;160:*.asm=38;5;240;1:*.awk=38;5;148;1:*.bash=38;5;173:*.bat=38;5;108:*.c=38;5;110:*.cc=38;5;24;1:*.ii=38;5;24;1:*.cfg=1:*.cl=38;5;204;1:*.coffee=38;5;100;1:*.conf=38;5;221:*.C=38;5;24;1:*.cp=38;5;24;1:*.cpp=38;5;24;1:*.cxx=38;5;24;1:*.c++=38;5;24;1:*.ii=38;5;24;1:*.cs=38;5;74;1:*.css=38;5;91:*.csv=38;5;78:*.ctp=38;5;95:*.diff=48;5;197;38;5;232:*.enc=38;5;192;3:*.eps=38;5;33;1:*.etx=38;5;172:*.ex=38;5;148;1:*.example=38;5;225;1:*.git=38;5;197:*.gitignore=38;5;240:*.go=38;5;111:*.h=38;5;81:*.H=38;5;81:*.hpp=38;5;81:*.hxx=38;5;81:*.h++=38;5;81:*.tcc=38;5;81:*.f=38;5;81:*.for=38;5;81:*.ftn=38;5;81:*.s=38;5;81:*.S=38;5;81:*.sx=38;5;81:*.hi=38;5;240:*.hs=38;5;199;1:*.htm=38;5;125;1:*.html=38;5;9;1:*.info=38;5;101:*.ini=38;5;123:*.java=38;5;142;1:*.jhtm=38;5;125;1:*.js=38;5;42:*.jsm=38;5;42:*.jsm=38;5;42:*.json=38;5;213:*.jsp=38;5;45:*.lisp=38;5;204;1:*.log=38;5;190:*.lua=38;5;34;1:*.m=38;5;130;3:*.mht=38;5;129:*.mm=38;5;130;3:*.M=38;5;130;3:*.map=38;5;58;3:*.markdown=38;5;184:*.md=38;5;184:*.mf=38;5;220;3:*.mfasl=38;5;73:*.mi=38;5;124:*.mkd=38;5;184:*.mtx=38;5;36;3:*.nfo=38;5;220:*.o=38;5;240:*.pacnew=38;5;33:*.patch=48;5;197;38;5;232;1:*.pc=38;5;100:*.pfa=38;5;43:*.pgsql=38;5;222:*.php=38;5;99:*.pl=38;5;214:*.po=38;5;176:*.pot=38;5;206;1:*.plt=38;5;204;1:*.pm=38;5;197;1:*.pod=38;5;172;1:*.py=38;5;41:*.pyc=38;5;245:*.rb=38;5;192:*.rdf=38;5;144:*.rst=38;5;67:*.ru=38;5;142:*.scm=38;5;204;1:*.sed=38;5;130;1:*.sfv=38;5;197:*.sh=38;5;113:*.signature=38;5;206:*.sql=38;5;222:*.srt=38;5;116:*.sty=38;5;58:*.sug=38;5;44:*.t=38;5;28;1:*.tcl=38;5;64;1:*.tdy=38;5;214:*.tex=38;5;172:*.textile=38;5;106:*.tfm=38;5;64:*.tfnt=38;5;140:*.theme=38;5;109:*.txt=38;5;192:*.list=38;5;44:*.save=38;5;240:*.urlview=38;5;85:*.vim=38;5;14:*.vimrc=38;5;13:*.viminfo=38;5;240;1:*.xml=38;5;199:*.yml=38;5;208:*.zsh=38;5;173:*.bashrc=38;5;5:*README=38;5;220;1:*Makefile=38;5;196:*MANIFEST=38;5;243:*pm_to_blib=38;5;240:*.1=38;5;240;1:*.2=38;5;220;1:*.3=38;5;196;1:*.7=38;5;196;1:*.1p=38;5;160:*.3p=38;5;160:*.am=38;5;242:*.in=38;5;242:*.old=38;5;242:*.out=38;5;44;1:*.bmp=38;5;33:*.cdr=38;5;33:*.gif=38;5;33:*.ico=38;5;33:*.jpeg=38;5;33:*.jpg=38;5;33:*.JPG=38;5;33:*.png=38;5;33:*.svg=38;5;33;1:*.xpm=38;5;33:*.32x=38;5;137:*.A64=38;5;82:*.a00=38;5;11:*.a52=38;5;112:*.a64=38;5;82:*.a78=38;5;112:*.adf=38;5;35:*.atr=38;5;213:*.cdi=38;5;124:*.fm2=38;5;35:*.gb=38;5;203:*.gba=38;5;205:*.gbc=38;5;204:*.gel=38;5;83:*.gg=38;5;138:*.ggl=38;5;83:*.j64=38;5;102:*.nds=38;5;199:*.nes=38;5;160:*.rom=38;5;59;1:*.sav=38;5;220:*.sms=38;5;33:*.st=38;5;208;1:*.iso=38;5;9;1:*.nrg=38;5;124:*.qcow=38;5;141:*.VOB=38;5;99:*.IFO=38;5;99:*.BUP=38;5;99:*.MOV=38;5;99:*.3gp=38;5;99:*.3g2=38;5;99:*.asf=38;5;99:*.avi=38;5;99:*.divx=38;5;99:*.f4v=38;5;99:*.flv=38;5;99:*.m2v=38;5;99:*.mkv=38;5;99:*.mov=38;5;99:*.mp4=38;5;99:*.mpg=38;5;99:*.mpeg=38;5;99:*.ogm=38;5;99:*.ogv=38;5;99:*.rmvb=38;5;99:*.sample=38;5;99;1:*.ts=38;5;99:*.vob=38;5;99:*.webm=38;5;99:*.wmv=38;5;99:*.S3M=38;5;69;1:*.aac=38;5;69:*.cue=38;5;69:*.dat=38;5;69:*.dts=38;5;69;1:*.fcm=38;5;69:*.flac=38;5;69;1:*.m3u=38;5;69:*.m3u8=38;5;69:*.m4=38;5;69;3:*.m4a=38;5;69;1:*.mid=38;5;69:*.midi=38;5;69:*.mod=38;5;69:*.mp3=38;5;69:*.oga=38;5;69:*.ogg=38;5;69:*.s3m=38;5;69;1:*.sid=38;5;69;1:*.spl=38;5;69:*.wv=38;5;69:*.wvc=38;5;69:*.ape=38;5;69:*.afm=38;5;58:*.pfb=38;5;58:*.pfm=38;5;58:*.ttf=38;5;66:*.ttc=38;5;66:*.pcf=38;5;65:*.psf=38;5;64:*.bak=38;5;222;1:*.bin=38;5;228:*.pid=38;5;228:*.state=38;5;228:*.swo=38;5;228:*.swp=38;5;228:*.tmp=38;5;228:*.un~=38;5;228:*.zcompdump=38;5;228:*.zwc=38;5;228:*.db=38;5;147:*.dump=38;5;147:*.sqlite=38;5;147:*.typelib=38;5;147:*.7z=38;5;140:*.a=38;5;220:*.apk=38;5;148;3:*.arj=38;5;220:*.bz2=38;5;220:*.deb=38;5;215;1:*.ipk=38;5;220:*.jad=38;5;220:*.jar=38;5;220:*.nth=38;5;220:*.sis=38;5;220:*.part=38;5;220;1:*.r00=38;5;220:*.r01=38;5;220:*.r02=38;5;220:*.r03=38;5;220:*.r04=38;5;220:*.r05=38;5;220:*.r06=38;5;220:*.r07=38;5;220:*.r08=38;5;220:*.r09=38;5;220:*.r10=38;5;220:*.r100=38;5;220:*.r101=38;5;220:*.r102=38;5;220:*.r103=38;5;220:*.r104=38;5;220:*.r105=38;5;220:*.r106=38;5;220:*.r107=38;5;220:*.r108=38;5;220:*.r109=38;5;220:*.r11=38;5;220:*.r110=38;5;220:*.r111=38;5;220:*.r112=38;5;220:*.r113=38;5;220:*.r114=38;5;220:*.r115=38;5;220:*.r116=38;5;220:*.r12=38;5;220:*.r13=38;5;220:*.r14=38;5;220:*.r15=38;5;220:*.r16=38;5;220:*.r17=38;5;220:*.r18=38;5;220:*.r19=38;5;220:*.r20=38;5;220:*.r21=38;5;220:*.r22=38;5;220:*.r25=38;5;220:*.r26=38;5;220:*.r27=38;5;220:*.r28=38;5;220:*.r29=38;5;220:*.r30=38;5;220:*.r31=38;5;220:*.r32=38;5;220:*.r33=38;5;220:*.r34=38;5;220:*.r35=38;5;220:*.r36=38;5;220:*.r37=38;5;220:*.r38=38;5;220:*.r39=38;5;220:*.r40=38;5;220:*.r41=38;5;220:*.r42=38;5;220:*.r43=38;5;220:*.r44=38;5;220:*.r45=38;5;220:*.r46=38;5;220:*.r47=38;5;220:*.r48=38;5;220:*.r49=38;5;220:*.r50=38;5;220:*.r51=38;5;220:*.r52=38;5;220:*.r53=38;5;220:*.r54=38;5;220:*.r99=38;5;220:*.r56=38;5;220:*.r69=38;5;220:*.r58=38;5;220:*.r59=38;5;220:*.r60=38;5;220:*.r61=38;5;220:*.r62=38;5;220:*.r63=38;5;220:*.r64=38;5;220:*.r65=38;5;220:*.r66=38;5;220:*.r67=38;5;220:*.r68=38;5;220:*.r69=38;5;220:*.r69=38;5;220:*.r70=38;5;220:*.r71=38;5;220:*.r72=38;5;220:*.r73=38;5;220:*.r74=38;5;220:*.r75=38;5;220:*.r76=38;5;220:*.r77=38;5;220:*.r78=38;5;220:*.r79=38;5;220:*.r80=38;5;220:*.r81=38;5;220:*.r82=38;5;220:*.r83=38;5;220:*.r84=38;5;220:*.r85=38;5;220:*.r86=38;5;220:*.r87=38;5;220:*.r88=38;5;220:*.r89=38;5;220:*.r90=38;5;220:*.r91=38;5;220:*.r92=38;5;220:*.r99=38;5;220:*.r94=38;5;220:*.r95=38;5;220:*.r96=38;5;220:*.r97=38;5;220:*.r98=38;5;220:*.r99=38;5;220:*.rar=38;5;217;1:*.tar=38;5;222:*.tar.gz=38;5;216:*.tgz=38;5;214;1:*.gz=38;5;224:*.xz=38;5;182:*.zip=38;5;208:*.doc=38;5;190:*.wps=38;5;190:*.docx=38;5;190:*.xls=38;5;190:*.xlsx=38;5;190:*.ppt=38;5;190:*.pptx=38;5;190:*.pdf=38;5;190:*.djvu=38;5;190:*.cbr=38;5;190:*.cbz=38;5;190:*.chm=38;5;190:*.odt=38;5;112:*.ods=38;5;112:*.odp=38;5;112:*.odb=38;5;112:*.allow=38;5;112:*.deny=38;5;203:*.SKIP=38;5;244:*.def=38;5;136:*.directory=38;5;69:*.err=38;5;160;1:*.error=38;5;160;1:*.pi=38;5;126:*.properties=38;5;197;1:*.torrent=38;5;105:*.gp3=38;5;114:*.gp4=38;5;115:*.tg=38;5;99:*.pcap=38;5;29:*.cap=38;5;29:*.dmp=38;5;29:*.service=38;5;81:*@.service=38;5;45:*.socket=38;5;75:*.device=38;5;24:*.mount=38;5;115:*.automount=38;5;114:*.swap=38;5;113:*.target=38;5;73:*.path=38;5;116:*.timer=38;5;111:*.snapshot=38;5;139:*.desktop=38;5;113:*.crdownload=38;5;38:*.crx=38;5;13:'
+ 'TERMINAL_EMULATOR' => 'JetBrains-JediTerm'
+ 'SOCKS_SERVER' => 'socks5://127.0.0.1:7891'
+ 'LANG' => 'zh_CN.UTF-8'
+ 'DISPLAY' => ':0'
+ 'OLDPWD' => '/opt/phpstorm/bin'
+ 'XDG_VTNR' => '1'
+ 'GIO_LAUNCHED_DESKTOP_FILE_PID' => '3930'
+ 'SSH_AUTH_SOCK' => '/run/user/1000/keyring/ssh'
+ 'XDG_SESSION_ID' => '2'
+ 'XDG_GREETER_DATA_DIR' => '/var/lib/lightdm/data/linyao'
+ 'USER' => 'linyao'
+ 'DESKTOP_SESSION' => 'deepin'
+ 'QT4_IM_MODULE' => 'fcitx'
+ 'PWD' => '/home/wwwroot/default/antshop'
+ 'HOME' => '/home/linyao'
+ 'QT_DBL_CLICK_DIST' => '18'
+ 'XDG_SESSION_TYPE' => 'x11'
+ 'http_proxy' => 'http://127.0.0.1:7890'
+ 'XDG_SESSION_DESKTOP' => 'deepin'
+ 'no_proxy' => 'localhost,127.0.0.0/8,::1,b.antshop.com,b.kcshop.com,f.antbasic.com,b.antbasic.com,'
+ 'DEEPIN_WINE_SCALE' => '1.25'
+ 'DESKTOP_STARTUP_ID' => 'startdde-2941-linyao-PC-phpstorm-0_TIME97043'
+ 'TERM' => 'xterm-256color'
+ 'SHELL' => '/bin/bash'
+ 'XDG_SEAT_PATH' => '/org/freedesktop/DisplayManager/Seat0'
+ 'QT_IM_MODULE' => 'fcitx'
+ 'XMODIFIERS' => '@im=fcitx'
+ 'XDG_CURRENT_DESKTOP' => 'Deepin'
+ 'GPG_AGENT_INFO' => '/run/user/1000/gnupg/S.gpg-agent:0:1'
+ 'GIO_LAUNCHED_DESKTOP_FILE' => '/usr/share/applications/phpstorm.desktop'
+ 'SHLVL' => '1'
+ 'XDG_SEAT' => 'seat0'
+ 'LANGUAGE' => 'zh_CN'
+ 'GDMSESSION' => 'deepin'
+ 'GNOME_DESKTOP_SESSION_ID' => 'this-is-deprecated'
+ 'LOGNAME' => 'linyao'
+ 'DBUS_SESSION_BUS_ADDRESS' => 'unix:abstract=/tmp/dbus-oBqp2j0vhj,guid=d7e1b9485b6f0be71733773e5de85060'
+ 'XDG_RUNTIME_DIR' => '/run/user/1000'
+ 'XAUTHORITY' => '/home/linyao/.Xauthority'
+ 'XDG_SESSION_PATH' => '/org/freedesktop/DisplayManager/Session0'
+ 'PATH' => '/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games'
+ 'GTK_IM_MODULE' => 'fcitx'
+ '_' => './yii'
+ 'PHP_SELF' => './yii'
+ 'SCRIPT_NAME' => './yii'
+ 'SCRIPT_FILENAME' => './yii'
+ 'PATH_TRANSLATED' => './yii'
+ 'DOCUMENT_ROOT' => ''
+ 'REQUEST_TIME_FLOAT' => 1575525891.5635
+ 'REQUEST_TIME' => 1575525891
+ 'argv' => [
+ 0 => './yii'
+ 1 => 'migrate'
+ ]
+ 'argc' => 2
+]
diff --git a/vendor/iron/grid/GridView.php b/vendor/iron/grid/GridView.php
index c2f2ca9..e1812fa 100644
--- a/vendor/iron/grid/GridView.php
+++ b/vendor/iron/grid/GridView.php
@@ -269,7 +269,7 @@ HTML;
HTML;
public $create =<<添加
+ 添加
HTML;
/**