wesmiler 4 дней назад
Родитель
Сommit
edecb610ff
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Services/Common/MemberService.php

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

@@ -395,7 +395,7 @@ class MemberService extends BaseService
         $pointId = 0;
         $points = '';
         if($parentId>0){
-            $pointId = $this->getPointParentId($parentId);
+            $pointId = \App\Services\Api\MemberService::make()->getPointParentId($parentId);
             if($pointId){
                 $pointParent = $this->model->where(['id'=> $pointId,'mark'=>1])->select(['id','points'])->first();
                 $points = isset($pointParent['points']) && $pointParent['points']? $pointParent['points'].$pointId.',' : ($pointId ? $pointId . ',' : '');