作者 lyh

gx

@@ -82,7 +82,7 @@ class Demo extends Command @@ -82,7 +82,7 @@ class Demo extends Command
82 echo date('Y-m-d H:i:s') . '设置的模版:'.json_encode($settingInfo) . PHP_EOL; 82 echo date('Y-m-d H:i:s') . '设置的模版:'.json_encode($settingInfo) . PHP_EOL;
83 if($settingInfo !== false){ 83 if($settingInfo !== false){
84 $templateCommonModel = new BTemplateCommon(); 84 $templateCommonModel = new BTemplateCommon();
85 - $commonList = $templateCommonModel->list(['template_id'=>$settingInfo['template_id'],'is_custom'=>0]); 85 + $commonList = $templateCommonModel->list(['template_id'=>['in',[$settingInfo['template_id'],0]]]);
86 if(!empty($commonList)){ 86 if(!empty($commonList)){
87 foreach ($commonList as $v){ 87 foreach ($commonList as $v){
88 $typeArr = [1, 2, 3]; 88 $typeArr = [1, 2, 3];