zz 6 年之前
父節點
當前提交
80af5943ad
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      app/Http/Controllers/Wap/Pay/OrdersController.php

+ 2 - 3
app/Http/Controllers/Wap/Pay/OrdersController.php

@@ -1714,14 +1714,13 @@ class OrdersController extends Controller
 
 
     private function userProperty($uid,$price,$charge_type){
     private function userProperty($uid,$price,$charge_type){
         try{
         try{
+            $old_property = UserDivisionCpcPropertyService::getUserProperty($uid);
+            $this->chargeGiveGift($uid,$old_property,$price,$charge_type);
             $userproperty = UserDivisionCpcPropertyService::getUserSubscribeAndChargeInfoByUid($uid);
             $userproperty = UserDivisionCpcPropertyService::getUserSubscribeAndChargeInfoByUid($uid);
             if(!$userproperty) {
             if(!$userproperty) {
-                $this->chargeGiveGift($uid,'low',$price,$charge_type);
                 return ;
                 return ;
             }
             }
             UserDivisionCpcPropertyService::createorUpdate($userproperty);
             UserDivisionCpcPropertyService::createorUpdate($userproperty);
-            //chargeGiveGift
-            $this->chargeGiveGift($uid,$userproperty['property'],$price,$charge_type);
         }catch (\Exception $e){}
         }catch (\Exception $e){}
 
 
     }
     }