wesmiler пре 1 недеља
родитељ
комит
c7cccdc042
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      app/Services/Api/MemberService.php

+ 4 - 0
app/Services/Api/MemberService.php

@@ -419,7 +419,11 @@ class MemberService extends BaseService
 
             if($type == 'center'){
                 $info['invite_count'] = $this->model->where(['parent_id'=>$info['id'],'mark'=>1])->count('id');
+            }
+
+            if($type == 'account' || $type == 'center'){
                 $info['property_price'] = PriceService::make()->getTodayPrice(1);
+                $info['property_total'] = floatval($info['property'] * $info['property_price']);
             }
 
             RedisService::set($cacheKey, $info, rand(10, 20));