zz 5 years ago
parent
commit
628a3c88bb

+ 10 - 2
app/Http/Controllers/Wap/Web/WelcomeController.php

@@ -2156,7 +2156,15 @@ class WelcomeController extends BaseController
         $get_info = UserBindHkWelfareService::isHasGet($this->uid);
         if($get_info)   return '';
         //Log::info('guidePersonalAccount2222222222222222222222');
-        $charge = $this->is_paid;
+        $charge = false;
+        if(in_array($this->property, ['medium','high'])){
+            $charge = true;
+        }else{
+           if($this->property == 'undefined' && OrderService::getChargeNum($this->uid) >=10){
+               $charge = true;
+           }
+        }
+
         if($this->distribution_channel_id == 6687){
             $charge = true;
         }
@@ -2170,7 +2178,7 @@ class WelcomeController extends BaseController
         }
         //站外导粉
         if($out_status){
-            if(!in_array($this->property,['high','medium'])) return '';
+            if(!$charge) return '';
             if(empty($crm_config[2])){
                 return '';
             }

+ 5 - 0
app/Modules/Subscribe/Services/OrderService.php

@@ -219,4 +219,9 @@ WHERE  send_order_id = %s and order_type= 'RECHARGE' ";
     public static function getUserChargeTimes($uid){
         return Order::getUserChargeTimes($uid);
     }
+
+    public static function getChargeNum($uid)
+    {
+        return Order::where('uid',$uid)->where('status','PAID')->sum('price');
+    }
 }