wesmiler 1 tydzień temu
rodzic
commit
e2c41e7eac
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/Services/Api/MemberService.php

+ 1 - 1
app/Services/Api/MemberService.php

@@ -228,7 +228,7 @@ class MemberService extends BaseService
                 $pointId = $this->getPointParentId($rid);
                 if($pointId){
                     $pointParent = $this->model->where(['id'=> $pointId,'mark'=>1])->select(['id','points'])->first();
-                    $points = isset($pointParent['points']) ? $pointParent['points'].$pointId.',' : ($pointId ? $pointId . ',' : '');
+                    $points = isset($pointParent['points']) && $pointParent['points']? $pointParent['points'].$pointId.',' : ($pointId ? $pointId . ',' : '');
                 }
             }