소스 검색

领取等级

afa 8 달 전
부모
커밋
e47f121e53
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      application/common/model/UserModel.php

+ 1 - 1
application/common/model/UserModel.php

@@ -109,7 +109,7 @@ class UserModel extends Model
      */
     public static function updateUserLevel(int $uid, int $parentId)
     {
-        if (empty($parentId)) {
+        if (!empty($parentId)) {
             $parent = self::where('id', $parentId)->find();
             //更新等级
             if (empty($parent->address_level)) {