浏览代码

会员升级

Kirin 2 月之前
父节点
当前提交
0426b67123
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/services/user/UserServices.php

+ 1 - 1
app/services/user/UserServices.php

@@ -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'] ?? 0;
+            $edit['is_shop'] = $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 */