zz %!s(int64=6) %!d(string=hai) anos
pai
achega
80af5943ad
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  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){
         try{
+            $old_property = UserDivisionCpcPropertyService::getUserProperty($uid);
+            $this->chargeGiveGift($uid,$old_property,$price,$charge_type);
             $userproperty = UserDivisionCpcPropertyService::getUserSubscribeAndChargeInfoByUid($uid);
             if(!$userproperty) {
-                $this->chargeGiveGift($uid,'low',$price,$charge_type);
                 return ;
             }
             UserDivisionCpcPropertyService::createorUpdate($userproperty);
-            //chargeGiveGift
-            $this->chargeGiveGift($uid,$userproperty['property'],$price,$charge_type);
         }catch (\Exception $e){}
 
     }