作者 lyh

gx

... ... @@ -64,7 +64,7 @@ class Demo extends Command
public function handle()
{
$projectModel = new Project();
$list = $projectModel->list(['delete_status'=>0,'id'=>1]);
$list = $projectModel->list(['delete_status'=>0]);
$data = [];
foreach ($list as $v){
echo date('Y-m-d H:i:s') . 'project_id:'.$v['id'] . PHP_EOL;
... ... @@ -82,7 +82,7 @@ class Demo extends Command
echo date('Y-m-d H:i:s') . '设置的模版:'.json_encode($settingInfo) . PHP_EOL;
if($settingInfo !== false){
$templateCommonModel = new BTemplateCommon();
$commonList = $templateCommonModel->list(['is_custom'=>0]);
$commonList = $templateCommonModel->list(['template_id'=>$settingInfo['template_id'],'is_custom'=>0]);
if(!empty($commonList)){
foreach ($commonList as $v){
$typeArr = [1, 2, 3];
... ...