wesmiler 5 ngày trước cách đây
mục cha
commit
edecb610ff

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

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