|
@@ -910,7 +910,7 @@ class UserServices extends BaseServices
|
|
|
$edit['city'] = $data['city'];
|
|
|
$edit['area'] = $data['area'];
|
|
|
$edit['street'] = $data['street'];
|
|
|
- $edit['is_shop'] = $data['is_shop'] ?? $user['is_shop'];
|
|
|
+ $edit['is_shop'] = (isset($data['is_shop']) && $data['is_shop'] >= 0) ? $data['is_shop'] : $user['is_shop'];
|
|
|
if (isset($data['extend_info']) && $data['extend_info']) $edit['extend_info'] = $data['extend_info'];
|
|
|
if ($user['level'] != $data['level']) {
|
|
|
/** @var UserLevelServices $userLevelService */
|