作者 李宇航

合并分支 'master-server' 到 'master'

gx脚本更新路由



查看合并请求 !962
... ... @@ -82,6 +82,7 @@ class UpdateBuildConfiguration extends Command
$productModel = new Product();
$lists = $productModel->list();
$detailModel = new Detail();
if(!empty($lists)){
foreach ($lists as $k => $v){
echo date('Y-m-d H:i:s') . '产品id:'.$v['id'] . PHP_EOL;
$data = [
... ... @@ -90,10 +91,14 @@ class UpdateBuildConfiguration extends Command
'text_type'=>1,
'title'=>'',
'sort'=>1,
'content'=>$v['describe']
'content'=>$v['describe'],
'created_at'=>date('Y-m-d H:i:s'),
'updated_at'=>date('Y-m-d H:i:s')
];
$detailModel->add($data);
$detailModel->insert($data);
}
}
return true;
}
}
... ...