|
...
|
...
|
@@ -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) {
|
...
|
...
|
|