作者 赵彬吉
@@ -42,7 +42,8 @@ class Temp extends Command @@ -42,7 +42,8 @@ class Temp extends Command
42 42
43 $domain_list = $domain_model->list(['amp_status' => 1]); 43 $domain_list = $domain_model->list(['amp_status' => 1]);
44 foreach ($domain_list as $info) { 44 foreach ($domain_list as $info) {
45 - $notify_info = $notify_model->read(['project_id' => $info['project_id']]); 45 + if ($info['project_id'] > 0) {
  46 + $notify_info = $notify_model->read(['project_id' => $info['project_id'], 'type' => 3]);
46 if (!$notify_info) { 47 if (!$notify_info) {
47 48
48 $domain_array = parse_url($info['domain']); 49 $domain_array = parse_url($info['domain']);
@@ -66,6 +67,7 @@ class Temp extends Command @@ -66,6 +67,7 @@ class Temp extends Command
66 } 67 }
67 } 68 }
68 } 69 }
  70 + }
69 71
70 // public function handle() 72 // public function handle()
71 // { 73 // {
@@ -195,7 +195,8 @@ class ProjectUpdate extends Command @@ -195,7 +195,8 @@ class ProjectUpdate extends Command
195 $custom_types = $data['data']['customposttypes'] ?? ''; 195 $custom_types = $data['data']['customposttypes'] ?? '';
196 196
197 $model = new WebSettingReceiving(); 197 $model = new WebSettingReceiving();
198 - if ($phones) { 198 + $has_phone = $model->read(['type' => 2]);
  199 + if (!$has_phone && $phones) {
199 $phone_arr = explode(',', $phones); 200 $phone_arr = explode(',', $phones);
200 foreach ($phone_arr as $v_phone) { 201 foreach ($phone_arr as $v_phone) {
201 if ($v_phone) { 202 if ($v_phone) {
@@ -215,7 +216,8 @@ class ProjectUpdate extends Command @@ -215,7 +216,8 @@ class ProjectUpdate extends Command
215 } 216 }
216 } 217 }
217 } 218 }
218 - if ($emails) { 219 + $has_email = $model->read(['type' => 1]);
  220 + if (!$has_email && $emails) {
219 $email_arr = explode(',', $emails); 221 $email_arr = explode(',', $emails);
220 foreach ($email_arr as $v_email) { 222 foreach ($email_arr as $v_email) {
221 if ($v_email) { 223 if ($v_email) {