作者 赵彬吉
... ... @@ -42,7 +42,8 @@ class Temp extends Command
$domain_list = $domain_model->list(['amp_status' => 1]);
foreach ($domain_list as $info) {
$notify_info = $notify_model->read(['project_id' => $info['project_id']]);
if ($info['project_id'] > 0) {
$notify_info = $notify_model->read(['project_id' => $info['project_id'], 'type' => 3]);
if (!$notify_info) {
$domain_array = parse_url($info['domain']);
... ... @@ -66,6 +67,7 @@ class Temp extends Command
}
}
}
}
// public function handle()
// {
... ...
... ... @@ -195,7 +195,8 @@ class ProjectUpdate extends Command
$custom_types = $data['data']['customposttypes'] ?? '';
$model = new WebSettingReceiving();
if ($phones) {
$has_phone = $model->read(['type' => 2]);
if (!$has_phone && $phones) {
$phone_arr = explode(',', $phones);
foreach ($phone_arr as $v_phone) {
if ($v_phone) {
... ... @@ -215,7 +216,8 @@ class ProjectUpdate extends Command
}
}
}
if ($emails) {
$has_email = $model->read(['type' => 1]);
if (!$has_email && $emails) {
$email_arr = explode(',', $emails);
foreach ($email_arr as $v_email) {
if ($v_email) {
... ...